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

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

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

Powered by Google App Engine
This is Rietveld 408576698