Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b17ae522 authored by Zac Iqbal's avatar Zac Iqbal Committed by Android (Google) Code Review
Browse files

Merge "Exposed Android.bp shared library target for libcamera2ndk."

parents 6ae780e4 096ab362
Loading
Loading
Loading
Loading
+39 −0
Original line number Diff line number Diff line
@@ -30,3 +30,42 @@ ndk_headers {
    srcs: ["include/camera/**/*.h"],
    license: "NOTICE",
}

cc_library_shared {
    name: "libcamera2",
    srcs: [
        "NdkCameraManager.cpp",
        "NdkCameraMetadata.cpp",
        "NdkCameraDevice.cpp",
        "NdkCaptureRequest.cpp",
        "NdkCameraCaptureSession.cpp",
        "impl/ACameraManager.cpp",
        "impl/ACameraMetadata.cpp",
        "impl/ACameraDevice.cpp",
        "impl/ACameraCaptureSession.cpp",
    ],
    shared_libs: [
        "libbinder",
        "liblog",
        "libgui",
        "libutils",
        "libandroid_runtime",
        "libcamera_client",
        "libstagefright_foundation",
        "libcutils",
        "libcamera_metadata",
        "libmediandk",
        "libnativewindow",
    ],
    cflags: [
        "-fvisibility=hidden",
        "-DEXPORT=__attribute__ ((visibility (\"default\")))",
        "-Wall",
        "-Wextra",
        "-Werror",
    ],
    export_include_dirs: ["include"],
    export_shared_lib_headers: [
        "libnativewindow",
    ]
}
+2 −0
Original line number Diff line number Diff line
@@ -14,6 +14,8 @@
# limitations under the License.
#

# TODO(b/118434782): Remove this file and change name of the libcamera2
# module in the existing Android.bp file to libcamera2ndk.
LOCAL_PATH:= $(call my-dir)

ifneq ($(TARGET_BUILD_PDK), true)