From d1b83e6864cd03cd710d867fbf90ca8bfb10c5ce Mon Sep 17 00:00:00 2001 From: Jiyong Park Date: Mon, 19 Aug 2019 14:42:56 +0900 Subject: 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 --- Android.bp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) 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", + ], +} -- cgit v1.2.3-59-g8ed1b