aboutsummaryrefslogtreecommitdiff
path: root/mp/src/vpc_scripts/source_linux_base_project.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_linux_base_project.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_linux_base_project.vpc')
-rw-r--r--mp/src/vpc_scripts/source_linux_base_project.vpc64
1 files changed, 64 insertions, 0 deletions
diff --git a/mp/src/vpc_scripts/source_linux_base_project.vpc b/mp/src/vpc_scripts/source_linux_base_project.vpc
new file mode 100644
index 00000000..8dd136ba
--- /dev/null
+++ b/mp/src/vpc_scripts/source_linux_base_project.vpc
@@ -0,0 +1,64 @@
+
+
+$MacroRequired "SRCDIR"
+
+
+$Configuration "Debug"
+{
+ $Compiler
+ {
+ $PreprocessorDefinitions "DEBUG;_DEBUG"
+ $OptimizerLevel "-gdwarf-2 -g $(OptimizerLevel_CompilerSpecific)"
+ }
+}
+
+$Configuration "Release"
+{
+ $Compiler
+ {
+ $PreprocessorDefinitions "NDEBUG"
+ $PreprocessorDefinitions "$BASE;RELEASEASSERTS" [$RELEASEASSERTS]
+ $OptimizerLevel "-gdwarf-2 -g $(OptimizerLevel_CompilerSpecific)"
+ }
+}
+
+$Configuration
+{
+ $General
+ {
+ $ConfigurationType "Application (.exe)"
+ }
+
+ $Compiler
+ {
+ $AdditionalIncludeDirectories "$SRCDIR\common;$SRCDIR\public;$SRCDIR\public\tier0;$SRCDIR\public\tier1"
+ $AdditionalIncludeDirectories "$BASE;/usr/include/malloc" [$OSX]
+ $PreprocessorDefinitions "$BASE;POSIX;GNUC"
+ $PreprocessorDefinitions "$BASE;DEDICATED" [$DEDICATED]
+ $PreprocessorDefinitions "$BASE;LINUX;_LINUX" [$LINUXALL]
+ $PreprocessorDefinitions "$BASE;_OSX;OSX;_DARWIN_UNLIMITED_SELECT;FD_SETSIZE=10240;" [$OSX32 || $OSX64]
+ $PreprocessorDefinitions "$BASE;_DEMO" [$DEMO]
+ $SymbolVisibility "hidden" [$POSIX]
+ $GCC_ExtraCompilerFlags "$BASE -U_FORTIFY_SOURCE" [$LINUXALL]
+ $GCC_ExtraCompilerFlags "$BASE -faddress-sanitizer" [$ADDRESSSANITIZER && $LINUXALL]
+
+ // Pass on appropriate branch define to preprocessor
+ $PreprocessorDefinitions "$BASE;STAGING_ONLY" [$STAGING_ONLY]
+ $PreprocessorDefinitions "$BASE;TF_BETA" [$TF_BETA]
+ }
+ $Linker
+ {
+ $GCC_ExtraLinkerFlags "$BASE -faddress-sanitizer" [$ADDRESSSANITIZER && $LINUXALL]
+ }
+}
+
+$Project
+{
+ $Folder "Link Libraries"
+ {
+ $ImpLib tier0 [!$IS_LIB_PROJECT]
+ $Lib tier1 [!$IS_LIB_PROJECT]
+ $ImpLib vstdlib [!$IS_LIB_PROJECT]
+ $Lib $SRCDIR/thirdparty/clang+llvm-3.1-x86-linux-ubuntu_12.04/lib/clang/3.1/lib/linux/libclang_rt.asan-i386 [$ADDRESSSANITIZER && $LINUXALL]
+ }
+}