Branch
Hash :
961788fd
Author :
Date :
2023-05-05T11:35:38
Capture/Replay: reorganize trace-related gni
Move trace-related code from gni/angle.gni to
src/tests/angle_traces.gni
Rename template angle_trace_library to angle_trace_libs as the idea is
for it to build multiple libs.
Name outside-of-apk lib group ${target_name}__unpacked_libs which is
more consistent with how targets are usually named in gn, and makes the
dependency explicitly tied to template instantiation.
Bug: b/276474703
Change-Id: I316f2a549063b8ebae177f4ffc0d4a8de1942384
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4508387
Reviewed-by: Cody Northrop <cnorthrop@google.com>
Commit-Queue: Roman Lavrov <romanl@google.com>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
# Copyright 2020 The ANGLE Project Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# Contains the build rules for confidential trace tests.
import("../../../gni/angle.gni")
import("../angle_traces.gni")
angle_trace_libs("angle_restricted_traces") {
json_path = "restricted_traces.json"
if (angle_restricted_traces != []) {
trace_list = angle_restricted_traces
} else {
_trace_json = read_file(json_path, "json")
trace_list = _trace_json.traces
}
}
group("goldctl") {
data = []
# Because this links to a CIPD dependency, which is a symlink on Unix
# platforms, refer to the actual executable rather than the whole directory;
# copying the whole directory doesn't work, at least with "mb.py zip".
if (is_win) {
data += [ "//tools/skia_goldctl/win/goldctl.exe" ]
} else if (is_mac) {
data += [
"//tools/skia_goldctl/mac_amd64/goldctl",
"//tools/skia_goldctl/mac_arm64/goldctl",
]
} else {
data += [ "//tools/skia_goldctl/linux/goldctl" ]
}
}
group("angle_restricted_trace_gold_tests") {
testonly = true
data_deps = [
":goldctl",
"$angle_root/src/tests:angle_system_info_test",
"$angle_root/src/tests:angle_trace_perf_tests",
]
data = [
"restricted_trace_gold_tests.py",
"restricted_traces.json",
"../py_utils/android_helper.py",
"../py_utils/angle_path_util.py",
"../py_utils/angle_test_util.py",
"../py_utils/skia_gold/",
"//build/skia_gold_common/",
"//testing/scripts/common.py",
"//testing/xvfb.py",
]
}