This repository was archived by the owner on Jun 3, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +17
-11
lines changed Expand file tree Collapse file tree 2 files changed +17
-11
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,10 @@ subprojects {
50
50
targetSdkVersion= 26
51
51
supportLibVersion= " 26.0.2"
52
52
fastjsonLibVersion= " 1.1.46.android"
53
+ // Default value for armABIOnly is true
53
54
armABIOnly = ! project. hasProperty(" armABIOnly" ) || armABIOnly. equals(' true' )
55
+ // Default value for buildCpp is true
56
+ buildCpp = ! project. hasProperty(" buildCpp" ) || buildCpp. equals(" true" )
54
57
}
55
58
}
56
59
Original file line number Diff line number Diff line change @@ -158,14 +158,15 @@ android {
158
158
abiFilters " armeabi-v7a" , " armeabi" , " x86"
159
159
}
160
160
}
161
-
162
- externalNativeBuild {
163
- cmake {
164
- arguments ' -DANDROID_PLATFORM=' + " ${ api_level} " ,
165
- ' -DANDROID_TOOLCHAIN=' + " ${ compile_tool} " ,
166
- ' -DANDROID_STL=' + " ${ cxx_stl} " ,
167
- ' -DCMAKE_BUILD_TYPE=Release' ,
168
- ' -DENABLE_ASAN=false'
161
+ if (project. buildCpp) {
162
+ externalNativeBuild {
163
+ cmake {
164
+ arguments ' -DANDROID_PLATFORM=' + " ${ api_level} " ,
165
+ ' -DANDROID_TOOLCHAIN=' + " ${ compile_tool} " ,
166
+ ' -DANDROID_STL=' + " ${ cxx_stl} " ,
167
+ ' -DCMAKE_BUILD_TYPE=Release' ,
168
+ ' -DENABLE_ASAN=false'
169
+ }
169
170
}
170
171
}
171
172
}
@@ -186,9 +187,11 @@ android {
186
187
}
187
188
}
188
189
189
- externalNativeBuild {
190
- cmake {
191
- path ' ../../weex_core/CMakeLists.txt'
190
+ if (project. buildCpp) {
191
+ externalNativeBuild {
192
+ cmake {
193
+ path ' ../../weex_core/CMakeLists.txt'
194
+ }
192
195
}
193
196
}
194
197
You can’t perform that action at this time.
0 commit comments