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

Commit e3f15764 authored by Zachary Iqbal's avatar Zachary Iqbal Committed by android-build-merger
Browse files

Merge "Exposed Android.bp shared library target for libcamera2ndki (cherrypick)"

am: 8504f3a7

Change-Id: I321cef2e6a6a690d192ebbb900f314bea5ee48e6
parents 877e8725 8504f3a7
Loading
Loading
Loading
Loading
+40 −0
Original line number Diff line number Diff line
@@ -30,3 +30,43 @@ 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",
    ],
    cflags: [
        "-fvisibility=hidden",
        "-DEXPORT=__attribute__ ((visibility (\"default\")))",
        "-Wall",
        "-Wextra",
        "-Werror",
    ],
    export_include_dirs: ["include"],
    product_variables: {
        pdk: {
            enabled: false,
        },
    },
}
+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)