universal7904: camera: convert to Android.bp

Change-Id: I6d203e6e3d4ecfb2acf4d158ff5affbce6ff3200
diff --git a/hardware/camera/Android.bp b/hardware/camera/Android.bp
new file mode 100644
index 0000000..3941578
--- /dev/null
+++ b/hardware/camera/Android.bp
@@ -0,0 +1,42 @@
+cc_library_shared {
+    name: "camera.exynos7904",
+    relative_install_path: "hw",
+
+    srcs: [
+        "CameraWrapper.cpp",
+        "Camera2Wrapper.cpp",
+        "Camera3Wrapper.cpp",
+        "CallbackWorkerThread.cpp",
+    ],
+
+    export_shared_lib_headers: [
+        "android.hardware.graphics.bufferqueue@1.0",
+        "android.hardware.graphics.bufferqueue@2.0",
+    ],
+
+    generated_headers: [
+        "android.hardware.graphics.bufferqueue@1.0_genc++_headers",
+        "android.hardware.graphics.bufferqueue@2.0_genc++_headers",
+    ],
+
+    shared_libs: [
+        "libhardware",
+        "liblog",
+        "libcamera_client",
+        "libutils",
+        "libcutils",
+        "android.hidl.token@1.0-utils",
+        "android.hardware.graphics.bufferqueue@1.0",
+        "android.hardware.graphics.bufferqueue@2.0",
+    ],
+
+    include_dirs: [
+        "frameworks/native/libs/nativewindow/include",
+        "frameworks/native/libs/arect/include",
+        "frameworks/av/media/ndk/include",
+    ],
+
+    header_libs: [
+        "libnativebase_headers",
+    ],
+}
diff --git a/hardware/camera/Android.mk b/hardware/camera/Android.mk
deleted file mode 100644
index b6c8784..0000000
--- a/hardware/camera/Android.mk
+++ /dev/null
@@ -1,22 +0,0 @@
-LOCAL_PATH := $(call my-dir)
-include $(CLEAR_VARS)
-
-LOCAL_SRC_FILES := \
-    CameraWrapper.cpp \
-    Camera2Wrapper.cpp \
-    Camera3Wrapper.cpp \
-    CallbackWorkerThread.cpp
-
-LOCAL_STATIC_LIBRARIES := libbase libarect
-LOCAL_SHARED_LIBRARIES := \
-    libhardware liblog libcamera_client libutils libcutils \
-    android.hidl.token@1.0-utils \
-    android.hardware.graphics.bufferqueue@1.0
-
-LOCAL_HEADER_LIBRARIES := libnativebase_headers
-
-LOCAL_MODULE_RELATIVE_PATH := hw
-LOCAL_MODULE := camera.exynos7904
-LOCAL_MODULE_TAGS := optional
-
-include $(BUILD_SHARED_LIBRARY)