//
// Automatically generated file. DO NOT MODIFY
//

soong_namespace {
    imports: [
        "device/xiaomi/klee-miuicamera",
        "vendor/xiaomi/klee",
    ],
}

cc_prebuilt_library_shared {
    name: "vendor.xiaomi.hardware.misys.common-V3-ndk",
    owner: "xiaomi",
    strip: {
        none: true,
    },
    target: {
        android_arm64: {
            srcs: [
                "proprietary/vendor/lib64/vendor.xiaomi.hardware.misys.common-V3-ndk.so",
            ],
            shared_libs: [
                "libbinder_ndk",
                "libc++",
                "libc",
                "libm",
                "libdl",
            ],
        },
    },
    compile_multilib: "64",
    prefer: true,
    soc_specific: true,
}

cc_prebuilt_library_shared {
    name: "vendor.xiaomi.hardware.mtkblackbox-V3-ndk",
    owner: "xiaomi",
    strip: {
        none: true,
    },
    target: {
        android_arm64: {
            srcs: [
                "proprietary/vendor/lib64/vendor.xiaomi.hardware.mtkblackbox-V3-ndk.so",
            ],
            shared_libs: [
                "libbinder_ndk",
                "libc++",
                "libc",
                "libm",
                "libdl",
            ],
        },
    },
    compile_multilib: "64",
    prefer: true,
    soc_specific: true,
}

cc_prebuilt_library_shared {
    name: "libmisys_jni.xiaomi",
    owner: "xiaomi",
    strip: {
        none: true,
    },
    target: {
        android_arm: {
            srcs: [
                "proprietary/system_ext/lib/libmisys_jni.xiaomi.so",
            ],
            shared_libs: [
                "liblog",
                "libutils",
                "libcutils",
                "libnativehelper",
                "libhidlmemory",
                "libhidlbase",
                "libhidltransport",
                "android.hidl.memory@1.0",
                "android.hidl.allocator@1.0",
                "vendor.xiaomi.hardware.misys@1.0",
                "vendor.xiaomi.hardware.misys@3.0",
                "libc++",
                "libc",
                "libm",
                "libdl",
            ],
        },
        android_arm64: {
            srcs: [
                "proprietary/system_ext/lib64/libmisys_jni.xiaomi.so",
            ],
            shared_libs: [
                "liblog",
                "libutils",
                "libcutils",
                "libnativehelper",
                "libhidlmemory",
                "libhidlbase",
                "libhidltransport",
                "android.hidl.memory@1.0",
                "android.hidl.allocator@1.0",
                "vendor.xiaomi.hardware.misys@1.0",
                "vendor.xiaomi.hardware.misys@3.0",
                "libc++",
                "libc",
                "libm",
                "libdl",
            ],
        },
    },
    compile_multilib: "both",
    prefer: true,
    system_ext_specific: true,
}

cc_prebuilt_library_shared {
    name: "vendor.xiaomi.hardware.misys@1.0",
    owner: "xiaomi",
    strip: {
        none: true,
    },
    target: {
        android_arm: {
            srcs: [
                "proprietary/system_ext/lib/vendor.xiaomi.hardware.misys@1.0.so",
            ],
            shared_libs: [
                "libhidlbase",
                "liblog",
                "libutils",
                "libcutils",
                "libc++",
                "libc",
                "libm",
                "libdl",
            ],
        },
        android_arm64: {
            srcs: [
                "proprietary/system_ext/lib64/vendor.xiaomi.hardware.misys@1.0.so",
            ],
            shared_libs: [
                "libhidlbase",
                "liblog",
                "libutils",
                "libcutils",
                "libc++",
                "libc",
                "libm",
                "libdl",
            ],
        },
    },
    compile_multilib: "both",
    prefer: true,
    system_ext_specific: true,
}

cc_prebuilt_library_shared {
    name: "vendor.xiaomi.hardware.misys@3.0",
    owner: "xiaomi",
    strip: {
        none: true,
    },
    target: {
        android_arm: {
            srcs: [
                "proprietary/system_ext/lib/vendor.xiaomi.hardware.misys@3.0.so",
            ],
            shared_libs: [
                "android.hidl.allocator@1.0",
                "android.hidl.memory.block@1.0",
                "android.hidl.memory.token@1.0",
                "vendor.xiaomi.hardware.misys@1.0",
                "libhidlbase",
                "liblog",
                "libutils",
                "libcutils",
                "libc++",
                "libc",
                "libm",
                "libdl",
            ],
        },
        android_arm64: {
            srcs: [
                "proprietary/system_ext/lib64/vendor.xiaomi.hardware.misys@3.0.so",
            ],
            shared_libs: [
                "android.hidl.allocator@1.0",
                "android.hidl.memory.block@1.0",
                "android.hidl.memory.token@1.0",
                "vendor.xiaomi.hardware.misys@1.0",
                "libhidlbase",
                "liblog",
                "libutils",
                "libcutils",
                "libc++",
                "libc",
                "libm",
                "libdl",
            ],
        },
    },
    compile_multilib: "both",
    prefer: true,
    system_ext_specific: true,
}

cc_prebuilt_library_shared {
    name: "libcamera_algoup_jni.xiaomi",
    owner: "xiaomi",
    strip: {
        none: true,
    },
    target: {
        android_arm64: {
            srcs: [
                "proprietary/system_ext/lib64/libcamera_algoup_jni.xiaomi.so",
            ],
            shared_libs: [
                "libgui_shim_miuicamera",
                "libbinder",
                "libcamera_client",
                "libcamera_metadata",
                "libcutils",
                "libgui",
                "liblog",
                "libutils",
                "libvndksupport",
                "libc++",
                "libc",
                "libm",
                "libdl",
            ],
        },
    },
    compile_multilib: "64",
    prefer: true,
    system_ext_specific: true,
}

cc_prebuilt_library_shared {
    name: "libcamera_ispinterface_jni.xiaomi",
    owner: "xiaomi",
    strip: {
        none: true,
    },
    target: {
        android_arm64: {
            srcs: [
                "proprietary/system_ext/lib64/libcamera_ispinterface_jni.xiaomi.so",
            ],
            shared_libs: [
                "libgui_shim_miuicamera",
                "libandroid_runtime",
                "libbinder",
                "libcamera_client",
                "libcamera_metadata",
                "libcutils",
                "libgui",
                "libhidlbase",
                "libhidltransport",
                "liblog",
                "libmedia",
                "libnativehelper",
                "libui",
                "libutils",
                "libvndksupport",
                "vendor.mediatek.hardware.camera.isphal@1.0-system_ext",
                "vendor.mediatek.hardware.camera.isphal-V1-ndk-system_ext",
                "libbinder_ndk",
                "libmtkisp_metadata_sys",
                "libc++",
                "libc",
                "libm",
                "libdl",
            ],
        },
    },
    compile_multilib: "64",
    prefer: true,
    system_ext_specific: true,
}

cc_prebuilt_library_shared {
    name: "libcamera_mianode_jni.xiaomi",
    owner: "xiaomi",
    strip: {
        none: true,
    },
    target: {
        android_arm64: {
            srcs: [
                "proprietary/system_ext/lib64/libcamera_mianode_jni.xiaomi.so",
            ],
            shared_libs: [
                "libgui_shim_miuicamera",
                "libbinder",
                "libcamera_client",
                "libcamera_metadata",
                "libcutils",
                "libgui",
                "liblog",
                "libutils",
                "libvndksupport",
                "libxml2",
                "libc++",
                "libc",
                "libm",
                "libdl",
            ],
        },
    },
    compile_multilib: "64",
    prefer: true,
    system_ext_specific: true,
}

cc_prebuilt_library_shared {
    name: "libmtkisp_metadata_sys",
    owner: "xiaomi",
    strip: {
        none: true,
    },
    target: {
        android_arm64: {
            srcs: [
                "proprietary/system_ext/lib64/libmtkisp_metadata_sys.so",
            ],
            shared_libs: [
                "libui",
                "liblog",
                "libutils",
                "libc++",
                "libc",
                "libm",
                "libdl",
            ],
        },
    },
    compile_multilib: "64",
    prefer: true,
    system_ext_specific: true,
}

cc_prebuilt_library_shared {
    name: "vendor.mediatek.hardware.camera.isphal-V1-ndk-system_ext",
    stem: "vendor.mediatek.hardware.camera.isphal-V1-ndk",
    owner: "xiaomi",
    strip: {
        none: true,
    },
    target: {
        android_arm64: {
            srcs: [
                "proprietary/system_ext/lib64/vendor.mediatek.hardware.camera.isphal-V1-ndk.so",
            ],
            shared_libs: [
                "libbinder_ndk",
                "android.hardware.common-V2-ndk",
                "android.hardware.graphics.common-V7-ndk",
                "libc++",
                "libc",
                "libm",
                "libdl",
            ],
        },
    },
    compile_multilib: "64",
    prefer: true,
    system_ext_specific: true,
}

cc_prebuilt_library_shared {
    name: "vendor.mediatek.hardware.camera.isphal@1.0-system_ext",
    stem: "vendor.mediatek.hardware.camera.isphal@1.0",
    owner: "xiaomi",
    strip: {
        none: true,
    },
    target: {
        android_arm64: {
            srcs: [
                "proprietary/system_ext/lib64/vendor.mediatek.hardware.camera.isphal@1.0.so",
            ],
            shared_libs: [
                "android.hardware.graphics.common@1.0",
                "android.hardware.graphics.common@1.1",
                "libhidlbase",
                "liblog",
                "libutils",
                "libcutils",
                "libc++",
                "libc",
                "libm",
                "libdl",
            ],
        },
    },
    compile_multilib: "64",
    prefer: true,
    system_ext_specific: true,
}

cc_prebuilt_library_shared {
    name: "vendor.xiaomi.hardware.misys.common-V3-ndk-system_ext",
    stem: "vendor.xiaomi.hardware.misys.common-V3-ndk",
    owner: "xiaomi",
    strip: {
        none: true,
    },
    target: {
        android_arm64: {
            srcs: [
                "proprietary/system_ext/lib64/vendor.xiaomi.hardware.misys.common-V3-ndk.so",
            ],
            shared_libs: [
                "libbinder_ndk",
                "libc++",
                "libc",
                "libm",
                "libdl",
            ],
        },
    },
    compile_multilib: "64",
    prefer: true,
    system_ext_specific: true,
}

cc_prebuilt_library_shared {
    name: "vendor.xiaomi.hardware.misys.core-V1-ndk-system_ext",
    stem: "vendor.xiaomi.hardware.misys.core-V1-ndk",
    owner: "xiaomi",
    strip: {
        none: true,
    },
    target: {
        android_arm64: {
            srcs: [
                "proprietary/system_ext/lib64/vendor.xiaomi.hardware.misys.core-V1-ndk.so",
            ],
            shared_libs: [
                "libbinder_ndk",
                "libc++",
                "libc",
                "libm",
                "libdl",
            ],
        },
    },
    compile_multilib: "64",
    prefer: true,
    system_ext_specific: true,
}

android_app_import {
    name: "MiuiCamera",
    owner: "xiaomi",
    apk: "proprietary/system_ext/priv-app/MiuiCamera/MiuiCamera.apk",
    overrides: [
        "Aperture",
    ],
    certificate: "platform",
    dex_preopt: {
        enabled: false,
    },
    privileged: true,
    system_ext_specific: true,
}

dex_import {
    name: "mediatek-framework",
    owner: "xiaomi",
    jars: [
        "proprietary/system/framework/mediatek-framework.jar",
    ],
}

dex_import {
    name: "vendor.xiaomi.hardware.misys-V1.0-java",
    owner: "xiaomi",
    jars: [
        "proprietary/system_ext/framework/vendor.xiaomi.hardware.misys-V1.0-java.jar",
    ],
    system_ext_specific: true,
}

dex_import {
    name: "vendor.xiaomi.hardware.misys-V2.0-java",
    owner: "xiaomi",
    jars: [
        "proprietary/system_ext/framework/vendor.xiaomi.hardware.misys-V2.0-java.jar",
    ],
    system_ext_specific: true,
}

dex_import {
    name: "vendor.xiaomi.hardware.misys-V4.0-java",
    owner: "xiaomi",
    jars: [
        "proprietary/system_ext/framework/vendor.xiaomi.hardware.misys-V4.0-java.jar",
    ],
    system_ext_specific: true,
}

dex_import {
    name: "vendor.xiaomi.hardware.misys.V3_0",
    owner: "xiaomi",
    jars: [
        "proprietary/system_ext/framework/vendor.xiaomi.hardware.misys.V3_0.jar",
    ],
    system_ext_specific: true,
}

dex_import {
    name: "vendor.xiaomi.hardware.misys.common-V2-java",
    owner: "xiaomi",
    jars: [
        "proprietary/system_ext/framework/vendor.xiaomi.hardware.misys.common-V2-java.jar",
    ],
    system_ext_specific: true,
}

prebuilt_etc_xml {
    name: "vendor.xiaomi.hardware.misys.common.xml",
    owner: "xiaomi",
    src: "proprietary/vendor/etc/vintf/manifest/vendor.xiaomi.hardware.misys.common.xml",
    filename_from_src: true,
    sub_dir: "vintf/manifest",
    soc_specific: true,
}

prebuilt_etc_xml {
    name: "vendor.xiaomi.hardware.misys.core.xml",
    owner: "xiaomi",
    src: "proprietary/vendor/etc/vintf/manifest/vendor.xiaomi.hardware.misys.core.xml",
    filename_from_src: true,
    sub_dir: "vintf/manifest",
    soc_specific: true,
}

cc_prebuilt_binary {
    name: "vendor.xiaomi.hardware.misys.core-service",
    owner: "xiaomi",
    target: {
        android_arm64: {
            srcs: [
                "proprietary/vendor/bin/hw/vendor.xiaomi.hardware.misys.core-service",
            ],
            shared_libs: [
                "libbase",
                "liblog",
                "libutils",
                "libbinder_ndk",
                "vendor.xiaomi.hardware.misys.core-V1-ndk",
                "libc++",
                "libc",
                "libm",
                "libdl",
            ],
        },
    },
    compile_multilib: "64",
    strip: {
        none: true,
    },
    prefer: true,
    relative_install_path: "hw",
    soc_specific: true,
}

cc_prebuilt_binary {
    name: "hypsys_vendor",
    owner: "xiaomi",
    target: {
        android_arm64: {
            srcs: [
                "proprietary/vendor/bin/hypsys_vendor",
            ],
            shared_libs: [
                "libc",
                "libssl",
                "vendor.xiaomi.hardware.mtkblackbox-V3-ndk",
                "libmisight",
                "libcutils",
                "libcrypto",
                "libz",
                "libbase",
                "liblog",
                "libutils",
                "libbinder_ndk",
                "libjsoncpp",
                "vendor.xiaomi.hardware.misys.core-V1-ndk",
                "vendor.xiaomi.hardware.misys.common-V3-ndk",
                "xiaomi.system.hypsys.common-V1-ndk",
                "libc++",
                "libm",
                "libdl",
            ],
        },
    },
    compile_multilib: "64",
    strip: {
        none: true,
    },
    prefer: true,
    soc_specific: true,
}
