简体   繁体   中英

How can I compile a Delphi application without using the IDE?

I need to build the components, package, and project file without using the Delphi XE7 RAD Studio IDE. Is there some way to do this using command line instead?

  • When you installed RAD Studio, it added a shortcut in the start menu named RAD Studio Command Prompt . Execute that shortcut. You now have a command prompt window for an environment that includes all you need to build at the comment line.
  • Change directory to the directory containing your .dproj files.
  • Execute the following command: msbuild YourProjectName.dproj .
  • If you have multiple projects build them all. Of course you'd want to script all this up in due course.
  • Control the build target (clean, make, build) and configuration (debug, release, win32, win64) using command line arguments as documented here: http://docwiki.embarcadero.com/RADStudio/en/Building_a_Project_Using_an_MSBuild_Command

For more details, start with the documentation here: http://docwiki.embarcadero.com/RADStudio/en/MSBuild_Overview

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM