blob: 08c643a73cff6a4a909a83059a4c8ca0bcfe75d6 [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',
47 'common/content_settings_types.h',
[email protected]dd363682009-12-28 20:30:4648 'common/debug_flags.cc',
49 'common/debug_flags.h',
50 'common/devtools_messages.h',
51 'common/devtools_messages_internal.h',
[email protected]20199662010-06-17 03:29:2652 'common/font_descriptor_mac.h',
53 'common/font_descriptor_mac.mm',
[email protected]58c321d2010-02-19 12:11:2854 'common/geoposition.cc',
[email protected]7c927b62010-02-24 09:54:1355 'common/geoposition.h',
[email protected]c0fc0942010-01-13 00:55:3756 'common/gpu_messages.h',
57 'common/gpu_messages_internal.h',
[email protected]dd363682009-12-28 20:30:4658 'common/logging_chrome.cc',
59 'common/logging_chrome.h',
60 'common/main_function_params.h',
61 'common/message_router.cc',
62 'common/message_router.h',
[email protected]1226abb2010-06-10 18:01:2863 'common/metrics_helpers.cc',
[email protected]3e0f7d522010-06-18 04:09:1464 'common/metrics_helpers.h',
[email protected]103607e2010-02-01 18:57:0965 'common/nacl_cmd_line.cc',
66 'common/nacl_cmd_line.h',
[email protected]dd363682009-12-28 20:30:4667 'common/nacl_messages.h',
[email protected]103607e2010-02-01 18:57:0968 'common/nacl_types.h',
[email protected]dd363682009-12-28 20:30:4669 'common/nacl_messages_internal.h',
70 'common/notification_details.h',
71 'common/notification_observer.h',
72 'common/notification_registrar.cc',
73 'common/notification_registrar.h',
74 'common/notification_service.cc',
75 'common/notification_service.h',
76 'common/notification_source.h',
77 'common/notification_type.h',
78 'common/process_watcher_mac.cc',
79 'common/process_watcher_posix.cc',
80 'common/process_watcher_win.cc',
81 'common/process_watcher.h',
82 'common/property_bag.cc',
83 'common/property_bag.h',
84 'common/ref_counted_util.h',
[email protected]7c927b62010-02-24 09:54:1385 'common/resource_response.h',
[email protected]dd363682009-12-28 20:30:4686 'common/result_codes.h',
87 'common/sandbox_init_wrapper.h',
88 'common/sandbox_init_wrapper_linux.cc',
89 'common/sandbox_init_wrapper_mac.cc',
90 'common/sandbox_init_wrapper_win.cc',
91 'common/sandbox_mac.h',
92 'common/sandbox_mac.mm',
[email protected]382abc22010-01-17 10:09:3993 'common/sandbox_policy.cc',
94 'common/sandbox_policy.h',
[email protected]dd363682009-12-28 20:30:4695 'common/task_queue.cc',
96 'common/task_queue.h',
97 'common/time_format.cc',
98 'common/time_format.h',
[email protected]dd363682009-12-28 20:30:4699 'common/win_safe_util.cc',
100 'common/win_safe_util.h',
101 ],
102 }],
103 ],
104 },
105 'targets': [
106 {
107 'target_name': 'common',
108 'type': '<(library)',
109 'msvs_guid': '899F1280-3441-4D1F-BA04-CCD6208D9146',
110 'variables': {
111 'chrome_common_target': 1,
112 },
113 # TODO(gregoryd): This could be shared with the 64-bit target, but
114 # it does not work due to a gyp issue.
115 'direct_dependent_settings': {
116 'include_dirs': [
117 '..',
118 ],
119 },
120 'dependencies': [
121 # TODO(gregoryd): chrome_resources and chrome_strings could be
122 # shared with the 64-bit target, but it does not work due to a gyp
123 # issue.
124 'chrome_resources',
125 'chrome_strings',
126 'common_constants',
[email protected]3c3065d2010-05-06 21:59:55127 'common_net',
[email protected]dd363682009-12-28 20:30:46128 'theme_resources',
129 '../app/app.gyp:app_base',
130 '../app/app.gyp:app_resources',
131 '../base/base.gyp:base',
132 '../base/base.gyp:base_i18n',
133 '../build/temp_gyp/googleurl.gyp:googleurl',
134 '../ipc/ipc.gyp:ipc',
135 '../net/net.gyp:net',
[email protected]dd363682009-12-28 20:30:46136 '../skia/skia.gyp:skia',
[email protected]423bfef2010-06-18 17:17:28137 '../third_party/bzip2/bzip2.gyp:bzip2',
[email protected]dd363682009-12-28 20:30:46138 '../third_party/icu/icu.gyp:icui18n',
139 '../third_party/icu/icu.gyp:icuuc',
140 '../third_party/libxml/libxml.gyp:libxml',
141 '../third_party/sqlite/sqlite.gyp:sqlite',
142 '../third_party/zlib/zlib.gyp:zlib',
143 '../third_party/npapi/npapi.gyp:npapi',
[email protected]325358b2010-07-07 02:48:34144 '../webkit/default_plugin/default_plugin.gyp:default_plugin',
[email protected]69d3dfe82010-05-14 03:21:55145 '../webkit/support/webkit_support.gyp:appcache',
146 '../webkit/support/webkit_support.gyp:glue',
[email protected]dd363682009-12-28 20:30:46147 ],
148 'sources': [
149 # .cc, .h, and .mm files under chrome/common that are not required for
150 # building 64-bit Windows targets. Test files are not included.
151 'common/desktop_notifications/active_notification_tracker.h',
152 'common/desktop_notifications/active_notification_tracker.cc',
153 'common/extensions/extension.cc',
154 'common/extensions/extension.h',
[email protected]7c927b62010-02-24 09:54:13155 'common/extensions/extension_action.cc',
156 'common/extensions/extension_action.h',
[email protected]dd363682009-12-28 20:30:46157 'common/extensions/extension_constants.cc',
158 'common/extensions/extension_constants.h',
[email protected]dd363682009-12-28 20:30:46159 'common/extensions/extension_error_utils.cc',
160 'common/extensions/extension_error_utils.h',
[email protected]867a73e12010-03-19 20:45:46161 'common/extensions/extension_extent.cc',
162 'common/extensions/extension_extent.h',
[email protected]7c927b62010-02-24 09:54:13163 'common/extensions/extension_file_util.cc',
164 'common/extensions/extension_file_util.h',
[email protected]dd363682009-12-28 20:30:46165 'common/extensions/extension_l10n_util.cc',
166 'common/extensions/extension_l10n_util.h',
[email protected]8a58f9a2010-05-18 18:38:09167 'common/extensions/extension_localization_peer.cc',
168 'common/extensions/extension_localization_peer.h',
[email protected]dd363682009-12-28 20:30:46169 'common/extensions/extension_message_bundle.cc',
170 'common/extensions/extension_message_bundle.h',
171 'common/extensions/extension_resource.cc',
172 'common/extensions/extension_resource.h',
173 'common/extensions/extension_unpacker.cc',
174 'common/extensions/extension_unpacker.h',
175 'common/extensions/update_manifest.cc',
176 'common/extensions/update_manifest.h',
177 'common/extensions/url_pattern.cc',
178 'common/extensions/url_pattern.h',
179 'common/extensions/user_script.cc',
180 'common/extensions/user_script.h',
[email protected]dd363682009-12-28 20:30:46181 'common/web_resource/web_resource_unpacker.cc',
182 'common/web_resource/web_resource_unpacker.h',
183 'common/appcache/appcache_backend_proxy.cc',
184 'common/appcache/appcache_backend_proxy.h',
185 'common/appcache/appcache_dispatcher.cc',
186 'common/appcache/appcache_dispatcher.h',
[email protected]dd363682009-12-28 20:30:46187 'common/automation_constants.cc',
188 'common/automation_constants.h',
[email protected]d27893f62010-07-03 05:47:42189 'common/child_process_host.cc',
190 'common/child_process_host.h',
[email protected]dd363682009-12-28 20:30:46191 'common/chrome_descriptors.h',
192 'common/chrome_plugin_api.h',
193 'common/chrome_plugin_lib.cc',
194 'common/chrome_plugin_lib.h',
195 'common/chrome_plugin_util.cc',
196 'common/chrome_plugin_util.h',
[email protected]dd363682009-12-28 20:30:46197 'common/common_glue.cc',
198 'common/css_colors.h',
[email protected]2b437e232010-04-02 01:30:08199 'common/database_util.cc',
200 'common/database_util.h',
[email protected]dd363682009-12-28 20:30:46201 'common/db_message_filter.cc',
202 'common/db_message_filter.h',
[email protected]2290cb862010-06-02 16:50:58203 'common/default_plugin.cc',
204 'common/default_plugin.h',
[email protected]106113b32010-04-26 22:17:37205 'common/deprecated/event_sys-inl.h',
206 'common/deprecated/event_sys.h',
[email protected]2290cb862010-06-02 16:50:58207 'common/dom_storage_common.h',
[email protected]865f37922010-05-23 16:43:44208 'common/font_loader_mac.h',
209 'common/font_loader_mac.mm',
[email protected]dd363682009-12-28 20:30:46210 'common/gears_api.h',
211 'common/gpu_plugin.cc',
212 'common/gpu_plugin.h',
[email protected]6658ca82010-05-20 18:20:29213 'common/important_file_writer.cc',
214 'common/important_file_writer.h',
[email protected]ea587b02010-05-21 15:01:35215 'common/json_pref_store.cc',
216 'common/json_pref_store.h',
[email protected]dd363682009-12-28 20:30:46217 'common/jstemplate_builder.cc',
218 'common/jstemplate_builder.h',
219 'common/libxml_utils.cc',
220 'common/libxml_utils.h',
221 'common/mru_cache.h',
222 'common/navigation_gesture.h',
223 'common/navigation_types.h',
224 'common/native_web_keyboard_event.h',
225 'common/native_web_keyboard_event_linux.cc',
226 'common/native_web_keyboard_event_mac.mm',
227 'common/native_web_keyboard_event_win.cc',
228 'common/native_window_notification_source.h',
229 'common/owned_widget_gtk.cc',
230 'common/owned_widget_gtk.h',
[email protected]bb0a6a02010-04-01 21:17:00231 'common/page_transition_types.cc',
[email protected]dd363682009-12-28 20:30:46232 'common/page_transition_types.h',
233 'common/page_zoom.h',
[email protected]4e0616e2010-05-28 14:55:53234 'common/pepper_plugin_registry.cc',
235 'common/pepper_plugin_registry.h',
[email protected]dd363682009-12-28 20:30:46236 'common/plugin_carbon_interpose_constants_mac.h',
237 'common/plugin_carbon_interpose_constants_mac.cc',
238 'common/plugin_messages.h',
239 'common/plugin_messages_internal.h',
[email protected]dd363682009-12-28 20:30:46240 'common/render_messages.h',
241 'common/render_messages_internal.h',
242 'common/renderer_preferences.h',
243 'common/resource_dispatcher.cc',
244 'common/resource_dispatcher.h',
245 'common/security_filter_peer.cc',
246 'common/security_filter_peer.h',
247 'common/socket_stream_dispatcher.cc',
248 'common/socket_stream_dispatcher.h',
249 'common/spellcheck_common.cc',
250 'common/spellcheck_common.h',
251 'common/sqlite_compiled_statement.cc',
252 'common/sqlite_compiled_statement.h',
253 'common/sqlite_utils.cc',
254 'common/sqlite_utils.h',
[email protected]dd363682009-12-28 20:30:46255 'common/thumbnail_score.cc',
256 'common/thumbnail_score.h',
[email protected]dd363682009-12-28 20:30:46257 'common/url_constants.cc',
258 'common/url_constants.h',
259 'common/utility_messages.h',
260 'common/utility_messages_internal.h',
261 'common/view_types.cc',
262 'common/view_types.h',
263 'common/visitedlink_common.cc',
264 'common/visitedlink_common.h',
[email protected]2b437e232010-04-02 01:30:08265 'common/web_database_observer_impl.cc',
266 'common/web_database_observer_impl.h',
[email protected]dd363682009-12-28 20:30:46267 'common/webkit_param_traits.h',
268 'common/webmessageportchannel_impl.cc',
269 'common/webmessageportchannel_impl.h',
[email protected]534c66c2010-04-28 22:53:11270 'common/window_container_type.cc',
271 'common/window_container_type.h',
[email protected]dd363682009-12-28 20:30:46272 'common/worker_messages.h',
273 'common/worker_messages_internal.h',
274 'common/worker_thread_ticker.cc',
275 'common/worker_thread_ticker.h',
[email protected]dd363682009-12-28 20:30:46276 'common/zip.cc', # Requires zlib directly.
277 'common/zip.h',
278 ],
279 'conditions': [
[email protected]6f5b3b292010-02-22 20:56:15280 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
[email protected]dd363682009-12-28 20:30:46281 'dependencies': [
282 '../build/linux/system.gyp:gtk',
283 ],
284 'export_dependent_settings': [
285 '../third_party/sqlite/sqlite.gyp:sqlite',
286 ],
287 'link_settings': {
288 'libraries': [
289 '-lX11',
290 '-lXrender',
[email protected]8b46c13b2010-01-26 19:50:54291 '-lXss',
[email protected]dd363682009-12-28 20:30:46292 '-lXext',
293 ],
294 },
295 },],
296 ['OS=="linux" and selinux==1', {
297 'dependencies': [
298 '../build/linux/system.gyp:selinux',
299 ],
300 }],
301 ['OS=="mac"', {
302 'sources!': [
303 'common/process_watcher_posix.cc',
304 ],
[email protected]1e652d022010-04-16 19:09:11305 'link_settings': {
306 'mac_bundle_resources': [
307 'common/common.sb',
308 ],
309 },
[email protected]dd363682009-12-28 20:30:46310 }],
[email protected]382abc22010-01-17 10:09:39311 ['OS!="win"', {
312 'sources!': [
313 'common/sandbox_policy.cc',
314 ],
315 }],
[email protected]8cc9dd622010-06-28 15:13:10316 ['remoting==1', {
317 'dependencies': [
318 '../remoting/remoting.gyp:chromoting_plugin',
319 ],
320 }],
[email protected]dd363682009-12-28 20:30:46321 ],
322 'export_dependent_settings': [
323 '../app/app.gyp:app_base',
324 ],
325 },
[email protected]3c3065d2010-05-06 21:59:55326 {
327 'target_name': 'common_net',
328 'type': '<(library)',
329 'sources': [
[email protected]f3d01742010-05-07 02:53:55330 'common/net/http_return.h',
[email protected]3c3065d2010-05-06 21:59:55331 'common/net/net_resource_provider.cc',
332 'common/net/net_resource_provider.h',
[email protected]3530cd92010-06-27 06:22:01333 'common/net/predictor_common.h',
[email protected]3c3065d2010-05-06 21:59:55334 'common/net/socket_stream.h',
[email protected]68d2a05f2010-05-07 21:39:55335 'common/net/url_fetcher.cc',
336 'common/net/url_fetcher.h',
337 'common/net/url_fetcher_protect.cc',
338 'common/net/url_fetcher_protect.h',
339 'common/net/url_request_context_getter.cc',
340 'common/net/url_request_context_getter.h',
[email protected]3c3065d2010-05-06 21:59:55341 'common/net/url_request_intercept_job.cc',
342 'common/net/url_request_intercept_job.h',
[email protected]a0e77042010-07-01 22:28:23343 'common/net/gaia/gaia_auth_consumer.h',
[email protected]f3d01742010-05-07 02:53:55344 'common/net/gaia/gaia_authenticator.cc',
345 'common/net/gaia/gaia_authenticator.h',
[email protected]a0e77042010-07-01 22:28:23346 'common/net/gaia/gaia_authenticator2.cc',
347 'common/net/gaia/gaia_authenticator2.h',
[email protected]f3d01742010-05-07 02:53:55348 'common/net/gaia/signin.h',
[email protected]3c3065d2010-05-06 21:59:55349 ],
350 'dependencies': [
351 'chrome_resources',
352 'chrome_strings',
[email protected]8dc64b42010-05-14 07:26:42353 '../app/app.gyp:app_base',
[email protected]3c3065d2010-05-06 21:59:55354 '../base/base.gyp:base',
[email protected]3c3065d2010-05-06 21:59:55355 '../net/net.gyp:net_resources',
[email protected]8dc64b42010-05-14 07:26:42356 '../net/net.gyp:net',
[email protected]3c3065d2010-05-06 21:59:55357 ],
358 },
[email protected]dd363682009-12-28 20:30:46359 ],
360 'conditions': [
361 ['OS=="win"', {
362 'targets': [
363 {
364 'target_name': 'common_nacl_win64',
365 'type': '<(library)',
366 'msvs_guid': '3AB5C5E9-470C-419B-A0AE-C7381FB632FA',
367 'variables': {
368 'chrome_common_target': 1,
369 },
370 'dependencies': [
371 # TODO(gregoryd): chrome_resources and chrome_strings could be
372 # shared with the 32-bit target, but it does not work due to a gyp
373 # issue.
374 'chrome_resources',
375 'chrome_strings',
376 'common_constants_win64',
377 '../app/app.gyp:app_base_nacl_win64',
378 '../app/app.gyp:app_resources',
379 '../base/base.gyp:base_nacl_win64',
380 '../ipc/ipc.gyp:ipc_win64',
[email protected]3e0f7d522010-06-18 04:09:14381 '../third_party/libxml/libxml.gyp:libxml',
[email protected]dd363682009-12-28 20:30:46382 ],
383 'include_dirs': [
384 '../third_party/npapi',
385 '../third_party/icu/public/i18n',
386 '../third_party/icu/public/common',
387 # We usually get these skia directories by adding a dependency on
388 # skia, bu we don't need it for NaCl's 64-bit Windows support. The
389 # directories are required for resolving the includes in any case.
390 '../third_party/skia/include/core',
391 '../skia/config',
392 ],
393 'defines': [
394 'EXCLUDE_SKIA_DEPENDENCIES',
395 '<@(nacl_win64_defines)',
396 ],
397 'sources': [
398 '../webkit/glue/webkit_glue_dummy.cc',
399 'common/resource_dispatcher_dummy.cc',
400 'common/socket_stream_dispatcher_dummy.cc',
[email protected]7fc13ed2010-03-06 05:06:20401 'common/url_constants.cc',
[email protected]dd363682009-12-28 20:30:46402 ],
403 'export_dependent_settings': [
404 '../app/app.gyp:app_base_nacl_win64',
405 ],
406 # TODO(gregoryd): This could be shared with the 32-bit target, but
407 # it does not work due to a gyp issue.
408 'direct_dependent_settings': {
409 'include_dirs': [
410 '..',
411 ],
412 },
413 'configurations': {
414 'Common_Base': {
415 'msvs_target_platform': 'x64',
416 },
417 },
418 },
419 ],
420 }],
421 ],
422}