forked from nillerusr/source-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwscript
executable file
·73 lines (60 loc) · 1.26 KB
/
wscript
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
68
69
70
71
72
#! /usr/bin/env python
# encoding: utf-8
from waflib import Utils
import os
top = '.'
PROJECT_NAME = 'vstdlib'
def options(opt):
# stub
return
def configure(conf):
conf.define('VSTDLIB_DLL_EXPORT',1)
def build(bld):
source = [
#'xbox\___FirstModule.cpp' [$X360]
'coroutine.cpp', # [!$X360 && !$OSXALL]
'cvar.cpp',
'jobthread.cpp',
'KeyValuesSystem.cpp',
'osversion.cpp',
'random.cpp',
'vcover.cpp',
'../public/tier0/memoverride.cpp'
]
if bld.env.DEST_OS == 'win32':
source += [
'processutils.cpp'
]
if bld.env.DEST_CPU == 'amd64':
source += [
'coroutine_win64.masm',
'GetStackPtr64.masm'
]
includes = [
'.',
'../public',
'../public/tier0',
'../public/tier1',
'../public/vstdlib'
]
defines = []
libs = ['tier0','tier1']
linkflags = []
if bld.env.DEST_OS == 'android':
libs += ['ANDROID_SUPPORT']
elif bld.env.DEST_OS == 'darwin':
linkflags += ['-framework', 'CoreServices']
install_path = bld.env.LIBDIR
bld.shlib(
source = source,
target = PROJECT_NAME,
name = PROJECT_NAME,
features = 'c cxx',
includes = includes,
defines = defines,
use = libs,
linkflags = linkflags,
install_path = install_path,
subsystem = bld.env.MSVC_SUBSYSTEM,
idx = bld.get_taskgen_count()
)