Valve Project Creator is a tool to generate build systems for Visual Studio, Xbox 360, PlayStation 3, Xcode and Make.
See https://developer.valvesoftware.com/wiki/Valve_Project_Creator
Select the target platform with a command line switch, scripts test it with the
conditional of the same name. ARM64 targets are separate platforms: $WIN64,
$LINUX64 and $OSX64 mean x86-64.
| Switch | Conditional | $PLATSUBDIR |
Generator | Architecture |
|---|---|---|---|---|
/win32 |
$WIN32 |
\. |
Visual Studio | x86 |
/win64 |
$WIN64 |
\x64 |
Visual Studio | x86-64 |
/winarm64 |
$WINARM64 |
\arm64 |
Visual Studio | ARM64 |
/linux32 |
$LINUX32 |
\linux32 |
Make | x86 |
/linux64 |
$LINUX64 |
\linux64 |
Make | x86-64 |
/linuxarm64 |
$LINUXARM64 |
\linux_arm64 |
Make | ARM64 |
/osx32 |
$OSX32 |
\osx32 |
Xcode | x86 |
/osx64 |
$OSX64 |
\osx64 |
Xcode | x86-64 |
/osxarm64 |
$OSXARM64 |
\osx_arm64 |
Xcode | ARM64 |
Visual Studio projects need a Windows host, Make and Xcode projects can be generated on any host.
Conditionals set for groups of platforms:
$WINDOWS,$LINUXALL,$OSXALL: any platform of that OS.$POSIX: Linux and macOS platforms.$X64: any x86-64 platform ($WIN64,$LINUX64,$OSX64).$ARM64: any ARM64 platform ($WINARM64,$LINUXARM64,$OSXARM64).
Linux binaries carry an architecture suffix so they never mix: tier064.so for
x86-64 and tier0arm64.so for ARM64 (32 bit ones have none). $os in a file
name picks the most specific existing file: the platform (impl_linuxarm64.cpp),
its OS (impl_linux.cpp), posix, then any.