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

Side by Side Diff: chrome/common/extensions/api/schemas.gypi

Issue 680213003: Cleanup: Remove most enable_extensions logic in chrome/ extensions code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium 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 'sources': [ 6 'sources': [
7 '<@(schema_files)', 7 '<@(schema_files)',
8 ], 8 ],
9 'variables': { 9 'variables': {
10 'main_schema_files': [ 10 'main_schema_files': [
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 'wallpaper_private.json', 122 'wallpaper_private.json',
123 'webcam_private.idl', 123 'webcam_private.idl',
124 ], 124 ],
125 125
126 'webrtc_schema_files': [ 126 'webrtc_schema_files': [
127 'cast_streaming_rtp_stream.idl', 127 'cast_streaming_rtp_stream.idl',
128 'cast_streaming_session.idl', 128 'cast_streaming_session.idl',
129 'cast_streaming_udp_transport.idl', 129 'cast_streaming_udp_transport.idl',
130 ], 130 ],
131 131
132 'non_compiled_schema_files': [
133 '<@(main_non_compiled_schema_files)',
134 ],
135 'schema_dependencies': [
136 '<(DEPTH)/extensions/common/api/api.gyp:extensions_api',
137 ],
138 'schema_files': [
139 '<@(main_schema_files)',
140 ],
141 'schema_include_rules': [
142 '<@(main_schema_include_rules)',
143 ],
144
132 'chromium_code': 1, 145 'chromium_code': 1,
133 # Disable schema compiler to generate model extension API code. 146 # Disable schema compiler to generate model extension API code.
134 # Only register the extension functions in extension system. 147 # Only register the extension functions in extension system.
135 'conditions': [ 148 'conditions': [
136 # TODO(thestig): Remove this file from non-extensions build so the
137 # conditional and else branch goes away.
138 # Do the same for chrome/common/extensions/api/schemas.gni.
139 ['enable_extensions==1', {
140 'non_compiled_schema_files': [
141 '<@(main_non_compiled_schema_files)',
142 ],
143 'schema_dependencies': [
144 '<(DEPTH)/extensions/common/api/api.gyp:extensions_api',
145 ],
146 'schema_files': [
147 '<@(main_schema_files)',
148 ],
149 'schema_include_rules': [
150 '<@(main_schema_include_rules)',
151 ],
152 }, { # enable_extensions==0
153 'non_compiled_schema_files': [
154 ],
155 'schema_dependencies': [
156 ],
157 'schema_files': [
158 ],
159 }],
160 ['chromeos==1', { 149 ['chromeos==1', {
161 'schema_files': [ 150 'schema_files': [
162 '<@(chromeos_schema_files)', 151 '<@(chromeos_schema_files)',
163 ], 152 ],
164 }], 153 }],
165 ['enable_extensions==1 and enable_webrtc==1', { 154 ['enable_webrtc==1', {
166 'schema_files': [ 155 'schema_files': [
167 '<@(webrtc_schema_files)', 156 '<@(webrtc_schema_files)',
168 ], 157 ],
169 }], 158 }],
170 ], 159 ],
171 'cc_dir': 'chrome/common/extensions/api', 160 'cc_dir': 'chrome/common/extensions/api',
172 'root_namespace': 'extensions::api::%(namespace)s', 161 'root_namespace': 'extensions::api::%(namespace)s',
173 'impl_dir_': 'chrome/browser/extensions/api', 162 'impl_dir_': 'chrome/browser/extensions/api',
174 }, 163 },
175 } 164 }
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/schemas.gni ('k') | chrome/common/extensions/chrome_extensions_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698