forked from nillerusr/source-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwscript
executable file
·68 lines (55 loc) · 1.38 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
#! /usr/bin/env python
# encoding: utf-8
from waflib import Utils
import os
top = '.'
PROJECT_NAME = 'togl'
def options(opt):
# stub
return
def configure(conf):
conf.define('TOGL_DLL_EXPORT',1)
conf.env.append_unique('DEFINES',['strncpy=use_Q_strncpy_instead',
'_snprintf=use_Q_snprintf_instead'])
def build(bld):
source = [
'linuxwin/dx9asmtogl2.cpp',
'linuxwin/dxabstract.cpp',
'linuxwin/glentrypoints.cpp',
'linuxwin/glmgr.cpp',
'linuxwin/glmgrbasics.cpp',
#'linuxwin/intelglmallocworkaround.cpp', [$OSXALL]
#'linuxwin/mach_override.c', [$OSXALL]
'linuxwin/cglmtex.cpp',
'linuxwin/cglmfbo.cpp',
'linuxwin/cglmprogram.cpp',
'linuxwin/cglmbuffer.cpp',
'linuxwin/cglmquery.cpp',
'linuxwin/asanstubs.cpp',
'linuxwin/decompress.c'
]
if bld.env.DEST_OS == "darwin":
source += ['linuxwin/glmgrcocoa.mm']
includes = [
'.',
'../public',
'../public/tier0',
'../public/tier1'
] + bld.env.INCLUDES_SDL2
defines = []
libs = ['tier0','tier1','tier2','vstdlib','mathlib']
if bld.env.DEST_OS == "darwin":
libs += ["OPENGL", "CARBON"]
install_path = 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()
)