Match src paths with aidl package name
In order for the build system to track updates to the header files
during incremental builds, always specify the src files using the same
path as the package for C++ compilations.
Bug: 112114177
Test: treehugger
Change-Id: I333743c2b5399e96c7d9cbcb8da28126da2d43ea
diff --git a/car-lib/Android.bp b/car-lib/Android.bp
index b6adc86..d3da6da 100644
--- a/car-lib/Android.bp
+++ b/car-lib/Android.bp
@@ -12,6 +12,16 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+filegroup {
+ name: "libcarpowermanager_aidl",
+ srcs: [
+ "src/android/car/ICar.aidl",
+ "src/android/car/hardware/power/ICarPower.aidl",
+ "src/android/car/hardware/power/ICarPowerStateListener.aidl",
+ ],
+ path: "src",
+}
+
cc_library {
name: "libcarpowermanager",
@@ -40,9 +50,7 @@
],
srcs: [
- "src/android/car/ICar.aidl",
- "src/android/car/hardware/power/ICarPower.aidl",
- "src/android/car/hardware/power/ICarPowerStateListener.aidl",
+ ":libcarpowermanager_aidl",
"native/CarPowerManager/CarPowerManager.cpp",
],
}