| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 'targets': [ | 6 'targets': [ |
| 7 { | 7 { |
| 8 'target_name': 'chrome_api', | 8 'target_name': 'chrome_api', |
| 9 'type': 'static_library', | 9 'type': 'static_library', |
| 10 'sources': [ | 10 'sources': [ |
| 11 '<@(schema_files)', | 11 '<@(schema_files)', |
| 12 ], | 12 ], |
| 13 # TODO(jschuh): http://crbug.com/167187 size_t -> int | 13 # TODO(jschuh): http://crbug.com/167187 size_t -> int |
| 14 'msvs_disabled_warnings': [ 4267 ], | 14 'msvs_disabled_warnings': [ 4267 ], |
| 15 'includes': [ | 15 'includes': [ |
| 16 '../../../../build/json_schema_bundle_compile.gypi', | 16 '../../../../build/json_schema_bundle_compile.gypi', |
| 17 '../../../../build/json_schema_compile.gypi', | 17 '../../../../build/json_schema_compile.gypi', |
| 18 ], | 18 ], |
| 19 'variables': { | 19 'variables': { |
| 20 'chromium_code': 1, | 20 'chromium_code': 1, |
| 21 # Disable schema compiler to generate model extension API code. | 21 # Disable schema compiler to generate model extension API code. |
| 22 # Only register the extension functions in extension system. | 22 # Only register the extension functions in extension system. |
| 23 'non_compiled_schema_files': [ | |
| 24 'browsing_data.json', | |
| 25 'chromeos_info_private.json', | |
| 26 'extension.json', | |
| 27 'idltest.idl', | |
| 28 'infobars.json', | |
| 29 'media_player_private.json', | |
| 30 'music_manager_private.idl', | |
| 31 'principals_private.idl', | |
| 32 'top_sites.json', | |
| 33 'web_request_internal.json', | |
| 34 ], | |
| 35 'conditions': [ | 23 'conditions': [ |
| 36 ['OS!="android"', { | 24 ['OS!="android"', { |
| 25 'non_compiled_schema_files': [ |
| 26 'browsing_data.json', |
| 27 'chromeos_info_private.json', |
| 28 'extension.json', |
| 29 'idltest.idl', |
| 30 'infobars.json', |
| 31 'media_player_private.json', |
| 32 'music_manager_private.idl', |
| 33 'principals_private.idl', |
| 34 'top_sites.json', |
| 35 'web_request_internal.json', |
| 36 ], |
| 37 'schema_files': [ | 37 'schema_files': [ |
| 38 'accessibility_private.json', | 38 'accessibility_private.json', |
| 39 'activity_log_private.json', | 39 'activity_log_private.json', |
| 40 'alarms.idl', | 40 'alarms.idl', |
| 41 'app_current_window_internal.idl', | 41 'app_current_window_internal.idl', |
| 42 'app_window.idl', | 42 'app_window.idl', |
| 43 'audio.idl', | 43 'audio.idl', |
| 44 'automation_internal.idl', | 44 'automation_internal.idl', |
| 45 'automation.idl', | 45 'automation.idl', |
| 46 'autotest_private.idl', | 46 'autotest_private.idl', |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 # Despite the name, this API does not rely on any | 128 # Despite the name, this API does not rely on any |
| 129 # WebRTC-specific bits and as such does not belong in | 129 # WebRTC-specific bits and as such does not belong in |
| 130 # the enable_webrtc=0 section below. | 130 # the enable_webrtc=0 section below. |
| 131 'webrtc_audio_private.idl', | 131 'webrtc_audio_private.idl', |
| 132 'webrtc_logging_private.idl', | 132 'webrtc_logging_private.idl', |
| 133 'webstore_private.json', | 133 'webstore_private.json', |
| 134 'webview.json', | 134 'webview.json', |
| 135 'windows.json', | 135 'windows.json', |
| 136 ], | 136 ], |
| 137 }, { # OS=="android" | 137 }, { # OS=="android" |
| 138 'schema_files': [ | 138 'non_compiled_schema_files': [ |
| 139 # These should be eliminated. See crbug.com/305852. | 139 ], |
| 140 'activity_log_private.json', | 140 'schema_files': [ |
| 141 'events.json', | 141 # These should be eliminated. See crbug.com/305852. |
| 142 'file_system.idl', | 142 'activity_log_private.json', |
| 143 'manifest_types.json', | 143 'events.json', |
| 144 'permissions.json', | 144 'file_system.idl', |
| 145 'sync_file_system.idl', | 145 'manifest_types.json', |
| 146 'tab_capture.idl', | 146 'permissions.json', |
| 147 'tabs.json', | 147 'sync_file_system.idl', |
| 148 'types.json', | 148 'tab_capture.idl', |
| 149 'webview.json', | 149 'tabs.json', |
| 150 'web_navigation.json', | 150 'types.json', |
| 151 'web_request.json', | 151 'webview.json', |
| 152 'windows.json', | 152 'web_navigation.json', |
| 153 ], | 153 'windows.json', |
| 154 ], |
| 154 }], | 155 }], |
| 155 ['chromeos==1', { | 156 ['chromeos==1', { |
| 156 'schema_files': [ | 157 'schema_files': [ |
| 157 'accessibility_features.json', | 158 'accessibility_features.json', |
| 158 'diagnostics.idl', | 159 'diagnostics.idl', |
| 159 'enterprise_platform_keys.idl', | 160 'enterprise_platform_keys.idl', |
| 160 'enterprise_platform_keys_internal.idl', | 161 'enterprise_platform_keys_internal.idl', |
| 161 'file_browser_handler_internal.json', | 162 'file_browser_handler_internal.json', |
| 162 'first_run_private.json', | 163 'first_run_private.json', |
| 163 'log_private.idl', | 164 'log_private.idl', |
| (...skipping 26 matching lines...) Expand all Loading... |
| 190 'conditions': [ | 191 'conditions': [ |
| 191 ['chromeos==1', { | 192 ['chromeos==1', { |
| 192 'dependencies': [ | 193 'dependencies': [ |
| 193 '<(DEPTH)/chrome/chrome.gyp:drive_proto', | 194 '<(DEPTH)/chrome/chrome.gyp:drive_proto', |
| 194 ], | 195 ], |
| 195 }], | 196 }], |
| 196 ], | 197 ], |
| 197 }, | 198 }, |
| 198 ], | 199 ], |
| 199 } | 200 } |
| OLD | NEW |