Delphi To Go: Include resource files in your Delphi build process
Posted by jpluimers on 2017/01/05
Something to remember: Delphi To Go: Include resource files in your Delphi build process
Note it’s not enough to add a line like this to your .dpr file:
{$R 'New1.res' 'New1.rc'}
The resources actually needs to be part of your .dproj file (which basically is an XML msbuild file adhering to the MSBuild Project File Schema Reference).
That way, the BrccCompile target in $(BDS)\bin\CodeGear.Delphi.Targets will automatically pick it up during build.
I just checked and these target files support BrccCompile:
...\Embarcadero\RAD Studio\7.0\bin\CodeGear.Delphi.Targets...\Embarcadero\RAD Studio\8.0\bin\CodeGear.Delphi.Targets...\Embarcadero\RAD Studio\9.0\bin\CodeGear.Delphi.Targets...\Embarcadero\RAD Studio\10.0\bin\CodeGear.Delphi.Targets...\Embarcadero\RAD Studio\11.0\bin\CodeGear.Delphi.Targets...\Embarcadero\RAD Studio\12.0\bin\CodeGear.Delphi.Targets...\Embarcadero\Appmethod\13.0\bin\CodeGear.Delphi.Targets...\Embarcadero\Studio\14.0\bin\CodeGear.Delphi.Targets...\Embarcadero\Studio\15.0\bin\CodeGear.Delphi.Targets...\Embarcadero\Studio\16.0\bin\CodeGear.Delphi.Targets...\Embarcadero\Studio\17.0\bin\CodeGear.Delphi.Targets...\Embarcadero\Studio\18.0\bin\CodeGear.Delphi.Targets
Which means it’s available as of Delphi 2007 until at least Delphi 10.1 Berlin and might even work in Delphi 2006
It could be a little bit flakey in Delphi 2007 (I’ve had many msbuild issues there) but more recent versions should be fine.
–jeroen
Related: I have a big file to add +’ at the beginning of a line and ‘ at the end…- shlomo abuisak – Google+






Leave a comment