1 # Copyright 2016 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.
5 template("shim_headers") {
6 action_name = "gen_${target_name}"
7 config_name = "${target_name}_config"
8 shim_headers_path = "${root_gen_dir}/shim_headers/${target_name}"
11 include_dirs = [ shim_headers_path ]
15 script = "//tools/generate_shim_headers/generate_shim_headers.py"
19 rebase_path(invoker.root_path),
21 rebase_path(shim_headers_path),
23 if (defined(invoker.prefix)) {
29 args += invoker.headers
32 foreach(h, invoker.headers) {
33 outputs += [ shim_headers_path + "/" + rebase_path(invoker.root_path,"//") + "/" + h ]
38 deps = [ ":${action_name}" ]
39 all_dependent_configs = [ ":${config_name}" ]