aboutsummaryrefslogtreecommitdiff
path: root/sp/src/vpc_scripts/source_linux_base_project.vpc
blob: 8dd136bae7bf34cf01ccec87163f85a1b1fb63b6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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]
	}
}