build-process

Are there any good build frameworks written in Python?

一世执手 提交于 2019-12-03 05:53:23
问题 I switched from NAnt to using Python to write build automation scripts. I am curious if whether any build frameworks worth using that are similar to Make, Ant, and NAnt, but, instead, are Python-based. For example, Ruby has Rake. What about Python? 回答1: Try SCons Or are you looking for something just to build python projects? 回答2: The following look good, but I haven't used them (yet): Paver waf doIt Paver looks especially promising. 回答3: My Rapid Throughts: SCons is quite mature and oriented

cmake RUNTIME_OUTPUT_DIRECTORY on Windows

十年热恋 提交于 2019-12-03 05:53:15
问题 I'm using cmake for managing my cross-platform builds, and I have everything worked out except for this problem. I set RUNTIME_OUTPUT_DIRECTORY to a bin/ directory where I have data files stored. On Linux, this works fine. On Windows, the executables get placed in the Debug / Release sub-directory depending on the build type. Is there any way to get cmake to copy the executable to the proper directory, or (even better) stop using these sub-directories altogether? 回答1: I've been using the fine

TFS2010 - Wrong changeset appearing at SourceGetVersion

时光怂恿深爱的人放手 提交于 2019-12-03 05:47:18
问题 I am currently setting up a Team Foundation Server 2010 and I found a very strange behavior when performing a build: The situation explained: We have 2 Branches Development Main All developers check in code into the Development branch only. Once per day, the build manager merges some changesets over to the Main branch. On the Development brach, a continuous build at each check in is running. On the Main branch, once per day (in the night) a build is triggered. Now suppose that the changesets

ant+cpptasks vs. scons vs. make

你离开我真会死。 提交于 2019-12-03 05:46:58
问题 I'm looking into scons and I just want to make sure I know what the alternatives are, before I invest a chunk of brain cells into something completely different. I've been using GNU make in the past but have never been particularly happy with it. Particularly: why isn't Ant used more often with C / C++ projects? (given that there's ant cpptasks) I read a few posts that say that Ant is more oriented around Java (obviously), but what's the drawback to doing so? And why is scons so much better

How to run a script after Xcode runs codesign on my iPhone app?

老子叫甜甜 提交于 2019-12-03 05:39:16
I've got a script written which does some steps to package my build for an Ad Hoc distribution. My first guess was to use a run script phase in my Ad Hoc target. But it looks like codesigning is fixed at the last position in the chain of building iPhone apps. Somebody has a clue how can I run my script at the very last possible moment in the build process? Update: Look at this answer below on how to run scripts in Xcode 4. Can you create an aggregate target that contains both your "Ad hoc" target and a run script build phase (that runs after the "Ad hoc" target)? A short update on that topic:

GCC build time doesn't benefit much from precompiled headers

大城市里の小女人 提交于 2019-12-03 05:20:20
I have a huge project, something about 150 000 LOC of C++ code. Build time is something about 15 minutes. This project consists of many sub-projects of different sizes. I have built separate precompiled headers for each subproject, but when I use them build time stays roughly the same. It seemed that build time is 5-10% percent less, not more. Precompiled headers is definitely used, I use -Winvalid-pch option and I have tried to compile with -H compiler option, my precompiled headers appears in output with 'bang' symbol, that means that compiler is able to use precompiled header. All my

Is there a way to run an outside executable after a solution is built in Visual Studio 2008?

拜拜、爱过 提交于 2019-12-03 04:56:34
I'm not talking about a post build event for a project. Rather, I want to run an executable automatically after the entire solution is built. Is there a way to do a post build event for the solution? Ryan Lundy Visual Studio 2010 and before You can do this in the Macro Editor by handling OnBuildDone. The event gives you a couple of handy properties you can check: scope (project/solution/batch) and action (build/rebuild/clean/deploy). To do what you want would be something like this (not tested, mind): Public Sub AfterBuild(scope As vsBuildScope, action As vsBuildAction) _ Handles BuildEvents

How does ivy:publish work?

自闭症网瘾萝莉.ら 提交于 2019-12-03 04:52:14
问题 I'm completely at loss how the ant task ivy:publish is supposed to work. I would expect that I do my normal build, which creates a bunch of jar files, then I would push those jars to the (local) repository. How can I specify from where to retrieve the built jars, and how would those end up in the repository? Update: <target name="publish-local" description="--> Publish Local"> <ivy:retrieve /> <ivy:publish resolver="local" pubrevision="${release.version}" status="release" update="true"

Is it possible to have version-independent DLL references in a class?

心不动则不痛 提交于 2019-12-03 04:52:00
I would like to create a class that compiles into a single DLL. This DLL would add functionality to an existing product. To make this work, the custom class references DLLs contained in the underlying product. These references are needed to compile. Everything works fine here and the custom class compiles. I can drop the DLL produced into the product and everything works fine. However, this product has several versions (minor versions, service packs). I would like to distribute this DLL to others but I'm finding the DLL must match perfectly the version of the product. If there isn't a perfect

Creating an installer for Linux application [closed]

感情迁移 提交于 2019-12-03 04:44:14
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I'm developing a small cross-platform application and I need some advice on how to install it in Linux. I am using InnoSetup in Windows and an application bundle in OSX but I have no idea how to get my app installed in Linux, are there any opensource installer creators for Linux? Thanks. 回答1: The standard all