mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2024-12-22 17:47:38 +08:00
39d16ca147
* 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.
72 lines
1.7 KiB
Plaintext
72 lines
1.7 KiB
Plaintext
//-----------------------------------------------------------------------------
|
|
// SOURCE_EXE_posix.VPC
|
|
//
|
|
// Base Settings for Source(TM) Projects
|
|
//-----------------------------------------------------------------------------
|
|
|
|
$Include "$SRCDIR\vpc_scripts\version.vpc"
|
|
|
|
$MacroRequired "SRCDIR"
|
|
$MacroRequired "OUTBINNAME" "$PROJECTNAME"
|
|
$Macro IS_LIB_PROJECT "1"
|
|
$Include "$SRCDIR\vpc_scripts\source_posix_base.vpc"
|
|
|
|
$Include "$SRCDIR\vpc_scripts\loadaddress.vpc"
|
|
|
|
|
|
$IgnoreRedundancyWarning "ON"
|
|
|
|
$Configuration
|
|
{
|
|
$General
|
|
{
|
|
$ConfigurationType "Application (.exe)"
|
|
}
|
|
|
|
$Compiler
|
|
{
|
|
$PreprocessorDefinitions "$BASE;EXENAME=$OUTBINNAME"
|
|
}
|
|
|
|
$Linker
|
|
{
|
|
$OutputFile "$SRCDIR/../game/$OUTBINNAME"
|
|
|
|
// In order to get the Valve standard allocator memory alignment (16-byte
|
|
// alignment for objects that are a multiple of 16 bytes) we use tcmalloc.
|
|
// Using -l will ask the linker to use it, but if there are no references
|
|
// to malloc/free then it may not actually use it. Wrapping the flag in the
|
|
// as-needed controls forces it to be pulled in (from libtcmalloc_minimal.so).
|
|
$GCC_ExtraLinkerFlags "-Wl,--no-as-needed -ltcmalloc_minimal -Wl,--as-needed" [$LINUXALL&&!$DEDICATED]
|
|
}
|
|
}
|
|
|
|
$Project
|
|
{
|
|
$Folder "Source Files"
|
|
{
|
|
$File "$SRCDIR\public\tier0\memoverride.cpp"
|
|
{
|
|
$Configuration
|
|
{
|
|
$Compiler
|
|
{
|
|
$Create/UsePrecompiledHeader "Not Using Precompiled Headers"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
$Folder "Resources"
|
|
{
|
|
$File "$ROOTSCRIPT"
|
|
}
|
|
|
|
$Folder "Link Libraries" [$LINUXALL&&!$DEDICATED]
|
|
{
|
|
$File "$SRCDIR/thirdparty/gperftools-2.0/.libs/libtcmalloc_minimal.so"
|
|
}
|
|
}
|
|
|