blob: f9ff67cd940ed7adab4b3882c07054af56b6ce3f [file] [log] [blame]
Avi Drissman8ba1bad2022-09-13 19:22:361# Copyright 2018 The Chromium Authors
Mohamad Ahmadib825a422018-02-16 02:30:132# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
dpapad7aaba4b2022-06-15 20:12:265import("//tools/grit/preprocess_if_expr.gni")
6import("//tools/typescript/ts_library.gni")
Moe Ahmadi26fefaa2018-07-24 16:14:497
Mohamad Ahmadib825a422018-02-16 02:30:138source_set("util") {
9 sources = [
10 "ukm_debug_data_extractor.cc",
11 "ukm_debug_data_extractor.h",
12 ]
13 deps = [
14 "//base",
15 "//components/ukm",
16 "//services/metrics/public/cpp:ukm_builders",
17 ]
18}
Moe Ahmadi26fefaa2018-07-24 16:14:4919
dpapad7aaba4b2022-06-15 20:12:2620preprocess_if_expr("preprocess") {
21 in_folder = "."
22 out_folder = target_gen_dir
23 in_files = [ "ukm_internals.ts" ]
Moe Ahmadi26fefaa2018-07-24 16:14:4924}
25
dpapad7aaba4b2022-06-15 20:12:2626ts_library("build_ts") {
27 root_dir = target_gen_dir
28 out_dir = "$target_gen_dir/tsc"
29 in_files = [ "ukm_internals.ts" ]
dpapad03e81fc2023-01-28 02:27:1830 deps = [ "//ui/webui/resources/js:build_ts" ]
dpapad7aaba4b2022-06-15 20:12:2631 extra_deps = [ ":preprocess" ]
Moe Ahmadi26fefaa2018-07-24 16:14:4932}