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