1# Copyright 2023 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 5assert(current_os == "ios") 6 7template("bundle_data_from_filelist") { 8 assert(defined(invoker.filelist_name), "Requires setting filelist_name") 9 10 _filelist_content = read_file(invoker.filelist_name, "list lines") 11 bundle_data(target_name) { 12 forward_variables_from(invoker, 13 "*", 14 [ 15 "filelist_name", 16 "sources", 17 ]) 18 sources = filter_exclude(_filelist_content, [ "#*" ]) 19 if (!defined(outputs)) { 20 outputs = [ "{{bundle_resources_dir}}/" + 21 "{{source_root_relative_dir}}/{{source_file_part}}" ] 22 } 23 } 24} 25