diff -rupN --no-dereference apitrace-1aa83915bfc310ba5901136013dcd2b6ee641e00/cli/CMakeLists.txt apitrace-1aa83915bfc310ba5901136013dcd2b6ee641e00-new/cli/CMakeLists.txt
--- apitrace-1aa83915bfc310ba5901136013dcd2b6ee641e00/cli/CMakeLists.txt 2020-09-18 15:11:32.000000000 +0200
+++ apitrace-1aa83915bfc310ba5901136013dcd2b6ee641e00-new/cli/CMakeLists.txt 2020-10-18 20:07:55.146840226 +0200
@@ -40,7 +40,7 @@ add_executable (apitrace
target_link_libraries (apitrace
common
- brotli_dec brotli_enc brotli_common
+ brotlidec brotlienc brotlicommon
${ZLIB_LIBRARIES}
${SNAPPY_LIBRARIES}
${GETOPT_LIBRARIES}
diff -rupN --no-dereference apitrace-1aa83915bfc310ba5901136013dcd2b6ee641e00/CMakeLists.txt apitrace-1aa83915bfc310ba5901136013dcd2b6ee641e00-new/CMakeLists.txt
--- apitrace-1aa83915bfc310ba5901136013dcd2b6ee641e00/CMakeLists.txt 2020-09-18 15:11:32.000000000 +0200
+++ apitrace-1aa83915bfc310ba5901136013dcd2b6ee641e00-new/CMakeLists.txt 2020-10-18 20:07:55.146840226 +0200
@@ -502,9 +502,6 @@ if (ENABLE_STATIC_SNAPPY OR NOT SNAPPY_F
endif ()
include_directories (${SNAPPY_INCLUDE_DIRS})
-include_directories (${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/brotli/c/include)
-add_subdirectory (thirdparty/brotli)
-
if (NOT WIN32 AND NOT ENABLE_STATIC_EXE)
# zlib 1.2.4-1.2.5 made it impossible to read the last block of incomplete
# gzip traces (e.g., apitrace-tests/traces/zlib-no-eof.trace).
@@ -566,17 +563,10 @@ set (MD5_LIBRARIES md5_bundled)
# also avoids missing/inconsistent declarations in system headers.
include_directories (BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/khronos)
-# We use non-standard C++ flags, so we can't just use GTest's CMakeLists.txt
-add_definitions (-DGTEST_HAS_TR1_TUPLE=0)
-include_directories (BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/gtest/include)
-add_library (gtest ${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/gtest/src/gtest-all.cc)
-set_property (TARGET gtest APPEND PROPERTY INCLUDE_DIRECTORIES ${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/gtest)
-target_link_libraries (gtest ${CMAKE_THREAD_LIBS_INIT})
-
# Convenience macro for adding unit tests
macro (add_gtest)
add_executable (${ARGV})
- target_link_libraries (${ARGV0} gtest)
+ target_link_libraries (${ARGV0} gtest pthread)
add_dependencies (check ${ARGV0})
add_test (NAME ${ARGV0} COMMAND $<TARGET_FILE:${ARGV0}>)
endmacro ()
diff -rupN --no-dereference apitrace-1aa83915bfc310ba5901136013dcd2b6ee641e00/lib/trace/CMakeLists.txt apitrace-1aa83915bfc310ba5901136013dcd2b6ee641e00-new/lib/trace/CMakeLists.txt
--- apitrace-1aa83915bfc310ba5901136013dcd2b6ee641e00/lib/trace/CMakeLists.txt 2020-09-18 15:11:32.000000000 +0200
+++ apitrace-1aa83915bfc310ba5901136013dcd2b6ee641e00-new/lib/trace/CMakeLists.txt 2020-10-18 20:07:55.146840226 +0200
@@ -31,7 +31,7 @@ target_link_libraries (common
guids
highlight
os
- brotli_dec brotli_common
+ brotlidec brotlicommon
)
add_gtest (trace_parser_flags_test trace_parser_flags_test.cpp)