cameraservice_test: Create host-side build.
Some tests can run on the host. This patch creates a new build on the
host with the ExifUtilsTest only. Additional tests will be added in
future patches.
Bug: 207411352
Test: Ran test on gLinux.
Change-Id: Ia1c04f1987b65f93519bacda98bafed1881f2386
diff --git a/services/camera/libcameraservice/tests/Android.bp b/services/camera/libcameraservice/tests/Android.bp
index 5b8264c..fbe1f41 100644
--- a/services/camera/libcameraservice/tests/Android.bp
+++ b/services/camera/libcameraservice/tests/Android.bp
@@ -74,4 +74,41 @@
test_suites: ["device-tests"],
+}
+
+cc_test_host {
+ name: "cameraservice_test_host",
+
+ include_dirs: [
+ "frameworks/av/camera/include",
+ "frameworks/av/camera/include/camera",
+ ],
+
+ shared_libs: [
+ "libbase",
+ "libbinder",
+ "libcamera_metadata",
+ "libexif",
+ "liblog",
+ "libutils",
+ ],
+
+ static_libs: [
+ "libcamera_client_host",
+ "libcameraservice_host",
+ "libgmock",
+ ],
+
+ srcs: [
+ "ExifUtilsTest.cpp",
+ ],
+
+ cflags: [
+ "-Wall",
+ "-Wextra",
+ "-Werror",
+ ],
+
+ test_suites: ["device-tests"],
+
}
\ No newline at end of file