summaryrefslogtreecommitdiff
path: root/chromium/content/browser/webrtc/resources/BUILD.gn
blob: b8ab5cd38f1a317be9f885fa9507e99e94d16c50 (plain)
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
# Copyright 2019 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//tools/grit/grit_rule.gni")
import("//ui/webui/resources/tools/generate_grd.gni")

generated_grd = "$target_gen_dir/resources.grd"

generate_grd("build_grd") {
  out_grd = generated_grd
  grd_prefix = "webrtc_internals"
  input_files_base_dir = rebase_path(".", "//")

  input_files = [
    "candidate_grid.js",
    "data_series.js",
    "dump_creator.js",
    "peer_connection_update_table.js",
    "ssrc_info_manager.js",
    "stats_graph_helper.js",
    "stats_rates_calculator.js",
    "stats_table.js",
    "tab_view.js",
    "timeline_graph_view.js",
    "webrtc_internals.html",
    "webrtc_internals.css",
    "webrtc_internals.js",
  ]
}

grit("resources") {
  source = generated_grd
  enable_input_discovery_for_gn_analyze = false
  deps = [ ":build_grd" ]

  outputs = [
    "grit/webrtc_internals_resources.h",
    "grit/webrtc_internals_resources_map.cc",
    "grit/webrtc_internals_resources_map.h",
    "webrtc_internals_resources.pak",
  ]
  output_dir = "$root_gen_dir/content/browser/webrtc/resources"
}