build-system

cmake : Set environment variables from a script

陌路散爱 提交于 2019-11-29 23:43:16
I have a script that sets all variables needed for the cross-compilation. Here is just part of it : export CONFIG_SITE=~/workspace/eldk-5.4/powerpc/site-config-powerpc-linux export CC="powerpc-linux-gcc -m32 -mhard-float --sysroot=~/workspace/eldk-5.4/powerpc/sysroots/powerpc-linux" export CXX="powerpc-linux-g++ -m32 -mhard-float --sysroot=~/workspace/eldk-5.4/powerpc/sysroots/powerpc-linux" export CPP="powerpc-linux-gcc -E -m32 -mhard-float --sysroot=~/workspace/eldk-5.4/powerpc/sysroots/powerpc-linux" export AS="powerpc-linux-as " export LD="powerpc-linux-ld --sysroot=~/workspace/eldk-5.4

Sublime Text 2 build system to compile & run Java in a new Terminal/Command Prompt window?

瘦欲@ 提交于 2019-11-29 04:23:17
I would like to make a build system in Sublime Text 2 that will compile a Java file, and then run it in a new Terminal (for OS X or Linux) or Command Prompt (for Windows) window. The reason for this is because Sublime Text 2 doesn't allow users to input anything, so any programs requiring input will spit out an error when running inside Sublime Text 2, like this: This is what I currently have (I've also tried a batch file), but it simply runs inside Sublime Text 2, as opposed to in a new shell: Is this possible? If so, please explain, step-by-step (I'm a noob at Sublime Text 2), how to do it;

Have CMake recursively scan folders?

纵然是瞬间 提交于 2019-11-28 18:11:48
How do I set up CMake to recursively scan a given directory and determine the list of source files? My project is a shared library. I have a folder structure similar to this: / src/ # Source files in an arbitrary tree include/ # Headers, tree mirrors that of the src/ folder examples/ # Executable code examples that link against the library CMakeLists.txt I want CMake to recursively scan src and include and determine the list of source and header files in my project, regardless of the directory structure. I also want to avoid: Polluting the src/ and include/ directories with endless CMakeLists

Why run 'gradle clean'?

时光怂恿深爱的人放手 提交于 2019-11-28 18:09:44
Why would I run gradle clean build instead of gradle build ? From what I understand, Gradle can detect source changes and update the final artifacts if needed. So why would I still need to clean ? The clean task is defined by the java plugin and it simply removes the buildDir folder, thus cleaning everything including leftovers from previous builds which are no longer relevant. Not doing so may result in an unclean build which may be broken due to build artifacts produced by previous builds. As an example assume that your build contains several tests that were failed and you decided that these

What are the differences between Autotools, Cmake and Scons?

耗尽温柔 提交于 2019-11-28 14:57:05
What are the differences between Autotools, Cmake and Scons? Svartalf In truth, Autotools' only real 'saving grace' is that it is what all the GNU projects are largely using. Issues with Autotools: Truly ARCANE m4 macro syntax combined with verbose, twisted shell scripting for tests for "compatibility", etc. If you're not paying attention, you will mess up cross-compilation ability (It should clearly be noted that Nokia came up with Scratchbox/Scratchbox2 to side-step highly broken Autotools build setups for Maemo/Meego.) If you, for any reason, have fixed, static paths in your tests, you're

Enable `--multi-dex` option in ant for Android

守給你的承諾、 提交于 2019-11-28 07:41:05
It's easy to enable multi-dex option for gradle build system, but I haven't found example how I can enable this option for ant building. How can archive this? We have 2 options: Change DexExecTask [introduce new parameter for multi dex], compile ant.jar, use this jar for building. I don't like this option, coz we have to provide updated ant.jar for all team members. Modify project build.xml file. I have found awesome ant build file, that has all modifications for support multi-dex: https://github.com/ruboto/ruboto-irb/blob/master/build.xml Hope, that it helps. I introduced multi-dex support in

Gradle multiproject optional subproject's transitive dependency should be resolved to an existing subproject

六眼飞鱼酱① 提交于 2019-11-28 02:11:21
问题 suppose the following project. the master project is a multi-project, however every part of the larger project can be developed individually or mixed in: /master/build.gradle /m1/build.gradle /m2/build.gradle /m3/build.gradle suppose m3 uses m2 and m2 uses m1 ( m1 <- m2 <- m3 ) the presence of m2 is optional a multi-project with the following layout also reasonable /master/build.gradle /m1/build.gradle /m3/build.gradle but in this case m2 would be pulled in from the artifact repository which

Sublime Text 2 build system to compile & run Java in a new Terminal/Command Prompt window?

匆匆过客 提交于 2019-11-27 22:20:58
问题 I would like to make a build system in Sublime Text 2 that will compile a Java file, and then run it in a new Terminal (for OS X or Linux) or Command Prompt (for Windows) window. The reason for this is because Sublime Text 2 doesn't allow users to input anything, so any programs requiring input will spit out an error when running inside Sublime Text 2, like this: This is what I currently have (I've also tried a batch file), but it simply runs inside Sublime Text 2, as opposed to in a new

Have CMake recursively scan folders?

耗尽温柔 提交于 2019-11-27 20:16:05
问题 How do I set up CMake to recursively scan a given directory and determine the list of source files? My project is a shared library. I have a folder structure similar to this: / src/ # Source files in an arbitrary tree include/ # Headers, tree mirrors that of the src/ folder examples/ # Executable code examples that link against the library CMakeLists.txt I want CMake to recursively scan src and include and determine the list of source and header files in my project, regardless of the

Why run 'gradle clean'?

半腔热情 提交于 2019-11-27 20:11:27
问题 Why would I run gradle clean build instead of gradle build ? From what I understand, Gradle can detect source changes and update the final artifacts if needed. So why would I still need to clean ? 回答1: The clean task is defined by the java plugin and it simply removes the buildDir folder, thus cleaning everything including leftovers from previous builds which are no longer relevant. Not doing so may result in an unclean build which may be broken due to build artifacts produced by previous