# Copyright 2017 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//device/vr/buildflags/buildflags.gni")
group("vr_perf_tests_base") {
testonly = true
data = [
"./data/",
"./desktop_runtimes/",
"./__init__.py",
"./shared_vr_page_state.py",
"./vr_benchmarks.py",
"./vr_sample_page.py",
"./vr_story_set.py",
"./webvr_sample_pages.py",
"./webvr_wpr_pages.py",
"./webxr_sample_pages.py",
# For the ACL setup code.
"//chrome/browser/vr/test/run_xr_browser_tests.py",
"//chrome/test/data/xr/webvr_info/samples/",
"//third_party/webxr_test_pages/webxr-samples/",
]
data_deps = [ "//testing:run_perf_test" ]
if (is_android) {
data_deps += [ "//chrome/android:monochrome_public_bundle" ]
}
if (is_win) {
if (enable_openxr) {
data_deps += [ "//device/vr:openxr_mock" ]
}
}
}
if (!is_android) {
group("vr_perf_tests") {
testonly = true
data_deps = [
":vr_perf_tests_base",
"//tools/perf:perf",
]
}
} else {
template("vr_perf_tests_android_template") {
forward_variables_from(invoker, [ "telemetry_target_suffix" ])
group(target_name) {
testonly = true
data_deps = [
":vr_perf_tests_base",
"//tools/perf:perf${telemetry_target_suffix}",
]
}
}
import("//tools/perf/chrome_telemetry_build/android_browser_types.gni")
foreach(_target_suffix, telemetry_android_browser_target_suffixes) {
vr_perf_tests_android_template("vr_perf_tests${_target_suffix}") {
telemetry_target_suffix = _target_suffix
}
}
}