Tips
:在安卓源码 build\soong\androidmk\androidmk 路径下的 android.go 文件中有bp 文件和 mk 文件的转换过程
Android.mk LOCAL_JAVACFLAGS :=
Android.bp javacflags: [“xxx”, “xxx”, …]
Android.mk LOCAL_CFLAGS :=
Android.bp cflags: [“xxx”, “xxx”, …]
Android.mk LOCAL_CPPFLAGS :=
Android.bp cppflags : [“xxx”, “xxx”, …]
Android.mk LOCAL_RESOURCE_DIR :=
Android.bp resource_dirs: [“xxx”, …]
Android.mk LOCAL_EXPORT_C_INCLUDE_DIRS :=
Android.bp export_include_dirs: [“xxx”, …]
Android.mk LOCAL_C_INCLUDES :=
Android.bp local_include_dirs: [“xxx”, …]
Android.mk LOCAL_ODM_MODULE := tru
Android.bp device_specific: true
Android.mk LOCAL_PRODUCT_MODULE := true
Android.bp product_specific: true
Android.mk LOCAL_VENDOR_MODULE := true or
LOCAL_PROPRIETARY_MODULE := true
Android.bp proprietary: true or vendor: true
Android.mk LOCAL_STATIC_LIBRARIES :=
Android.bp libs: [“xxx”, “xxx”, …]
Android.mk LOCAL_SHARED_LIBRARIES :=
Android.bp shared_libs: [“xxx”, “xxx”, …]
Android.mk LOCAL_STATIC_LIBRARIES :=
Android.bp static_libs: [“xxx”, “xxx”, …]
Android.mk include $(BUILD_SHARED_LIBRARY)
Android.bp cc_library_shared { … }
Android.mk include $(BUILD_STATIC_LIBRARY)
Android.bp cc_library_static { … }
Android.mk include $(BUILD_HOST_SHARED_LIBRARY)
Android.bp cc_library_host_shared { … }
Android.mk include $(BUILD_HOST_STATIC_LIBRARY)
Android.bp cc_library_host_static { … }
Android.mk include $(BUILD_HEADER_LIBRARY)
Android.bp cc_library_headers { … }
Android.mk include $(BUILD_EXECUTABLE)
Android.bp cc_binary { … }
Android.mk include $(BUILD_HOST_EXECUTABLE)
Android.bp cc_binary_host { … }
Android.mk include $(BUILD_NATIVE_TEST)
Android.bp cc_test { … }
Android.mk include $(BUILD_HOST_NATIVE_TEST)
Android.bp cc_test_host { … }
Android.mk include $(BUILD_HOST_NATIVE_TEST)
Android.bp cc_test_host { … }
Android.mk include $(BUILD_HOST_NATIVE_BENCHMARK)
Android.bp cc_benchmark_host { … }
Android.mk include $(BUILD_JAVA_LIBRARY)
Android.bp java_library_installable { … }
Android.mk include $(BUILD_STATIC_JAVA_LIBRARY)
Android.bp java_library { … }
Android.mk include $(BUILD_STATIC_JAVA_LIBRARY)
Android.bp java_library_static { … }
Android.mk include $(BUILD_HOST_JAVA_LIBRARY)
Android.bp java_library_host { … }
Android.mk include $(BUILD_HOST_DALVIK_JAVA_LIBRARY)
Android.bp java_library_host_dalvik { … }
Android.mk include $(BUILD_PACKAGE)
Android.bp android_app { … }
Android.mk include $(BUILD_CTS_SUPPORT_PACKAGE)
Android.bp cts_support_package { … }
Android.mk include $(BUILD_CTS_PACKAGE)
Android.bp cts_package { … }
Android.mk include $(BUILD_CTS_TARGET_JAVA_LIBRARY)
Android.bp cts_target_java_library { … }
Android.mk include $(BUILD_CTS_HOST_JAVA_LIBRARY)
Android.bp cts_host_java_library { … }