Http://www.cnblogs.com/yaozhongxiao/archive/2012/07/10.html
Case three: Compile dynamic library + static Library
File android.mk:
Local_path: = $ (call My-dir)
Include $ (clear_vars)
Local_module: = mylib_static
Local_src_files: = src.c
Include $ (build_static_library)
Include $ (clear_vars)
Local_module: = mylib_shared
Local_src_files: = src2.c
Local_static_libraries: = mylib_static
Include $ (build_shared_library)
Situation four: There is a third-party static library (dynamic Library), the compilation of static library (dynamic library)
File android.mk:
Local_path: = $ (call My-dir)
Include $ (clear_vars)
Local_module: = thirdlib1 # name it whatever
Local_src_files: = $ (Target_arch_abi)/libthird1.a # or $ (so_path)/libthird1.so
#LOCAL_EXPORT_C_INCLUDES: = $ (Local_path)/include
Include $ (prebuilt_static_library) #or prebuilt_shared_library
Include $ (clear_vars)
Local_module: = Mylib_use_thirdlib
Local_src_files: = src.c
Local_static_libraries: = Thirdlib1 #or local_shared_library
Include $ (build_shared_library) #如果编译静态库, requires application.mk
Using a Third-party dynamic library, a static library needs to be precompiled (Build_shared_library or Prebuilt_static_library)
and local_static_libraries local_shared_library to igz add a dynamic library or a static library
If the system library (static library/dynamic library) is used, it can be implemented as follows: local_ldlibs: =-lm-llog-ljnigraphics-lz