1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2024-12-23 01:59:43 +08:00
hl2sdk/vpc_scripts/source_posix_base.vpc
Joe Ludwig 39d16ca147 General:
* Fixed a variety of server browser issues with mods based on this SDK
* Fixed many warnings on various platforms
* Added source code for fgdlib and raytrace
* Updated many source files with the latest shared source from TF2.

OSX:
* Added support for Xcode 4.6
* Switched OSX builds to use Xcode instead of makefiles
* Moved libs from src/lib/osx32 to src/lib/public/osx32 or src/lib/common/osx32 to match windows better.

Linux:
* Moved libs from src/lib/linux32 to src/lib/public/linux32 or src/lib/common/linux32 to match windows better.
2013-09-02 11:39:10 -07:00

72 lines
1.8 KiB
Plaintext

$Include "$SRCDIR\vpc_scripts\version.vpc"
$Macro LIBPUBLIC "$SRCDIR\lib\public$PLATSUBDIR"
$Macro LIBCOMMON "$SRCDIR\lib\common$PLATSUBDIR"
$MacroRequired "SRCDIR"
$Configuration "Debug"
{
$Compiler
{
$PreprocessorDefinitions "$BASE;DEBUG;_DEBUG"
$OptimizerLevel "-gdwarf-2 -g2 $(OptimizerLevel_CompilerSpecific)"
}
}
$Configuration "Release"
{
$Compiler
{
$PreprocessorDefinitions "$BASE;NDEBUG"
$OptimizerLevel "-gdwarf-2 -g2 $(OptimizerLevel_CompilerSpecific)"
}
}
$Configuration
{
$General
{
$ConfigurationType "Application (.exe)"
}
$Compiler
{
$AdditionalIncludeDirectories "$SRCDIR\common;$SRCDIR\public;$SRCDIR\public\tier0;$SRCDIR\public\tier1"
$AdditionalLibraryDirectories "$LIBCOMMON;$LIBPUBLIC" [$OSXALL]
$PreprocessorDefinitions "$BASE;GNUC;POSIX;COMPILER_GCC;_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;OVERRIDE_V_DEFINES" [$OSXALL]
$PreprocessorDefinitions "$BASE;_LINUX;LINUX;" [$LINUXALL]
$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
{
$GCC_ExtraLinkerFlags "$BASE -arch x86_64" [$OSX64]
}
}
$Project
{
$Folder "Link Libraries"
{
$ImpLib "$LIBPUBLIC\tier0" [!$IS_LIB_PROJECT]
$Lib "$LIBPUBLIC\tier1" [!$IS_LIB_PROJECT]
$ImpLib "$LIBPUBLIC\vstdlib" [!$IS_LIB_PROJECT]
}
}