AddOptionPath

From RAD Studio
Jump to: navigation, search

Go Up to Local GetIt Packages Actions Data Index

Adds an option path.

In the following table, you can check the available platform and personality options for AddOptionPath.

Option Path C++ Delphi
Library Path cCppLibraryPath cPasLibraryPath
Package output directory cCppBPLOutput cPasPackageDPLOutput
DCP output directory cPasPackageDCPOutput
Browsing path cCppBrowsingPath cPasBrowsingPath
Debug DCU path cPasDebugDCUPath
HPP output directory cPasPackageHppOutput
Translated Library path cPasTranslatedLibraryPath
Translated Debug DCU path cPasTranslatedDebugLibraryPath
TranslatedResource path cPasTranslatedResourcePath
System Include Path cCppIncludePath
BPI/LIB output directory cCppBPIOutput
Restrict refactoring path cCppNoRefactorPath

Parameters

  • Parameter 1: Specifies the path to add. The path is relative to the current repository path, for the specific package.
  • Parameter 2: Specifies the option to add the path. See the values above.
  • Parameter 3: Specifies the personality to add the path. See personality constants values on ToolsAPI.pasfile.
    Note: You can find the ToolsAPI.pas file at C:\Program Files (x86)\Embarcadero\Studio\22.0\source\ToolsAPI

  • Parameter 4: Optional parameter that specifies the platform to add the path. If the parameter is empty, the path will be added to all the available platforms. You can choose from the available platform constants:
    • Win32
    • Win64
    • Android
    • iOSDevice64
    • Linux64
    • OSX64
    • Android64
    • OSXARM64
  • Parameter 5: Optional boolean parameter that specifies if the path is added on both compilers, in case the platform has two available compilers. By default, the value is True.
    For example, for a Win32 platform with C++ Classic compiler and C++ Clang32 compiler. To only add a path to the Clang32 compiler, we should use cCppIncludePath_Clang32 option and False.

Examples

  • Example 1: Adds source\ library path to Delphi personality on Windows 32-bit platform:
AddOptionPath("source\", "cPasLibraryPath", "Delphi.Personality", "Win32");
  • Example 2: Adds source\ library path to Delphi personality on all platforms:
AddOptionPath("source\", "cPasLibraryPath", "Delphi.Personality");
  • Example 3: Adds source\ library path to CBuilder personality on all platforms:
AddOptionPath("source\", "cCppIncludePath", "CPlusPlusBuilder.Personality");
  • Example 4: Adds source\ library path from CBuilder personality on platform Win32 only on C++ classic compiler:
AddOptionPath("source\", "cCppIncludePath", "CPlusPlusBuilder.Personality", "Win32", "False");
  • Example 5: Adds source\ library path from CBuilder personality on platform Win32 only on C++ Clang32 compiler:
AddOptionPath("source\", "cCppIncludePath_Clang32", "CPlusPlusBuilder.Personality", "Win32", "False");

See Also