diff options
-rw-r--r-- | Android.bp | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/Android.bp b/Android.bp index d4842e1e08..be9d763924 100644 --- a/Android.bp +++ b/Android.bp @@ -23,7 +23,15 @@ gensrcs { cmd: "$(location libchrome_tools/include_generator.py) $(in) $(out)", tool_files: ["libchrome_tools/include_generator.py"], export_include_dirs: ["."], - srcs: ["**/*.h"], + srcs: [ + "base/**/*.h", + "build/**/*.h", + "components/**/*.h", + "device/**/*.h", + "testing/**/*.h", + "third_party/**/*.h", + "ui/**/*.h", + ], output_extension: "h", } @@ -365,6 +373,18 @@ cc_library { // libchrome-crypto shared library for device // ======================================================== + +// Similar to libchrome, generate wrapped header files. See comments for +// libchrome-include for the details. +gensrcs { + name: "libchrome-crypto-include", + cmd: "$(location libchrome_tools/include_generator.py) $(in) $(out)", + tool_files: ["libchrome_tools/include_generator.py"], + export_include_dirs: ["."], + srcs: ["crypto/**/*.h"], + output_extension: "h", +} + cc_library_shared { name: "libchrome-crypto", defaults: ["libchrome-defaults"], @@ -376,6 +396,9 @@ cc_library_shared { "crypto/sha2.cc", ], + generated_headers: ["libchrome-crypto-include"], + export_generated_headers: ["libchrome-crypto-include"], + shared_libs: [ "libchrome", "libcrypto", |