1# File: BUILD
2
3# Interface Library
4cc_library(
5    name = "gfxstream_utils_headers",
6    hdrs = glob(["include/**/*.h"]),
7    includes = ["include"],
8    visibility = ["//visibility:public"],
9    deps = [
10        "//hardware/google/aemu/base:aemu-base-headers",
11        "//hardware/google/aemu/host-common:aemu-host-common-headers",
12        "//hardware/google/gfxstream/common/vulkan:gfxstream_vulkan_headers",
13        "//hardware/google/gfxstream/third-party/renderdoc",
14    ],
15)
16
17cc_library(
18    name = "gfxstream_utils",
19    srcs = ["GfxApiLogger.cpp"],
20    copts = ["-fno-exceptions"],
21    visibility = ["//visibility:public"],
22    deps = [":gfxstream_utils_headers"],
23)
24
25# Conditional Executable (Test target)
26cc_test(
27    name = "gfxstream_utils_unittests",
28    srcs = [
29        "GfxApiLogger_unittest.cpp",
30        "RenderDoc_unittest.cpp",
31    ],
32    deps = [
33        ":gfxstream_utils",
34        "@com_google_googletest//:gtest_main",
35    ],
36)
37