From 6bf135b03e58c8b6399df2937358242977c77b2b Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Tue, 14 Nov 2017 13:05:37 -0800 Subject: [PATCH] Export AIDL files as a filegroup for framework.jar Put AIDL files into a filegroup so they can be imported as sources for framework.jar. Bug: 69917341 Test: m checkbuild Change-Id: Ia500ff881bcc8d4a6f0aa66e12d9e6bb5a07ecc1 --- camera/Android.bp | 29 +++++++++++++++++++++++------ media/libaudioclient/Android.bp | 10 +++++++++- 2 files changed, 32 insertions(+), 7 deletions(-) diff --git a/camera/Android.bp b/camera/Android.bp index c76ae507fd..24b391856d 100644 --- a/camera/Android.bp +++ b/camera/Android.bp @@ -29,12 +29,7 @@ cc_library_shared { // AIDL files for camera interfaces // The headers for these interfaces will be available to any modules that // include libcamera_client, at the path "aidl/package/path/BnFoo.h" - "aidl/android/hardware/ICameraService.aidl", - "aidl/android/hardware/ICameraServiceListener.aidl", - "aidl/android/hardware/ICameraServiceProxy.aidl", - "aidl/android/hardware/camera2/ICameraDeviceCallbacks.aidl", - "aidl/android/hardware/camera2/ICameraDeviceUser.aidl", - + ":libcamera_client_aidl", // Source for camera interface parcelables, and manually-written interfaces "Camera.cpp", @@ -81,3 +76,25 @@ cc_library_shared { ], } + +// AIDL interface between camera clients and the camera service. +filegroup { + name: "libcamera_client_aidl", + srcs: [ + "aidl/android/hardware/ICameraService.aidl", + "aidl/android/hardware/ICameraServiceListener.aidl", + "aidl/android/hardware/ICameraServiceProxy.aidl", + "aidl/android/hardware/camera2/ICameraDeviceCallbacks.aidl", + "aidl/android/hardware/camera2/ICameraDeviceUser.aidl", + ], +} + +// Extra AIDL files that are used by framework.jar but not libcamera_client +// because they have hand-written native implementations. +filegroup { + name: "libcamera_client_framework_aidl", + srcs: [ + "aidl/android/hardware/ICamera.aidl", + "aidl/android/hardware/ICameraClient.aidl", + ], +} diff --git a/media/libaudioclient/Android.bp b/media/libaudioclient/Android.bp index 98e8d95a0e..bedde4364d 100644 --- a/media/libaudioclient/Android.bp +++ b/media/libaudioclient/Android.bp @@ -20,7 +20,7 @@ cc_library_shared { // 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", - "aidl/android/media/IPlayer.aidl", + ":libaudioclient_aidl", "AudioEffect.cpp", "AudioPolicy.cpp", @@ -70,3 +70,11 @@ cc_library_shared { ], }, } + +// AIDL interface between libaudioclient and framework.jar +filegroup { + name: "libaudioclient_aidl", + srcs: [ + "aidl/android/media/IPlayer.aidl", + ], +}