Dan Sinclair | 6135888 | 2015-06-04 20:11:16 | [diff] [blame] | 1 | # Copyright 2014 The Chromium Authors. All rights reserved. |
Nat Duca | e8139cf | 2014-06-24 21:54:04 | [diff] [blame] | 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
benshayden | 623a134 | 2018-10-17 20:14:37 | [diff] [blame] | 5 | import("trace_viewer.gni") |
Nat Duca | e8139cf | 2014-06-24 21:54:04 | [diff] [blame] | 6 | |
| 7 | # TODO: ideally this would go into the target_gen_dir, but this requires some |
| 8 | # changes to the scripts that process them. |
| 9 | output_resource_dir = "$root_gen_dir/content/browser/tracing" |
| 10 | |
Deepanjan Roy | 12d96cd | 2021-05-26 18:19:40 | [diff] [blame] | 11 | action("generate_about_tracing") { |
nduca | f48d444 | 2015-08-10 02:47:06 | [diff] [blame] | 12 | script = "bin/generate_about_tracing_contents" |
Dirk Pranke | 504ee6e | 2020-10-13 22:38:26 | [diff] [blame] | 13 | |
Deepanjan Roy | 8412598 | 2019-11-21 20:34:49 | [diff] [blame] | 14 | inputs = tracing_files + tracing_python_files |
Nat Duca | e8139cf | 2014-06-24 21:54:04 | [diff] [blame] | 15 | outputs = [ |
| 16 | "$output_resource_dir/about_tracing.js", |
| 17 | "$output_resource_dir/about_tracing.html", |
| 18 | ] |
| 19 | |
| 20 | args = [ |
| 21 | "--outdir", rebase_path(output_resource_dir, root_build_dir), |
| 22 | ] |
| 23 | } |
John Budorick | a9c4beb | 2019-04-24 17:45:35 | [diff] [blame] | 24 | |
| 25 | # This could likely be refined & narrowed s.t. the interface targets below |
| 26 | # only include what they need. |
| 27 | group("tracing_common") { |
| 28 | visibility = [ ":*" ] |
| 29 | |
| 30 | data = [ |
| 31 | "../third_party/polymer/", |
| 32 | "third_party/", |
| 33 | "tracing/", |
| 34 | "tracing_project.py", |
| 35 | ] |
| 36 | |
| 37 | data_deps = [ |
| 38 | "../third_party/vinn", |
| 39 | ] |
| 40 | } |
| 41 | |
| 42 | # GN interface. Should remain stable, even if the implementation doesn't. |
| 43 | |
| 44 | group("convert_chart_json") { |
| 45 | data_deps = [ ":tracing_common" ] |
| 46 | } |