mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-22 21:04:14 +00:00
filesystem: link with libandroid
This commit is contained in:
parent
71b06801ef
commit
0a0d63663a
@ -10,19 +10,19 @@ def configure(conf):
|
|||||||
}
|
}
|
||||||
conf.env.append_unique('CXXFLAGS', conf.get_flags_by_compiler(nortti, conf.env.COMPILER_CC))
|
conf.env.append_unique('CXXFLAGS', conf.get_flags_by_compiler(nortti, conf.env.COMPILER_CC))
|
||||||
|
|
||||||
if conf.env.DEST_OS != 'android':
|
if conf.env.DEST_OS == 'android':
|
||||||
if conf.env.cxxshlib_PATTERN.startswith('lib'):
|
conf.check_cc(lib='android')
|
||||||
conf.env.cxxshlib_PATTERN = conf.env.cxxshlib_PATTERN[3:]
|
elif conf.env.cxxshlib_PATTERN.startswith('lib'): # remove lib prefix for other systems than Android
|
||||||
|
conf.env.cxxshlib_PATTERN = conf.env.cxxshlib_PATTERN[3:]
|
||||||
|
|
||||||
def build(bld):
|
def build(bld):
|
||||||
bld(name = 'filesystem_includes', export_includes = '.')
|
bld(name = 'filesystem_includes', export_includes = '.')
|
||||||
|
|
||||||
libs = [ 'filesystem_includes' ]
|
libs = [ 'filesystem_includes', 'sdk_includes' ]
|
||||||
|
|
||||||
# on PSVita do not link any libraries that are already in the main executable, but add the includes target
|
# on PSVita do not link any libraries that are already in the main executable, but add the includes target
|
||||||
if bld.env.DEST_OS == 'psvita':
|
if bld.env.DEST_OS != 'psvita':
|
||||||
libs += [ 'sdk_includes' ]
|
libs += [ 'public', 'ANDROID' ]
|
||||||
else:
|
|
||||||
libs += [ 'public' ]
|
|
||||||
|
|
||||||
bld.shlib(target = 'filesystem_stdio',
|
bld.shlib(target = 'filesystem_stdio',
|
||||||
features = 'cxx seq',
|
features = 'cxx seq',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user