package {
    default_applicable_licenses: ["Android-Apache-2.0"],
}

cc_binary {
    name: "android.hardware.dumpstate-service",
    srcs: [
        "Dumpstate.cpp",
        "service.cpp",
    ],
    init_rc: ["android.hardware.dumpstate-service.rc"],
    vintf_fragments: ["android.hardware.dumpstate-service.xml"],
    cflags: [
        "-Wall",
        "-Werror",
    ],
    shared_libs: [
        "libbase",
        "libbinder_ndk",
        "libcutils",
        "libdumpstateutil",
        "liblog",
        "libutils",
	"libdump",
        "android.hardware.dumpstate-V1-ndk",
    ],
    vendor: true,
    relative_install_path: "hw",
}

cc_library {
    name: "libdump",
    srcs: ["pixel_dump.cpp"],
    vendor_available: true,
    vendor_ramdisk_available: true,
    shared_libs: [
        "libbase",
        "liblog",
    ],
    cflags: [
        "-Wall",
        "-Werror",
    ],

    export_include_dirs: [
        "include",
    ],
}

