forked from nillerusr/source-engine
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwscript
executable file
·100 lines (88 loc) · 1.88 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
#! /usr/bin/env python
# encoding: utf-8
from waflib import Utils
import os
top = '.'
PROJECT_NAME = 'tier0'
def options(opt):
# stub
return
def configure(conf):
conf.define('WAF_CFLAGS', conf.env.CFLAGS)
conf.define('WAF_LDFLAGS', conf.env.LINKFLAGS)
conf.define('TIER0_DLL_EXPORT',1)
# conf.define('NO_HOOK_MALLOC',1)
def build(bld):
source = [
'assert_dialog.cpp',
'commandline.cpp',
'cpu.cpp',
'cpumonitoring.cpp',
'cpu_usage.cpp',
'dbg.cpp',
'dynfunction.cpp',
'fasttimer.cpp',
# 'InterlockedCompareExchange128.masm', [$WIN64]
'mem.cpp',
'mem_helpers.cpp',
'memdbg.cpp',
'memstd.cpp',
'memvalidate.cpp',
'minidump.cpp',
'pch_tier0.cpp',
#'pmc360.cpp', [$X360]
'PMELib.cpp', #[$WINDOWS||$POSIX]
'progressbar.cpp',
'security.cpp',
'systeminformation.cpp',
'stacktools.cpp',
'thread.cpp', #[$WINDOWS||$POSIX]
'threadtools.cpp',
'tier0_strtools.cpp',
'tslist.cpp',
'vprof.cpp',
#'../tier1/pathmatch.cpp' # [$LINUXALL]
]
if bld.env.DEST_OS == 'win32':
source += [
'assert_dialog.rc',
#'etwprof.cpp', [$WINDOWS]
'platform.cpp',
'pme.cpp',
'vcrmode.cpp',
'win32consoleio.cpp'
]
if bld.env.DEST_CPU == 'amd64':
source += [
'InterlockedCompareExchange128.masm'
]
else:
source += [
'cpu_posix.cpp',
'platform_posix.cpp',
'pme_posix.cpp',
'vcrmode_posix.cpp'
]
includes = [
'.',
'../public',
'../public/tier0',
] + bld.env.INCLUDES_SDL2
defines = []
if bld.env.DEST_OS == 'win32':
libs = ['ADVAPI32', 'WS2_32']
else:
libs = ['DL', 'M', 'LOG']
install_path = None if bld.env.BUILD_SDK else bld.env.LIBDIR
bld.shlib(
source = source,
target = PROJECT_NAME,
name = PROJECT_NAME,
features = 'c cxx',
includes = includes,
defines = defines,
use = libs,
install_path = install_path,
subsystem = bld.env.MSVC_SUBSYSTEM,
idx = bld.get_taskgen_count()
)