I’m using the line below to have MSBuild build a Delphi 2010 groupproj:
MSBuild C:\src\myprojgroup.groupproj /target:Build /p:config=Release
I can’t figure out how to modify the line above so that I can pass this argument
-EC:\mypath
to the compiler (bcc32.exe).
I’ve spent a fair amount of time trying to find this on the web. /property:name=value seemed likely to be what I need, but hasn’t thus far.
Is this even possible, or do I have to learn about MSBUILD configuration files now…
Change your build configuration within Delphi, or manually yourself in the .DPROJ file. If you change the Release config itself in either of those places, you’ll be fine.
Alternately, look at the .dproj file and see what the setting you want is called (eg., “IncludePath” or “OutputDir”). You can then use msbuild’s /property switch. For example:
You can see these command-line switches and examples using the following from a command window prompt:
A quick check of a .dproj file from D2007 indicates you’re probably looking for either the
DCC_IncludePathorDCC_UnitSearchPathproperties.