1# Copyright 2020 The Chromium Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5# This template takes an input list of files, and copies their contents 6# into C++ header files as constexpr char[] raw strings with variable names 7# taken directly from the original file name. 8 9template("data_headers") { 10 action_foreach(target_name) { 11 forward_variables_from(invoker, 12 [ 13 "namespace", 14 "sources", 15 "testonly", 16 ]) 17 script = "../../tools/convert_to_data_file.py" 18 outputs = [ "{{source_gen_dir}}/{{source_name_part}}_data.h" ] 19 args = [ 20 namespace, 21 "{{source}}", 22 "{{source_gen_dir}}/{{source_name_part}}_data.h", 23 ] 24 } 25} 26