blob: 9e5e5624b9470e136bbfdbbdfddbde0a74cb3371 [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]2290cb862010-06-02 16:50:58144 '../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]dd363682009-12-28 20:30:46189 'common/chrome_descriptors.h',
190 'common/chrome_plugin_api.h',
191 'common/chrome_plugin_lib.cc',
192 'common/chrome_plugin_lib.h',
193 'common/chrome_plugin_util.cc',
194 'common/chrome_plugin_util.h',
[email protected]dd363682009-12-28 20:30:46195 'common/common_glue.cc',
196 'common/css_colors.h',
[email protected]2b437e232010-04-02 01:30:08197 'common/database_util.cc',
198 'common/database_util.h',
[email protected]dd363682009-12-28 20:30:46199 'common/db_message_filter.cc',
200 'common/db_message_filter.h',
[email protected]2290cb862010-06-02 16:50:58201 'common/default_plugin.cc',
202 'common/default_plugin.h',
[email protected]106113b32010-04-26 22:17:37203 'common/deprecated/event_sys-inl.h',
204 'common/deprecated/event_sys.h',
[email protected]2290cb862010-06-02 16:50:58205 'common/dom_storage_common.h',
[email protected]865f37922010-05-23 16:43:44206 'common/font_loader_mac.h',
207 'common/font_loader_mac.mm',
[email protected]dd363682009-12-28 20:30:46208 'common/gears_api.h',
209 'common/gpu_plugin.cc',
210 'common/gpu_plugin.h',
[email protected]6658ca82010-05-20 18:20:29211 'common/important_file_writer.cc',
212 'common/important_file_writer.h',
[email protected]ea587b02010-05-21 15:01:35213 'common/json_pref_store.cc',
214 'common/json_pref_store.h',
[email protected]dd363682009-12-28 20:30:46215 'common/jstemplate_builder.cc',
216 'common/jstemplate_builder.h',
217 'common/libxml_utils.cc',
218 'common/libxml_utils.h',
219 'common/mru_cache.h',
220 'common/navigation_gesture.h',
221 'common/navigation_types.h',
222 'common/native_web_keyboard_event.h',
223 'common/native_web_keyboard_event_linux.cc',
224 'common/native_web_keyboard_event_mac.mm',
225 'common/native_web_keyboard_event_win.cc',
226 'common/native_window_notification_source.h',
227 'common/owned_widget_gtk.cc',
228 'common/owned_widget_gtk.h',
[email protected]bb0a6a02010-04-01 21:17:00229 'common/page_transition_types.cc',
[email protected]dd363682009-12-28 20:30:46230 'common/page_transition_types.h',
231 'common/page_zoom.h',
[email protected]4e0616e2010-05-28 14:55:53232 'common/pepper_plugin_registry.cc',
233 'common/pepper_plugin_registry.h',
[email protected]dd363682009-12-28 20:30:46234 'common/plugin_carbon_interpose_constants_mac.h',
235 'common/plugin_carbon_interpose_constants_mac.cc',
236 'common/plugin_messages.h',
237 'common/plugin_messages_internal.h',
[email protected]dd363682009-12-28 20:30:46238 'common/render_messages.h',
239 'common/render_messages_internal.h',
240 'common/renderer_preferences.h',
241 'common/resource_dispatcher.cc',
242 'common/resource_dispatcher.h',
243 'common/security_filter_peer.cc',
244 'common/security_filter_peer.h',
245 'common/socket_stream_dispatcher.cc',
246 'common/socket_stream_dispatcher.h',
247 'common/spellcheck_common.cc',
248 'common/spellcheck_common.h',
249 'common/sqlite_compiled_statement.cc',
250 'common/sqlite_compiled_statement.h',
251 'common/sqlite_utils.cc',
252 'common/sqlite_utils.h',
[email protected]dd363682009-12-28 20:30:46253 'common/thumbnail_score.cc',
254 'common/thumbnail_score.h',
[email protected]dd363682009-12-28 20:30:46255 'common/url_constants.cc',
256 'common/url_constants.h',
257 'common/utility_messages.h',
258 'common/utility_messages_internal.h',
259 'common/view_types.cc',
260 'common/view_types.h',
261 'common/visitedlink_common.cc',
262 'common/visitedlink_common.h',
[email protected]2b437e232010-04-02 01:30:08263 'common/web_database_observer_impl.cc',
264 'common/web_database_observer_impl.h',
[email protected]dd363682009-12-28 20:30:46265 'common/webkit_param_traits.h',
266 'common/webmessageportchannel_impl.cc',
267 'common/webmessageportchannel_impl.h',
[email protected]534c66c2010-04-28 22:53:11268 'common/window_container_type.cc',
269 'common/window_container_type.h',
[email protected]dd363682009-12-28 20:30:46270 'common/worker_messages.h',
271 'common/worker_messages_internal.h',
272 'common/worker_thread_ticker.cc',
273 'common/worker_thread_ticker.h',
[email protected]dd363682009-12-28 20:30:46274 'common/zip.cc', # Requires zlib directly.
275 'common/zip.h',
276 ],
277 'conditions': [
[email protected]6f5b3b292010-02-22 20:56:15278 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
[email protected]dd363682009-12-28 20:30:46279 'dependencies': [
280 '../build/linux/system.gyp:gtk',
281 ],
282 'export_dependent_settings': [
283 '../third_party/sqlite/sqlite.gyp:sqlite',
284 ],
285 'link_settings': {
286 'libraries': [
287 '-lX11',
288 '-lXrender',
[email protected]8b46c13b2010-01-26 19:50:54289 '-lXss',
[email protected]dd363682009-12-28 20:30:46290 '-lXext',
291 ],
292 },
293 },],
294 ['OS=="linux" and selinux==1', {
295 'dependencies': [
296 '../build/linux/system.gyp:selinux',
297 ],
298 }],
299 ['OS=="mac"', {
300 'sources!': [
301 'common/process_watcher_posix.cc',
302 ],
[email protected]1e652d022010-04-16 19:09:11303 'link_settings': {
304 'mac_bundle_resources': [
305 'common/common.sb',
306 ],
307 },
[email protected]dd363682009-12-28 20:30:46308 }],
[email protected]382abc22010-01-17 10:09:39309 ['OS!="win"', {
310 'sources!': [
311 'common/sandbox_policy.cc',
312 ],
313 }],
[email protected]dd363682009-12-28 20:30:46314 ],
315 'export_dependent_settings': [
316 '../app/app.gyp:app_base',
317 ],
318 },
[email protected]3c3065d2010-05-06 21:59:55319 {
320 'target_name': 'common_net',
321 'type': '<(library)',
322 'sources': [
[email protected]f3d01742010-05-07 02:53:55323 'common/net/http_return.h',
[email protected]3c3065d2010-05-06 21:59:55324 'common/net/net_resource_provider.cc',
325 'common/net/net_resource_provider.h',
[email protected]3530cd92010-06-27 06:22:01326 'common/net/predictor_common.h',
[email protected]3c3065d2010-05-06 21:59:55327 'common/net/socket_stream.h',
[email protected]68d2a05f2010-05-07 21:39:55328 'common/net/url_fetcher.cc',
329 'common/net/url_fetcher.h',
330 'common/net/url_fetcher_protect.cc',
331 'common/net/url_fetcher_protect.h',
332 'common/net/url_request_context_getter.cc',
333 'common/net/url_request_context_getter.h',
[email protected]3c3065d2010-05-06 21:59:55334 'common/net/url_request_intercept_job.cc',
335 'common/net/url_request_intercept_job.h',
[email protected]f3d01742010-05-07 02:53:55336 'common/net/gaia/gaia_authenticator.cc',
337 'common/net/gaia/gaia_authenticator.h',
338 'common/net/gaia/signin.h',
[email protected]3c3065d2010-05-06 21:59:55339 ],
340 'dependencies': [
341 'chrome_resources',
342 'chrome_strings',
[email protected]8dc64b42010-05-14 07:26:42343 '../app/app.gyp:app_base',
[email protected]3c3065d2010-05-06 21:59:55344 '../base/base.gyp:base',
[email protected]3c3065d2010-05-06 21:59:55345 '../net/net.gyp:net_resources',
[email protected]8dc64b42010-05-14 07:26:42346 '../net/net.gyp:net',
[email protected]3c3065d2010-05-06 21:59:55347 ],
348 },
[email protected]dd363682009-12-28 20:30:46349 ],
350 'conditions': [
351 ['OS=="win"', {
352 'targets': [
353 {
354 'target_name': 'common_nacl_win64',
355 'type': '<(library)',
356 'msvs_guid': '3AB5C5E9-470C-419B-A0AE-C7381FB632FA',
357 'variables': {
358 'chrome_common_target': 1,
359 },
360 'dependencies': [
361 # TODO(gregoryd): chrome_resources and chrome_strings could be
362 # shared with the 32-bit target, but it does not work due to a gyp
363 # issue.
364 'chrome_resources',
365 'chrome_strings',
366 'common_constants_win64',
367 '../app/app.gyp:app_base_nacl_win64',
368 '../app/app.gyp:app_resources',
369 '../base/base.gyp:base_nacl_win64',
370 '../ipc/ipc.gyp:ipc_win64',
[email protected]3e0f7d522010-06-18 04:09:14371 '../third_party/libxml/libxml.gyp:libxml',
[email protected]dd363682009-12-28 20:30:46372 ],
373 'include_dirs': [
374 '../third_party/npapi',
375 '../third_party/icu/public/i18n',
376 '../third_party/icu/public/common',
377 # We usually get these skia directories by adding a dependency on
378 # skia, bu we don't need it for NaCl's 64-bit Windows support. The
379 # directories are required for resolving the includes in any case.
380 '../third_party/skia/include/core',
381 '../skia/config',
382 ],
383 'defines': [
384 'EXCLUDE_SKIA_DEPENDENCIES',
385 '<@(nacl_win64_defines)',
386 ],
387 'sources': [
388 '../webkit/glue/webkit_glue_dummy.cc',
389 'common/resource_dispatcher_dummy.cc',
390 'common/socket_stream_dispatcher_dummy.cc',
[email protected]7fc13ed2010-03-06 05:06:20391 'common/url_constants.cc',
[email protected]dd363682009-12-28 20:30:46392 ],
393 'export_dependent_settings': [
394 '../app/app.gyp:app_base_nacl_win64',
395 ],
396 # TODO(gregoryd): This could be shared with the 32-bit target, but
397 # it does not work due to a gyp issue.
398 'direct_dependent_settings': {
399 'include_dirs': [
400 '..',
401 ],
402 },
403 'configurations': {
404 'Common_Base': {
405 'msvs_target_platform': 'x64',
406 },
407 },
408 },
409 ],
410 }],
411 ],
412}