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

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

Issue 2705423003: [build] Fix gyp files for building inspector (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « gypfiles/toolchain.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 { 5 {
6 'variables': { 6 'variables': {
7 'protocol_path': '../../third_party/inspector_protocol', 7 'protocol_path': '../../third_party/inspector_protocol',
8 }, 8 },
9 'includes': [ 9 'includes': [
10 'inspector.gypi', 10 'inspector.gypi',
11 '<(PRODUCT_DIR)/../../../third_party/inspector_protocol/inspector_protocol.g ypi', 11 '<(PRODUCT_DIR)/../../../third_party/inspector_protocol/inspector_protocol.g ypi',
12 ], 12 ],
13 'targets': [ 13 'targets': [
14 { 'target_name': 'inspector_injected_script', 14 { 'target_name': 'inspector_injected_script',
15 'type': 'none', 15 'type': 'none',
16 'conditions': [
17 ['want_separate_host_toolset==1', {
18 'toolsets': ['host', 'target'],
19 }, {
20 'toolsets': ['target'],
21 }]
22 ],
16 'actions': [ 23 'actions': [
17 { 24 {
18 'action_name': 'convert_js_to_cpp_char_array', 25 'action_name': 'convert_js_to_cpp_char_array',
19 'inputs': [ 26 'inputs': [
20 'build/xxd.py', 27 'build/xxd.py',
21 '<(inspector_injected_script_source)', 28 '<(inspector_injected_script_source)',
22 ], 29 ],
23 'outputs': [ 30 'outputs': [
24 '<(inspector_generated_injected_script)', 31 '<(inspector_generated_injected_script)',
25 ], 32 ],
26 'action': [ 33 'action': [
27 'python', 34 'python',
28 'build/xxd.py', 35 'build/xxd.py',
29 'InjectedScriptSource_js', 36 'InjectedScriptSource_js',
30 'injected-script-source.js', 37 'injected-script-source.js',
31 '<@(_outputs)' 38 '<@(_outputs)'
32 ], 39 ],
33 }, 40 },
34 ], 41 ],
35 # Since this target generates header files, it needs to be a hard dependen cy. 42 # Since this target generates header files, it needs to be a hard dependen cy.
36 'hard_dependency': 1, 43 'hard_dependency': 1,
37 }, 44 },
38 { 'target_name': 'inspector_debugger_script', 45 { 'target_name': 'inspector_debugger_script',
39 'type': 'none', 46 'type': 'none',
47 'conditions': [
48 ['want_separate_host_toolset==1', {
49 'toolsets': ['host', 'target'],
50 }, {
51 'toolsets': ['target'],
52 }]
53 ],
40 'actions': [ 54 'actions': [
41 { 55 {
42 'action_name': 'convert_js_to_cpp_char_array', 56 'action_name': 'convert_js_to_cpp_char_array',
43 'inputs': [ 57 'inputs': [
44 'build/xxd.py', 58 'build/xxd.py',
45 '<(inspector_debugger_script_source)', 59 '<(inspector_debugger_script_source)',
46 ], 60 ],
47 'outputs': [ 61 'outputs': [
48 '<(inspector_generated_debugger_script)', 62 '<(inspector_generated_debugger_script)',
49 ], 63 ],
50 'action': [ 64 'action': [
51 'python', 65 'python',
52 'build/xxd.py', 66 'build/xxd.py',
53 'DebuggerScript_js', 67 'DebuggerScript_js',
54 'debugger-script.js', 68 'debugger-script.js',
55 '<@(_outputs)' 69 '<@(_outputs)'
56 ], 70 ],
57 }, 71 },
58 ], 72 ],
59 # Since this target generates header files, it needs to be a hard dependen cy. 73 # Since this target generates header files, it needs to be a hard dependen cy.
60 'hard_dependency': 1, 74 'hard_dependency': 1,
61 }, 75 },
62 { 'target_name': 'protocol_compatibility', 76 { 'target_name': 'protocol_compatibility',
63 'type': 'none', 77 'type': 'none',
78 'conditions': [
79 ['want_separate_host_toolset==1', {
80 'toolsets': ['host', 'target'],
81 }, {
82 'toolsets': ['target'],
83 }]
84 ],
64 'actions': [ 85 'actions': [
65 { 86 {
66 'action_name': 'protocol_compatibility', 87 'action_name': 'protocol_compatibility',
67 'inputs': [ 88 'inputs': [
68 'js_protocol.json', 89 'js_protocol.json',
69 ], 90 ],
70 'outputs': [ 91 'outputs': [
71 '<@(SHARED_INTERMEDIATE_DIR)/src/js_protocol.stamp', 92 '<@(SHARED_INTERMEDIATE_DIR)/src/js_protocol.stamp',
72 ], 93 ],
73 'action': [ 94 'action': [
74 'python', 95 'python',
75 '<(protocol_path)/CheckProtocolCompatibility.py', 96 '<(protocol_path)/CheckProtocolCompatibility.py',
76 '--stamp', '<@(_outputs)', 97 '--stamp', '<@(_outputs)',
77 'js_protocol.json', 98 'js_protocol.json',
78 ], 99 ],
79 'message': 'Generating inspector protocol sources from protocol json d efinition', 100 'message': 'Generating inspector protocol sources from protocol json d efinition',
80 }, 101 },
81 ] 102 ]
82 }, 103 },
83 { 'target_name': 'protocol_generated_sources', 104 { 'target_name': 'protocol_generated_sources',
84 'type': 'none', 105 'type': 'none',
85 'dependencies': [ 'protocol_compatibility' ], 106 'dependencies': [ 'protocol_compatibility' ],
107 'conditions': [
108 ['want_separate_host_toolset==1', {
109 'toolsets': ['host', 'target'],
110 }, {
111 'toolsets': ['target'],
112 }]
113 ],
86 'actions': [ 114 'actions': [
87 { 115 {
88 'action_name': 'protocol_generated_sources', 116 'action_name': 'protocol_generated_sources',
89 'inputs': [ 117 'inputs': [
90 'js_protocol.json', 118 'js_protocol.json',
91 'inspector_protocol_config.json', 119 'inspector_protocol_config.json',
92 '<@(inspector_protocol_files)', 120 '<@(inspector_protocol_files)',
93 ], 121 ],
94 'outputs': [ 122 'outputs': [
95 '<@(inspector_generated_sources)', 123 '<@(inspector_generated_sources)',
96 ], 124 ],
97 'action': [ 125 'action': [
98 'python', 126 'python',
99 '<(protocol_path)/CodeGenerator.py', 127 '<(protocol_path)/CodeGenerator.py',
100 '--jinja_dir', '../../third_party', 128 '--jinja_dir', '../../third_party',
101 '--output_base', '<(SHARED_INTERMEDIATE_DIR)/src/inspector', 129 '--output_base', '<(SHARED_INTERMEDIATE_DIR)/src/inspector',
102 '--config', 'inspector_protocol_config.json', 130 '--config', 'inspector_protocol_config.json',
103 ], 131 ],
104 'message': 'Generating inspector protocol sources from protocol json', 132 'message': 'Generating inspector protocol sources from protocol json',
105 }, 133 },
106 ] 134 ]
107 }, 135 },
108 ], 136 ],
109 } 137 }
OLDNEW
« no previous file with comments | « gypfiles/toolchain.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698