George Wright 6b45335bf1 Create a DisplayList benchmarks dylib on iOS (flutter/engine#30833)
Create a DisplayList benchmarks dylib on iOS that can be linked to from a test app. To run the benchmarks,
call the exported entrypoint RunBenchmarks(argc, argv).
2022-01-13 14:32:54 -08:00

50 lines
904 B
Plaintext

# Copyright 2013 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
config("benchmark_config") {
include_dirs = [ "//third_party/benchmark:benchmark_config" ]
}
source_set("benchmarking") {
testonly = true
sources = [
"benchmarking.cc",
"benchmarking.h",
]
public_deps = [
"//flutter/fml",
"//third_party/benchmark",
]
public_configs = [
"//flutter:config",
":benchmark_config",
]
}
config("benchmark_library_config") {
if (is_ios) {
ldflags = [ "-Wl,-exported_symbol,_RunBenchmarks" ]
}
}
source_set("benchmarking_library") {
testonly = true
sources = [
"library.cc",
"library.h",
]
public_deps = [ "//third_party/benchmark" ]
public_configs = [
"//flutter:config",
":benchmark_config",
":benchmark_library_config",
]
}