blob: 8e2085693ff9d58aeaaeb4caa5e101bf2d38f652 [file] [log] [blame]
# Copyright 2019 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("//build/util/generate_wrapper.gni")
template("sizes_test") {
generate_wrapper(target_name) {
forward_variables_from(invoker, [ "data" ])
testonly = true
executable = "//tools/binary_size/sizes.py"
wrapper_script = "$root_out_dir/bin/${target_name}"
data_deps = [
"//tools/binary_size:sizes_py",
]
if (defined(invoker.data_deps)) {
data_deps += invoker.data_deps
}
executable_args = [
"--output-directory",
"@WrappedPath(.)",
]
if (defined(invoker.executable_args)) {
executable_args += invoker.executable_args
}
}
}