1 # Copyright 2014 The Chromium 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. 4 5 gypi_values = exec_script("//build/gypi_to_gn.py", 6 [ rebase_path("trace_viewer.gypi") ], 7 "scope", 8 [ "trace_viewer.gypi" ]) 9 10 # TODO: ideally this would go into the target_gen_dir, but this requires some 11 # changes to the scripts that process them. 12 output_resource_dir = "$root_gen_dir/content/browser/tracing" 13 14 action("generate_about_tracing") { 15 script = "bin/generate_about_tracing_contents" 16 17 inputs = gypi_values.tracing_css_files + gypi_values.tracing_js_html_files + 18 gypi_values.tracing_img_files 19 outputs = [ 20 "$output_resource_dir/about_tracing.js", 21 "$output_resource_dir/about_tracing.html", 22 ] 23 24 args = [ 25 "--outdir", rebase_path(output_resource_dir, root_build_dir), 26 ] 27 } 28