Erwin Jansen | b45c014 | 2024-03-15 14:36:45 -0700 | [diff] [blame] | 1 | # File: BUILD |
| 2 | |
| 3 | # Interface Library |
| 4 | cc_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 | |
| 17 | cc_library( |
| 18 | name = "gfxstream_utils", |
| 19 | srcs = ["GfxApiLogger.cpp"], |
Erwin Jansen | 6c062a5 | 2024-08-09 08:00:41 -0700 | [diff] [blame] | 20 | copts = ["-fno-exceptions"], |
Erwin Jansen | b45c014 | 2024-03-15 14:36:45 -0700 | [diff] [blame] | 21 | visibility = ["//visibility:public"], |
| 22 | deps = [":gfxstream_utils_headers"], |
| 23 | ) |
| 24 | |
| 25 | # Conditional Executable (Test target) |
| 26 | cc_test( |
| 27 | name = "gfxstream_utils_unittests", |
| 28 | srcs = [ |
| 29 | "GfxApiLogger_unittest.cpp", |
| 30 | "RenderDoc_unittest.cpp", |
| 31 | ], |
| 32 | deps = [ |
| 33 | ":gfxstream_utils", |
Erwin Jansen | 45e3604 | 2024-03-25 11:43:25 -0700 | [diff] [blame] | 34 | "@com_google_googletest//:gtest_main", |
Erwin Jansen | b45c014 | 2024-03-15 14:36:45 -0700 | [diff] [blame] | 35 | ], |
| 36 | ) |