对于已经编译好的二进制库,如果要用来被当作是依赖对象,那么应当将这些已经编译好的库作为单独的模块。对于这些已经编译好的库使用 BUILD_PREBUILT 或 BUILD_MULTI_PREBUILT。例如:当编译某个 Java 库需要依赖一些 Jar 包时,并不能直接指定 Jar 包的路径作为依赖,而必须首先将这些 Jar 包定义为一个模块,然后在编...
对于已经编译好的二进制库,如果要用来被当作是依赖对象,那么应当将这些已经编译好的库作为单独的模块。对于这些已经编译好的库使用 BUILD_PREBUILT 或 BUILD_MULTI_PREBUILT。例如:当编译某个 Java 库需要依赖一些 Jar 包时,并不能直接指定 Jar 包的路径作为依赖,而必须首先将这些 Jar 包定义为一个模块,然后在编...
常见的有: BUILD_HOST_STATIC_LIBRARY BUILD_HOST_SHARED_LIBRARY BUILD_STATIC_LIBRARY BUILD_SHARED_LIBRARY BUILD_EXECUTABLE BUILD_HOST_EXECUTABLE BUILD_PACKAGE BUILD_PREBUILT BUILD_MULTI_PREBUILT BUILD_HOST_PREBUILT BUILD_JAVA_LIBRARY BUILD_STATIC_JAVA_LIBRARY BUILD_HOST_JAVA_LIBRARY 不同类型的模块的编...
对于已经编译好的二进制库,如果要用来被当作是依赖对象,那么应当将这些已经编译好的库作为单独的模块。对于这些已经编译好的库使用 BUILD_PREBUILT 或 BUILD_MULTI_PREBUILT。例如:当编译某个 Java 库需要依赖一些 Jar 包时,并不能直接指定 Jar 包的路径作为依赖,而必须首先将这些 Jar 包定义为一个模块,然后在编...
include $(BUILD_MULTI_PREBUILT) # Use the folloing include to make our test apk. include $(call all-makefiles-under,$(LOCAL_PATH)) 至少有一个子目录,src下放源码。 Android.mk中需要赋值的几个LOCAL_XXX变量, LOCAL_PATH//调用my-dir(在defination.mk中定义),得到当前路径,即,<yourSrcPath>/ pa...
include $(BUILD_MULTI_PREBUILT) # Use the folloing include to make our test apk. include $(call all-makefiles-under,$(LOCAL_PATH)) 至少有一个子目录,src下放源码。 Android.mk中需要赋值的几个LOCAL_XXX变量, LOCAL_PATH,调用my-dir(在defination.mk中定义),得到当前路径,即,<yourSrcPath>/ pak...
0: include $(BUILD_MULTI_PREBUILT) 2、集成动态库 1: LOCAL_PATH := $(call my-dir) 2: include $(CLEAR_VARS) 3: 4: LOCAL_PREBUILT_LIBS := libA.so 5: libB.so 6: include $(BUILD_MULTI_PREBUILT) 3、集成可执行程序 1: LOCAL_PATH:= $(call my-dir) ...
常见的有: BUILD_HOST_STATIC_LIBRARY BUILD_HOST_SHARED_LIBRARY BUILD_STATIC_LIBRARY BUILD_SHARED_LIBRARY BUILD_EXECUTABLE BUILD_HOST_EXECUTABLE BUILD_PACKAGE BUILD_PREBUILT BUILD_MULTI_PREBUILT BUILD_HOST_PREBUILT BUILD_JAVA_LIBRARY BUILD_STATIC_JAVA_LIBRARY BUILD_HOST_JAVA_LIBRARY 不同类型的模块的...
|-- multi_prebuilt.mk |-- native_test.mk |-- node_fns.mk |-- notice_files.mk |-- package.mk |-- pathmap.mk |-- phony_package.mk |-- prebuilt.mk |-- process_wrapper_gdb.cmds |-- process_wrapper_gdb.sh |-- process_wrapper.sh ...
(CLEAR_VARS) LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := $(AAR_ALIAS):$(AAR_WITH_JNI) include $(BUILD_MULTI_PREBUILT) ### # Create empty recipes so Make thinks it knows the so files are created # by the BUILD_MULTI_PREBUILT above define fake-so-rule-from-aar $(1): $(...