// intbufq

cc_test {
    name: "slesTest_intbufq",
    gtest: false,

    srcs: [
        "intbufq.c",
        "getch.c",
    ],

    shared_libs: [
        "liblog",
        "libOpenSLES",
    ],

    cflags: [
        "-Werror",
        "-Wall",

        "-UNDEBUG",
    ],
}

// multiplay

cc_test {
    name: "slesTest_multiplay",
    gtest: false,

    srcs: ["multiplay.c"],

    shared_libs: [
        "liblog",
        "libOpenSLES",
    ],

    cflags: [
        "-Werror",
        "-Wall",

        "-UNDEBUG",
    ],

}

// engine

cc_test {
    name: "slesTest_engine",
    gtest: false,

    srcs: ["engine.c"],

    shared_libs: [
        "liblog",
        "libOpenSLES",
        "libOpenMAXAL",
    ],

    static_libs: [
        "libOpenSLESUT",
        "liblog",
    ],

    cflags: [
        "-Werror",
        "-Wall",

        "-UNDEBUG",
    ],
}

// object

cc_test {
    name: "slesTest_object",
    gtest: false,

    srcs: ["object.c"],

    shared_libs: [
        "liblog",
        "libOpenSLES",
        "libOpenMAXAL",
    ],

    static_libs: [
        "libOpenSLESUT",
        "liblog",
    ],

    cflags: [
        "-Werror",
        "-Wall",

        "-UNDEBUG",
    ],
}

// configbq

cc_test {
    name: "slesTest_configbq",
    gtest: false,

    srcs: ["configbq.c"],

    shared_libs: [
        "liblog",
        "libOpenSLES",
    ],

    cflags: [
        "-Werror",
        "-Wall",

        "-UNDEBUG",
    ],
}

// reverb

cc_test {
    name: "slesTest_reverb",
    gtest: false,

    srcs: ["reverb.c"],

    shared_libs: [
        "liblog",
        "libOpenSLES",
    ],

    static_libs: [
        "libOpenSLESUT",
        "liblog",
    ],

    cflags: [
        "-Werror",
        "-Wall",

        "-UNDEBUG",
    ],
}

// srcsink

cc_test {
    name: "slesTest_srcsink",
    gtest: false,

    srcs: ["srcsink.c"],

    shared_libs: [
        "liblog",
        "libOpenSLES",
    ],

    static_libs: [
        "libOpenSLESUT",
        "liblog",
    ],

    cflags: [
        "-Werror",
        "-Wall",

        "-UNDEBUG",
    ],
}

// outputmix

cc_test {
    name: "slesTest_outputmix",
    gtest: false,

    srcs: ["outputmix.c"],

    shared_libs: [
        "liblog",
        "libOpenSLES",
        "libOpenMAXAL",
    ],

    static_libs: [
        "libOpenSLESUT",
        "liblog",
    ],

    cflags: [
        "-Werror",
        "-Wall",

        "-UNDEBUG",
    ],
}

// urimime

cc_test {
    name: "slesTest_urimime",
    gtest: false,

    srcs: ["urimime.c"],

    shared_libs: [
        "liblog",
        "libOpenSLES",
        "libOpenMAXAL",
    ],

    static_libs: [
        "libOpenSLESUT",
        "liblog",
    ],

    cflags: [
        "-Werror",
        "-Wall",

        "-UNDEBUG",
    ],
}

// dim

cc_test {
    name: "slesTest_dim",
    gtest: false,

    srcs: ["dim.c"],

    shared_libs: [
        "liblog",
        "libOpenSLES",
        "libOpenMAXAL",
    ],

    static_libs: [
        "libOpenSLESUT",
        "liblog",
    ],

    cflags: [
        "-Werror",
        "-Wall",

        "-UNDEBUG",
    ],
}

// multithread

cc_test {
    name: "slesTest_multithread",
    gtest: false,

    srcs: ["multithread.c"],

    shared_libs: [
        "liblog",
        "libOpenSLES",
        "libOpenMAXAL",
    ],

    static_libs: [
        "libOpenSLESUT",
        "liblog",
    ],

    cflags: [
        "-Werror",
        "-Wall",

        "-UNDEBUG",
    ],
}

// playbq

cc_test {
    name: "slesTest_playbq",
    gtest: false,

    srcs: ["playbq.cpp"],

    shared_libs: [
        "libaudioutils",
        "libnbaio",
        "liblog",
        "libOpenSLES",
        "libOpenMAXAL",
    ],

    static_libs: [
        "libOpenSLESUT",
        "libsndfile",
        "liblog",
    ],

    cflags: [
        "-Werror",
        "-Wall",

        "-UNDEBUG",
    ],
}

// monkey

cc_test {
    name: "slesTest_monkey",
    gtest: false,

    srcs: ["monkey.c"],

    shared_libs: [
        "liblog",
        "libOpenSLES",
        "libOpenMAXAL",
    ],

    static_libs: [
        "libOpenSLESUT",
        "liblog",
    ],

    cflags: [
        "-Werror",
        "-Wall",

        "-UNDEBUG",
    ],
}

// xa

cc_test {
    name: "slesTest_xa",
    gtest: false,

    srcs: ["xa.c"],

    shared_libs: [
        "liblog",
        "libOpenMAXAL",
    ],

    static_libs: [
        "libOpenSLESUT",
        "liblog",
    ],

    cflags: [
        "-Werror",
        "-Wall",

        "-UNDEBUG",
    ],
}

// dual

cc_test {
    name: "slesTest_dual",
    gtest: false,

    srcs: ["dual.c"],

    shared_libs: [
        "liblog",
        "libOpenSLES",
        "libOpenMAXAL",
    ],

    static_libs: [
        "libOpenSLESUT",
        "liblog",
    ],

    cflags: [
        "-Werror",
        "-Wall",

        "-UNDEBUG",
    ],
}

// xaplay

cc_test {
    name: "slesTest_xaplay",
    gtest: false,

    srcs: [
        "xaplay.c",
        "nativewindow.cpp",
    ],

    shared_libs: [
        "libutils",
        "liblog",
        "libOpenMAXAL",
        "libui",
        "libgui",
        "libbinder",
        "libandroid",
    ],

    static_libs: [
        "libOpenSLESUT",
        "liblog",
    ],

    cflags: [
        "-UNDEBUG",
        "-Wall",
        "-Wextra",
        "-Werror",
    ],
}

subdirs = ["streamSource"]