| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 { | 5 { |
| 6 'variables': { | 6 'variables': { |
| 7 'blink_platform_output_dir': '<(SHARED_INTERMEDIATE_DIR)/blink/platform', | 7 'blink_platform_output_dir': '<(SHARED_INTERMEDIATE_DIR)/blink/platform', |
| 8 'jinja_module_files': [ |
| 9 # jinja2/__init__.py contains version string, so sufficient for package |
| 10 '<(DEPTH)/third_party/jinja2/__init__.py', |
| 11 '<(DEPTH)/third_party/markupsafe/__init__.py', # jinja2 dep |
| 12 ], |
| 8 }, | 13 }, |
| 9 | 14 |
| 10 'targets': [ | 15 'targets': [ |
| 11 { | 16 { |
| 12 # GN version: //third_party/WebKit/Source/platform/inspector_protocol_sour
ces | 17 # GN version: //third_party/WebKit/Source/platform/inspector_protocol_sour
ces |
| 13 'target_name': 'protocol_sources', | 18 'target_name': 'protocol_sources', |
| 14 'type': 'none', | 19 'type': 'none', |
| 15 'dependencies': [ | 20 'dependencies': [ |
| 16 'protocol_version' | 21 'protocol_version' |
| 17 ], | 22 ], |
| 18 'actions': [ | 23 'actions': [ |
| 19 { | 24 { |
| 20 'action_name': 'generateInspectorProtocolBackendSources', | 25 'action_name': 'generateInspectorProtocolBackendSources', |
| 21 'inputs': [ | 26 'inputs': [ |
| 27 '<@(jinja_module_files)', |
| 22 # The python script in action below. | 28 # The python script in action below. |
| 23 'CodeGenerator.py', | 29 'CodeGenerator.py', |
| 24 # The helper script imported by CodeGenerator.py. | 30 # Input files for the script. |
| 25 'CodeGeneratorStrings.py', | |
| 26 # Input file for the script. | |
| 27 '../../devtools/protocol.json', | 31 '../../devtools/protocol.json', |
| 32 'Dispatcher_h.template', |
| 33 'Dispatcher_cpp.template', |
| 34 'Frontend_h.template', |
| 35 'Frontend_cpp.template', |
| 36 'TypeBuilder_h.template', |
| 37 'TypeBuilder_cpp.template', |
| 28 ], | 38 ], |
| 29 'outputs': [ | 39 'outputs': [ |
| 30 '<(blink_platform_output_dir)/inspector_protocol/Dispatcher.cpp', | 40 '<(blink_platform_output_dir)/inspector_protocol/Dispatcher.cpp', |
| 31 '<(blink_platform_output_dir)/inspector_protocol/Dispatcher.h', | 41 '<(blink_platform_output_dir)/inspector_protocol/Dispatcher.h', |
| 32 '<(blink_platform_output_dir)/inspector_protocol/Frontend.cpp', | 42 '<(blink_platform_output_dir)/inspector_protocol/Frontend.cpp', |
| 33 '<(blink_platform_output_dir)/inspector_protocol/Frontend.h', | 43 '<(blink_platform_output_dir)/inspector_protocol/Frontend.h', |
| 34 '<(blink_platform_output_dir)/inspector_protocol/TypeBuilder.cpp', | 44 '<(blink_platform_output_dir)/inspector_protocol/TypeBuilder.cpp', |
| 35 '<(blink_platform_output_dir)/inspector_protocol/TypeBuilder.h', | 45 '<(blink_platform_output_dir)/inspector_protocol/TypeBuilder.h', |
| 36 ], | 46 ], |
| 37 'variables': { | |
| 38 'generator_include_dirs': [ | |
| 39 ], | |
| 40 }, | |
| 41 'action': [ | 47 'action': [ |
| 42 'python', | 48 'python', |
| 43 'CodeGenerator.py', | 49 'CodeGenerator.py', |
| 44 '../../devtools/protocol.json', | 50 '../../devtools/protocol.json', |
| 45 '--output_dir', '<(blink_platform_output_dir)/inspector_protocol', | 51 '--output_dir', '<(blink_platform_output_dir)/inspector_protocol', |
| 46 ], | 52 ], |
| 47 'message': 'Generating Inspector protocol backend sources from protoco
l.json', | 53 'message': 'Generating Inspector protocol backend sources from protoco
l.json', |
| 48 }, | 54 }, |
| 49 ] | 55 ] |
| 50 }, | 56 }, |
| (...skipping 21 matching lines...) Expand all Loading... |
| 72 '-o', | 78 '-o', |
| 73 '<@(_outputs)', | 79 '<@(_outputs)', |
| 74 '<@(_inputs)' | 80 '<@(_inputs)' |
| 75 ], | 81 ], |
| 76 'message': 'Validate inspector protocol for backwards compatibility an
d generate version file', | 82 'message': 'Validate inspector protocol for backwards compatibility an
d generate version file', |
| 77 } | 83 } |
| 78 ] | 84 ] |
| 79 }, | 85 }, |
| 80 ], # targets | 86 ], # targets |
| 81 } | 87 } |
| OLD | NEW |