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