blob: 6f0491ae1c9e21b1c31a0375b4e407f730764fb5 [file] [log] [blame]
[email protected]e284e6d82010-01-29 19:49:451# Copyright (c) 2010 The Chromium Authors. All rights reserved.
[email protected]dd363682009-12-28 20:30:462# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5{
6 'target_defaults': {
7 'variables': {
8 'chrome_common_target': 0,
9 },
10 'target_conditions': [
11 ['chrome_common_target==1', {
12 'include_dirs': [
13 '..',
14 ],
15 'conditions': [
16 ['OS=="win"', {
17 'include_dirs': [
[email protected]cd134c8c2010-03-09 05:23:1218 '<(DEPTH)/third_party/wtl/include',
[email protected]dd363682009-12-28 20:30:4619 ],
[email protected]dd363682009-12-28 20:30:4620 }],
21 ],
22 'sources': [
23 # .cc, .h, and .mm files under chrome/common that are used on all
24 # platforms, including both 32-bit and 64-bit Windows.
25 # Test files are not included.
[email protected]3e0f7d522010-06-18 04:09:1426 'common/about_handler.cc',
27 'common/about_handler.h',
[email protected]646b9b92010-04-30 21:51:5828 'common/app_mode_common_mac.h',
29 'common/app_mode_common_mac.mm',
[email protected]dd363682009-12-28 20:30:4630 'common/bindings_policy.h',
31 'common/child_process.cc',
32 'common/child_process.h',
33 'common/child_process_info.cc',
34 'common/child_process_info.h',
35 'common/child_process_logging.h',
36 'common/child_process_logging_linux.cc',
37 'common/child_process_logging_mac.mm',
38 'common/child_process_logging_win.cc',
39 'common/child_thread.cc',
40 'common/child_thread.h',
41 'common/chrome_counters.cc',
42 'common/chrome_counters.h',
43 'common/common_param_traits.cc',
44 'common/common_param_traits.h',
[email protected]aee541e2010-03-19 01:52:4545 'common/content_settings.cc',
46 'common/content_settings.h',
[email protected]f895131a2010-07-23 05:36:0247 'common/content_settings_helper.cc',
48 'common/content_settings_helper.h',
[email protected]aee541e2010-03-19 01:52:4549 'common/content_settings_types.h',
[email protected]dd363682009-12-28 20:30:4650 'common/debug_flags.cc',
51 'common/debug_flags.h',
52 'common/devtools_messages.h',
53 'common/devtools_messages_internal.h',
[email protected]20199662010-06-17 03:29:2654 'common/font_descriptor_mac.h',
55 'common/font_descriptor_mac.mm',
[email protected]58c321d2010-02-19 12:11:2856 'common/geoposition.cc',
[email protected]7c927b62010-02-24 09:54:1357 'common/geoposition.h',
[email protected]1bf14bc2010-07-09 16:10:4358 'common/gpu_info.h',
59 'common/gpu_info.cc',
[email protected]c0fc0942010-01-13 00:55:3760 'common/gpu_messages.h',
61 'common/gpu_messages_internal.h',
[email protected]5c71640c2010-07-14 14:29:4062 'common/indexed_db_key.cc',
63 'common/indexed_db_key.h',
[email protected]dd363682009-12-28 20:30:4664 'common/logging_chrome.cc',
65 'common/logging_chrome.h',
66 'common/main_function_params.h',
67 'common/message_router.cc',
68 'common/message_router.h',
[email protected]1226abb2010-06-10 18:01:2869 'common/metrics_helpers.cc',
[email protected]3e0f7d522010-06-18 04:09:1470 'common/metrics_helpers.h',
[email protected]103607e2010-02-01 18:57:0971 'common/nacl_cmd_line.cc',
72 'common/nacl_cmd_line.h',
[email protected]dd363682009-12-28 20:30:4673 'common/nacl_messages.h',
[email protected]103607e2010-02-01 18:57:0974 'common/nacl_types.h',
[email protected]dd363682009-12-28 20:30:4675 'common/nacl_messages_internal.h',
[email protected]201366472010-07-16 17:22:4976 'common/notification_details.cc',
[email protected]dd363682009-12-28 20:30:4677 'common/notification_details.h',
78 'common/notification_observer.h',
79 'common/notification_registrar.cc',
80 'common/notification_registrar.h',
81 'common/notification_service.cc',
82 'common/notification_service.h',
[email protected]201366472010-07-16 17:22:4983 'common/notification_source.cc',
[email protected]dd363682009-12-28 20:30:4684 'common/notification_source.h',
85 'common/notification_type.h',
[email protected]ed17c7b2010-07-14 12:03:3386 'common/plugin_group.cc',
87 'common/plugin_group.h',
[email protected]dd363682009-12-28 20:30:4688 'common/process_watcher_mac.cc',
89 'common/process_watcher_posix.cc',
90 'common/process_watcher_win.cc',
91 'common/process_watcher.h',
92 'common/property_bag.cc',
93 'common/property_bag.h',
94 'common/ref_counted_util.h',
[email protected]7c927b62010-02-24 09:54:1395 'common/resource_response.h',
[email protected]dd363682009-12-28 20:30:4696 'common/result_codes.h',
97 'common/sandbox_init_wrapper.h',
98 'common/sandbox_init_wrapper_linux.cc',
99 'common/sandbox_init_wrapper_mac.cc',
100 'common/sandbox_init_wrapper_win.cc',
101 'common/sandbox_mac.h',
102 'common/sandbox_mac.mm',
[email protected]382abc22010-01-17 10:09:39103 'common/sandbox_policy.cc',
104 'common/sandbox_policy.h',
[email protected]5c71640c2010-07-14 14:29:40105 'common/serialized_script_value.cc',
106 'common/serialized_script_value.h',
[email protected]dd363682009-12-28 20:30:46107 'common/task_queue.cc',
108 'common/task_queue.h',
109 'common/time_format.cc',
110 'common/time_format.h',
[email protected]dd363682009-12-28 20:30:46111 'common/win_safe_util.cc',
112 'common/win_safe_util.h',
113 ],
114 }],
115 ],
116 },
117 'targets': [
118 {
119 'target_name': 'common',
120 'type': '<(library)',
121 'msvs_guid': '899F1280-3441-4D1F-BA04-CCD6208D9146',
122 'variables': {
123 'chrome_common_target': 1,
124 },
125 # TODO(gregoryd): This could be shared with the 64-bit target, but
126 # it does not work due to a gyp issue.
127 'direct_dependent_settings': {
128 'include_dirs': [
129 '..',
130 ],
131 },
132 'dependencies': [
133 # TODO(gregoryd): chrome_resources and chrome_strings could be
134 # shared with the 64-bit target, but it does not work due to a gyp
135 # issue.
136 'chrome_resources',
137 'chrome_strings',
138 'common_constants',
[email protected]3c3065d2010-05-06 21:59:55139 'common_net',
[email protected]0d64bb72010-07-07 05:36:38140 'default_plugin/default_plugin.gyp:default_plugin',
[email protected]dd363682009-12-28 20:30:46141 'theme_resources',
142 '../app/app.gyp:app_base',
143 '../app/app.gyp:app_resources',
144 '../base/base.gyp:base',
145 '../base/base.gyp:base_i18n',
146 '../build/temp_gyp/googleurl.gyp:googleurl',
147 '../ipc/ipc.gyp:ipc',
148 '../net/net.gyp:net',
[email protected]13095402010-07-20 00:15:43149 '../printing/printing.gyp:printing',
[email protected]dd363682009-12-28 20:30:46150 '../skia/skia.gyp:skia',
[email protected]423bfef2010-06-18 17:17:28151 '../third_party/bzip2/bzip2.gyp:bzip2',
[email protected]dd363682009-12-28 20:30:46152 '../third_party/icu/icu.gyp:icui18n',
153 '../third_party/icu/icu.gyp:icuuc',
154 '../third_party/libxml/libxml.gyp:libxml',
155 '../third_party/sqlite/sqlite.gyp:sqlite',
156 '../third_party/zlib/zlib.gyp:zlib',
157 '../third_party/npapi/npapi.gyp:npapi',
[email protected]69d3dfe82010-05-14 03:21:55158 '../webkit/support/webkit_support.gyp:appcache',
159 '../webkit/support/webkit_support.gyp:glue',
[email protected]dd363682009-12-28 20:30:46160 ],
161 'sources': [
162 # .cc, .h, and .mm files under chrome/common that are not required for
163 # building 64-bit Windows targets. Test files are not included.
164 'common/desktop_notifications/active_notification_tracker.h',
165 'common/desktop_notifications/active_notification_tracker.cc',
166 'common/extensions/extension.cc',
167 'common/extensions/extension.h',
[email protected]7c927b62010-02-24 09:54:13168 'common/extensions/extension_action.cc',
169 'common/extensions/extension_action.h',
[email protected]dd363682009-12-28 20:30:46170 'common/extensions/extension_constants.cc',
171 'common/extensions/extension_constants.h',
[email protected]dd363682009-12-28 20:30:46172 'common/extensions/extension_error_utils.cc',
173 'common/extensions/extension_error_utils.h',
[email protected]867a73e12010-03-19 20:45:46174 'common/extensions/extension_extent.cc',
175 'common/extensions/extension_extent.h',
[email protected]7c927b62010-02-24 09:54:13176 'common/extensions/extension_file_util.cc',
177 'common/extensions/extension_file_util.h',
[email protected]dd363682009-12-28 20:30:46178 'common/extensions/extension_l10n_util.cc',
179 'common/extensions/extension_l10n_util.h',
[email protected]8a58f9a2010-05-18 18:38:09180 'common/extensions/extension_localization_peer.cc',
181 'common/extensions/extension_localization_peer.h',
[email protected]dd363682009-12-28 20:30:46182 'common/extensions/extension_message_bundle.cc',
183 'common/extensions/extension_message_bundle.h',
184 'common/extensions/extension_resource.cc',
185 'common/extensions/extension_resource.h',
186 'common/extensions/extension_unpacker.cc',
187 'common/extensions/extension_unpacker.h',
188 'common/extensions/update_manifest.cc',
189 'common/extensions/update_manifest.h',
190 'common/extensions/url_pattern.cc',
191 'common/extensions/url_pattern.h',
192 'common/extensions/user_script.cc',
193 'common/extensions/user_script.h',
[email protected]dd363682009-12-28 20:30:46194 'common/web_resource/web_resource_unpacker.cc',
195 'common/web_resource/web_resource_unpacker.h',
196 'common/appcache/appcache_backend_proxy.cc',
197 'common/appcache/appcache_backend_proxy.h',
198 'common/appcache/appcache_dispatcher.cc',
199 'common/appcache/appcache_dispatcher.h',
[email protected]dd363682009-12-28 20:30:46200 'common/automation_constants.cc',
201 'common/automation_constants.h',
[email protected]d27893f62010-07-03 05:47:42202 'common/child_process_host.cc',
203 'common/child_process_host.h',
[email protected]dd363682009-12-28 20:30:46204 'common/chrome_descriptors.h',
205 'common/chrome_plugin_api.h',
206 'common/chrome_plugin_lib.cc',
207 'common/chrome_plugin_lib.h',
208 'common/chrome_plugin_util.cc',
209 'common/chrome_plugin_util.h',
[email protected]dd363682009-12-28 20:30:46210 'common/common_glue.cc',
211 'common/css_colors.h',
[email protected]2b437e232010-04-02 01:30:08212 'common/database_util.cc',
213 'common/database_util.h',
[email protected]dd363682009-12-28 20:30:46214 'common/db_message_filter.cc',
215 'common/db_message_filter.h',
[email protected]2290cb862010-06-02 16:50:58216 'common/default_plugin.cc',
217 'common/default_plugin.h',
[email protected]106113b32010-04-26 22:17:37218 'common/deprecated/event_sys-inl.h',
219 'common/deprecated/event_sys.h',
[email protected]2290cb862010-06-02 16:50:58220 'common/dom_storage_common.h',
[email protected]865f37922010-05-23 16:43:44221 'common/font_loader_mac.h',
222 'common/font_loader_mac.mm',
[email protected]dd363682009-12-28 20:30:46223 'common/gears_api.h',
224 'common/gpu_plugin.cc',
225 'common/gpu_plugin.h',
[email protected]6658ca82010-05-20 18:20:29226 'common/important_file_writer.cc',
227 'common/important_file_writer.h',
[email protected]ea587b02010-05-21 15:01:35228 'common/json_pref_store.cc',
229 'common/json_pref_store.h',
[email protected]dd363682009-12-28 20:30:46230 'common/jstemplate_builder.cc',
231 'common/jstemplate_builder.h',
232 'common/libxml_utils.cc',
233 'common/libxml_utils.h',
234 'common/mru_cache.h',
235 'common/navigation_gesture.h',
236 'common/navigation_types.h',
237 'common/native_web_keyboard_event.h',
238 'common/native_web_keyboard_event_linux.cc',
239 'common/native_web_keyboard_event_mac.mm',
240 'common/native_web_keyboard_event_win.cc',
241 'common/native_window_notification_source.h',
242 'common/owned_widget_gtk.cc',
243 'common/owned_widget_gtk.h',
[email protected]bb0a6a02010-04-01 21:17:00244 'common/page_transition_types.cc',
[email protected]dd363682009-12-28 20:30:46245 'common/page_transition_types.h',
246 'common/page_zoom.h',
[email protected]4e0616e2010-05-28 14:55:53247 'common/pepper_plugin_registry.cc',
248 'common/pepper_plugin_registry.h',
[email protected]dd363682009-12-28 20:30:46249 'common/plugin_carbon_interpose_constants_mac.h',
250 'common/plugin_carbon_interpose_constants_mac.cc',
251 'common/plugin_messages.h',
252 'common/plugin_messages_internal.h',
[email protected]dd363682009-12-28 20:30:46253 'common/render_messages.h',
254 'common/render_messages_internal.h',
255 'common/renderer_preferences.h',
256 'common/resource_dispatcher.cc',
257 'common/resource_dispatcher.h',
258 'common/security_filter_peer.cc',
259 'common/security_filter_peer.h',
[email protected]38fe1962010-07-31 07:57:00260 'common/service_messages.h',
261 'common/services_messages_internal.h',
[email protected]dd363682009-12-28 20:30:46262 'common/socket_stream_dispatcher.cc',
263 'common/socket_stream_dispatcher.h',
264 'common/spellcheck_common.cc',
265 'common/spellcheck_common.h',
266 'common/sqlite_compiled_statement.cc',
267 'common/sqlite_compiled_statement.h',
268 'common/sqlite_utils.cc',
269 'common/sqlite_utils.h',
[email protected]dd363682009-12-28 20:30:46270 'common/thumbnail_score.cc',
271 'common/thumbnail_score.h',
[email protected]dd363682009-12-28 20:30:46272 'common/url_constants.cc',
273 'common/url_constants.h',
274 'common/utility_messages.h',
275 'common/utility_messages_internal.h',
276 'common/view_types.cc',
277 'common/view_types.h',
278 'common/visitedlink_common.cc',
279 'common/visitedlink_common.h',
[email protected]2b437e232010-04-02 01:30:08280 'common/web_database_observer_impl.cc',
281 'common/web_database_observer_impl.h',
[email protected]dd363682009-12-28 20:30:46282 'common/webkit_param_traits.h',
283 'common/webmessageportchannel_impl.cc',
284 'common/webmessageportchannel_impl.h',
[email protected]534c66c2010-04-28 22:53:11285 'common/window_container_type.cc',
286 'common/window_container_type.h',
[email protected]dd363682009-12-28 20:30:46287 'common/worker_messages.h',
288 'common/worker_messages_internal.h',
289 'common/worker_thread_ticker.cc',
290 'common/worker_thread_ticker.h',
[email protected]dd363682009-12-28 20:30:46291 'common/zip.cc', # Requires zlib directly.
292 'common/zip.h',
293 ],
294 'conditions': [
[email protected]6f5b3b292010-02-22 20:56:15295 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
[email protected]dd363682009-12-28 20:30:46296 'dependencies': [
297 '../build/linux/system.gyp:gtk',
298 ],
299 'export_dependent_settings': [
300 '../third_party/sqlite/sqlite.gyp:sqlite',
301 ],
302 'link_settings': {
303 'libraries': [
304 '-lX11',
305 '-lXrender',
[email protected]8b46c13b2010-01-26 19:50:54306 '-lXss',
[email protected]dd363682009-12-28 20:30:46307 '-lXext',
308 ],
309 },
310 },],
311 ['OS=="linux" and selinux==1', {
312 'dependencies': [
313 '../build/linux/system.gyp:selinux',
314 ],
315 }],
316 ['OS=="mac"', {
317 'sources!': [
318 'common/process_watcher_posix.cc',
319 ],
[email protected]1e652d022010-04-16 19:09:11320 'link_settings': {
321 'mac_bundle_resources': [
322 'common/common.sb',
323 ],
324 },
[email protected]dd363682009-12-28 20:30:46325 }],
[email protected]382abc22010-01-17 10:09:39326 ['OS!="win"', {
327 'sources!': [
328 'common/sandbox_policy.cc',
329 ],
330 }],
[email protected]8cc9dd622010-06-28 15:13:10331 ['remoting==1', {
332 'dependencies': [
333 '../remoting/remoting.gyp:chromoting_plugin',
334 ],
335 }],
[email protected]dd363682009-12-28 20:30:46336 ],
337 'export_dependent_settings': [
338 '../app/app.gyp:app_base',
339 ],
340 },
[email protected]3c3065d2010-05-06 21:59:55341 {
342 'target_name': 'common_net',
343 'type': '<(library)',
344 'sources': [
[email protected]f3d01742010-05-07 02:53:55345 'common/net/http_return.h',
[email protected]3c3065d2010-05-06 21:59:55346 'common/net/net_resource_provider.cc',
347 'common/net/net_resource_provider.h',
[email protected]3530cd92010-06-27 06:22:01348 'common/net/predictor_common.h',
[email protected]3c3065d2010-05-06 21:59:55349 'common/net/socket_stream.h',
[email protected]68d2a05f2010-05-07 21:39:55350 'common/net/url_fetcher.cc',
351 'common/net/url_fetcher.h',
352 'common/net/url_fetcher_protect.cc',
353 'common/net/url_fetcher_protect.h',
354 'common/net/url_request_context_getter.cc',
355 'common/net/url_request_context_getter.h',
[email protected]3c3065d2010-05-06 21:59:55356 'common/net/url_request_intercept_job.cc',
357 'common/net/url_request_intercept_job.h',
[email protected]a0e77042010-07-01 22:28:23358 'common/net/gaia/gaia_auth_consumer.h',
[email protected]f3d01742010-05-07 02:53:55359 'common/net/gaia/gaia_authenticator.cc',
360 'common/net/gaia/gaia_authenticator.h',
[email protected]a0e77042010-07-01 22:28:23361 'common/net/gaia/gaia_authenticator2.cc',
362 'common/net/gaia/gaia_authenticator2.h',
[email protected]f3d01742010-05-07 02:53:55363 'common/net/gaia/signin.h',
[email protected]3c3065d2010-05-06 21:59:55364 ],
365 'dependencies': [
366 'chrome_resources',
367 'chrome_strings',
[email protected]8dc64b42010-05-14 07:26:42368 '../app/app.gyp:app_base',
[email protected]3c3065d2010-05-06 21:59:55369 '../base/base.gyp:base',
[email protected]3c3065d2010-05-06 21:59:55370 '../net/net.gyp:net_resources',
[email protected]8dc64b42010-05-14 07:26:42371 '../net/net.gyp:net',
[email protected]3c3065d2010-05-06 21:59:55372 ],
373 },
[email protected]dd363682009-12-28 20:30:46374 ],
375 'conditions': [
376 ['OS=="win"', {
377 'targets': [
378 {
379 'target_name': 'common_nacl_win64',
380 'type': '<(library)',
381 'msvs_guid': '3AB5C5E9-470C-419B-A0AE-C7381FB632FA',
382 'variables': {
383 'chrome_common_target': 1,
384 },
385 'dependencies': [
386 # TODO(gregoryd): chrome_resources and chrome_strings could be
387 # shared with the 32-bit target, but it does not work due to a gyp
388 # issue.
389 'chrome_resources',
390 'chrome_strings',
391 'common_constants_win64',
392 '../app/app.gyp:app_base_nacl_win64',
393 '../app/app.gyp:app_resources',
394 '../base/base.gyp:base_nacl_win64',
395 '../ipc/ipc.gyp:ipc_win64',
[email protected]3e0f7d522010-06-18 04:09:14396 '../third_party/libxml/libxml.gyp:libxml',
[email protected]dd363682009-12-28 20:30:46397 ],
398 'include_dirs': [
399 '../third_party/npapi',
400 '../third_party/icu/public/i18n',
401 '../third_party/icu/public/common',
402 # We usually get these skia directories by adding a dependency on
403 # skia, bu we don't need it for NaCl's 64-bit Windows support. The
404 # directories are required for resolving the includes in any case.
405 '../third_party/skia/include/core',
406 '../skia/config',
407 ],
408 'defines': [
409 'EXCLUDE_SKIA_DEPENDENCIES',
410 '<@(nacl_win64_defines)',
411 ],
412 'sources': [
413 '../webkit/glue/webkit_glue_dummy.cc',
414 'common/resource_dispatcher_dummy.cc',
415 'common/socket_stream_dispatcher_dummy.cc',
[email protected]7fc13ed2010-03-06 05:06:20416 'common/url_constants.cc',
[email protected]dd363682009-12-28 20:30:46417 ],
418 'export_dependent_settings': [
419 '../app/app.gyp:app_base_nacl_win64',
420 ],
421 # TODO(gregoryd): This could be shared with the 32-bit target, but
422 # it does not work due to a gyp issue.
423 'direct_dependent_settings': {
424 'include_dirs': [
425 '..',
426 ],
427 },
428 'configurations': {
429 'Common_Base': {
430 'msvs_target_platform': 'x64',
431 },
432 },
433 },
434 ],
435 }],
436 ],
437}