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_sources', |
| 22 'type': 'none', |
| 23 'variables': { |
| 24 'jinja_module_files': [ |
| 25 # jinja2/__init__.py contains version string, so sufficient for packag
e |
| 26 '../third_party/jinja2/__init__.py', |
| 27 '../third_party/markupsafe/__init__.py', # jinja2 dep |
| 28 ] |
| 29 }, |
| 30 'actions': [ |
| 31 { |
| 32 'action_name': 'generate_inspector_protocol_sources', |
| 33 'inputs': [ |
| 34 # Source generator script. |
| 35 '<(protocol_path)/CodeGenerator.py', |
| 36 # Source code templates. |
| 37 '<(protocol_path)/Exported_h.template', |
| 38 '<(protocol_path)/Imported_h.template', |
| 39 '<(protocol_path)/TypeBuilder_h.template', |
| 40 '<(protocol_path)/TypeBuilder_cpp.template', |
| 41 # Protocol definition. |
| 42 'js_protocol.json', |
| 43 ], |
| 44 'outputs': [ |
| 45 '<@(protocol_sources)', |
| 46 ], |
| 47 'action': [ |
| 48 'python', |
| 49 '<(protocol_path)/CodeGenerator.py', |
| 50 '--protocol', 'js_protocol.json', |
| 51 '--string_type', 'String', |
| 52 '--export_macro', 'PLATFORM_EXPORT', |
| 53 '--output_dir', '<(SHARED_INTERMEDIATE_DIR)/inspector', |
| 54 '--output_package', 'inspector', |
| 55 ], |
| 56 'message': 'Generating Inspector protocol backend sources from json de
finitions', |
| 57 }, |
| 58 ] |
| 59 }, |
| 60 { 'target_name': 'inspector_protocol', |
| 61 'type': 'static_library', |
| 62 'dependencies': [ |
| 63 'inspector_protocol_sources', |
| 64 ], |
| 65 'include_dirs+': [ |
| 66 '<(protocol_path)/../..', |
| 67 '<(SHARED_INTERMEDIATE_DIR)', |
| 68 ], |
| 69 'defines': [ |
| 70 'V8_INSPECTOR_USE_STL', |
| 71 ], |
| 72 'sources': [ |
| 73 '<@(protocol_sources)', |
| 74 '<(protocol_path)/Allocator.h', |
| 75 '<(protocol_path)/Array.h', |
| 76 '<(protocol_path)/BackendCallback.h', |
| 77 '<(protocol_path)/CodeGenerator.py', |
| 78 '<(protocol_path)/Collections.h', |
| 79 '<(protocol_path)/DispatcherBase.cpp', |
| 80 '<(protocol_path)/DispatcherBase.h', |
| 81 '<(protocol_path)/ErrorSupport.cpp', |
| 82 '<(protocol_path)/ErrorSupport.h', |
| 83 '<(protocol_path)/FrontendChannel.h', |
| 84 '<(protocol_path)/Maybe.h', |
| 85 '<(protocol_path)/Object.cpp', |
| 86 '<(protocol_path)/Object.h', |
| 87 '<(protocol_path)/Parser.cpp', |
| 88 '<(protocol_path)/Parser.h', |
| 89 '<(protocol_path)/Platform.h', |
| 90 '<(protocol_path)/PlatformSTL.h', |
| 91 '<(protocol_path)/String16.h', |
| 92 '<(protocol_path)/String16STL.cpp', |
| 93 '<(protocol_path)/String16STL.h', |
| 94 '<(protocol_path)/ValueConversions.h', |
| 95 '<(protocol_path)/Values.cpp', |
| 96 '<(protocol_path)/Values.h', |
| 97 ] |
| 98 }, |
| 99 ], |
| 100 } |
OLD | NEW |