local_include_dirs:指定路径查找头文件,类似于Android.mk中的LOCAL_C_INCLUDES shared_libs:编译所依赖的动态库,类似于Android.mk中的LOCAL_SHARED_LIBRARIES static_libs:编译所依赖的静态库,类似于Android.mk中的LOCAL_STATIC_LIBRARIES cflags:编译flag,类似于Android.mk中的LOCAL_CFLAGS 举个例子: cc_library_shar...
1.1 在已有的Android.bp中添加宏 首先找要添加的Android.bp文件中是否有cppflags或者'cflags',基本上都是有的,例如: cc_defaults { name: "fs_mgr_defaults", defaults: ["BBB"],// new add sanitize: { misc_undefined: ["integer"], }, local_include_dirs: ["include/"], cppflags: ["-Werror"...
local_include_dirs:["xxx",...] 本地头文件路径 mk LOCAL_C_INCLUDES bp local_include_dirs Android.mk LOCAL_EXPORT_C_INCLUDE_DIRS:=Android.bp export_include_dirs:["xxx",...] 排除头文件 mk LOCAL_EXPORT_C_INCLUDE_DIRS bp export_include_dirs Android.mk LOCAL_RESOURCE_DIR:=Android.bp resou...
local_include_dirs:指定路径查找头文件,类似于Android.mk中的LOCAL_C_INCLUDES shared_libs:编译所依赖的动态库,类似于Android.mk中的LOCAL_SHARED_LIBRARIES static_libs:编译所依赖的静态库,类似于Android.mk中的LOCAL_STATIC_LIBRARIES cflags:编译flag,类似于Android.mk中的LOCAL_CFLAGS 注释 Android.bp使用单行注释...
首先找要添加的Android.bp文件中是否有cppflags或者'cflags',基本上都是有的,例如: cc_defaults { name:"fs_mgr_defaults", defaults: ["BBB"],// new add sanitize: { misc_undefined: ["integer"], }, local_include_dirs: ["include/"], ...
LOCAL_CFLAGS += -Werror include $(BUILD_HOST_STATIC_LIBRARY) endif 原android版tinyalsa是shared_library, host版tinyalsa是static_library, 用androidmk命令转换成bp文件后内容如下: cc_library_shared { include_dirs: ["external/tinyalsa/include"] + ["device/vendor/msm8937/TFA9895/app/exTfa98xx/in...
Android.bp local_include_dirs: ["xxx", ...] 9、导出的头文件路径 Android.mk LOCAL_EXPORT_C_INCLUDE_DIRS := Android.bp export_include_dirs: ["xxx", ...] 10、设置资源文件路径 Android.mk LOCAL_RESOURCE_DIR := Android.bp resource_dirs: ["xxx", ...] ...
加入Android.bp中进行编译 // vendor/zzh/native-service/bean-server/libbeanservice/Android.bp cc_library_shared { name: "libbeanservice_aidl", aidl: { export_aidl_headers: true, local_include_dirs: ["aidl"], include_dirs: [ ], }, ...
local_include_dirs: [ "include/", "include/openssl", "include/internal", "ssl/" ], export_include_dirs: [ "include/", "include/openssl", ], cppflags: [ "-fPIC", ], ldflags: [ "-Wl,-shared", "-Wl,-soname,libssl.so",
local_include_dirs: [ "media/aidl", ], include_dirs: [ "frameworks/av/aidl", "frameworks/native/libs/permission/aidl", "packages/modules/Bluetooth/framework/aidl-export", "packages/modules/Connectivity/framework/aidl-export", "packages/modules/Media/apex/aidl/stable", "hardware/in...