Migrate driver/profiler to test/vts-testcase/hal.
Bug: 34893894
Test: mmma hardware/interfaces
Change-Id: Ic72716577a5f93700c5056986aff55a76b170b5d
diff --git a/camera/device/3.2/Android.bp b/camera/device/3.2/Android.bp
index 7c740ae..1bc11ed 100644
--- a/camera/device/3.2/Android.bp
+++ b/camera/device/3.2/Android.bp
@@ -1,5 +1,15 @@
// This file is autogenerated by hidl-gen. Do not edit manually.
+filegroup {
+ name: "android.hardware.camera.device@3.2_hal",
+ srcs: [
+ "types.hal",
+ "ICameraDevice.hal",
+ "ICameraDeviceCallback.hal",
+ "ICameraDeviceSession.hal",
+ ],
+}
+
genrule {
name: "android.hardware.camera.device@3.2_genc++",
tools: ["hidl-gen"],
@@ -76,131 +86,3 @@
"android.hidl.base@1.0",
],
}
-
-genrule {
- name: "android.hardware.camera.device.vts.driver@3.2_genc++",
- tools: ["hidl-gen", "vtsc"],
- cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.camera.device@3.2 && $(location vtsc) -mDRIVER -tSOURCE -b$(genDir) android/hardware/camera/device/3.2/ $(genDir)/android/hardware/camera/device/3.2/",
- srcs: [
- "types.hal",
- "ICameraDevice.hal",
- "ICameraDeviceCallback.hal",
- "ICameraDeviceSession.hal",
- ],
- out: [
- "android/hardware/camera/device/3.2/types.vts.cpp",
- "android/hardware/camera/device/3.2/CameraDevice.vts.cpp",
- "android/hardware/camera/device/3.2/CameraDeviceCallback.vts.cpp",
- "android/hardware/camera/device/3.2/CameraDeviceSession.vts.cpp",
- ],
-}
-
-genrule {
- name: "android.hardware.camera.device.vts.driver@3.2_genc++_headers",
- tools: ["hidl-gen", "vtsc"],
- cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.camera.device@3.2 && $(location vtsc) -mDRIVER -tHEADER -b$(genDir) android/hardware/camera/device/3.2/ $(genDir)/android/hardware/camera/device/3.2/",
- srcs: [
- "types.hal",
- "ICameraDevice.hal",
- "ICameraDeviceCallback.hal",
- "ICameraDeviceSession.hal",
- ],
- out: [
- "android/hardware/camera/device/3.2/types.vts.h",
- "android/hardware/camera/device/3.2/CameraDevice.vts.h",
- "android/hardware/camera/device/3.2/CameraDeviceCallback.vts.h",
- "android/hardware/camera/device/3.2/CameraDeviceSession.vts.h",
- ],
-}
-
-cc_library_shared {
- name: "android.hardware.camera.device.vts.driver@3.2",
- generated_sources: ["android.hardware.camera.device.vts.driver@3.2_genc++"],
- generated_headers: ["android.hardware.camera.device.vts.driver@3.2_genc++_headers"],
- export_generated_headers: ["android.hardware.camera.device.vts.driver@3.2_genc++_headers"],
- shared_libs: [
- "libhidlbase",
- "libhidltransport",
- "libhwbinder",
- "liblog",
- "libutils",
- "libcutils",
- "libvts_common",
- "libvts_datatype",
- "libvts_measurement",
- "libvts_multidevice_proto",
- "libcamera_metadata",
- "libprotobuf-cpp-full",
- "android.hardware.camera.common@1.0",
- "android.hardware.graphics.allocator@2.0",
- "android.hardware.graphics.common@1.0",
- "android.hidl.base@1.0",
- "android.hardware.camera.device@3.2",
- ],
- export_shared_lib_headers: [
- "libhidlbase",
- "libhidltransport",
- "libhwbinder",
- "libutils",
- "android.hardware.camera.common@1.0",
- "android.hardware.graphics.allocator@2.0",
- "android.hardware.graphics.common@1.0",
- "android.hidl.base@1.0",
- ],
-}
-
-genrule {
- name: "android.hardware.camera.device@3.2-vts.profiler_genc++",
- tools: ["hidl-gen", "vtsc"],
- cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.camera.device@3.2 && $(location vtsc) -mPROFILER -tSOURCE -b$(genDir) android/hardware/camera/device/3.2/ $(genDir)/android/hardware/camera/device/3.2/",
- srcs: [
- "types.hal",
- "ICameraDevice.hal",
- "ICameraDeviceCallback.hal",
- "ICameraDeviceSession.hal",
- ],
- out: [
- "android/hardware/camera/device/3.2/types.vts.cpp",
- "android/hardware/camera/device/3.2/CameraDevice.vts.cpp",
- "android/hardware/camera/device/3.2/CameraDeviceCallback.vts.cpp",
- "android/hardware/camera/device/3.2/CameraDeviceSession.vts.cpp",
- ],
-}
-
-genrule {
- name: "android.hardware.camera.device@3.2-vts.profiler_genc++_headers",
- tools: ["hidl-gen", "vtsc"],
- cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.camera.device@3.2 && $(location vtsc) -mPROFILER -tHEADER -b$(genDir) android/hardware/camera/device/3.2/ $(genDir)/android/hardware/camera/device/3.2/",
- srcs: [
- "types.hal",
- "ICameraDevice.hal",
- "ICameraDeviceCallback.hal",
- "ICameraDeviceSession.hal",
- ],
- out: [
- "android/hardware/camera/device/3.2/types.vts.h",
- "android/hardware/camera/device/3.2/CameraDevice.vts.h",
- "android/hardware/camera/device/3.2/CameraDeviceCallback.vts.h",
- "android/hardware/camera/device/3.2/CameraDeviceSession.vts.h",
- ],
-}
-
-cc_library_shared {
- name: "android.hardware.camera.device@3.2-vts.profiler",
- generated_sources: ["android.hardware.camera.device@3.2-vts.profiler_genc++"],
- generated_headers: ["android.hardware.camera.device@3.2-vts.profiler_genc++_headers"],
- export_generated_headers: ["android.hardware.camera.device@3.2-vts.profiler_genc++_headers"],
- shared_libs: [
- "libbase",
- "libhidlbase",
- "libhidltransport",
- "libvts_profiling",
- "libvts_multidevice_proto",
- "libprotobuf-cpp-full",
- "android.hardware.camera.common@1.0",
- "android.hardware.graphics.allocator@2.0",
- "android.hardware.graphics.common@1.0",
- "android.hidl.base@1.0",
- "android.hardware.camera.device@3.2",
- ],
-}