We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9dcdd0 commit 0d40357Copy full SHA for 0d40357
1 file changed
ref/common/wscript
@@ -1,20 +1,27 @@
1
#! /usr/bin/env python
2
# encoding: utf-8
3
4
-top = '.'
5
-
6
def options(opt):
7
pass
8
9
def configure(conf):
10
11
12
def build(bld):
+ use = ['engine_includes', 'sdk_includes', 'werror']
+
13
+ # FIXME: figure out why psvita needs it and how can we avoid it
14
+ if bld.env.DEST_OS == 'psvita':
15
+ bld.env.CFLAGS_cstlib.remove('-fno-PIC')
16
+ bld.env.CFLAGS += ['-fPIC']
17
+ else:
18
+ use += ['public']
19
20
bld.stlib(source = bld.path.ant_glob('*.c'),
21
target = 'ref_common',
22
includes = '.',
23
export_includes = '.',
24
defines = 'REF_DLL=1',
- use = 'engine_includes public werror',
25
+ use = use,
26
subsystem = bld.env.MSVC_SUBSYSTEM
27
)
0 commit comments