chromium/content/browser/webrtc/resources/BUILD.gn

# 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",
    "stats_graph_helper.js",
    "stats_helper.js",
    "stats_rates_calculator.js",
    "stats_table.js",
    "tab_view.js",
    "timeline_graph_view.js",
    "user_media_table.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"
}