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 # All files are stored in these lists which are referenced in the target | |
7 # below so that the GN build of this target can read in this dictionary and | |
8 # duplicate the same logic without the lists getting out-of-sync. The GN | |
9 # .gypi reader can not process conditions and does not know about targets, | |
10 # etc., it just reads Python dictionaries. | |
11 # | |
12 # If you add a new category, also add it to the BUILD.gn file in this | |
13 # directory. | |
14 'variables': { | |
15 # These duplicate other lists and are the only ones used on Android. They | |
16 # should be eliminated. See crbug.com/305852. | |
17 'android_schema_files': [ | |
18 'activity_log_private.json', | |
19 'events.json', | |
20 'file_system.idl', | |
21 'manifest_types.json', | |
22 'permissions.json', | |
23 'sync_file_system.idl', | |
24 'tab_capture.idl', | |
25 'tabs.json', | |
26 'types.json', | |
27 'web_navigation.json', | |
28 'webview.json', | |
29 'windows.json', | |
30 ], | |
31 | |
32 # These are used everywhere except Android. | |
33 'main_schema_files': [ | |
34 'accessibility_private.json', | |
35 'activity_log_private.json', | |
36 'alarms.idl', | |
37 'app_current_window_internal.idl', | |
38 'app_window.idl', | |
39 'audio.idl', | |
40 'automation.idl', | |
41 'automation_internal.idl', | |
42 'autotest_private.idl', | |
43 'bluetooth.idl', | |
44 'bluetooth_low_energy.idl', | |
45 'bluetooth_private.json', | |
46 'bluetooth_socket.idl', | |
47 'bookmark_manager_private.json', | |
48 'bookmarks.json', | |
49 'braille_display_private.idl', | |
50 'browser.idl', | |
51 'cast_channel.idl', | |
52 'cloud_print_private.json', | |
53 'command_line_private.json', | |
54 'content_settings.json', | |
55 'context_menus_internal.json', | |
56 'context_menus.json', | |
57 'cookies.json', | |
58 'debugger.json', | |
59 'desktop_capture.json', | |
60 'developer_private.idl', | |
61 'dial.idl', | |
62 'downloads.idl', | |
63 'downloads_internal.idl', | |
64 'echo_private.json', | |
65 'enterprise_platform_keys_private.json', | |
66 'events.json', | |
67 'feedback_private.idl', | |
68 'file_browser_private.idl', | |
69 'file_browser_private_internal.idl', | |
70 'file_system.idl', | |
71 'file_system_provider.idl', | |
72 'file_system_provider_internal.idl', | |
73 'font_settings.json', | |
74 'gcd_private.idl', | |
75 'gcm.json', | |
76 'guest_view_internal.json', | |
77 'hangouts_private.idl', | |
78 'hid.idl', | |
79 'history.json', | |
80 'hotword_private.idl', | |
81 'i18n.json', | |
82 'identity.idl', | |
83 'identity_private.idl', | |
84 'idle.json', | |
85 'image_writer_private.idl', | |
86 'input_ime.json', | |
87 'location.idl', | |
88 'management.json', | |
89 'manifest_types.json', | |
90 'mdns.idl', | |
91 'media_galleries.idl', | |
92 'media_galleries_private.idl', | |
93 'metrics_private.json', | |
94 'networking_private.json', | |
95 'notifications.idl', | |
96 'omnibox.json', | |
97 'page_capture.json', | |
98 'permissions.json', | |
99 'power.idl', | |
100 'preferences_private.json', | |
101 'push_messaging.idl', | |
102 'reading_list_private.json', | |
103 'screenlock_private.idl', | |
104 'serial.idl', | |
105 'sessions.json', | |
106 'signed_in_devices.idl', | |
107 'streams_private.idl', | |
108 'synced_notifications_private.idl', | |
109 'sync_file_system.idl', | |
110 'system_cpu.idl', | |
111 'system_display.idl', | |
112 'system_indicator.idl', | |
113 'system_memory.idl', | |
114 'system_network.idl', | |
115 'system_private.json', | |
116 'system_storage.idl', | |
117 'tab_capture.idl', | |
118 'tabs.json', | |
119 'terminal_private.json', | |
120 'types.json', | |
121 'virtual_keyboard_private.json', | |
122 'web_navigation.json', | |
123 'web_request.json', | |
124 # Despite the name, this API does not rely on any | |
125 # WebRTC-specific bits and as such does not belong in | |
126 # the enable_webrtc=0 section below. | |
127 'webrtc_audio_private.idl', | |
128 'webrtc_logging_private.idl', | |
129 'webstore_private.json', | |
130 'webview.json', | |
131 'windows.json', | |
132 ], | |
133 'main_non_compiled_schema_files': [ | |
134 'browsing_data.json', | |
135 'chromeos_info_private.json', | |
136 'extension.json', | |
137 'idltest.idl', | |
138 'infobars.json', | |
139 'media_player_private.json', | |
140 'music_manager_private.idl', | |
141 'principals_private.idl', | |
142 'top_sites.json', | |
143 'web_request_internal.json', | |
144 ], | |
145 | |
146 # ChromeOS-specific schemas. | |
147 'chromeos_schema_files': [ | |
148 'accessibility_features.json', | |
149 'diagnostics.idl', | |
150 'enterprise_platform_keys.idl', | |
151 'enterprise_platform_keys_internal.idl', | |
152 'file_browser_handler_internal.json', | |
153 'first_run_private.json', | |
154 'log_private.idl', | |
155 'wallpaper.json', | |
156 'wallpaper_private.json', | |
157 'webcam_private.idl', | |
158 ], | |
159 'chromeos_branded_schema_files': [ | |
160 'ledger/ledger.idl', | |
161 ], | |
162 | |
163 'webrtc_schema_files': [ | |
164 'cast_streaming_rtp_stream.idl', | |
165 'cast_streaming_session.idl', | |
166 'cast_streaming_udp_transport.idl', | |
167 ], | |
168 }, | |
6 'targets': [ | 169 'targets': [ |
7 { | 170 { |
171 # GN version: //chrome/common/extensions/api:api | |
8 'target_name': 'chrome_api', | 172 'target_name': 'chrome_api', |
9 'type': 'static_library', | 173 'type': 'static_library', |
10 'sources': [ | 174 'sources': [ |
11 '<@(schema_files)', | 175 '<@(schema_files)', |
12 ], | 176 ], |
13 # TODO(jschuh): http://crbug.com/167187 size_t -> int | 177 # TODO(jschuh): http://crbug.com/167187 size_t -> int |
14 'msvs_disabled_warnings': [ 4267 ], | 178 'msvs_disabled_warnings': [ 4267 ], |
15 'includes': [ | 179 'includes': [ |
16 '../../../../build/json_schema_bundle_compile.gypi', | 180 '../../../../build/json_schema_bundle_compile.gypi', |
17 '../../../../build/json_schema_compile.gypi', | 181 '../../../../build/json_schema_compile.gypi', |
18 ], | 182 ], |
19 'variables': { | 183 'variables': { |
20 'chromium_code': 1, | 184 'chromium_code': 1, |
21 # Disable schema compiler to generate model extension API code. | 185 # Disable schema compiler to generate model extension API code. |
22 # Only register the extension functions in extension system. | 186 # Only register the extension functions in extension system. |
23 'conditions': [ | 187 'conditions': [ |
24 ['OS!="android"', { | 188 ['OS!="android"', { |
25 'non_compiled_schema_files': [ | 189 'non_compiled_schema_files': [ |
26 'browsing_data.json', | 190 '<@(main_non_compiled_schema_files)', |
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 ], | 191 ], |
37 'schema_files': [ | 192 'schema_files': [ |
38 'accessibility_private.json', | 193 '<@(main_schema_files)', |
39 'activity_log_private.json', | |
40 'alarms.idl', | |
41 'app_current_window_internal.idl', | |
42 'app_window.idl', | |
43 'audio.idl', | |
44 'automation_internal.idl', | |
45 'automation.idl', | |
46 'autotest_private.idl', | |
47 'bluetooth.idl', | |
48 'bluetooth_low_energy.idl', | |
49 'bluetooth_private.json', | |
50 'bluetooth_socket.idl', | |
51 'bookmark_manager_private.json', | |
52 'bookmarks.json', | |
53 'browser.idl', | |
54 'braille_display_private.idl', | |
55 'cast_channel.idl', | |
56 'cloud_print_private.json', | |
57 'command_line_private.json', | |
58 'content_settings.json', | |
59 'context_menus.json', | |
60 'context_menus_internal.json', | |
61 'cookies.json', | |
62 'debugger.json', | |
63 'desktop_capture.json', | |
64 'developer_private.idl', | |
65 'dial.idl', | |
66 'downloads.idl', | |
67 'downloads_internal.idl', | |
68 'echo_private.json', | |
69 'enterprise_platform_keys_private.json', | |
70 'events.json', | |
71 'feedback_private.idl', | |
72 'file_browser_private.idl', | |
73 'file_browser_private_internal.idl', | |
74 'file_system.idl', | |
75 'file_system_provider.idl', | |
76 'file_system_provider_internal.idl', | |
77 'font_settings.json', | |
78 'gcd_private.idl', | |
79 'gcm.json', | |
80 'guest_view_internal.json', | |
81 'hangouts_private.idl', | |
82 'hid.idl', | |
83 'history.json', | |
84 'hotword_private.idl', | |
85 'i18n.json', | |
86 'identity.idl', | |
87 'identity_private.idl', | |
88 'idle.json', | |
89 'image_writer_private.idl', | |
90 'input_ime.json', | |
91 'location.idl', | |
92 'management.json', | |
93 'manifest_types.json', | |
94 'mdns.idl', | |
95 'media_galleries.idl', | |
96 'media_galleries_private.idl', | |
97 'metrics_private.json', | |
98 'networking_private.json', | |
99 'notifications.idl', | |
100 'omnibox.json', | |
101 'page_capture.json', | |
102 'permissions.json', | |
103 'preferences_private.json', | |
104 'power.idl', | |
105 'push_messaging.idl', | |
106 'reading_list_private.json', | |
107 'screenlock_private.idl', | |
108 'serial.idl', | |
109 'sessions.json', | |
110 'signed_in_devices.idl', | |
111 'streams_private.idl', | |
112 'sync_file_system.idl', | |
113 'synced_notifications_private.idl', | |
114 'system_cpu.idl', | |
115 'system_display.idl', | |
116 'system_indicator.idl', | |
117 'system_memory.idl', | |
118 'system_network.idl', | |
119 'system_private.json', | |
120 'system_storage.idl', | |
121 'tab_capture.idl', | |
122 'tabs.json', | |
123 'terminal_private.json', | |
124 'types.json', | |
125 'virtual_keyboard_private.json', | |
126 'web_navigation.json', | |
127 'web_request.json', | |
128 # Despite the name, this API does not rely on any | |
129 # WebRTC-specific bits and as such does not belong in | |
130 # the enable_webrtc=0 section below. | |
131 'webrtc_audio_private.idl', | |
132 'webrtc_logging_private.idl', | |
133 'webstore_private.json', | |
134 'webview.json', | |
135 'windows.json', | |
136 ], | 194 ], |
137 }, { # OS=="android" | 195 }, { # OS=="android" |
138 'non_compiled_schema_files': [ | 196 'non_compiled_schema_files': [ |
139 ], | 197 ], |
140 'schema_files': [ | 198 'schema_files': [ |
141 # These should be eliminated. See crbug.com/305852. | 199 # These should be eliminated. See crbug.com/305852. |
142 'activity_log_private.json', | 200 '<@(android_schema_files)', |
143 'events.json', | |
144 'file_system.idl', | |
145 'manifest_types.json', | |
146 'permissions.json', | |
147 'sync_file_system.idl', | |
148 'tab_capture.idl', | |
149 'tabs.json', | |
150 'types.json', | |
151 'webview.json', | |
152 'web_navigation.json', | |
153 'windows.json', | |
154 ], | 201 ], |
155 }], | 202 }], |
156 ['chromeos==1', { | 203 ['chromeos==1', { |
157 'schema_files': [ | 204 'schema_files': [ |
158 'accessibility_features.json', | 205 '<@(chromeos_schema_files)', |
159 'diagnostics.idl', | |
160 'enterprise_platform_keys.idl', | |
161 'enterprise_platform_keys_internal.idl', | |
162 'file_browser_handler_internal.json', | |
163 'first_run_private.json', | |
164 'log_private.idl', | |
165 'wallpaper.json', | |
166 'wallpaper_private.json', | |
167 'webcam_private.idl', | |
168 ], | 206 ], |
169 }], | 207 }], |
170 ['enable_webrtc==1', { | 208 ['enable_webrtc==1', { |
171 'schema_files': [ | 209 'schema_files': [ |
172 'cast_streaming_rtp_stream.idl', | 210 '<@(webrtc_schema_files)', |
173 'cast_streaming_session.idl', | |
174 'cast_streaming_udp_transport.idl', | |
175 ], | 211 ], |
176 }], | 212 }], |
177 ['branding=="Chrome" and chromeos==1', { | 213 ['branding=="Chrome" and chromeos==1', { |
178 'schema_files': [ | 214 'schema_files': [ |
179 'ledger/ledger.idl', | 215 '<@(chromeos_branded_schema_files)', |
180 ], | 216 ], |
181 }], | 217 }], |
182 ], | 218 ], |
183 'cc_dir': 'chrome/common/extensions/api', | 219 'cc_dir': 'chrome/common/extensions/api', |
184 'root_namespace': 'extensions::api', | 220 'root_namespace': 'extensions::api', |
185 }, | 221 }, |
186 'dependencies': [ | 222 'dependencies': [ |
223 # Different APIs include some headers crom chrome/common that in turn | |
jamesr
2014/06/20 21:45:08
copy-pasted typo here
s/crom/from/
| |
224 # include generated headers from these targets. | |
225 # TODO(brettw) this should be made unnecessary if possible. | |
226 '<(DEPTH)/components/components.gyp:component_metrics_proto', | |
227 '<(DEPTH)/device/serial/serial.gyp:device_serial', | |
228 | |
187 '<(DEPTH)/content/content.gyp:content_browser', | 229 '<(DEPTH)/content/content.gyp:content_browser', |
188 '<(DEPTH)/skia/skia.gyp:skia', | 230 '<(DEPTH)/skia/skia.gyp:skia', |
189 '<(DEPTH)/sync/sync.gyp:sync', | 231 '<(DEPTH)/sync/sync.gyp:sync', |
190 ], | 232 ], |
191 'conditions': [ | 233 'conditions': [ |
192 ['chromeos==1', { | 234 ['chromeos==1', { |
193 'dependencies': [ | 235 'dependencies': [ |
194 '<(DEPTH)/chrome/chrome.gyp:drive_proto', | 236 '<(DEPTH)/chrome/chrome.gyp:drive_proto', |
195 ], | 237 ], |
196 }], | 238 }], |
197 ], | 239 ], |
198 }, | 240 }, |
199 ], | 241 ], |
200 } | 242 } |
OLD | NEW |