| OLD | NEW |
| 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 # These duplicate other lists and are the only ones used on Android. They | |
| 11 # should be eliminated. See crbug.com/305852. | |
| 12 'android_schema_files': [ | |
| 13 'manifest_types.json', | |
| 14 ], | |
| 15 | |
| 16 # These are used everywhere except Android. | |
| 17 'main_schema_files': [ | 10 'main_schema_files': [ |
| 18 'accessibility_private.json', | 11 'accessibility_private.json', |
| 19 'activity_log_private.json', | 12 'activity_log_private.json', |
| 20 'alarms.idl', | 13 'alarms.idl', |
| 21 'audio.idl', | 14 'audio.idl', |
| 22 'automation.idl', | 15 'automation.idl', |
| 23 'automation_internal.idl', | 16 'automation_internal.idl', |
| 24 'autotest_private.idl', | 17 'autotest_private.idl', |
| 25 'bookmark_manager_private.json', | 18 'bookmark_manager_private.json', |
| 26 'bookmarks.json', | 19 'bookmarks.json', |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 'webrtc_schema_files': [ | 128 'webrtc_schema_files': [ |
| 136 'cast_streaming_rtp_stream.idl', | 129 'cast_streaming_rtp_stream.idl', |
| 137 'cast_streaming_session.idl', | 130 'cast_streaming_session.idl', |
| 138 'cast_streaming_udp_transport.idl', | 131 'cast_streaming_udp_transport.idl', |
| 139 ], | 132 ], |
| 140 | 133 |
| 141 'chromium_code': 1, | 134 'chromium_code': 1, |
| 142 # Disable schema compiler to generate model extension API code. | 135 # Disable schema compiler to generate model extension API code. |
| 143 # Only register the extension functions in extension system. | 136 # Only register the extension functions in extension system. |
| 144 'conditions': [ | 137 'conditions': [ |
| 138 # TODO(thestig): Remove this file from non-extensions build so the |
| 139 # conditional and else branch goes away. |
| 140 # Do the same for chrome/common/extensions/api/schemas.gni. |
| 145 ['enable_extensions==1', { | 141 ['enable_extensions==1', { |
| 146 'non_compiled_schema_files': [ | 142 'non_compiled_schema_files': [ |
| 147 '<@(main_non_compiled_schema_files)', | 143 '<@(main_non_compiled_schema_files)', |
| 148 ], | 144 ], |
| 149 'schema_dependencies': [ | 145 'schema_dependencies': [ |
| 150 '<(DEPTH)/extensions/common/api/api.gyp:extensions_api', | 146 '<(DEPTH)/extensions/common/api/api.gyp:extensions_api', |
| 151 ], | 147 ], |
| 152 'schema_files': [ | 148 'schema_files': [ |
| 153 '<@(main_schema_files)', | 149 '<@(main_schema_files)', |
| 154 ], | 150 ], |
| 155 'schema_include_rules': [ | 151 'schema_include_rules': [ |
| 156 '<@(main_schema_include_rules)', | 152 '<@(main_schema_include_rules)', |
| 157 ], | 153 ], |
| 158 }, { # enable_extensions==0 | 154 }, { # enable_extensions==0 |
| 159 'non_compiled_schema_files': [ | 155 'non_compiled_schema_files': [ |
| 160 ], | 156 ], |
| 161 'schema_dependencies': [ | 157 'schema_dependencies': [ |
| 162 ], | 158 ], |
| 163 'schema_files': [ | 159 'schema_files': [ |
| 164 # These should be eliminated. See crbug.com/305852. | |
| 165 '<@(android_schema_files)', | |
| 166 ], | 160 ], |
| 167 }], | 161 }], |
| 168 ['chromeos==1', { | 162 ['chromeos==1', { |
| 169 'schema_files': [ | 163 'schema_files': [ |
| 170 '<@(chromeos_schema_files)', | 164 '<@(chromeos_schema_files)', |
| 171 ], | 165 ], |
| 172 }], | 166 }], |
| 173 ['enable_extensions==1 and enable_webrtc==1', { | 167 ['enable_extensions==1 and enable_webrtc==1', { |
| 174 'schema_files': [ | 168 'schema_files': [ |
| 175 '<@(webrtc_schema_files)', | 169 '<@(webrtc_schema_files)', |
| 176 ], | 170 ], |
| 177 }], | 171 }], |
| 178 ], | 172 ], |
| 179 'cc_dir': 'chrome/common/extensions/api', | 173 'cc_dir': 'chrome/common/extensions/api', |
| 180 'root_namespace': 'extensions::api::%(namespace)s', | 174 'root_namespace': 'extensions::api::%(namespace)s', |
| 181 'impl_dir_': 'chrome/browser/extensions/api', | 175 'impl_dir_': 'chrome/browser/extensions/api', |
| 182 }, | 176 }, |
| 183 } | 177 } |
| OLD | NEW |