xref: /aosp_15_r20/external/cronet/build/lacros/lacros_resource_sizes.gni (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1# Copyright 2020 The Chromium Authors
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5import("//build/util/generate_wrapper.gni")
6
7# Generates a script in the bin directory that runs
8# //build/lacros/lacros_resource_sizes.py for the provided configuration.
9template("lacros_resource_sizes_test") {
10  generate_wrapper(target_name) {
11    forward_variables_from(invoker, [ "data_deps" ])
12    executable = "//build/lacros/lacros_resource_sizes.py"
13    wrapper_script = "$root_out_dir/bin/run_${target_name}"
14
15    deps = [ "//build/lacros:lacros_resource_sizes_py" ]
16    executable_args = [
17      "--chromium-output-directory",
18      "@WrappedPath(.)",
19    ]
20  }
21}
22