android - building a prebuilt static library with ndk-build all -


i have problem ndk-build script builds static library.

the problem script gets included our application's larger build script, gets called ndk-build all

the build script static library looks this:

# loadbalancing-cpp  local_path := $(call my-dir)  all_static_libraries = common-cpp-static-prebuilt \                        photon-cpp-static-prebuilt  lib_suffix := ${app_optim}_android_${app_abi}  lib_loadbalancing_cpp_static_name := loadbalancing-cpp-prebuilt-static_${lib_suffix}  include $(clear_vars) local_module            := loadbalancing-cpp-static-prebuilt local_src_files         := lib$(lib_loadbalancing_cpp_static_name).a local_static_libraries  := $(all_static_libraries) include $(prebuilt_static_library)  $(call import-module,common-cpp-prebuilt) $(call import-module,photon-cpp-prebuilt) 

the problem is, building static library requires local_src_files point single value (the path library), when called ndk-build all in case, contain multiple values (since lib_suffix point available architectures).

is there way build file using ndk-build ?

you can use target_arch variable managed ndk-build:

lib_suffix := $(app_optim)_android_$(target_arch) 

... , on.

essentially, ndk-build "call" android.mk file multiple times, each time setting target_arch variable differently.


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -