You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
74 lines
2.0 KiB
74 lines
2.0 KiB
|
|
$Include "$SRCDIR\vpc_scripts\version.vpc"
|
|
|
|
$Include "$SRCDIR\vpc_scripts\source_lowest_base.vpc"
|
|
|
|
$Macro LIBPUBLIC "$SRCDIR\lib\public$PLATSUBDIR"
|
|
$Macro LIBCOMMON "$SRCDIR\lib\common$PLATSUBDIR"
|
|
|
|
$MacroRequired "SRCDIR"
|
|
$Macro "DEVTOOLS" "$SRCDIR/devtools"
|
|
|
|
|
|
$Configuration "Debug"
|
|
{
|
|
$Compiler
|
|
{
|
|
$PreprocessorDefinitions "$BASE;DEBUG;_DEBUG"
|
|
$OptimizerLevel "-gdwarf-2 -g2 $(OptimizerLevel_CompilerSpecific)" [$OSXALL]
|
|
$OptimizerLevel "-gdwarf-4 -g2 $(OptimizerLevel_CompilerSpecific)" [$LINUX]
|
|
}
|
|
}
|
|
|
|
$Configuration "Release"
|
|
{
|
|
$Compiler
|
|
{
|
|
$PreprocessorDefinitions "$BASE;NDEBUG"
|
|
$OptimizerLevel "-gdwarf-2 -g2 $(OptimizerLevel_CompilerSpecific)" [$OSXALL]
|
|
$OptimizerLevel "-gdwarf-4 -g2 $(OptimizerLevel_CompilerSpecific)" [$LINUX]
|
|
}
|
|
}
|
|
|
|
$Configuration
|
|
{
|
|
$General [!$IS_LIB_PROJECT]
|
|
{
|
|
$ConfigurationType "Application (.exe)"
|
|
}
|
|
|
|
$Compiler
|
|
{
|
|
$AdditionalIncludeDirectories "$SRCDIR\common;$SRCDIR\public;$SRCDIR\public\tier0;$SRCDIR\public\tier1"
|
|
$PreprocessorDefinitions "$BASE;GNUC;POSIX;COMPILER_GCC;MEMOVERRIDE_MODULE=$PROJECTNAME;_DLL_EXT=$_DLL_EXT"
|
|
$PreprocessorDefinitions "$BASE;DEDICATED" [$DEDICATED]
|
|
// the 10240 in the following line is the output of `sysctl -n kern.maxfilesperproc`
|
|
$PreprocessorDefinitions "$BASE;_OSX;OSX;_DARWIN_UNLIMITED_SELECT;FD_SETSIZE=10240;" [$OSXALL]
|
|
$PreprocessorDefinitions "$BASE;_LINUX;LINUX;" [$LINUX]
|
|
$SymbolVisibility "hidden" [$POSIX]
|
|
$PreprocessorDefinitions "$BASE;POSIX;_POSIX" [$POSIX]
|
|
|
|
$PreprocessorDefinitions "$BASE;PLATFORM_64BITS" [$OSX64]
|
|
$GCC_ExtraCompilerFlags "$BASE -arch x86_64" [$OSX64]
|
|
|
|
$Create/UsePCHThroughFile "stdafx.h"
|
|
}
|
|
|
|
$Linker [!$IS_LIB_PROJECT]
|
|
{
|
|
$GCC_ExtraLinkerFlags "$BASE -arch x86_64" [$OSX64]
|
|
}
|
|
}
|
|
|
|
$Project
|
|
{
|
|
|
|
$Folder "Link Libraries"
|
|
{
|
|
$ImpLib "$LIBPUBLIC\tier0" [!$IS_LIB_PROJECT]
|
|
$Lib "$LIBPUBLIC\tier1" [!$IS_LIB_PROJECT]
|
|
$Lib "$LIBPUBLIC\interfaces" [!$IS_LIB_PROJECT]
|
|
$ImpLib "$LIBPUBLIC\vstdlib" [!$IS_LIB_PROJECT]
|
|
}
|
|
}
|
|
|