mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-19 21:14:44 +08:00
Bug: 1106746 Change-Id: I4165bb4fa30564dc3b8eff942f6cb341a6e31ffb Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3037550 Commit-Queue: Kriti Sapra <kritisapra@google.com> Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org> Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
41 lines
890 B
Plaintext
41 lines
890 B
Plaintext
# 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("./node.gni")
|
|
import("./vars.gni")
|
|
template("generate_css") {
|
|
node_action(target_name) {
|
|
forward_variables_from(invoker, [ "sources" ])
|
|
|
|
script = "scripts/build/generate_css_js_files.js"
|
|
|
|
_src = rebase_path(".", root_build_dir)
|
|
_dest = rebase_path(target_gen_dir, root_build_dir)
|
|
|
|
inputs +=
|
|
[ devtools_location_prepend + "node_modules/clean-css/package.json" ]
|
|
|
|
args = [
|
|
"$is_debug",
|
|
target_name,
|
|
_src,
|
|
_dest,
|
|
string_join(",", sources),
|
|
]
|
|
|
|
outputs = []
|
|
foreach(_input, sources) {
|
|
outputs += [ "$target_gen_dir/$_input.js" ]
|
|
}
|
|
|
|
data = outputs
|
|
|
|
if (is_debug) {
|
|
metadata = {
|
|
grd_files = outputs
|
|
}
|
|
}
|
|
}
|
|
}
|