What is a build tool?

What are build tools? Build tools are programs that automate the creation of executable applications from source code (e.g., .apk for an Android app). Building incorporates compiling,linking and packaging the code into a usable or executable form. Basically build automation is the act of scripting or automating a wide variety of tasks that software developers … Read more

How to store CMake build settings

There is an option to pre-load a script for populating the cache file with cmake using cmake -C <initial-cache> The initial-cache is a file containing variables set in the following way, e.g. for the install prefix: set(CMAKE_INSTALL_PREFIX “/my/install/prefix” CACHE PATH “”) Then just pass this file while populating the cache with cmake. Easy, but I … Read more

Gradle buildscript dependencies

The repositories in the buildscript block are used to fetch the dependencies of your buildscript dependencies. These are the dependencies that are put on the classpath of your build and that you can refer to from your build file. For instance extra plugins that exist on the internet. The repositories on the root level are … Read more

specify project file of a solution using msbuild

msbuild test.sln /t:project /p:Configuration=”Release” /p:Platform=”x86″ /p:BuildProjectReferences=false Notice that what is assigned to /t is the project name in the solution, it can be different from the project file name. Also, as stated in How to: Build specific targets in solutions by using MSBuild.exe: If the project name contains any of the characters %, $, @, … Read more

How to promote a specific build number from another job in Jenkins?

Update as of version 2.23 of Parameterized Trigger Plugin: With version 2.23+ behavior changed (thanks AbhijeetKamble for pointing out). Any parameter that is being passed by Predefined Parameters section of calling (build) job has to exist in the called (deploy) job. Furthermore, the restrictions of called job’s parameters apply, so if the called job’s parameter … Read more

CMAKE_BUILD_TYPE is not being used in CMakeLists.txt

There are two types of generators: single-configurations and multi-configurations. Single configurations Make-like generators: Unix Makefiles, NMake Makefiles, MinGW Makefiles, … You set the configuration type in the generate step: cmake -H. -B_builds/Debug -DCMAKE_BUILD_TYPE=Debug “-GUnix Makefiles” In this case, the build step is always Debug: > cmake –build _builds/Debug /usr/bin/c++ -g … > cmake –build _builds/Debug … Read more