Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(693)

Side by Side Diff: src/v8-inspector/inspector.gyp

Issue 2184733002: [inspector] add inspector protocol parser test build target. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: add missing file Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
Michael Achenbach 2016/07/26 14:27:45 Reviewed gyp consistency. Somebody with more knowl
5 { 'variables': {
6 'protocol_path': '../../platform/inspector_protocol',
7 'inspector_path': '../../src/v8-inspector',
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 '../../testing/gmock.gyp:gmock',
Michael Achenbach 2016/07/26 14:27:45 Why is this dependent on gmock and gtest and not t
Yang 2016/07/27 06:42:25 You are right. Fixed.
90 '../../testing/gtest.gyp:gtest',
91 ],
92 'include_dirs+': [
93 '../..',
94 '<(SHARED_INTERMEDIATE_DIR)',
95 ],
96 'defines': [
97 'V8_INSPECTOR_USE_STL',
98 ],
99 'sources': [
100 '<@(protocol_sources)',
101 '<(protocol_path)/Allocator.h',
102 '<(protocol_path)/Array.h',
103 '<(protocol_path)/BackendCallback.h',
104 '<(protocol_path)/CodeGenerator.py',
105 '<(protocol_path)/Collections.h',
106 '<(protocol_path)/DispatcherBase.cpp',
107 '<(protocol_path)/DispatcherBase.h',
108 '<(protocol_path)/ErrorSupport.cpp',
109 '<(protocol_path)/ErrorSupport.h',
110 '<(protocol_path)/FrontendChannel.h',
111 '<(protocol_path)/Maybe.h',
112 '<(protocol_path)/Object.cpp',
113 '<(protocol_path)/Object.h',
114 '<(protocol_path)/Parser.cpp',
115 '<(protocol_path)/Parser.h',
116 '<(protocol_path)/Platform.h',
117 '<(protocol_path)/PlatformSTL.h',
118 '<(protocol_path)/String16.h',
119 '<(protocol_path)/String16STL.cpp',
120 '<(protocol_path)/String16STL.h',
121 '<(protocol_path)/ValueConversions.h',
122 '<(protocol_path)/Values.cpp',
123 '<(protocol_path)/Values.h',
124 ]
125 },
126 { 'target_name': 'inspector_protocol_parser_test',
127 'type': 'executable',
128 'dependencies': ['inspector_protocol'],
129 'include_dirs+': [
130 '../..',
131 '../../testing/gtest/include',
132 ],
133 'defines': [
134 'V8_INSPECTOR_USE_STL',
135 ],
136 'sources': [
137 '<(protocol_path)/ParserTest.cpp',
138 '../../test/inspector_protocol/RunTests.cpp',
139 ]
140 },
141 ],
142 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698