Signed-off-by:mipengwei <mipengwei@huawei.com>

This commit is contained in:
mipengwei 2022-07-21 09:29:34 +08:00
parent 72bfbaf914
commit 7667342230

View File

@ -15,25 +15,21 @@ import("//build/ohos.gni")
# Lets callers do '#include <benchmark.h>'
config("benchmark_config") {
include_dirs = [
"include",
]
include_dirs = [ "include" ]
}
# This is the configuration used to build benchmark itself.
# It should not be needed outside of this library.
config("benchmark_private_config") {
visibility = [ ":*" ]
include_dirs = [
"include",
]
include_dirs = [ "include" ]
}
ohos_static_library("benchmark") {
sources = [
"src/benchmark.cc",
"src/benchmark_api_internal.cc",
"src/benchmark_name.cc",
"src/benchmark.cc",
"src/benchmark_register.cc",
"src/benchmark_runner.cc",
"src/colorprint.cc",
@ -41,9 +37,9 @@ ohos_static_library("benchmark") {
"src/complexity.cc",
"src/console_reporter.cc",
"src/counter.cc",
"src/perf_counters.cc",
"src/csv_reporter.cc",
"src/json_reporter.cc",
"src/perf_counters.cc",
"src/reporter.cc",
"src/sleep.cc",
"src/statistics.cc",
@ -57,15 +53,9 @@ ohos_static_library("benchmark") {
}
ohos_static_library("benchmark_main") {
include_dirs = [
"include",
]
include_dirs = [ "include" ]
sources = [
"src/benchmark_main.cc",
]
sources = [ "src/benchmark_main.cc" ]
deps = [
":benchmark"
]
deps = [ ":benchmark" ]
}