build-automation

Recursive CMake search for header and source files

笑着哭i 提交于 2019-11-27 02:14:16
问题 I am new to CMake and would like to ask if somebody can help in the following problem. I have C++ source and header files in their respective folders and now, I want to make a CMake text file that recursively searches for them. Currently, I am doing it in this way: CMAKE_MINIMUM_REQUIRED(VERSION 2.8) PROJECT(CarDetectorDAISY) file(GLOB_RECURSE SRCS *.cpp) file(GLOB_RECURSE HDRS *.h) ADD_EXECUTABLE(stereo_framework ${SRCS} ${HDRS}) TARGET_LINK_LIBRARIES(stereo_framework) This creates my

ant depends vs. antcall

对着背影说爱祢 提交于 2019-11-27 01:44:10
问题 When defining sequential build steps I use the depends attribute of the target element. I have recently seen an ant file, where the build sequence was defined by antcall elements inside the targets. To illustrate : <target name="a" depends="b"> ...</target> vs <target name="a"> <antcall target="b"/> ...</target> Is there a real difference between the two approaches? Is one of them preferable? 回答1: The main difference between both approaches is that targets in depends are always executed,

OpenOffice command line PDF creation

感情迁移 提交于 2019-11-27 01:27:10
问题 I have some documentation written in OpenOffice, and I would like to include some of it as PDF files in the final build deliveries. I would like to do this with the automated build script. Is there a way to create a PDF file from OpenOffice with a command line command? 回答1: Art of Solving has also a very good API to perform the conversion in Java. It is a little slow but it is simple enough. This is how I use it: File inputFile = new File("C:\\oreyes\\hola.doc"); File outputFile = new File("C

Can the “Application Error” dialog box be disabled?

邮差的信 提交于 2019-11-27 01:13:01
I am using Hudson as a continuous integration server to test C/C++ code. Unfortunatly, I have a bug somewhere that causes memory corruption, so on some Windows machines I will sometimes get a "Application Error" dialog box explaining that an instruction referenced memory that could not be read. This dialog box pops up and basically hangs the test run, as it requires manual intervention. Is there a way to prevent this dialog box from appearing, so that the test run simply fails and is reported as such in Hudson? Is it possible to automatically generate a minidump instead of showing the dialog?

How do you automate a Visual Studio build?

只谈情不闲聊 提交于 2019-11-27 00:03:11
问题 How do you turn a Visual Studio build that you'd perform in the IDE into a script that you can run from the command line? 回答1: With VS2008 you can do this: devenv solution.sln /build configuration 回答2: \Windows\Microsoft.NET\Framework\[YOUR .NET VERSION]\msbuild.exe Lots of command line parameters, but the simplest is just: msbuild.exe yoursln.sln 回答3: Simplest way: navigate to the directory containing the solution or project file, and run msbuild (assuming you have Visual Studio 2005 or

Automatically remove Subversion unversioned files

半腔热情 提交于 2019-11-26 23:35:23
Does anybody know a way to recursively remove all files in a working copy that are not under version control? (I need this to get more reliable results in my automatic build VMware.) Edit: Subversion 1.9.0 introduced an option to do this: svn cleanup --remove-unversioned Before that, I use this python script to do that: import os import re def removeall(path): if not os.path.isdir(path): os.remove(path) return files=os.listdir(path) for x in files: fullpath=os.path.join(path, x) if os.path.isfile(fullpath): os.remove(fullpath) elif os.path.isdir(fullpath): removeall(fullpath) os.rmdir(path)

Getting started with autotools

江枫思渺然 提交于 2019-11-26 22:30:28
问题 Anyone recommend how a person could get started with autotools in building a C project? 回答1: Follow the autotools tutorial. You can also get the autobook. Chapter 4 covers a minimal GNU autotools project. 回答2: Alexandre Duret-Lutz's tutorial is my resource of choice. There are also: Autotools: a practitioner's guide to Autoconf, Automake and Libtool Autotools Mythbuster To me, the autobook is not up to date anymore and more difficult to read. However it still contains interesting chapters

How do you determine the latest SVN revision number rooted in a directory?

 ̄綄美尐妖づ 提交于 2019-11-26 22:20:40
问题 I would like to start tagging my deployed binaries with the latest SVN revision number. However, because SVN is file-based and not directory/project-based, I need to scan through all the directory's and subdirectory's files in order to determine the highest revision number. Using svn info on the root doesn't work (it just reports the version of that directory, not files in subdirectories): I was wondering if there is a shortcut using the svn command to do this. Otherwise, can anyone suggest a

TFS Build: `Microsoft.TeamFoundation.PowerShell' is not installed on this computer

浪子不回头ぞ 提交于 2019-11-26 21:51:16
问题 When I'm logged in to tfs build server using local account and execute following powershell command: Add-PSSnapin Microsoft.TeamFoundation.PowerShell it loads the tfs cmdlets correctly. However, when I trigger a build on tfs server that invokes the script, it fails with message: 'Microsoft.TeamFoundation.PowerShell' is not installed on this computer. The build agent runs under service account. What should I do? EDIT : I had to edit the reqistry entry from the first link in @Alexis Coles'

How can I merge resource files in a Maven assembly?

╄→尐↘猪︶ㄣ 提交于 2019-11-26 21:47:35
问题 I'm using Maven and its assembly plugin to build a distribution package of my project like this: one project assembles a basic runtime (based on Felix), with the appropriate directories and bundles, in a ZIP file. third-party libraries are collected in one project each and either converted to OSGi bundles or, if they are already OSGi compatible, they are just copied my own project consists of several modules that are built into OSGi bundles, too. Now, I'm adding another project that unpacks