summaryrefslogtreecommitdiff
path: root/unitlib/unitlib.vpc
blob: c89b700162e69932de57bd5e00d94c307467ff94 (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
//-----------------------------------------------------------------------------
//	UNITLIB.VPC
//
//	Project Script
//-----------------------------------------------------------------------------

$Macro SRCDIR		".."
$Macro OUTBINDIR	"$SRCDIR\..\game\bin"

$Include "$SRCDIR\vpc_scripts\source_dll_base.vpc"

$Linux
{
	$BuildForLinux 1
}
$Configuration
{
	$Compiler
	{
		$PreprocessorDefinitions			"$BASE;fopen=dont_use_fopen;UNITLIB_DLL_EXPORT"
	}

	$PreLinkEvent [$WIN32]
	{	
		$CommandLine	"call $SRCDIR\vpc_scripts\valve_p4_edit.cmd $SRCDIR\lib\public\$(TargetName).lib $SRCDIR" "\n" \
						"call $SRCDIR\vpc_scripts\valve_p4_edit.cmd $SRCDIR\lib\public\$(TargetName).exp $SRCDIR" "\n" \
						"$BASE"
	}


	$Linker
	{
		$AdditionalDependencies				"$BASE odbc32.lib odbccp32.lib"
		$ImportLibrary					"$SRCDIR\lib\public\$(TargetName).lib"

	}
}

$Project "Unitlib"
{
	$Folder	"Source Files"
	{
		$File	"unitlib.cpp"
	}

	$Folder	"Header Files"
	{
		$File	"$SRCDIR\public\unitlib\UnitLib.h"
	}
}