26 lines
754 B
Plaintext
26 lines
754 B
Plaintext
import os ;
|
|
|
|
ANDROID_TOOLCHAIN = [ os.environ ANDROID_TOOLCHAIN ] ;
|
|
ANDROID_API = [ os.environ android_api ] ;
|
|
|
|
using clang : x86 : $(ANDROID_TOOLCHAIN)/bin/i686-linux-android$(ANDROID_API)-clang++ :
|
|
<cxxflags>-fPIC
|
|
<cxxflags>-std=c++14
|
|
<cxxflags>-DANDROID
|
|
<cxxflags>-D__STDC_FORMAT_MACROS
|
|
<cxxflags>-D__USE_FILE_OFFSET64
|
|
<cxxflags>-D_FILE_OFFSET_BITS=64
|
|
<cxxflags>-DWITH_IPP=OFF
|
|
<cxxflags>-frtti
|
|
<cxxflags>-fno-strict-aliasing
|
|
<cxxflags>-fvisibility=hidden
|
|
<linkflags>-static-libstdc++
|
|
# x86 devices have stack alignment issues, http://b.android.com/222239
|
|
<cxxflags>-mstackrealign
|
|
# debug information
|
|
<cxxflags>-g
|
|
<cxxflags>-gdwarf-4
|
|
<cxxflags>-fdebug-macro
|
|
<cxxflags>-ggdb
|
|
;
|