blob: 35e361644d0f3378f544c86af5ca7ce46baa2f1d (
plain)
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
|
##
# Android Compatibility (static library) build script
##
Import('env')
# Add third party libraries
lib_env = env.Clone()
#SConscript(env.get('SRC_DIR') + '/resource/third_party_libs.scons', 'lib_env')
compatibilitylib_env = lib_env.Clone()
######################################################################
# Build flags
######################################################################
compatibilitylib_env.AppendUnique(CPPPATH = ['../include/'])
target_os = env.get('TARGET_OS')
if target_os == 'android':
compatibilitylib_env.AppendUnique(CXXFLAGS = ['-frtti', '-fexceptions'])
#oclib_env.AppendUnique(LIBPATH = [env.get('BUILD_DIR')])
compatibilitylib_env.AppendUnique(LIBS = ['gnustl_static'])
######################################################################
# Source files and Targets
######################################################################
compatibilitylib_src = ['OCAndroid.cpp']
if target_os == 'android':
static_compatibilitylib = compatibilitylib_env.StaticLibrary('compatibility', compatibilitylib_src)
compatibilitylib_env.InstallTarget(static_compatibilitylib, 'libcompatibility')
|