summaryrefslogtreecommitdiff
path: root/game/shared/schema_tf.vpc
blob: 804057e71020da63b51d79c00f339164994cff90 (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
//-----------------------------------------------------------------------------
//	STEAMSCHEMA.VPC
//
//	Project Script
//-----------------------------------------------------------------------------

$macro SRCDIR		"..\.."
$Macro OUTLIBDIR	"$SRCDIR\lib\game\tf"
$macro $_STATICLIB_EXT	".lib"

$include "$SRCDIR\vpc_scripts\source_lib_base.vpc"

$Configuration
{
	$PreBuildEvent [$WIN32]
	{
		$CommandLine		"call $SRCDIR\vpc_scripts\valve_p4_edit.cmd $SRCDIR\game\shared\tf\schema_tf.h $SRCDIR" "\n" \ 
							"call $SRCDIR\vpc_scripts\valve_p4_edit.cmd $SRCDIR\game\shared\tf\schema_tf.cpp $SRCDIR" "\n" \
							"$BASE" 
	}
}

$Project "schema (TF)"
{
	$File "gc\base_gcschema.sch"
	{
		$Configuration 
		{ 
			$ExcludedFromBuild	"Yes" 
		}
	}
	$File "econ\econ_gcschema.sch"
	{
		$Configuration 
		{ 
			$ExcludedFromBuild	"Yes" 
		}
	}
	$File "tf\schema_tf.sch"
	{
		$Configuration
		{
			$CustomBuildStep
			{
				$Description	"Running SchemaCompiler..."
				$CommandLine	"$SRCDIR\gcsdk\bin\schemacompiler.exe tf\schema_tf.sch tf\schema_tf.cpp tf\schema_tf.h"
				$Outputs		"tf\schema_tf.h;tf\schema_tf.cpp"
				$AdditionalDependencies	"..\..\bin\schemacompiler.exe"
			}
		}
	}
}