| OLD | NEW |
| (Empty) |
| 1 # Copyright 2014 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 { | |
| 6 'variables': { | |
| 7 'about_credits_file': '<(SHARED_INTERMEDIATE_DIR)/about_credits.html', | |
| 8 'about_credits_file_bro': '<(SHARED_INTERMEDIATE_DIR)/about_credits.bro', | |
| 9 }, | |
| 10 'targets': [ | |
| 11 { | |
| 12 # GN version: //components/resources | |
| 13 'target_name': 'components_resources', | |
| 14 'type': 'none', | |
| 15 'dependencies': [ | |
| 16 'compressed_about_credits', | |
| 17 ], | |
| 18 'hard_dependency': 1, | |
| 19 'variables': { | |
| 20 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/components', | |
| 21 }, | |
| 22 'actions': [ | |
| 23 { | |
| 24 # GN version: //components/resources:components_resources | |
| 25 'action_name': 'generate_components_resources', | |
| 26 'variables': { | |
| 27 'grit_grd_file': 'resources/components_resources.grd', | |
| 28 'grit_additional_defines': [ | |
| 29 '-E', 'about_credits_file=<(about_credits_file_bro)', | |
| 30 ], | |
| 31 }, | |
| 32 'includes': [ '../build/grit_action.gypi' ], | |
| 33 }, | |
| 34 { | |
| 35 # GN version: //components/resources:components_scaled_resources | |
| 36 'action_name': 'generate_components_scaled_resources', | |
| 37 'variables': { | |
| 38 'grit_grd_file': 'resources/components_scaled_resources.grd', | |
| 39 }, | |
| 40 'includes': [ '../build/grit_action.gypi' ], | |
| 41 }, | |
| 42 ], | |
| 43 'includes': [ '../build/grit_target.gypi' ], | |
| 44 }, | |
| 45 { | |
| 46 'target_name': 'compressed_about_credits', | |
| 47 'type': 'none', | |
| 48 'actions': [ | |
| 49 { | |
| 50 'variables': { | |
| 51 'input_file': '<(about_credits_file)', | |
| 52 'output_file': '<(about_credits_file_bro)', | |
| 53 }, | |
| 54 'includes': ['../third_party/brotli/bro.gypi'], | |
| 55 } | |
| 56 ], | |
| 57 'dependencies': [ | |
| 58 'about_credits' | |
| 59 ], | |
| 60 }, | |
| 61 { | |
| 62 # GN version: //components/resources:about_credits | |
| 63 'target_name': 'about_credits', | |
| 64 'type': 'none', | |
| 65 'hard_dependency': 1, | |
| 66 'actions': [ | |
| 67 { | |
| 68 'variables': { | |
| 69 'generator_path': '../tools/licenses.py', | |
| 70 }, | |
| 71 'action_name': 'generate_about_credits', | |
| 72 'inputs': [ | |
| 73 # TODO(phajdan.jr): make licenses.py print license input files so | |
| 74 # about:credits gets rebuilt when one changes. | |
| 75 '<(generator_path)', | |
| 76 'about_ui/resources/about_credits.tmpl', | |
| 77 'about_ui/resources/about_credits_entry.tmpl', | |
| 78 ], | |
| 79 'outputs': [ | |
| 80 '<(about_credits_file)', | |
| 81 ], | |
| 82 'action': ['python', | |
| 83 '<(generator_path)', | |
| 84 '--target-os=<(OS)', | |
| 85 'credits', | |
| 86 '<(about_credits_file)', | |
| 87 ], | |
| 88 'message': 'Generating about:credits', | |
| 89 }, | |
| 90 ], | |
| 91 }, | |
| 92 ], | |
| 93 } | |
| OLD | NEW |