diff options
author | Hidehiko Abe <hidehiko@google.com> | 2018-04-17 02:39:24 +0900 |
---|---|---|
committer | Hidehiko Abe <hidehiko@google.com> | 2018-04-17 03:19:10 +0900 |
commit | 3dc91090b75cd8f8d503b4cbcbe31999620fb86a (patch) | |
tree | 5bb4e2c490463d5da84af2f068e77415c63abaf2 | |
parent | 66a4050c0acc77f5bdd20bcfc44c52ba9b91ca61 (diff) | |
download | libchrome-3dc91090b75cd8f8d503b4cbcbe31999620fb86a.tar.gz |
Split header files generation rule.
When merging libmojo into this, current approach,
generate wrapper header files for all .h files under libchrome,
will hit the commandline length limit.
Stepping back, we should generate header files for each library in theory,
so this CL does so, as preparation to merge libmojo.
Bug: 73606903
Test: built locally. Treehugger.
Change-Id: Icc3e2c9625e78c54ff69f418e790456d2b297436
-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", |