1
# Copyright 2020 The ANGLE Project Authors. All rights reserved.
2
# Use of this source code is governed by a BSD-style license that can be
3
# found in the LICENSE file.
5
# This include iterates through a list of tests and rebases the files so they
6
# can be consumed by tests/BUILD.gn for use with TracePerfTest.cpp.
8
import("../../../../gni/angle.gni")
17
angle_trace_perf_sources = [ "perf_tests/TracePerfTest.cpp" ]
18
angle_trace_perf_data =
19
[ "${angle_root}/src/tests/perf_tests/restricted_traces" ]
20
angle_trace_perf_defines = []
22
foreach(_test, _tests) {
23
_test_dir = "${_test}"
24
_test_ctx = "${_test_dir}/${_test}_capture_context1"
26
# Similar to capture replay sample, use the file index for sources
27
angle_trace_perf_sources +=
28
rebase_path(read_file("${_test_ctx}_files.txt", "list lines"),
30
"perf_tests/restricted_traces/${_test_dir}") +
32
"perf_tests/restricted_traces/${_test_ctx}.cpp",
33
"perf_tests/restricted_traces/${_test_ctx}.h",
37
_test_data_path = "/sdcard/chromium_tests_root/third_party/angle/src/tests/perf_tests/restricted_traces/${_test}"
39
_test_data_path = rebase_path("${_test_dir}")
42
angle_trace_perf_defines +=
43
[ "ANGLE_TRACE_DATA_DIR_${_test}=\"${_test_data_path}\"" ]