//
// SPDX-License-Identifier: Apache-2.0
//

cc_binary {
    defaults: ["hidl_defaults"],
    name: "android.hardware.light@2.0-service.xiaomi_sdm660",
    init_rc: ["hidl/android.hardware.light@2.0-service.xiaomi_sdm660.rc"],
    vintf_fragments: ["hidl/android.hardware.light@2.0-service.xiaomi_sdm660.xml"],
    srcs: ["hidl/service.cpp", "hidl/Light.cpp"],
    shared_libs: [
        "libbase",
        "libhidlbase",
        "libutils",
        "android.hardware.light@2.0",
    ],
    relative_install_path : "hw",
    vendor: true,
}

cc_binary {
    name: "android.hardware.lights-service.xiaomi_sdm660",
    relative_install_path: "hw",
    init_rc: ["aidl/android.hardware.lights.xiaomi_sdm660.rc"],
    vintf_fragments: ["aidl/android.hardware.lights.xiaomi_sdm660.xml"],
    vendor: true,
    shared_libs: [
        "libbase",
        "liblog",
        "libhardware",
        "libbinder_ndk",
        "android.hardware.light-V1-ndk",
    ],
    srcs: [
        "aidl/Lights.cpp",
        "aidl/main.cpp",
    ],
}
