mirror of
https://github.com/w23/xash3d-fwgs
synced 2024-12-16 06:00:33 +01:00
25 lines
666 B
Python
25 lines
666 B
Python
#!/usr/bin/env python
|
|
|
|
def options(opt):
|
|
pass
|
|
|
|
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.DEST_OS != 'android':
|
|
if conf.env.cxxshlib_PATTERN.startswith('lib'):
|
|
conf.env.cxxshlib_PATTERN = conf.env.cxxshlib_PATTERN[3:]
|
|
|
|
def build(bld):
|
|
bld.shlib(target = 'filesystem_stdio',
|
|
features = 'cxx',
|
|
source = bld.path.ant_glob(['*.c', '*.cpp']),
|
|
includes = ['.', '../common', '../public', '../engine'],
|
|
use = ['public'],
|
|
install_path = bld.env.LIBDIR,
|
|
subsystem = bld.env.MSVC_SUBSYSTEM)
|