OLD | NEW |
(Empty) | |
| 1 # Copyright 2016 the V8 project 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 { 'variables': { |
| 6 'protocol_path': '../../third_party/WebKit/Source/platform/inspector_protoco
l', |
| 7 'protocol_sources': [ |
| 8 '<(SHARED_INTERMEDIATE_DIR)/inspector/Console.cpp', |
| 9 '<(SHARED_INTERMEDIATE_DIR)/inspector/Console.h', |
| 10 '<(SHARED_INTERMEDIATE_DIR)/inspector/Debugger.cpp', |
| 11 '<(SHARED_INTERMEDIATE_DIR)/inspector/Debugger.h', |
| 12 '<(SHARED_INTERMEDIATE_DIR)/inspector/HeapProfiler.cpp', |
| 13 '<(SHARED_INTERMEDIATE_DIR)/inspector/HeapProfiler.h', |
| 14 '<(SHARED_INTERMEDIATE_DIR)/inspector/Profiler.cpp', |
| 15 '<(SHARED_INTERMEDIATE_DIR)/inspector/Profiler.h', |
| 16 '<(SHARED_INTERMEDIATE_DIR)/inspector/Runtime.cpp', |
| 17 '<(SHARED_INTERMEDIATE_DIR)/inspector/Runtime.h', |
| 18 ] |
| 19 }, |
| 20 'targets': [ |
| 21 { 'target_name': 'inspector_protocol_version', |
| 22 'type': 'none', |
| 23 'actions': [ |
| 24 { |
| 25 'action_name': 'generate_inspector_protocol_version', |
| 26 'inputs': [ |
| 27 '<(protocol_path)/generate-inspector-protocol-version', |
| 28 'js_protocol.json', |
| 29 ], |
| 30 'outputs': [ |
| 31 '<(SHARED_INTERMEDIATE_DIR)/inspector/protocol.json', |
| 32 ], |
| 33 'action': [ |
| 34 'python', |
| 35 '<(protocol_path)/generate-inspector-protocol-version', |
| 36 '--o', |
| 37 '<@(_outputs)', |
| 38 'js_protocol.json' |
| 39 ], |
| 40 'message': 'Validate inspector protocol for backwards compatibility an
d generate version file', |
| 41 }, |
| 42 ] |
| 43 }, |
| 44 { 'target_name': 'inspector_protocol_sources', |
| 45 'type': 'none', |
| 46 'dependencies': ['inspector_protocol_version'], |
| 47 'variables': { |
| 48 'jinja_module_files': [ |
| 49 # jinja2/__init__.py contains version string, so sufficient for packag
e |
| 50 '../third_party/jinja2/__init__.py', |
| 51 '../third_party/markupsafe/__init__.py', # jinja2 dep |
| 52 ] |
| 53 }, |
| 54 'actions': [ |
| 55 { |
| 56 'action_name': 'generate_inspector_protocol_sources', |
| 57 'inputs': [ |
| 58 # Source generator script. |
| 59 '<(protocol_path)/CodeGenerator.py', |
| 60 # Source code templates. |
| 61 '<(protocol_path)/Exported_h.template', |
| 62 '<(protocol_path)/Imported_h.template', |
| 63 '<(protocol_path)/TypeBuilder_h.template', |
| 64 '<(protocol_path)/TypeBuilder_cpp.template', |
| 65 # Protocol definition. |
| 66 'js_protocol.json', |
| 67 ], |
| 68 'outputs': [ |
| 69 '<@(protocol_sources)', |
| 70 ], |
| 71 'action': [ |
| 72 'python', |
| 73 '<(protocol_path)/CodeGenerator.py', |
| 74 '--protocol', 'js_protocol.json', |
| 75 '--string_type', 'String', |
| 76 '--export_macro', 'PLATFORM_EXPORT', |
| 77 '--output_dir', '<(SHARED_INTERMEDIATE_DIR)/inspector', |
| 78 '--output_package', 'inspector', |
| 79 ], |
| 80 'message': 'Generating Inspector protocol backend sources from json de
finitions', |
| 81 }, |
| 82 ] |
| 83 }, |
| 84 { 'target_name': 'inspector_protocol', |
| 85 'type': 'static_library', |
| 86 'dependencies': [ |
| 87 'inspector_protocol_sources', |
| 88 ], |
| 89 'include_dirs+': [ |
| 90 '<(protocol_path)/../..', |
| 91 '<(SHARED_INTERMEDIATE_DIR)', |
| 92 ], |
| 93 'defines': [ |
| 94 'V8_INSPECTOR_USE_STL', |
| 95 ], |
| 96 'sources': [ |
| 97 '<@(protocol_sources)', |
| 98 '<(protocol_path)/Allocator.h', |
| 99 '<(protocol_path)/Array.h', |
| 100 '<(protocol_path)/BackendCallback.h', |
| 101 '<(protocol_path)/CodeGenerator.py', |
| 102 '<(protocol_path)/Collections.h', |
| 103 '<(protocol_path)/DispatcherBase.cpp', |
| 104 '<(protocol_path)/DispatcherBase.h', |
| 105 '<(protocol_path)/ErrorSupport.cpp', |
| 106 '<(protocol_path)/ErrorSupport.h', |
| 107 '<(protocol_path)/FrontendChannel.h', |
| 108 '<(protocol_path)/Maybe.h', |
| 109 '<(protocol_path)/Object.cpp', |
| 110 '<(protocol_path)/Object.h', |
| 111 '<(protocol_path)/Parser.cpp', |
| 112 '<(protocol_path)/Parser.h', |
| 113 '<(protocol_path)/Platform.h', |
| 114 '<(protocol_path)/PlatformSTL.h', |
| 115 '<(protocol_path)/String16.h', |
| 116 '<(protocol_path)/String16STL.cpp', |
| 117 '<(protocol_path)/String16STL.h', |
| 118 '<(protocol_path)/ValueConversions.h', |
| 119 '<(protocol_path)/Values.cpp', |
| 120 '<(protocol_path)/Values.h', |
| 121 ] |
| 122 }, |
| 123 ], |
| 124 } |
OLD | NEW |