aboutsummaryrefslogtreecommitdiff
path: root/mp/src/vpc_scripts/source_exe_linux_base.vpc
diff options
context:
space:
mode:
authorJoe Ludwig <[email protected]>2013-07-04 11:20:31 -0700
committerJoe Ludwig <[email protected]>2013-07-04 11:20:31 -0700
commit77b376f8a0d8d172c51729762f80bb394534aa41 (patch)
tree79897a015745704f7202eaa6648c18f2e5312df4 /mp/src/vpc_scripts/source_exe_linux_base.vpc
parentAdding a CONTRIBUTING file so the rights that GitHub users grant to Valve wit... (diff)
downloadsource-sdk-2013-77b376f8a0d8d172c51729762f80bb394534aa41.tar.xz
source-sdk-2013-77b376f8a0d8d172c51729762f80bb394534aa41.zip
* Switched the SDK from checked-in projects to VPC, the Valve Project Creator. See the Getting Started document on the wiki for details.
* Pulled in bug fixes from HL2 and HL2MP.
Diffstat (limited to 'mp/src/vpc_scripts/source_exe_linux_base.vpc')
-rw-r--r--mp/src/vpc_scripts/source_exe_linux_base.vpc57
1 files changed, 57 insertions, 0 deletions
diff --git a/mp/src/vpc_scripts/source_exe_linux_base.vpc b/mp/src/vpc_scripts/source_exe_linux_base.vpc
new file mode 100644
index 00000000..44ffa8e7
--- /dev/null
+++ b/mp/src/vpc_scripts/source_exe_linux_base.vpc
@@ -0,0 +1,57 @@
+//-----------------------------------------------------------------------------
+// SOURCE_EXE_WIN_WIN32.VPC
+//
+// Base Settings for Source(TM) Projects
+//-----------------------------------------------------------------------------
+
+$Include "$SRCDIR\vpc_scripts\version.vpc"
+
+$MacroRequired "SRCDIR"
+$MacroRequired "OUTBINNAME" "$PROJECTNAME"
+$MacroRequired "OUTBINDIR"
+$Macro IS_LIB_PROJECT "1"
+
+$Include "$SRCDIR\vpc_scripts\source_linux_base_project.vpc"
+
+
+$Project
+{
+ $Folder "Source Files"
+ {
+ $File "$SRCDIR\public\tier0\memoverride.cpp"
+ {
+ $Configuration
+ {
+ $Compiler
+ {
+ $Create/UsePrecompiledHeader "Not Using Precompiled Headers"
+ }
+ }
+ }
+ }
+
+ $Folder "Link Libraries" [$CLANG]
+ {
+ $File "$SRCDIR/thirdparty/gperftools-2.0/.libs/libtcmalloc_minimal.so"
+ }
+}
+
+$Configuration
+{
+ $General
+ {
+ $GameOutputFile "$OUTBINDIR/$OUTBINNAME"
+
+ }
+
+ $Linker
+ {
+ $OutputFile "$OUTBINDIR/$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.
+ $GCC_ExtraLinkerFlags "-Wl,--no-as-needed -ltcmalloc_minimal -Wl,--as-needed" [$CLANG]
+ }
+}