diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /vpc_scripts/source_exe_posix_base.vpc | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'vpc_scripts/source_exe_posix_base.vpc')
| -rw-r--r-- | vpc_scripts/source_exe_posix_base.vpc | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/vpc_scripts/source_exe_posix_base.vpc b/vpc_scripts/source_exe_posix_base.vpc new file mode 100644 index 0000000..23d7637 --- /dev/null +++ b/vpc_scripts/source_exe_posix_base.vpc @@ -0,0 +1,71 @@ +//----------------------------------------------------------------------------- +// 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" + } +} + |