cc_library_shared {
    name: "libsurfacereplayer",
    clang: true,
    srcs: [
        "BufferQueueScheduler.cpp",
        "Event.cpp",
        "Replayer.cpp",
    ],
    cppflags: [
        "-Werror",
        "-Wno-unused-parameter",
        "-Wno-format",
	"-Wno-c++98-compat-pedantic",
	"-Wno-float-conversion",
	"-Wno-disabled-macro-expansion",
	"-Wno-float-equal",
	"-Wno-sign-conversion",
	"-Wno-padded",
	"-std=c++14",
    ],
    static_libs: [
        "libtrace_proto",
    ],
    shared_libs: [
        "libEGL",
        "libGLESv2",
        "libbinder",
        "liblog",
        "libcutils",
        "libgui",
        "libui",
        "libutils",
        "libprotobuf-cpp-lite",
        "libbase",
        "libnativewindow",
    ],
    export_include_dirs: [
        ".",
    ],
}

cc_binary {
    name: "surfacereplayer",
    clang: true,
    srcs: [
        "Main.cpp",
    ],
    shared_libs: [
        "libprotobuf-cpp-lite",
        "libsurfacereplayer",
        "libutils",
        "libgui",
    ],
    static_libs: [
        "libtrace_proto",
    ],
    cppflags: [
        "-Werror",
        "-Wno-unused-parameter",
	"-Wno-c++98-compat-pedantic",
	"-Wno-float-conversion",
	"-Wno-disabled-macro-expansion",
	"-Wno-float-equal",
	"-std=c++14",
    ],
}