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': 'api', | 8 'target_name': '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 'schema_files': [ | 21 'conditions': [ |
22 'alarms.idl', | 22 ['OS!="android"', { |
23 'activity_log_private.json', | 23 'schema_files': [ |
24 'adview.json', | 24 'activity_log_private.json', |
25 'app_current_window_internal.idl', | 25 'adview.json', |
26 'app_runtime.idl', | 26 'alarms.idl', |
27 'app_window.idl', | 27 'app_current_window_internal.idl', |
28 'audio.idl', | 28 'app_runtime.idl', |
29 'autotest_private.idl', | 29 'app_window.idl', |
30 'bluetooth.idl', | 30 'audio.idl', |
31 'bookmark_manager_private.json', | 31 'autotest_private.idl', |
32 'bookmarks.json', | 32 'bluetooth.idl', |
33 'braille_display_private.idl', | 33 'bookmark_manager_private.json', |
34 'browsing_data.json', | 34 'bookmarks.json', |
35 'cast_channel.idl', | 35 'braille_display_private.idl', |
36 'chromeos_info_private.json', | 36 'browsing_data.json', |
37 'cloud_print_private.json', | 37 'cast_channel.idl', |
38 'command_line_private.json', | 38 'chromeos_info_private.json', |
39 'content_settings.json', | 39 'cloud_print_private.json', |
40 'context_menus.json', | 40 'command_line_private.json', |
41 'cookies.json', | 41 'content_settings.json', |
42 'debugger.json', | 42 'context_menus.json', |
43 'developer_private.idl', | 43 'cookies.json', |
44 'desktop_capture.idl', | 44 'debugger.json', |
45 'diagnostics.idl', | 45 'desktop_capture.idl', |
46 'dial.idl', | 46 'developer_private.idl', |
47 'dns.idl', | 47 'diagnostics.idl', |
48 'downloads.idl', | 48 'dial.idl', |
49 'echo_private.json', | 49 'dns.idl', |
50 'downloads_internal.idl', | 50 'downloads.idl', |
51 'enterprise_platform_keys_private.json', | 51 'downloads_internal.idl', |
52 'events.json', | 52 'echo_private.json', |
53 'experimental_accessibility.json', | 53 'enterprise_platform_keys_private.json', |
54 'experimental_discovery.idl', | 54 'events.json', |
55 'experimental_history.json', | 55 'experimental_accessibility.json', |
56 'experimental_identity.idl', | 56 'experimental_discovery.idl', |
57 'file_browser_private.json', | 57 'experimental_history.json', |
58 'location.idl', | 58 'experimental_identity.idl', |
59 'system_memory.idl', | 59 'extension.json', |
60 'extension.json', | 60 'feedback_private.idl', |
61 'feedback_private.idl', | 61 'file_browser_private.json', |
62 'file_browser_handler_internal.json', | 62 'file_system.idl', |
63 'file_system.idl', | 63 'font_settings.json', |
64 'font_settings.json', | 64 'history.json', |
65 'history.json', | 65 'i18n.json', |
66 'i18n.json', | 66 'identity.idl', |
67 'identity.idl', | 67 'identity_private.idl', |
68 'identity_private.idl', | 68 'idle.json', |
69 'idle.json', | 69 'idltest.idl', |
70 'idltest.idl', | 70 'image_writer_private.idl', |
71 'infobars.json', | 71 'infobars.json', |
72 'input_ime.json', | 72 'input_ime.json', |
73 'log_private.idl', | 73 'location.idl', |
74 'management.json', | 74 'log_private.idl', |
75 'manifest_types.json', | 75 'management.json', |
76 'mdns.idl', | 76 'manifest_types.json', |
77 'media_galleries.idl', | 77 'mdns.idl', |
78 'media_galleries_private.idl', | 78 'media_galleries.idl', |
79 'media_player_private.json', | 79 'media_galleries_private.idl', |
80 'metrics_private.json', | 80 'media_player_private.json', |
81 'music_manager_private.idl', | 81 'metrics_private.json', |
82 'networking_private.json', | 82 'music_manager_private.idl', |
83 'notifications.idl', | 83 'networking_private.json', |
84 'omnibox.json', | 84 'notifications.idl', |
85 'page_capture.json', | 85 'omnibox.json', |
86 'permissions.json', | 86 'page_capture.json', |
87 'preferences_private.json', | 87 'permissions.json', |
88 'principals_private.idl', | 88 'power.idl', |
89 'power.idl', | 89 'preferences_private.json', |
90 'push_messaging.idl', | 90 'principals_private.idl', |
91 'image_writer_private.idl', | 91 'push_messaging.idl', |
92 'runtime.json', | 92 'runtime.json', |
93 'serial.idl', | 93 'serial.idl', |
94 'sessions.json', | 94 'sessions.json', |
95 'signed_in_devices.idl', | 95 'signed_in_devices.idl', |
96 'socket.idl', | 96 'socket.idl', |
97 'sockets_udp.idl', | 97 'sockets_udp.idl', |
98 'storage.json', | 98 'storage.json', |
99 'sync_file_system.idl', | 99 'sync_file_system.idl', |
100 'system_indicator.idl', | 100 'system_cpu.idl', |
101 'system_cpu.idl', | 101 'system_display.idl', |
102 'system_display.idl', | 102 'system_indicator.idl', |
103 'system_storage.idl', | 103 'system_memory.idl', |
104 'system_private.json', | 104 'system_private.json', |
105 'tab_capture.idl', | 105 'system_storage.idl', |
106 'tabs.json', | 106 'tab_capture.idl', |
107 'terminal_private.json', | 107 'tabs.json', |
108 'test.json', | 108 'terminal_private.json', |
109 'top_sites.json', | 109 'test.json', |
110 'usb.idl', | 110 'top_sites.json', |
111 'virtual_keyboard_private.json', | 111 'usb.idl', |
112 'wallpaper.json', | 112 'virtual_keyboard_private.json', |
113 'wallpaper_private.json', | 113 'web_navigation.json', |
114 'web_navigation.json', | 114 'web_request.json', |
115 'web_request.json', | 115 'webstore_private.json', |
116 'webrtc_cast_send_transport.idl', | 116 'webview.json', |
117 'webrtc_logging_private.idl', | 117 'windows.json', |
118 'webrtc_udp_transport.idl', | 118 ], |
119 'webstore_private.json', | 119 }, { # OS=="android" |
120 'webview.json', | 120 'schema_files': [ |
121 'windows.json', | 121 # These should be eliminated. See crbug.com/305852. |
| 122 'activity_log_private.json', |
| 123 'alarms.idl', |
| 124 'app_runtime.idl', |
| 125 'app_window.idl', |
| 126 'context_menus.json', |
| 127 'downloads.idl', |
| 128 'events.json', |
| 129 'feedback_private.idl', |
| 130 'file_system.idl', |
| 131 'manifest_types.json', |
| 132 'omnibox.json', |
| 133 'permissions.json', |
| 134 'runtime.json', |
| 135 'storage.json', |
| 136 'sync_file_system.idl', |
| 137 'tab_capture.idl', |
| 138 'tabs.json', |
| 139 'web_navigation.json', |
| 140 'web_request.json', |
| 141 'windows.json', |
| 142 ], |
| 143 }], |
| 144 ['chromeos==1', { |
| 145 'schema_files': [ |
| 146 'file_browser_handler_internal.json', |
| 147 'wallpaper.json', |
| 148 'wallpaper_private.json', |
| 149 ], |
| 150 }], |
| 151 ['enable_webrtc==1', { |
| 152 'schema_files': [ |
| 153 'webrtc_cast_send_transport.idl', |
| 154 'webrtc_logging_private.idl', |
| 155 'webrtc_udp_transport.idl', |
| 156 ], |
| 157 }], |
122 ], | 158 ], |
123 'cc_dir': 'chrome/common/extensions/api', | 159 'cc_dir': 'chrome/common/extensions/api', |
124 'root_namespace': 'extensions::api', | 160 'root_namespace': 'extensions::api', |
125 }, | 161 }, |
126 'dependencies': [ | 162 'dependencies': [ |
127 '<(DEPTH)/skia/skia.gyp:skia', | 163 '<(DEPTH)/skia/skia.gyp:skia', |
128 '<(DEPTH)/sync/sync.gyp:sync', | 164 '<(DEPTH)/sync/sync.gyp:sync', |
129 ], | 165 ], |
130 'conditions': [ | 166 'conditions': [ |
131 ['OS=="android"', { | 167 ['chromeos==1', { |
132 'sources!': [ | 168 'dependencies': [ |
133 'autotest_private.idl', | 169 '<(DEPTH)/chrome/chrome.gyp:drive_proto', |
134 'bookmark_manager_private.json', | |
135 'browsing_data.json', | |
136 'chromeos_info_private.json', | |
137 'command_line_private.json', | |
138 'developer_private.idl', | |
139 'dial.idl', | |
140 'downloads_internal.idl', | |
141 'echo_private.json', | |
142 'enterprise_platform_keys_private.json', | |
143 'experimental_accessibility.json', | |
144 'experimental_discovery.idl', | |
145 'experimental_dns.idl', | |
146 'experimental_history.json', | |
147 'experimental_identity.idl', | |
148 'experimental_idltest.idl', | |
149 'extension.json', | |
150 'file_browser_handler_internal.json', | |
151 'font_settings.json', | |
152 'i18n.json', | |
153 'identity.idl', | |
154 'identity_private.idl', | |
155 'idle.json', | |
156 'infobars.json', | |
157 'input_ime.json', | |
158 'media_player_private.json', | |
159 'music_manager_private.idl', | |
160 'networking_private.json', | |
161 'power.idl', | |
162 'principals_private.idl', | |
163 'system_indicator.idl', | |
164 'system_private.json', | |
165 'terminal_private.json', | |
166 'test.json', | |
167 'top_sites.json', | |
168 'webview.json', | |
169 ], | |
170 }], | |
171 ['OS!="chromeos"', { | |
172 'schema_files!': [ | |
173 'file_browser_handler_internal.json', | |
174 'log_private.idl', | |
175 'virtual_keyboard_private.json', | |
176 'wallpaper.json', | |
177 'wallpaper_private.json', | |
178 ], | |
179 }], | |
180 ['enable_webrtc==0', { | |
181 'schema_files!': [ | |
182 'webrtc_logging_private.idl', | |
183 ], | 170 ], |
184 }], | 171 }], |
185 ], | 172 ], |
186 }, | 173 }, |
187 ], | 174 ], |
188 } | 175 } |
OLD | NEW |