How can I compile a Delphi application without using an IDE?
1 answer
- When you installed RAD Studio, it added a shortcut to the launch menu named RAD Studio Command Prompt. Follow this shortcut. You now have a command line window for the environment that includes everything you need to build in the comment line.
- Change directory to the directory containing your .dproj files.
- Run the following command:
msbuild YourProjectName.dproj
. - If you have multiple projects, they create them all. Of course, you have to script it all over time.
- Control the build target (clean, make, build) and customize (debug, release, win32, win64) using command line arguments as described here: http://docwiki.embarcadero.com/RADStudio/en/Building_a_Project_Using_an_MSBuild_Command
See more here: http://docwiki.embarcadero.com/RADStudio/en/MSBuild_Overview
+3
source to share