build-process

C# Code Generation

自作多情 提交于 2020-01-01 03:21:18
问题 I am looking at creating a small class generator for a project. I have been reading about CodeDOM so it the semantics of creating the classes does not appear to be an issue, but am unsure oh how to best integrate the generation into the development and deployment process. How should I trigger the creation of the classes? I have read it should be part of the build process, how should I do this? Where should the classes be created? I read that the files should not be edited by hand, and never

Is there any virtualenv like tool for c++ out there?

隐身守侯 提交于 2020-01-01 03:17:29
问题 I have found a problem with the test environment in a c++ problem. We have a machine which downloads the code from the version control system and, build it and execute the unit test, nothing new. The problem arise when we add a new dependency in our project. We are developing a lot of features at the same time and it is something relatively common. We this happens we have to advise testers and give them an easy way to reproduce the compilation environment ... And I was thinking if there is

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

爷,独闯天下 提交于 2020-01-01 02:32:15
问题 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. 回答1: Can you create an aggregate target that contains both your "Ad

GCC build time doesn't benefit much from precompiled headers

风流意气都作罢 提交于 2020-01-01 01:54:11
问题 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

How can I debug (preferably in an IDE) an MSBuild script?

与世无争的帅哥 提交于 2019-12-31 22:26:12
问题 We use MSBuild quite extensively as part of our continuous integration process, and whilst it is incredibly powerful and we can do practically all of our build, test and deployment within it (utilising some custom tasks) - we've found that debugging it using tags is a pain and cannot always provide us with enough information. I've found: http://www.wintellect.com/CS/blogs/jrobbins/archive/2007/12/03/msbuild-debuggers.aspx, but unfortunately the project seems to have disappeared from Codeplex.

How to set the build area for rpmbuild per-invocation

谁说胖子不能爱 提交于 2019-12-31 08:28:29
问题 I'm modifying an automated build, and want to tell rpmbuild to use a specific build area when invoking it . This is similar to an existing question, but more specific. I don't want to run any of the build commands as the root user; the aim is only to have an RPM, not to install anything into the system. I don't want to require the user to change their dotfiles (e.g. $HOME/.rpmrc ); the build should be self-contained and not affect the user's existing settings. I don't want to hard-code the

Custom build rules for Eclipse

北城余情 提交于 2019-12-31 01:47:08
问题 I have a Java project that uses some autogenerated source code. This source code is produced by a command-line tool --- Bison, actually --- from a special source file. I would like a way to have the Java source automatically regenerated whenever necessary when I press the 'build' button in Eclipse. Is this possible, and if so, how? Normally I'd integrate this into the project makefile, but of course this is Java, and it doesn't use makefiles. I've looked at ant, but ant seems rather hostile

Custom build rules for Eclipse

梦想与她 提交于 2019-12-31 01:47:05
问题 I have a Java project that uses some autogenerated source code. This source code is produced by a command-line tool --- Bison, actually --- from a special source file. I would like a way to have the Java source automatically regenerated whenever necessary when I press the 'build' button in Eclipse. Is this possible, and if so, how? Normally I'd integrate this into the project makefile, but of course this is Java, and it doesn't use makefiles. I've looked at ant, but ant seems rather hostile

svn deployment strategies for multiple groups of developers (not co-located) working on different components of the same project

笑着哭i 提交于 2019-12-30 05:01:09
问题 Our project is a content management system supporting several dozen of our websites. The development group started off small and in one location, and we dealt with a fairly standard coding/deployment strategy. We coded off of trunk and insisted on a clean trunk. Every few days we would tag trunk and deploy to the test server. If all worked out, we'd deploy to Production and move on. That worked well for a while until the team grew. We frequently faced situations where the revision that was

What's an easy way to detect modified files in a Git workspace?

偶尔善良 提交于 2019-12-30 03:39:25
问题 During make, I create string fields which I embedded in the linked output. Very useful. Other than a complex sed / grep parsing of the git status command, how can I easily determine if files in the workspace have been modified according to git ? 回答1: If you just want a plain “Are there any differences from HEAD?”: git diff-index --quiet HEAD If the exit code is 0, then there were no differences. If you want “What files have changed from HEAD?”: git diff-index --name-only HEAD If you want