mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
filesystem: wscript: disable RTTI and exceptions(useful on Android), we don't need it here. Link as C++ library.
This commit is contained in:
parent
3c4eec62ae
commit
b7b9c611cf
@ -4,12 +4,17 @@ def options(opt):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
def configure(conf):
|
def configure(conf):
|
||||||
|
nortti = {
|
||||||
|
'msvc': ['/GR-'],
|
||||||
|
'default': ['-fno-rtti', '-fno-exceptions']
|
||||||
|
}
|
||||||
|
conf.env.append_unique('CXXFLAGS', conf.get_flags_by_compiler(nortti, conf.env.COMPILER_CC))
|
||||||
if conf.env.cxxshlib_PATTERN.startswith('lib'):
|
if conf.env.cxxshlib_PATTERN.startswith('lib'):
|
||||||
conf.env.cxxshlib_PATTERN = conf.env.cxxshlib_PATTERN[3:]
|
conf.env.cxxshlib_PATTERN = conf.env.cxxshlib_PATTERN[3:]
|
||||||
|
|
||||||
def build(bld):
|
def build(bld):
|
||||||
bld.shlib(target = 'filesystem_stdio',
|
bld.shlib(target = 'filesystem_stdio',
|
||||||
features = 'cxx c',
|
features = 'cxx',
|
||||||
source = bld.path.ant_glob(['*.c', '*.cpp']),
|
source = bld.path.ant_glob(['*.c', '*.cpp']),
|
||||||
includes = ['.', '../common', '../public', '../engine'],
|
includes = ['.', '../common', '../public', '../engine'],
|
||||||
use = ['public'],
|
use = ['public'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user