build-automation

In cmake, how to specify dependencies of subdirectories in a scalable way?

微笑、不失礼 提交于 2019-12-04 04:21:19
问题 Suppose the source tree is in this structure: / |- lib1 | |- src.cpp | |- lib1.h | |- CMakeLists.txt | |- lib2 | |- src.cpp | |- lib2.h | |- CMakeLists.txt | |- lib3 | |- src.cpp | |- lib3.h | |- CMakeLists.txt | |- app | |- src.cpp | |- CMakeLists.txt | |- CMakeLists.txt Suppose: lib1 has function f(); lib2 has function g() which uses f(); app/src.cpp uses function g(); Nobody uses lib3. I want: in app/CMakeLists.txt, it only link to lib2. The logic here is, app/src.cpp only uses g(), so

Sublime Text 2: build system custom selector

白昼怎懂夜的黑 提交于 2019-12-04 03:55:57
How can I define a selector in the build system with the custom extension (like *.ltx , *.cmake etc) for which there is no available selector (like text.tex.latex , source.c++ etc)? Is it possible? If yes - how? Greg Sadetsky It's possible, if you define a new syntax definition (i.e., a new .tmLanguage file). Syntax definitions can declare new 'scope names' which you can then use in your new, custom build systems. The new syntax definition file doesn't actually have to define/match the file's syntax, as you can simply match by file extension...! Take a look here at the .tmLanguage file syntax.

Apache Ivy: resolving dependencies embedded in an installer

二次信任 提交于 2019-12-04 03:44:57
问题 I have a problem with a build where I have to resolve non-standard artifacts through Apache Ivy. Problem: I have dependencies on two artifacts (a.jar and a-lib.jar). The two dependencies come only as part of a single installer (a_installer.jar). The installer can be downloaded, the embedded artifacts themselves not. It's possible to manipulate the installer to unpack the needed dependencies. Requirements: I have to resolve/download the artifacts during the build (I cannot keep the installer

LINQPad - can you run a linqpad script from the command-line?

霸气de小男生 提交于 2019-12-04 03:23:00
问题 Is there a way to run a LINQPad script from the command-prompt (no gui)? If so, LINQPad would be handy for scripting C# and calling it from an automated build. 回答1: lprun from LinqPad has already arrived: http://www.linqpad.net/lprun.aspx 回答2: Yes, as of LINQPad v4.45.05 : LINQPad.exe "c:\path\to\my\script.linq" -run To close the LINQPad window, be sure to call this at the end of your script: Process.GetCurrentProcess().CloseMainWindow(); 回答3: The ability to run LINQPad scripts from the

how to modify source with NAnt?

痞子三分冷 提交于 2019-12-04 03:14:38
I would like to modify the string in a .h file with NAnt before building the solution. There is a macro in .h file: #define SERVER_ADDRESS "www.customserver.net" and I would like to modify the string before deploying software so each build could be made for custom address by passing the address in command line. Does anyone know how this could be done? Thanks! One could use the loadfile task to help with this. This task loads the given file into a property. What is really useful is when you apply a filterchain with replacetokens to replace certain areas of the file. For example if one were to

Using MSBuild and CSPack task to package Azure roles

牧云@^-^@ 提交于 2019-12-04 02:48:03
I am working on a build script for an Azure web role project. The script will run on a build server, so using VS is a non-starter. I can build the project using MSBuild and use CmdLets for Azure to handle the deployment (via PowerShell). The part that is missing is the creation of the cloud package. I can use the CSPack.exe tool that is included in the SDK, but I would like to use MSBuild tasks if possible, as that way I can leverage the build configuration options and integrate the creation of the package with the rest of the process. I've dug around in the Azure web deployment project, but I

CMake or Waf for D project

♀尐吖头ヾ 提交于 2019-12-04 00:08:46
We are looking for adequate build tool for a desktop GUI application to be written in D (using Qt toolkit), consisting of several native libraries, using 3rd party C-lib(s). It has to build on Linux (native development) and Mac as well on Windows. We might adopt Code::Blocks as IDE. Waf already has support for D language, while CMake is just receiving it cmaked2 . CMake uses special language, while Waf is pure Python...Otoh, CMake, via CPack, can produce packages in several formats as well as GUI installer for e.g. Windoze. Any pro/cons and what would you use? We excluded Scons for speed

SBT: Dependency On Other SBT Project Without Publishing

梦想的初衷 提交于 2019-12-03 23:43:54
I have a set of loosely related components where some of these depend on others. For concreteness, lets assume we have components "common", "a" and "b". "common" does not have any dependencies, but all other projects use "common". Furthermore, "a" depends on "b". All components are written in Scala, and I would like to use sbt to build them. The following properties would be nice to have: Multiple people work on the different projects, which is why we don't want to have a single repository, but rather one repository per project. Building a project should be easy, and all dependencies should be

MSBuild - Getting the target called from command line

蹲街弑〆低调 提交于 2019-12-03 23:43:04
Does anyone know how to get the name of the TARGET (/t) called from the MSBuild command line? There are a few types of targets that can be called and I want to use that property in a notification to users. Example: msbuild Project.proj /t:ApplicationDeployment /p:Environment=DEV I want access to the target words ApplicationDeployment in my .Proj file. Is there a property I can access? Any clue how to do this? EDIT: I do not want to have to also pass in a property to get this. UPDATE: This is based on deployment scripts using MSBuild scripts. My build server is not used for deploying code, only

Run a Visual Studio custom tool at build time

我的未来我决定 提交于 2019-12-03 23:19:13
问题 I have a script that will convert a text file into a resource file, so that I can have multiple language support by having text files for different languages converted into different resources. Once I run the script to get the resx file, I then have to run a custom build tool (as described here:Link to Code Project) in order to create the Designer.cs files to use the new files. In keeping with the philosophy that I should be able to build the entire project with a single button click, how can