CompileProject

From RAD Studio
Jump to: navigation, search

Go Up to Local GetIt Packages Actions Data Index

Compiles a project.

Parameters

  • Parameter 1: Project path to compile. The path is relative to the current repository path. Macros are allowed and you can find support for different versions:
    • Delphi - $(DclUsrDpk) dcluser common package path.
    • CBuilder - $(DclUsrBpk) dcluser common package path.
  • Parameter 2: Optional parameter. List of platforms separated by ; to compile the project.
    In case the parameter is empty and the package is Runtime or Runtime and Desingtime, GetIt compiles the project on all platforms.
  • Parameter 3: Optional parameter. List of configurations separated by ; to compile the project.
    If the parameter is empty, GetIt compiles the project using the Release and Debug configuration.

Examples

  • Example 1: Compiles a project.
CompileProject("packages\Delphi\AbbreviaD.dproj");
  • Example 2: Compiles a project in selected platforms.
CompileProject("packages\Delphi\AbbreviaD.dproj", "Android;Win64;Win32");
  • Example 3: Compiles a project only in Win32 platform.
CompileProject("packages\Delphi\AbbreviaD.dproj", "Win32");
  • Example 4: Compiles a project in all platforms in Debug configuration.
CompileProject("packages\Delphi\AbbreviaD.dproj", "", "Debug");
  • Example 5: Compiles a project in the selected platforms using the Release and Debug configuration.
CompileProject("packages\Delphi\AbbreviaD.dproj", "Android;Win64;Win32", "Release;Debug")

See Also