build-process

How to use system environment variables in VS 2008 Post-Build events?

你离开我真会死。 提交于 2019-12-03 04:43:39
How do I use system environment variables in my project post-build events without having to write and execute an external batch file? I thought that it would be as easy as creating a new environment variable named LHDLLDEPLOY and writing the following in my post-build event textbox: copy $(TargetPath) %LHDLLDEPLOY%\$(TargetFileName) /Y copy $(TargetName).pdb %LHDLLDEPLOY%\$(TargetName).pdb /Y ...but alas, no. The build output shows that it wrote the files to the " %LHDLLDEPLOY% " folder (as " 1 file(s) copied " twice), but the files are not in the equated path and there is not a new folder

Ant build scripts, antcall, dependencies, etc

China☆狼群 提交于 2019-12-03 04:14:30
问题 I have a build script and as part of that script it copies a jar file to a directory, for ease lets call it the utils jar. the utils jar is built by another build script sitting in another directory. What im trying to do have my build script run the utils build script so that I can ensure the utils jar is up to date. So I know I need to import the utils build file. <import file="../utils/build/build.xml" /> Which doesn't work because the import task, unlike almost every other ant taks, doesn

.o files vs .a files

折月煮酒 提交于 2019-12-03 04:04:01
问题 What is the difference between these two file types. I see that my C++ app links against both types during the construction of the executable. How to build .a files? links, references, and especially examples, are highly appreciated. 回答1: .o files are objects. They are the output of the compiler and input to the linker/librarian. .a files are archives. They are groups of objects or static libraries and are also input into the linker. Additional Content I didn't notice the "examples" part of

When & How to use ILMerge with Visual Studio Project / Solution

泄露秘密 提交于 2019-12-03 03:41:17
I'm developing a medium sized enterprise application. There are many projects / solutions to this. For example: Company.Data Company.Data.LinqToSql Company.Entities (business objects) Company.BLL I then have some applications - for example a windows service: MyWindowsService. When i deploy this (by creating a setup project) it installs a load of DLL's from the output of the above mentioned projects. Is this where i should be using ILMerge? to create one assembly.... Company.dll for example? How would i go about integrating this into my build process? Cheeso The question ILMerge Best Practices

.Net AssemblyName.version Build versus Revision

只谈情不闲聊 提交于 2019-12-03 03:38:21
问题 The MSDN documentation states: Version numbers consist of two to four components: major, minor, build, and revision. The major and minor components are required; the build and revision components are optional, but the build component is required if the revision component is defined. All defined components must be integers greater than or equal to 0. The format of the version number is as follows (optional components are shown in square brackets ([ and ]): major.minor[.build[.revision]] The

Continuous Integration vs. Nightly Builds

拟墨画扇 提交于 2019-12-03 03:11:14
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? 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 been tested. On the other hand, if your CI regime only involves running a subset of all available tests, for

How to build a CD ISO image file from the windows command line?

ぐ巨炮叔叔 提交于 2019-12-03 02:20:22
问题 In an effort to satisfy "The Joel Test" question #2 "Can you make a build in one step?", I'm trying to complete a release candidate build script with the creation of a CD iso from the collection of files gathered and generated by the installer creator. There seem to be many good tools (many free) out there that will create ISOs, but I need to find one that can be run at the windows command line so I can integrate it into the NAnt build script that's fired off by Cruise Control. Build

Building a library using autotools from cmake

风格不统一 提交于 2019-12-03 02:18:00
问题 This is my first try with cmake and I would like to have, if possible, some feedbacks about what I did since some problems remain. In the CMakeLists.txt of the library folder, I created two makefile targets: configure-antlr3c and antlr3c . The first target runs the autotools configuration shell script, the second one runs the make executable to build the library: # CMakeLists.txt in libantlr3c-3.1.3 add_custom_target( configure-antlr3c ${SHELL_EXECUTABLE} configure WORKING_DIRECTORY ${CMAKE

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

家住魔仙堡 提交于 2019-12-03 01:45:10
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 significant drawbacks to this approach? I am not looking for answers that regard the hardware side of

C++, the “Old Fashioned” way

拥有回忆 提交于 2019-12-03 01:20:21
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 hood, making life very easy, I don't really know what is really happening, and feel that I need to get