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