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

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

Issue 2292053003: [inspector] Build inspector under v8_enable_inspector build flag. (Closed)
Patch Set: owners Created 4 years, 3 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
1 # Copyright 2016 the V8 project authors. All rights reserved. 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 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 { 'variables': { 5 {
6 'protocol_path': '../../third_party/WebKit/Source/platform/inspector_protoco l', 6 'variables': {
7 'protocol_sources': [ 7 'protocol_path': '<(PRODUCT_DIR)/../../third_party/WebKit/Source/platform/in spector_protocol',
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/public/Debugger.h',
17 '<(SHARED_INTERMEDIATE_DIR)/inspector/public/Runtime.h',
18 '<(SHARED_INTERMEDIATE_DIR)/inspector/Runtime.cpp',
19 '<(SHARED_INTERMEDIATE_DIR)/inspector/Runtime.h',
20 ]
21 }, 8 },
9 'includes': [
10 'inspector.gypi',
11 '<(PRODUCT_DIR)/../../../third_party/WebKit/Source/platform/inspector_protoc ol/inspector_protocol.gypi',
12 ],
22 'targets': [ 13 'targets': [
23 { 'target_name': 'inspector_protocol_sources', 14 { 'target_name': 'inspector_injected_script',
24 'type': 'none', 15 'type': 'none',
25 'variables': {
26 'jinja_module_files': [
27 # jinja2/__init__.py contains version string, so sufficient for packag e
28 '../third_party/jinja2/__init__.py',
29 '../third_party/markupsafe/__init__.py', # jinja2 dep
30 ]
31 },
32 'actions': [ 16 'actions': [
33 { 17 {
34 'action_name': 'generate_inspector_protocol_sources', 18 'action_name': 'convert_js_to_cpp_char_array',
35 'inputs': [ 19 'inputs': [
36 # Source generator script. 20 'build/xxd.py',
37 '<(protocol_path)/CodeGenerator.py', 21 '<(inspector_injected_script_source)',
38 # Source code templates. 22 ],
39 '<(protocol_path)/Exported_h.template', 23 'outputs': [
40 '<(protocol_path)/Imported_h.template', 24 '<(inspector_generated_injected_script)',
41 '<(protocol_path)/TypeBuilder_h.template', 25 ],
42 '<(protocol_path)/TypeBuilder_cpp.template', 26 'action': [
43 # Protocol definition. 27 'python',
28 'build/xxd.py',
29 'InjectedScriptSource_js',
30 'InjectedScriptSource.js',
31 '<@(_outputs)'
32 ],
33 },
34 ],
35 # Since this target generates header files, it needs to be a hard dependen cy.
36 'hard_dependency': 1,
37 },
38 { 'target_name': 'inspector_debugger_script',
39 'type': 'none',
40 'actions': [
41 {
42 'action_name': 'convert_js_to_cpp_char_array',
43 'inputs': [
44 'build/xxd.py',
45 '<(inspector_debugger_script_source)',
46 ],
47 'outputs': [
48 '<(inspector_generated_debugger_script)',
49 ],
50 'action': [
51 'python',
52 'build/xxd.py',
53 'DebuggerScript_js',
54 'DebuggerScript.js',
55 '<@(_outputs)'
56 ],
57 },
58 ],
59 # Since this target generates header files, it needs to be a hard dependen cy.
60 'hard_dependency': 1,
61 },
62 { 'target_name': 'protocol_compatibility',
63 'type': 'none',
64 'actions': [
65 {
66 'action_name': 'protocol_compatibility',
67 'inputs': [
44 'js_protocol.json', 68 'js_protocol.json',
45 ], 69 ],
46 'outputs': [ 70 'outputs': [
47 '<@(protocol_sources)', 71 '<@(SHARED_INTERMEDIATE_DIR)/src/js_protocol.stamp',
72 ],
73 'action': [
74 'python',
75 '<(protocol_path)/CheckProtocolCompatibility.py',
76 '--stamp', '<@(_outputs)',
77 'js_protocol.json',
78 ],
79 'message': 'Generating inspector protocol sources from protocol json d efinition',
80 },
81 ]
82 },
83 { 'target_name': 'protocol_generated_sources',
84 'type': 'none',
85 'dependencies': [ 'protocol_compatibility' ],
86 'actions': [
87 {
88 'action_name': 'protocol_generated_sources',
89 'inputs': [
90 'js_protocol.json',
91 'inspector_protocol_config.json',
92 '<@(inspector_protocol_files)',
93 ],
94 'outputs': [
95 '<@(inspector_generated_sources)',
48 ], 96 ],
49 'action': [ 97 'action': [
50 'python', 98 'python',
51 '<(protocol_path)/CodeGenerator.py', 99 '<(protocol_path)/CodeGenerator.py',
52 '--protocol', 'js_protocol.json', 100 '--jinja_dir', '<(PRODUCT_DIR)/../../third_party',
53 '--string_type', 'String16', 101 '--output_base', '<(SHARED_INTERMEDIATE_DIR)/src/inspector',
54 '--export_macro', 'PLATFORM_EXPORT', 102 '--config', 'inspector_protocol_config.json',
55 '--output_dir', '<(SHARED_INTERMEDIATE_DIR)/inspector',
56 '--output_package', 'inspector',
57 '--exported_dir', '<(SHARED_INTERMEDIATE_DIR)/inspector/public',
58 '--exported_package', 'inspector/public',
59 ], 103 ],
60 'message': 'Generating Inspector protocol backend sources from json de finitions', 104 'message': 'Generating inspector protocol sources from protocol json',
61 }, 105 },
62 ] 106 ]
63 }, 107 },
64 { 'target_name': 'inspector_protocol',
65 'type': 'static_library',
66 'dependencies': [
67 'inspector_protocol_sources',
68 ],
69 'include_dirs+': [
70 '<(protocol_path)/../..',
71 '<(SHARED_INTERMEDIATE_DIR)',
72 ],
73 'defines': [
74 'V8_INSPECTOR_USE_STL',
75 ],
76 'msvs_disabled_warnings': [
77 4267, # Truncation from size_t to int.
78 4305, # Truncation from 'type1' to 'type2'.
79 4324, # Struct padded due to declspec(align).
80 4714, # Function marked forceinline not inlined.
81 4800, # Value forced to bool.
82 4996, # Deprecated function call.
83 ],
84 'sources': [
85 '<@(protocol_sources)',
86 '<(protocol_path)/Allocator.h',
87 '<(protocol_path)/Array.h',
88 '<(protocol_path)/BackendCallback.h',
89 '<(protocol_path)/CodeGenerator.py',
90 '<(protocol_path)/Collections.h',
91 '<(protocol_path)/DispatcherBase.cpp',
92 '<(protocol_path)/DispatcherBase.h',
93 '<(protocol_path)/ErrorSupport.cpp',
94 '<(protocol_path)/ErrorSupport.h',
95 '<(protocol_path)/FrontendChannel.h',
96 '<(protocol_path)/Maybe.h',
97 '<(protocol_path)/Object.cpp',
98 '<(protocol_path)/Object.h',
99 '<(protocol_path)/Parser.cpp',
100 '<(protocol_path)/Parser.h',
101 '<(protocol_path)/Platform.h',
102 '<(protocol_path)/PlatformSTL.h',
103 '<(protocol_path)/String16.cpp',
104 '<(protocol_path)/String16.h',
105 '<(protocol_path)/String16STL.cpp',
106 '<(protocol_path)/String16STL.h',
107 '<(protocol_path)/ValueConversions.h',
108 '<(protocol_path)/Values.cpp',
109 '<(protocol_path)/Values.h',
110 ]
111 },
112 ], 108 ],
113 } 109 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698