# Copyright 2017 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/compiled_action.gni") # Generates a proto file based on the real list. action_foreach("generate_preload_list") { script = "//tools/media_engagement_preload/make_dafsa.py" sources = [ "test.json", ] outputs = [ "$target_gen_dir/{{source_name_part}}.pb", ] args = [ "{{source}}", rebase_path("${target_gen_dir}/{{source_name_part}}.pb", root_build_dir), ] } # Copy over protobuf files to output directory. copy("test_data") { sources = [ "bad_format.pb", "empty.pb", ] outputs = [ "$target_gen_dir/{{source_file_part}}", ] }