| 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': [ | 8 'jinja_module_files': [ |
| 9 # jinja2/__init__.py contains version string, so sufficient for package | 9 # jinja2/__init__.py contains version string, so sufficient for package |
| 10 '<(DEPTH)/third_party/jinja2/__init__.py', | 10 '<(DEPTH)/third_party/jinja2/__init__.py', |
| 11 '<(DEPTH)/third_party/markupsafe/__init__.py', # jinja2 dep | 11 '<(DEPTH)/third_party/markupsafe/__init__.py', # jinja2 dep |
| 12 ], | 12 ], |
| 13 }, | 13 }, |
| 14 | |
| 15 'targets': [ | 14 'targets': [ |
| 16 { | 15 { |
| 17 # GN version: //third_party/WebKit/Source/platform/inspector_protocol_sour
ces | |
| 18 'target_name': 'protocol_sources', | |
| 19 'type': 'none', | |
| 20 'dependencies': [ | |
| 21 'protocol_version' | |
| 22 ], | |
| 23 'actions': [ | |
| 24 { | |
| 25 'action_name': 'generateInspectorProtocolBackendSources', | |
| 26 'inputs': [ | |
| 27 '<@(jinja_module_files)', | |
| 28 # The python script in action below. | |
| 29 'CodeGenerator.py', | |
| 30 # Input files for the script. | |
| 31 '../../devtools/protocol.json', | |
| 32 'TypeBuilder_h.template', | |
| 33 'TypeBuilder_cpp.template', | |
| 34 ], | |
| 35 'outputs': [ | |
| 36 '<(blink_platform_output_dir)/inspector_protocol/TypeBuilder.cpp', | |
| 37 '<(blink_platform_output_dir)/inspector_protocol/TypeBuilder.h', | |
| 38 ], | |
| 39 'action': [ | |
| 40 'python', | |
| 41 'CodeGenerator.py', | |
| 42 '../../devtools/protocol.json', | |
| 43 '--output_dir', '<(blink_platform_output_dir)/inspector_protocol', | |
| 44 ], | |
| 45 'message': 'Generating Inspector protocol backend sources from protoco
l.json', | |
| 46 }, | |
| 47 ] | |
| 48 }, | |
| 49 { | |
| 50 # GN version: //third_party/WebKit/Source/platform/inspector_protocol_vers
ion | 16 # GN version: //third_party/WebKit/Source/platform/inspector_protocol_vers
ion |
| 51 'target_name': 'protocol_version', | 17 'target_name': 'protocol_version', |
| 52 'type': 'none', | 18 'type': 'none', |
| 53 'actions': [ | 19 'actions': [ |
| 54 { | 20 { |
| 55 'action_name': 'generateInspectorProtocolVersion', | 21 'action_name': 'generateInspectorProtocolVersion', |
| 56 'inputs': [ | 22 'inputs': [ |
| 57 'generate-inspector-protocol-version', | 23 'generate-inspector-protocol-version', |
| 58 '../../devtools/protocol.json', | 24 '../../devtools/protocol.json', |
| 59 ], | 25 ], |
| 60 'outputs': [ | 26 'outputs': [ |
| 61 '<(blink_platform_output_dir)/inspector_protocol/InspectorProtocolVe
rsion.h', | 27 '<(blink_platform_output_dir)/inspector_protocol/InspectorProtocolVe
rsion.h', |
| 62 ], | 28 ], |
| 63 'variables': { | |
| 64 'generator_include_dirs': [ | |
| 65 ], | |
| 66 }, | |
| 67 'action': [ | 29 'action': [ |
| 68 'python', | 30 'python', |
| 69 'generate-inspector-protocol-version', | 31 'generate-inspector-protocol-version', |
| 70 '-o', | 32 '-o', |
| 71 '<@(_outputs)', | 33 '<@(_outputs)', |
| 72 '<@(_inputs)' | 34 '<@(_inputs)' |
| 73 ], | 35 ], |
| 74 'message': 'Validate inspector protocol for backwards compatibility an
d generate version file', | 36 'message': 'Validate inspector protocol for backwards compatibility an
d generate version file', |
| 75 } | 37 } |
| 76 ] | 38 ] |
| 77 }, | 39 }, |
| 78 ], # targets | 40 ], # targets |
| 79 } | 41 } |
| OLD | NEW |