Questions tagged [custom-build-step]

79 questions
18
votes
2 answers

Add custom build step in CMake

I'm trying to add a custom build step in CMake that generates some files. I haven't found a description how it works. I have an project where source, header & implementation files have to be generated by ODB for C++. ODB takes class headers as…
David Bulczak
  • 443
  • 1
  • 4
  • 13
16
votes
2 answers

Why are my Custom Build steps not running in Visual Studio?

I have a Visual Studio project with several Custom Build steps in it, but some of them are simply failing to run. There are no errors and no warnings, and according to the build logs they are running, but they're definitely not. (It was all working…
RichieHindle
  • 272,464
  • 47
  • 358
  • 399
12
votes
1 answer

Custom build steps in Intellij IDEA project

I have an external tool I need to be executed everytime Intellij runs Make. In eclipse I could easily modify the build steps, but I dunno how to achieve that here. Any ideas? I expect that it would deal with my resources using external script…
Wojtek Erbetowski
  • 3,205
  • 5
  • 22
  • 37
11
votes
2 answers

MSBuild custom task "Hello World" walkthrough

Can someone write (or link to) a walkthrough that explains exactly how to create a custom MSBuild task and run it during a build? I'm looking for a custom task that inherits from Microsoft.Build.Utilities.Task and does only this: public override…
Ryan Lundy
  • 204,559
  • 37
  • 180
  • 211
11
votes
1 answer

Visual studio custom build step rule?

Using Visual Studio 2008, When I add to a C++ project a file that is not .c/.cpp/.h/.rc or anything the IDE doesn't recognize a dialog pops up which asks me if I want to create a custom build step rule for this kind of files. Does anybody know how…
shoosh
  • 76,898
  • 55
  • 205
  • 325
10
votes
2 answers

What is the difference between a Custom Build Step and a Post-Build Event?

Both project settings allow me to execute custom commands. What are the benefits or drawbacks of each?
9
votes
1 answer

Is there a way to auto generate "Additional Dependencies" for "Custom Build" in Visual Studio?

I have a custom build step in a Visual Studio 2013 solution. The custom build step calls a python script on a text file that refers to several other files in my solution. I want the custom build step to be called whenever any of those files change…
8
votes
0 answers

Proper use of msbuild inputs and outputs with Targets

We have an in house compiler and linker tool that we're trying to make MSBUILD compatible (i.e. proper behavior in build/incremental builds/rebuild/clean scenarios) In the first step we actually call CL task to preprocess our files. The issue is I…
smg123
  • 81
  • 4
6
votes
2 answers

Visual Studio: how to only run Custom Build Step when 'necessary'

I am using a Custom Build Step to copy the built DLL (i.e. $(TargetPath)) of a C++ project to a different location on disk. I've set the Output of the Custom Build Step to the destination DLL path, and Additional Dependencies to $(TargetPath) - the…
mackenir
  • 10,801
  • 16
  • 68
  • 100
6
votes
2 answers

Xcode Different Resources For Different Targets

I am developing an iPhone app and there will be a Full as well as a Lite version of that app. In order get both bundles from the same source code and Xcode project I added another target to the Xcode project. Now, I want to have the Lite target copy…
FlorianZ
  • 385
  • 1
  • 5
  • 16
5
votes
6 answers

Things to consider when writing our own Continuous Integration server?

I work on a large project in an organization that is (slowly) upgrading our development processes to be a bit more modern. We currently are considering moving to a Continuous Integration model; as part of this move, we are considering writing our…
Paul Sonier
  • 38,903
  • 3
  • 77
  • 117
5
votes
3 answers

Visual Studio deletes a shared .pch file, and questions about custom build steps

I try to use a shared .pch file, which is compiled in one project and used in others. However the .pch file is deleted if a .pdb filename of the PCH project differs from .pdb filenames of the other projects. This page doesn't answer the question:…
5
votes
1 answer

Visual Studio custom build event always executing

I am using the odb compiler as a custom build tool. The build tool is always executing even though the input file is not changing. The command line: odb -Ic:\menuplan\src\ingredient -o c:\menuplan\src\ingredient -d mysql --hxx-prologue…
Thomas Matthews
  • 56,849
  • 17
  • 98
  • 154
5
votes
3 answers

How do I resolve error MSB6006: "cmd.exe" exited with code 3?

I am getting the following error when building my code: C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6006: "cmd.exe" exited with code 3. Done executing task "CustomBuild" -- FAILED.…
5
votes
3 answers

TeamCity : How to create a delay between build steps

I'm having an issue with TeamCity, building some Android APK's. I have both a QA and Release APK's, each in it's own build step. The problem is the Release build step never completes, as it seems to access a file that is still being used by the QA…
Greg Quinn
  • 1,927
  • 1
  • 23
  • 26
1
2 3 4 5 6