Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does MSBuild find the Delphi search path?

Tags:

msbuild

delphi

If I launch the RAD Studio command prompt and run

msbuild /t:Rebuild

in a project directory, msbuild will show the full command line to invoke dcc32, including all path settings.

Which kind of magic does MSBuild use to find the search paths, based on the IDE settings (stored in the registry) and the project file (which contains placeholders like $(DCC_UnitSearchPath)?

The RAD Studio command prompt only sets the .Net environment for MSBuild. So there is something else working behind the scenes?

like image 828
mjn Avatar asked Nov 30 '09 17:11

mjn


1 Answers

If you examine the project file, you'll notice that it includes CodeGear.Delphi.Targets which includes CodeGear.Common.Targets which in turn includes EnvOptions.proj. EnvOptions.proj is updated by the IDE to contain the paths from the registry.

like image 139
Jon Benedicto Avatar answered Nov 16 '22 03:11

Jon Benedicto