summaryrefslogtreecommitdiff
path: root/chromium/chrome/browser/resources/components/BUILD.gn
blob: 2949c7187811082cc782520fd3923c4ac22bdabc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# 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/preprocess_if_expr.gni")
import("//tools/typescript/ts_library.gni")

preprocess_if_expr("preprocess") {
  in_files = [ "components.ts" ]
}

ts_library("build_ts") {
  root_dir = target_gen_dir
  out_dir = "$target_gen_dir/tsc"
  in_files = [ "components.ts" ]
  definitions = [ "//tools/typescript/definitions/chrome_send.d.ts" ]
  deps = [ "//ui/webui/resources:library" ]
  extra_deps = [ ":preprocess" ]
}