# Copyright 2021 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("//ui/webui/resources/tools/generate_grd.gni")
preprocessed_files = [
"main_test.js",
"test_util.js",
]
non_preprocessed_files = [
"dns_view_test.js",
"domain_security_policy_view_test.js",
"shared_dictionary_view_test.js",
"task_queue.js",
]
copy("copy") {
sources = non_preprocessed_files
outputs = [ "$target_gen_dir/{{source_target_relative}}" ]
}
preprocess_if_expr("preprocess") {
in_folder = "."
out_folder = target_gen_dir
in_files = preprocessed_files
}
generate_grd("build_grdp") {
grd_prefix = "webui_net_internals"
out_grd = "$target_gen_dir/resources.grdp"
deps = [
":copy",
":preprocess",
]
input_files = preprocessed_files + non_preprocessed_files
input_files_base_dir = rebase_path(target_gen_dir, root_build_dir)
resource_path_prefix = "net_internals"
}