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: m
Change-Id: I5fb25124a26f190c462e2e60fc75a88d48643c10
gugelfrei
Dan Willemsen 6 years ago
parent 5ae7d9b0ad
commit faeab0faa7

@ -86,6 +86,7 @@ filegroup {
"aidl/android/hardware/camera2/ICameraDeviceCallbacks.aidl",
"aidl/android/hardware/camera2/ICameraDeviceUser.aidl",
],
path: "aidl",
}
// Extra AIDL files that are used by framework.jar but not libcamera_client
@ -96,4 +97,5 @@ filegroup {
"aidl/android/hardware/ICamera.aidl",
"aidl/android/hardware/ICameraClient.aidl",
],
path: "aidl",
}

@ -42,7 +42,7 @@ cc_library_shared {
// AIDL files for audioclient interfaces
// The headers for these interfaces will be available to any modules that
// include libaudioclient, at the path "aidl/package/path/BnFoo.h"
"aidl/android/media/IAudioRecord.aidl",
":libaudioclient_aidl_private",
":libaudioclient_aidl",
"AudioEffect.cpp",
@ -110,4 +110,15 @@ filegroup {
srcs: [
"aidl/android/media/IPlayer.aidl",
],
path: "aidl",
}
// Used to strip the "aidl/" from the path, so the build system can predict the
// output filename.
filegroup {
name: "libaudioclient_aidl_private",
srcs: [
"aidl/android/media/IAudioRecord.aidl",
],
path: "aidl",
}

@ -47,6 +47,15 @@ cc_library {
clang: true,
}
filegroup {
name: "libmedia_omx_aidl",
srcs: [
"aidl/android/IGraphicBufferSource.aidl",
"aidl/android/IOMXBufferSource.aidl",
],
path: "aidl",
}
cc_library_shared {
name: "libmedia_omx",
vendor_available: true,
@ -56,8 +65,7 @@ cc_library_shared {
double_loadable: true,
srcs: [
"aidl/android/IGraphicBufferSource.aidl",
"aidl/android/IOMXBufferSource.aidl",
":libmedia_omx_aidl",
"IMediaCodecList.cpp",
"IOMX.cpp",

Loading…
Cancel
Save