forked from nillerusr/source-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswig_python.vpc
67 lines (60 loc) · 1.45 KB
/
swig_python.vpc
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
65
66
67
//-----------------------------------------------------------------------------
//
// swig_python.vpc - Compile rules for swig -> c++ for Python modules
//
// Include before defining the macro $SWIGFILE
//
// Use like this (NOTE: Do not add the .i extension):
//
// $Macro SWIGFILE "foo"
// $Include "$SRCDIR/vpc_scripts/swig_python.vpc"
//
//-----------------------------------------------------------------------------
$MacroRequired "PYTHONVER"
$MacroRequired "SWIGFILE"
$Configuration
{
$PreBuildEvent
{
$CommandLine "call $SRCDIR\vpc_scripts\swig_depend.cmd $SWIGFILE $SRCDIR $PYTHONVER" "\n" "$BASE"
}
}
$Project
{
$Folder "SWIG Source"
{
$File "$SWIGFILE.i"
{
$Configuration
{
$CustomBuildStep
{
$CommandLine "$SRCDIR\vpc_scripts\swig_python.cmd $SWIGFILE $SRCDIR $OUTBINDIR $PYTHONVER"
$AdditionalDependencies "$SWIGFILE.dep"
$Description "SWIG -> C++, $SWIGFILE.i -> swig_python$PYTHONVER\$SWIGFILE_wrap_python$PYTHONVER.cpp"
$Outputs "$QUOTE$SWIGFILE_wrap_python$PYTHONVER.cpp$QUOTE;$QUOTEswig_python$PYTHONVER\$SWIGFILE.py$QUOTE"
}
}
}
}
$Folder "Read Only"
{
$Folder "SWIG Generated Python Files"
{
$DynamicFile "$OUTBINDIR\$SWIGFILE.py"
}
$Folder "SWIG Generated Source Files"
{
$DynamicFile "$QUOTE$SWIGFILE_wrap_python$PYTHONVER.cpp$QUOTE"
{
$Configuration
{
$Compiler
{
$AdditionalOptions "/wd4127 /wd4244 /wd4505 /wd4706"
}
}
}
}
}
}