blob: 46c683fc8da8739a982dedad20cff5e964424934 [file] [log] [blame]
# Copyright 2021 The Chromium Authors. All rights reserved.
# 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")
import("//ui/webui/resources/tools/generate_grd.gni")
assert(!is_android)
generate_grd("build_grdp") {
grd_prefix = "webui_whats_new"
out_grd = "$target_gen_dir/resources.grdp"
deps = [ ":build_ts" ]
manifest_files = [ "$target_gen_dir/tsconfig.manifest" ]
resource_path_prefix = "whats_new"
}
ts_library("build_ts") {
root_dir = "."
out_dir = "$target_gen_dir/tsc"
tsconfig_base = "tsconfig_base.json"
path_mappings = [
"chrome://whats-new/*|" +
rebase_path("$root_gen_dir/chrome/browser/resources/whats_new/tsc/*",
target_gen_dir),
"chrome://webui-test/*|" +
rebase_path("$root_gen_dir/chrome/test/data/webui/tsc/*",
target_gen_dir),
]
in_files = [ "whats_new_app_test.ts" ]
deps = [ "//chrome/browser/resources/whats_new:build_ts" ]
extra_deps = [ "..:generate_definitions" ]
}