1*6dbdd20aSAndroid Build Coastguard Worker# Copyright (C) 2018 The Android Open Source Project 2*6dbdd20aSAndroid Build Coastguard Worker# 3*6dbdd20aSAndroid Build Coastguard Worker# Licensed under the Apache License, Version 2.0 (the "License"); 4*6dbdd20aSAndroid Build Coastguard Worker# you may not use this file except in compliance with the License. 5*6dbdd20aSAndroid Build Coastguard Worker# You may obtain a copy of the License at 6*6dbdd20aSAndroid Build Coastguard Worker# 7*6dbdd20aSAndroid Build Coastguard Worker# http://www.apache.org/licenses/LICENSE-2.0 8*6dbdd20aSAndroid Build Coastguard Worker# 9*6dbdd20aSAndroid Build Coastguard Worker# Unless required by applicable law or agreed to in writing, software 10*6dbdd20aSAndroid Build Coastguard Worker# distributed under the License is distributed on an "AS IS" BASIS, 11*6dbdd20aSAndroid Build Coastguard Worker# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12*6dbdd20aSAndroid Build Coastguard Worker# See the License for the specific language governing permissions and 13*6dbdd20aSAndroid Build Coastguard Worker# limitations under the License. 14*6dbdd20aSAndroid Build Coastguard Worker 15*6dbdd20aSAndroid Build Coastguard Workerimport("../gn/perfetto.gni") 16*6dbdd20aSAndroid Build Coastguard Worker 17*6dbdd20aSAndroid Build Coastguard Worker# Prevent that this file is accidentally included in embedder builds. 18*6dbdd20aSAndroid Build Coastguard Workerassert(enable_perfetto_ui) 19*6dbdd20aSAndroid Build Coastguard Worker 20*6dbdd20aSAndroid Build Coastguard Workernodejs_bin = rebase_path("../tools/node", root_build_dir) 21*6dbdd20aSAndroid Build Coastguard Worker 22*6dbdd20aSAndroid Build Coastguard Workergroup("ui") { 23*6dbdd20aSAndroid Build Coastguard Worker deps = [ 24*6dbdd20aSAndroid Build Coastguard Worker ":ui_build($host_toolchain)", 25*6dbdd20aSAndroid Build Coastguard Worker "../src/trace_config_utils:trace_config_utils.wasm($wasm_toolchain)", 26*6dbdd20aSAndroid Build Coastguard Worker "../src/trace_processor:trace_processor.wasm($wasm_toolchain)", 27*6dbdd20aSAndroid Build Coastguard Worker "../src/traceconv:traceconv.wasm($wasm_toolchain)", 28*6dbdd20aSAndroid Build Coastguard Worker ] 29*6dbdd20aSAndroid Build Coastguard Worker} 30*6dbdd20aSAndroid Build Coastguard Worker 31*6dbdd20aSAndroid Build Coastguard Workeraction("deprecation_warning") { 32*6dbdd20aSAndroid Build Coastguard Worker script = "../gn/standalone/build_tool_wrapper.py" 33*6dbdd20aSAndroid Build Coastguard Worker outputs = [ "$target_out_dir/never_written_always_execute_rule-2.stamp" ] 34*6dbdd20aSAndroid Build Coastguard Worker inputs = [] 35*6dbdd20aSAndroid Build Coastguard Worker args = [ 36*6dbdd20aSAndroid Build Coastguard Worker "cat", 37*6dbdd20aSAndroid Build Coastguard Worker rebase_path("config/gn_deprecation_banner.txt", root_build_dir), 38*6dbdd20aSAndroid Build Coastguard Worker ] 39*6dbdd20aSAndroid Build Coastguard Worker} 40*6dbdd20aSAndroid Build Coastguard Worker 41*6dbdd20aSAndroid Build Coastguard Workeraction("ui_build") { 42*6dbdd20aSAndroid Build Coastguard Worker deps = [ ":deprecation_warning" ] 43*6dbdd20aSAndroid Build Coastguard Worker script = "../gn/standalone/build_tool_wrapper.py" 44*6dbdd20aSAndroid Build Coastguard Worker outputs = [ "$target_out_dir/never_written_always_execute_rule.stamp" ] 45*6dbdd20aSAndroid Build Coastguard Worker inputs = [ 46*6dbdd20aSAndroid Build Coastguard Worker "../tools/node", 47*6dbdd20aSAndroid Build Coastguard Worker "build.js", 48*6dbdd20aSAndroid Build Coastguard Worker ] 49*6dbdd20aSAndroid Build Coastguard Worker args = [ 50*6dbdd20aSAndroid Build Coastguard Worker nodejs_bin, 51*6dbdd20aSAndroid Build Coastguard Worker rebase_path("build.js", root_build_dir), 52*6dbdd20aSAndroid Build Coastguard Worker "--out", 53*6dbdd20aSAndroid Build Coastguard Worker ".", 54*6dbdd20aSAndroid Build Coastguard Worker ] 55*6dbdd20aSAndroid Build Coastguard Worker} 56