summaryrefslogtreecommitdiff
path: root/chromium/content/browser/resources/process/BUILD.gn
blob: 3a3d47cb27559250ecfae32238c716e69547614c (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
# Copyright 2018 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/typescript/ts_library.gni")

# Copy (via creating sym links) all the other files into the same folder for
# ts_library.
copy("copy_files") {
  deps = [ "//content/browser/process_internals:mojo_bindings_webui_js" ]
  sources = [
    "$root_gen_dir/mojom-webui/content/browser/process_internals/process_internals.mojom-webui.js",
    "process_internals.ts",
  ]
  outputs = [ "$target_gen_dir/{{source_file_part}}" ]
}

ts_library("build_ts") {
  root_dir = target_gen_dir
  out_dir = "$target_gen_dir/tsc"
  tsconfig_base = "tsconfig_base.json"
  in_files = [
    "process_internals.ts",
    "process_internals.mojom-webui.js",
  ]
  deps = [
    "//ui/webui/resources:library",
    "//ui/webui/resources/mojo:library",
  ]
  extra_deps = [ ":copy_files" ]
}