File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -172,8 +172,8 @@ jnigen {
172
172
val combined = name + " _" + arch
173
173
174
174
headerDirs + = arrayOf(" build/box2d/${combined} /include/" )
175
- cFlags + = " -std=c11 -fexceptions -DB2_ENABLE_ASSERT "
176
- cppFlags + = " -std=c++11 -fexceptions -DB2_ENABLE_ASSERT "
175
+ cFlags + = arrayOf( " -std=c11" , " -fexceptions" , " -DB2_ENABLE_ASSERT" )
176
+ cppFlags + = arrayOf( " -std=c++11" , " -fexceptions" , " -DB2_ENABLE_ASSERT" )
177
177
libraries + = file(" build/box2d/${combined} /libs/libbox2d.a" ).absolutePath
178
178
}
179
179
@@ -189,9 +189,12 @@ jnigen {
189
189
addMac(x64, x86)
190
190
191
191
addAndroid {
192
- libraries = " "
193
- androidApplicationMk + = " APP_PLATFORM := android-21\n APP_STRIP_MODE := none\n APP_STL := c++_shared"
194
- linkerFlags + = " -stdlib=libc++\n LOCAL_WHOLE_STATIC_LIBRARIES := static_box2d"
192
+ libraries = arrayOf()
193
+ androidApplicationMk + = arrayOf(" APP_PLATFORM := android-21" ,
194
+ " APP_STRIP_MODE := none" ,
195
+ " APP_STL := c++_shared" )
196
+ linkerFlags + = " -stdlib=libc++"
197
+ androidAndroidMkSharedLibModule + = " LOCAL_WHOLE_STATIC_LIBRARIES := static_box2d"
195
198
androidAndroidMk + = arrayOf(
196
199
" include \$ (CLEAR_VARS)" ,
197
200
" LOCAL_MODULE := static_box2d" ,
You can’t perform that action at this time.
0 commit comments