build-process

How do I run app.config transformation task first before the PostBuildEvents?

只愿长相守 提交于 2020-01-04 06:45:50
问题 I have a console application that uses a database connection string which is defined in app.config. I have a few transformations to change the string depending on the build configuration. I also have a few post-build events that copy app.config to other projects output. The problem is post-build event fires first and I copy the untransformed app.config. Later the transformation task kicks in and apply the transformation (so I know it works). I use with Visual Studio 2010 and .NET 4. Right now

How to solve the infamouns AlwaysCreate=True rebuild issue with msbuild?

≯℡__Kan透↙ 提交于 2020-01-04 05:17:06
问题 I've spent far too much time trying to solve the problem of msbuild rebuilding your projects without any special reasons. As a remark, I did these on Visual Studio 2012, but probably most of these would also happen with 2010. I will provide all the steps found so far and wait for the real solution, as crearly what I found so far online did not solve the problem. Enable detailed build logs inside devenv.exe.config so we can debug what really happens. here. I assume that's the same as changing

SCons libraries and sub-libraries

旧街凉风 提交于 2020-01-03 19:31:31
问题 I have a hierarchical build system based on SCons. I have a root SConstruct that calls into a SConscript that builds a shared library and then into a different SConscript that builds an executable that depends on the shared library. So here's my question: my understanding of shared libraries on linux is that when you want to do the final ld link for the executable that will be using the shared lib, the shared lib has to be included on the executable's ld command line as a source to reference

Out of tree builds with makefiles and static pattern rules

大城市里の小女人 提交于 2020-01-02 01:20:11
问题 I'm working on some bare-metal embedded code that runs on ARM, and thus has to deal with the whole ARM vs. THUMB mode distinction. The current build system uses static pattern rules to determine whether to compile files in ARM or THUMB mode. $(ACOBJS) : %.o : %.c @echo $(CC) -c $(CFLAGS) $(AOPT) -I . $(IINCDIR) $< -o $@ $(TCOBJS) : %.o : %.c @echo $(CC) -c $(CFLAGS) $(TOPT) -I . $(IINCDIR) $< -o $@ Where ACOBJS is a list of output objects that should be in ARM mode and the same for TCOBJS and

How do I configure eclipse to automatically refresh a project as part of it's build?

拈花ヽ惹草 提交于 2020-01-01 08:14:10
问题 I have a maven plugin generating some code for eclipse to build, but I have to manually refresh the project before eclipse sees the code. How can I make eclipse automatically refresh the project as part of the build? I'm trying to use a custom builder, but it wants to run a command (which I don't need to do). 回答1: You can make eclipse automatically refresh your whole workspace: Window->Preferences->General->Workspace and check "Refresh automatically" 回答2: you can make it project/build

Use CMake to run a C++ program post-build

亡梦爱人 提交于 2020-01-01 05:54:54
问题 I have an application that is written in C++ that I use CMake to build and release binaries. I'd like to have the CMakeLists.txt script compile and run a CPP file that is used to timestamp and encrypt a license file after it has built the binaries for the application. I've seen examples of running the execute_process command such as this: execute_process(COMMAND "gcc -o foo foo.cpp" WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) execute_process(COMMAND "./foo" WORKING_DIRECTORY ${CMAKE

Reasons for using Ant Properties files over “Properties Tasks”

纵饮孤独 提交于 2020-01-01 05:48:07
问题 I'm currently working with some developers who like to set up Ant tasks that define environment specific variables rather than using properties files. It seems they prefer to do this because it's easier to type: ant <environment task> dist Than it is to type: ant -propertyfile <environment property file> dist So for example: <project name="whatever" default="dist"> <target name="local"> <property name="webXml" value="WebContent/WEB-INF/web-local.xml"/> </target> <target name="remote">

Is it possible to use cmake for Haskell projects?

耗尽温柔 提交于 2020-01-01 04:18:06
问题 I am planning a project written in Haskell, maybe there are some parts in C as well. For the buildsystem I decided against the common choice for Haskell programs cabal, mainly because I want to learn how building programs in other languages works. I heard about CMake and I think it is a pretty cool product. Although I have no knowledge in how to use it, I want to use CMake for that project, just to find out how it works. Googleing did not reveal any facts about how to use cmake with haskell,

How to set build order in Qt subdir project

南楼画角 提交于 2020-01-01 04:03:09
问题 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? 回答1: 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

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

谁说我不能喝 提交于 2020-01-01 03:36:11
问题 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? 回答1: 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"