build-process

Continuous Integration vs. Nightly Builds

。_饼干妹妹 提交于 2019-12-03 11:40:29
问题 Reading this post has left me wondering; are nightly builds ever better for a situation than continuous integration? The consensus of the answers seems to be pretty lopsided in favor of continuous integration, is that evangelism or is there really no reason to use nightly builds when continuous integration is an option? 回答1: If you're really doing continuous integration with all available tests, nightly builds would be redundant, since the last thing checked in that day would already have

How does MSBuild check whether a target is up to date or not?

寵の児 提交于 2019-12-03 11:34:19
MSBuild emits the following message for up to date targets: Skipping target "MyTarget" because all output files are up-to-date with respect to the input files. How is the actual check performed? sll Check flow of Incremental Build : A target element can have both an Inputs attribute, which indicates what items the target > expects as input, and an Outputs attribute, which indicates what items it produces as output MSBuild attempts to find a 1-to-1 mapping between the values of these attributes. If a 1-to-1 mapping exists, MSBuild compares the time stamp of every input item to the time stamp of

Is it sensible to use a ramdisk on a build server?

喜欢而已 提交于 2019-12-03 11:21:55
问题 At my company we are currently researching various strategies for speeding up our CI builds. We have profiled our builds and determined that we are constrained by an I/O bottleneck. We have quite a few options to deal with that in the near future (~1-2 months) but would really like to see an improvement now . I proposed using a ramdisk as the checkout and buildfile location. The build outputs and logs would of course be stored on physical disk. Is that a sensible thing to do or are there

How to set build order in Qt subdir project

给你一囗甜甜゛ 提交于 2019-12-03 10:14:19
I have a project with 5-6 libraries and one executable. The executable depends on the libraries, and some libraries depend on other libraries. How can I specify a build order so the dependencies are built before they are needed? Although this question has been answered and accepted a long time ago, I feel the need to add another answer; I honestly think that there is a better answer. I consider CONFIG += ordered harmful and a bad habit. It is probably something that was a bit prematurely introduced by the qmake developers. And there are strong opponents to its use. The drawbacks are these: it

How can I profile file I/O?

拥有回忆 提交于 2019-12-03 09:47:01
问题 Our build is annoyingly slow. It's a Java system built with Ant, and I'm running mine on Windows XP. Depending on the hardware, it can take between 5 to 15 minutes to complete. Watching overall performance metrics on the machine, as well as correlating hardware differences with build times, indicates that the process is I/O bound. It also shows that the process does a lot more reading than writing. However, I haven't found a good way to determine which files are being read or written, and how

C++, the “Old Fashioned” way

北城余情 提交于 2019-12-03 09:39:02
问题 I have been learning C++ in school to create small command-line programs. However, I have only built my projects with IDEs, including VS08 and QtCreator. I understand the process behind building a project: compile source to object code, then link them into an executable that is platform specific ( .exe , .app , etc). I also know most projects also use make to streamline the process of compiling and linking multiple source and header files. The thing is, although IDEs do all this under the

Conditional compilation in CoffeeScript/UglifyJS

淺唱寂寞╮ 提交于 2019-12-03 09:27:13
问题 Using Coffeescript I need to have a go through a build script anyway to update my .js files, and I have two of them, one for debugging and one for production (one uses Uglify to minimize the files, one does not). So I was thinking that it would be convenient to have some conditional compilation as well, with code that only enters the debug build. What is the easiest way to achieve this, ideally controlled by a simple command line switch that I can give to either coffee or uglify? 回答1: If you

How do I produce only an object file (*.o) from a CMake build target?

强颜欢笑 提交于 2019-12-03 09:22:54
问题 I'm trying to build an object file using CMake, but I can't seem to get CMake to build something other than a complete executable. I'm basically looking for the result of the following compilation (the result will be loaded on a VxWorks target and linked then): $(CC) $(CFLAGS) $(INC_DIRS) -c src/object.c I've tried changing the OUTPUT_NAME property of the target, but that doesn't seem to help, either. I think I could work around this by using a custom command, but that seems like I'm also

PostBuild Event fails in Visual Studio after SignTool.exe error

半腔热情 提交于 2019-12-03 09:00:41
问题 We have a project in Visual Studio 2010 that runs a batch file in the post-build event. That batch calls to signtool.exe from Microsoft SDK to sign and timestamp the binary. Timestamp servers (we use http://timestamp.verisign.com/scripts/timstamp.dll), however, tend to be unreliable for some reason, failing sometimes. This caused build to fail. We implemented a more advanced batch script then (based on this code), splitting signing and timestamping, and allowing to retry the timestamp

What's a good directory structure for large C#/C++ solutions?

痴心易碎 提交于 2019-12-03 08:50:32
How would you lay out the directory structure for a large C# solution, consisting of perhaps 20 to 30 projects, mostly C# but some C++? Where do you put external dependencies? When creating a branch in source control, do you branch absolutely everything? Do you override the defaults for where built files go? I'd stick with the normal "directory for the solution, each project in a subdirectory" approach - using a mixture of C# and C++ shouldn't change this. I like creating a "lib" subdirectory (off the solution directory) and put external dependencies in there, then reference that location from