cc_binary {
    name: "codec2",
    defaults: ["libstagefright_codec2-impl-defaults"],

    srcs: [
        "codec2.cpp",
    ],

    include_dirs: [
    ],

    shared_libs: [
        "libbase",
        "libbinder",
        "libcutils",
        "libgui",
        "liblog",
        "libmediaextractor",
        "libstagefright",
        "libstagefright_foundation",
        "libui",
        "libutils",
    ],

    cflags: [
        "-Werror",
        "-Wall",
        "-std=c++14",
    ],

    sanitize: {
        cfi: true,
        misc_undefined: [
            "unsigned-integer-overflow",
            "signed-integer-overflow",
        ],
        diag: {
            cfi: true,
        },
    },
}