diff options
author | Kaiyi Li <kaiyili@google.com> | 2022-03-14 08:48:20 -0700 |
---|---|---|
committer | Kaiyi Li <kaiyili@google.com> | 2022-03-14 08:49:32 -0700 |
commit | 88bfbf5f829ed067ab5e4b13998a90698b63df7e (patch) | |
tree | a43b9c3a3e8239e68534decd3ad5be216524f173 /host-common | |
parent | 62602235dbd9a3f89f4ceb8c8f1a47ca37df42ae (diff) | |
download | vulkan-cereal-88bfbf5f829ed067ab5e4b13998a90698b63df7e.tar.gz |
Fix compile error
Test: build on Linux with CC=clang CXX=clang++ cmake . ../ -G Ninja -D VIRGL_RENDERER_UNSTABLE_APIS=ON
Change-Id: Iaf0c32c6fd570e3efbe4bf9d9bd8998900922a49
Diffstat (limited to 'host-common')
-rw-r--r-- | host-common/CMakeLists.txt | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/host-common/CMakeLists.txt b/host-common/CMakeLists.txt index c3d62412..423d8fd0 100644 --- a/host-common/CMakeLists.txt +++ b/host-common/CMakeLists.txt @@ -10,16 +10,32 @@ else() opengl/NativeGpuInfo_linux.cpp) endif() +if (RECORDER_DELEGATE_LIB) + set(gfxstream-base-metrics-sources + ../base/MetricsRecorderDelegate.cpp) + set(gfxstream-base-metrics-link-libraries + recorder_delegate_lib) +else() + set(gfxstream-base-metrics-sources + ../base/MetricsNoOp.cpp) + set(gfxstream-base-metrics-link-libraries) +endif() + # TODO(gregschlom) move this to base add_library(logging-base STATIC logging.cpp - GfxstreamFatalError.cpp) + GfxstreamFatalError.cpp + ${gfxstream-base-metrics-sources}) target_include_directories( logging-base PRIVATE ${GFXSTREAM_REPO_ROOT} ${GFXSTREAM_REPO_ROOT}/include) +target_link_libraries( + logging-base + PRIVATE + ${gfxstream-base-metrics-link-libraries}) add_library( gfxstream-host-common |