2. 在 Android.bp 文件中定义 cc_library_headers 模块 在Android.bp 文件中,我们需要定义一个 cc_library_headers 模块。这个模块将用于编译和导出头文件。 cc_library_headers { name: "my_header_lib", sdk_version: "current", } 1. 2. 3. 4. 3. 设置 cc_library_headers 模块的属性 在这一步中...
cc_library_headers { name: "my_headers", export_include_dirs: ["include"], local_include_dirs: ["my_headers"], } // Android.bp文件结束 1. 2. 3. 4. 5. 6. 7. 这段代码的作用是定义了一个名为my_headers的cc_library_headers模块,并指定了需要导出的头文件目录为include,本地头文件目录为...
edited Hi, I'd like to release some of my cc_library as prebuilt libraries (using .tar or .zip file) right now, when using pkg_tar on a cc_library, the .tar file only contains the .a / .so files. Is it possible to also have all the public headers required to build against th...
I am trying to include <OpenGL/OpenGL.h> in a sample cc_library on Mac OS X (10.10.3) but when doing so I am getting missing dependency declarations for OpenGL headers. Build rule: cc_library( name = "hello-lib", srcs = ["hello-lib.cc"], hdrs = ["hello-lib.h",], linkopts...