Skip to content

Commit ff299f3

Browse files
committed
reorder choices
1 parent b0a6afe commit ff299f3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

mars/libraries/build_android.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -212,16 +212,16 @@ def main():
212212
NDK_BUILD_CMD = "ndk-build _ARCH_=" + sys.argv[2] + " NDK_DEBUG=0 -j 4 -B SDK=0 LIBPREFIX=mars -C "
213213
flag = 1
214214
else:
215-
num = raw_input("Enter menu:\n1. build mars static libs.\n2. build mars shared libs.\n3. build xlog static libs.\n4. build xlog shared libs.\n5. exit.\n")
215+
num = raw_input("Enter menu:\n1. build mars shared libs.\n2. build mars static libs.\n3. build xlog static libs.\n4. build xlog shared libs.\n5. exit.\n")
216216
archs = choose_android_mars_jni_arch()
217217
if len(archs) == 0:
218218
return
219219

220220
if flag == 1:
221221
if "1" == num:
222-
return build_android_mars_static_libs()
222+
return build_android_mars_shared_libs()
223223
elif "2" == num:
224-
return build_android_mars_shared_libs()
224+
return build_android_mars_static_libs()
225225
elif "3" == num:
226226
return build_android_xlog_static_libs()
227227
elif "4" == num:
@@ -252,9 +252,9 @@ def main():
252252
arch = archs[i]
253253

254254
if "1" == num:
255-
build_android_mars_static_libs(MARS_LIBS_PATH, arch)
256-
elif "2" == num:
257255
build_android_mars_shared_libs(MARS_LIBS_PATH, arch)
256+
elif "2" == num:
257+
build_android_mars_static_libs(MARS_LIBS_PATH, arch)
258258
elif "3" == num:
259259
build_android_xlog_static_libs(XLOG_LIBS_PATH, arch)
260260
elif "4" == num:
@@ -280,7 +280,7 @@ def main():
280280
for lib in glob.glob(symbols_des_dir + "/*.so"):
281281
shutil.copy(lib, symbols_cache_dir)
282282

283-
if "1" == num or "3" == num:
283+
if "2" == num or "3" == num:
284284
return
285285

286286
shutil.rmtree(SO_DES_DIR)

0 commit comments

Comments
 (0)