From 7667342230c6a5999202d97e6c59dcb4e372dee8 Mon Sep 17 00:00:00 2001 From: mipengwei Date: Thu, 21 Jul 2022 09:29:34 +0800 Subject: [PATCH] Signed-off-by:mipengwei --- BUILD.gn | 26 ++++++++------------------ 1 file changed, 8 insertions(+), 18 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index db8f969..f9d4b77 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -15,25 +15,21 @@ import("//build/ohos.gni") # Lets callers do '#include ' 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", @@ -51,21 +47,15 @@ ohos_static_library("benchmark") { "src/sysinfo.cc", "src/timers.cc", ] - + public_configs = [ ":benchmark_config" ] configs = [ ":benchmark_private_config" ] } 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" ] }