OLD | NEW |
(Empty) | |
| 1 # Copyright 2016 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 # To use this, create a gyp target with the following form: |
| 6 # { |
| 7 # 'target_name': 'GenerateInjectedScriptSource', |
| 8 # 'type': 'none', |
| 9 # 'variables': { |
| 10 # 'input_file_path': 'inspector/v8/InjectedScriptSource.js'', |
| 11 # 'output_file_path': '<(SHARED_INTERMEDIATE_DIR)/blink/InjectedScriptSource
.h', |
| 12 # 'character_array_name': 'InjectedScriptSource_js', |
| 13 # }, |
| 14 # 'includes': [ 'ConvertFileToHeaderWithCharacterArray.gypi' ], |
| 15 # }, |
| 16 { |
| 17 'actions': [ |
| 18 { |
| 19 'action_name': 'ConvertFileToHeaderWithCharacterArray', |
| 20 'inputs': [ |
| 21 '../build/scripts/xxd.py', |
| 22 '<(input_file_path)', |
| 23 ], |
| 24 'outputs': [ '<@(output_file_path)', ], |
| 25 'action': [ |
| 26 'python', |
| 27 '../build/scripts/xxd.py', |
| 28 '<(character_array_name)', |
| 29 '<(input_file_path)', |
| 30 '<@(_outputs)' |
| 31 ], |
| 32 'message': 'Generating <(output_file_path) from <(input_file_path)', |
| 33 }, |
| 34 ], |
| 35 # Since this target generates header files, it needs to be a hard dependency. |
| 36 'hard_dependency': 1, |
| 37 } |
OLD | NEW |