1*8975f5c5SAndroid Build Coastguard Worker# Copyright 2020 The ANGLE Project Authors. All rights reserved. 2*8975f5c5SAndroid Build Coastguard Worker# Use of this source code is governed by a BSD-style license that can be 3*8975f5c5SAndroid Build Coastguard Worker# found in the LICENSE file. 4*8975f5c5SAndroid Build Coastguard Worker# 5*8975f5c5SAndroid Build Coastguard Worker# Contains the build rules for confidential trace tests. 6*8975f5c5SAndroid Build Coastguard Worker 7*8975f5c5SAndroid Build Coastguard Workerimport("../../../gni/angle.gni") 8*8975f5c5SAndroid Build Coastguard Workerimport("../angle_traces.gni") 9*8975f5c5SAndroid Build Coastguard Worker 10*8975f5c5SAndroid Build Coastguard Workerangle_trace_libs("angle_restricted_traces") { 11*8975f5c5SAndroid Build Coastguard Worker json_path = "restricted_traces.json" 12*8975f5c5SAndroid Build Coastguard Worker if (angle_restricted_traces != []) { 13*8975f5c5SAndroid Build Coastguard Worker trace_list = angle_restricted_traces 14*8975f5c5SAndroid Build Coastguard Worker } else { 15*8975f5c5SAndroid Build Coastguard Worker _trace_json = read_file(json_path, "json") 16*8975f5c5SAndroid Build Coastguard Worker trace_list = _trace_json.traces 17*8975f5c5SAndroid Build Coastguard Worker } 18*8975f5c5SAndroid Build Coastguard Worker} 19*8975f5c5SAndroid Build Coastguard Worker 20*8975f5c5SAndroid Build Coastguard Workergroup("goldctl") { 21*8975f5c5SAndroid Build Coastguard Worker data = [] 22*8975f5c5SAndroid Build Coastguard Worker 23*8975f5c5SAndroid Build Coastguard Worker # Because this links to a CIPD dependency, which is a symlink on Unix 24*8975f5c5SAndroid Build Coastguard Worker # platforms, refer to the actual executable rather than the whole directory; 25*8975f5c5SAndroid Build Coastguard Worker # copying the whole directory doesn't work, at least with "mb.py zip". 26*8975f5c5SAndroid Build Coastguard Worker if (is_win) { 27*8975f5c5SAndroid Build Coastguard Worker data += [ "//tools/skia_goldctl/win/goldctl.exe" ] 28*8975f5c5SAndroid Build Coastguard Worker } else if (is_mac) { 29*8975f5c5SAndroid Build Coastguard Worker data += [ 30*8975f5c5SAndroid Build Coastguard Worker "//tools/skia_goldctl/mac_amd64/goldctl", 31*8975f5c5SAndroid Build Coastguard Worker "//tools/skia_goldctl/mac_arm64/goldctl", 32*8975f5c5SAndroid Build Coastguard Worker ] 33*8975f5c5SAndroid Build Coastguard Worker } else { 34*8975f5c5SAndroid Build Coastguard Worker data += [ "//tools/skia_goldctl/linux/goldctl" ] 35*8975f5c5SAndroid Build Coastguard Worker } 36*8975f5c5SAndroid Build Coastguard Worker} 37*8975f5c5SAndroid Build Coastguard Worker 38*8975f5c5SAndroid Build Coastguard Workergroup("angle_restricted_trace_gold_tests") { 39*8975f5c5SAndroid Build Coastguard Worker testonly = true 40*8975f5c5SAndroid Build Coastguard Worker data_deps = [ 41*8975f5c5SAndroid Build Coastguard Worker ":goldctl", 42*8975f5c5SAndroid Build Coastguard Worker "$angle_root/src/tests:angle_system_info_test", 43*8975f5c5SAndroid Build Coastguard Worker "$angle_root/src/tests:angle_trace_perf_tests", 44*8975f5c5SAndroid Build Coastguard Worker ] 45*8975f5c5SAndroid Build Coastguard Worker data = [ 46*8975f5c5SAndroid Build Coastguard Worker "restricted_trace_gold_tests.py", 47*8975f5c5SAndroid Build Coastguard Worker "restricted_traces.json", 48*8975f5c5SAndroid Build Coastguard Worker "../py_utils/android_helper.py", 49*8975f5c5SAndroid Build Coastguard Worker "../py_utils/angle_path_util.py", 50*8975f5c5SAndroid Build Coastguard Worker "../py_utils/angle_test_util.py", 51*8975f5c5SAndroid Build Coastguard Worker "../py_utils/skia_gold/", 52*8975f5c5SAndroid Build Coastguard Worker "//build/skia_gold_common/", 53*8975f5c5SAndroid Build Coastguard Worker "//testing/scripts/common.py", 54*8975f5c5SAndroid Build Coastguard Worker "//testing/xvfb.py", 55*8975f5c5SAndroid Build Coastguard Worker ] 56*8975f5c5SAndroid Build Coastguard Worker} 57