RemoveOptionPath

From RAD Studio

Go Up to Local GetIt Packages Actions Data Index

Removes an option path.

You can check the available option paths for platform and personality in AddOptionPath.

Parameters

  • Parameter 1: Specifies the path to remove. The path is relative to the current repository path.
  • Parameter 2: Specifies the option to remove the path. See the constants on CodeMgr.pas.
  • Parameter 3: Specifies the personality to remove the path. See personality constants values on ToolsAPI.pas.
  • Parameter 4: Optional parameter that specifies the platform to remove the path. See platform constants on PlatformConst.pas.
    If the parameter is empty, the path is removed from all the available platforms.
  • Parameter 5: Optional boolean parameter that specifies if the path is removed 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 remove a path to the Clang32 compiler, we should use cCppIncludePath_Clang32 option and False.

Examples

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

See Also