diff options
author | Jiyong Park <jiyong@google.com> | 2019-08-19 14:42:56 +0900 |
---|---|---|
committer | Jiyong Park <jiyong@google.com> | 2019-08-19 15:38:10 +0900 |
commit | d1b83e6864cd03cd710d867fbf90ca8bfb10c5ce (patch) | |
tree | 5e05fece2a4347bc522161045ba5652a0c4d463c | |
parent | 49eea1e7c97b57a526049e57d22cb51b5701e08b (diff) | |
download | native-d1b83e6864cd03cd710d867fbf90ca8bfb10c5ce.tar.gz |
Add a filegroup for AIDL files in frameworks/native/aidl
The AIDL files under frameworks/native/aidl have been referenced via
their absolute paths. This required any module that has an AIDL file
depending on the AIDL types in the frameworks directory to explicitly
set the include path.
Fixing the problem by abstracting the AIDL files using filegroup where
the path property is set to the base directory for the files. The base
directory is used as include paths when the filegroup is added to srcs.
Bug: 135922046
Test: m
Change-Id: Ie416e49734e6e50c1e3fa41d5db6d32a662e0855
-rw-r--r-- | Android.bp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp index de9ea86f1d..bf4cf5daf8 100644 --- a/Android.bp +++ b/Android.bp @@ -20,3 +20,25 @@ cc_library_headers { vendor: true, export_include_dirs: ["include_sensor"], } + +filegroup { + name: "framework_native_aidl_binder", + srcs: ["aidl/binder/**/*.aidl"], + path: "aidl/binder", + visibility: ["//frameworks/native"], +} + +filegroup { + name: "framework_native_aidl_gui", + srcs: ["aidl/gui/**/*.aidl"], + path: "aidl/gui", + visibility: ["//frameworks/native"], +} + +filegroup { + name: "framework_native_aidl", + srcs: [ + ":framework_native_aidl_binder", + ":framework_native_aidl_gui", + ], +} |