mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
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).
50 lines
904 B
Plaintext
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",
|
|
]
|
|
}
|