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
diff --git a/Android.bp b/Android.bp
index de9ea86..bf4cf5d 100644
--- a/Android.bp
+++ b/Android.bp
@@ -20,3 +20,25 @@
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",
+ ],
+}