This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prebuilt binaries for libbenchmark might be incompatible with some environments, for example, when mbgl-benchmark target is compiled on host with GCC and linked against mason's clang 5.0 compiled binaries. Vendored libbenchmark avoids aforementioned issue, as the target and the binary compiled with same compiler / options.
- Loading branch information
1 parent
f560b4f
commit 8bbf4cc
Showing
6 changed files
with
31 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
add_library(benchmark STATIC | ||
${CMAKE_SOURCE_DIR}/vendor/benchmark/src/commandlineflags.cc | ||
${CMAKE_SOURCE_DIR}/vendor/benchmark/src/console_reporter.cc | ||
${CMAKE_SOURCE_DIR}/vendor/benchmark/src/complexity.cc | ||
${CMAKE_SOURCE_DIR}/vendor/benchmark/src/csv_reporter.cc | ||
${CMAKE_SOURCE_DIR}/vendor/benchmark/src/colorprint.cc | ||
${CMAKE_SOURCE_DIR}/vendor/benchmark/src/sleep.cc | ||
${CMAKE_SOURCE_DIR}/vendor/benchmark/src/benchmark.cc | ||
${CMAKE_SOURCE_DIR}/vendor/benchmark/src/counter.cc | ||
${CMAKE_SOURCE_DIR}/vendor/benchmark/src/benchmark_register.cc | ||
${CMAKE_SOURCE_DIR}/vendor/benchmark/src/statistics.cc | ||
${CMAKE_SOURCE_DIR}/vendor/benchmark/src/json_reporter.cc | ||
${CMAKE_SOURCE_DIR}/vendor/benchmark/src/reporter.cc | ||
${CMAKE_SOURCE_DIR}/vendor/benchmark/src/string_util.cc | ||
${CMAKE_SOURCE_DIR}/vendor/benchmark/src/sysinfo.cc | ||
${CMAKE_SOURCE_DIR}/vendor/benchmark/src/timers.cc | ||
) | ||
|
||
target_compile_definitions(benchmark PRIVATE | ||
HAVE_STEADY_CLOCK | ||
) | ||
|
||
target_include_directories(benchmark SYSTEM PUBLIC | ||
${CMAKE_SOURCE_DIR}/vendor/benchmark/include | ||
) |