VisualGDB Project Variables

To avoid hardcoding absolute file paths in the VisualGDB project properties files, VisualGDB defines the following project variables:

$(VISUALGDB_DIR) The directory containing VisualGDB.exe
$(ConfigurationName) The name of the current project configuration
$(ProjectDir) The directory containing the Visual Studio project
$(ProjectDirUnixStyle) Project directory converted to 'c/dir/file.cpp' format.
$(LocalSourceDir) Directory containing source files (path on the Windows computer):
  • For Remote projects - source directory specified in file transfer settings
  • For Custom projects - user-defined variable
  • For other project types - equivalent to $(ProjectDir)
$(RemoteSourceDir) Directory containing source files (path on remote computer if applicable)
  • For Remote projects - destination directory in file transfer settings
  • For Custom projects - user-defined variable
  • For other project types - undefined
$(SourceDir) For Remote projects - equivalent to $(RemoteSourceDir)
For other projects - equivalent to $(LocalSourceDir)
$(BuildDir) User-defined directory where build commands are executed.
$(TargetPath) Full path to the main binary file of the project (e.g. the EXE file)
$(TargetDir) The directory containing the main binary file of the project
$(TargetFileName) The name of the main project binary
$(TargetExtension) The extension of the main project binary
$(DeployPath) Full path of main binary on the deployment machine (cross-compiler projects)
$(DeployHost) Host name of the deployment machine (cross-compiler projects)


Changes from VisualGDB 2.x

The following variables have been changed compared to VisualGDB 2.x:

$(RemoteProjectDir) removed Use $(RemoteSourceDir) instead
$(TransferDir) removed Use $(LocalSourceDir)/$(RemoteSourceDir) instead
$(ProjectDir) in remote context removed Use $(RemoteSourceDir) instead