blob: 26dc2a2c34dcc686c753f6894d2adea836d59945 [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': [
18 'third_party/wtl/include',
19 ],
[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]5cbe1e22010-01-30 01:18:5626 'common/accessibility_events.h',
27 'common/accessibility_events.cc',
[email protected]dd363682009-12-28 20:30:4628 'common/bindings_policy.h',
29 'common/child_process.cc',
30 'common/child_process.h',
31 'common/child_process_info.cc',
32 'common/child_process_info.h',
33 'common/child_process_logging.h',
34 'common/child_process_logging_linux.cc',
35 'common/child_process_logging_mac.mm',
36 'common/child_process_logging_win.cc',
37 'common/child_thread.cc',
38 'common/child_thread.h',
39 'common/chrome_counters.cc',
40 'common/chrome_counters.h',
41 'common/common_param_traits.cc',
42 'common/common_param_traits.h',
43 'common/debug_flags.cc',
44 'common/debug_flags.h',
45 'common/devtools_messages.h',
46 'common/devtools_messages_internal.h',
[email protected]58c321d2010-02-19 12:11:2847 'common/geoposition.cc',
48 'common/geoposition.h',
[email protected]c0fc0942010-01-13 00:55:3749 'common/gpu_messages.h',
50 'common/gpu_messages_internal.h',
[email protected]43f28f832010-02-03 02:28:4851 'common/io_surface_support_mac.cc',
52 'common/io_surface_support_mac.h',
[email protected]dd363682009-12-28 20:30:4653 'common/logging_chrome.cc',
54 'common/logging_chrome.h',
55 'common/main_function_params.h',
56 'common/message_router.cc',
57 'common/message_router.h',
[email protected]103607e2010-02-01 18:57:0958 'common/nacl_cmd_line.cc',
59 'common/nacl_cmd_line.h',
[email protected]dd363682009-12-28 20:30:4660 'common/nacl_messages.h',
[email protected]103607e2010-02-01 18:57:0961 'common/nacl_types.h',
[email protected]dd363682009-12-28 20:30:4662 'common/nacl_messages_internal.h',
63 'common/notification_details.h',
64 'common/notification_observer.h',
65 'common/notification_registrar.cc',
66 'common/notification_registrar.h',
67 'common/notification_service.cc',
68 'common/notification_service.h',
69 'common/notification_source.h',
70 'common/notification_type.h',
71 'common/process_watcher_mac.cc',
72 'common/process_watcher_posix.cc',
73 'common/process_watcher_win.cc',
74 'common/process_watcher.h',
75 'common/property_bag.cc',
76 'common/property_bag.h',
77 'common/ref_counted_util.h',
78 'common/result_codes.h',
79 'common/sandbox_init_wrapper.h',
80 'common/sandbox_init_wrapper_linux.cc',
81 'common/sandbox_init_wrapper_mac.cc',
82 'common/sandbox_init_wrapper_win.cc',
83 'common/sandbox_mac.h',
84 'common/sandbox_mac.mm',
[email protected]382abc22010-01-17 10:09:3985 'common/sandbox_policy.cc',
86 'common/sandbox_policy.h',
[email protected]dd363682009-12-28 20:30:4687 'common/task_queue.cc',
88 'common/task_queue.h',
89 'common/time_format.cc',
90 'common/time_format.h',
91 'common/transport_dib.h',
92 'common/win_safe_util.cc',
93 'common/win_safe_util.h',
94 ],
95 }],
96 ],
97 },
98 'targets': [
99 {
100 'target_name': 'common',
101 'type': '<(library)',
102 'msvs_guid': '899F1280-3441-4D1F-BA04-CCD6208D9146',
103 'variables': {
104 'chrome_common_target': 1,
105 },
106 # TODO(gregoryd): This could be shared with the 64-bit target, but
107 # it does not work due to a gyp issue.
108 'direct_dependent_settings': {
109 'include_dirs': [
110 '..',
111 ],
112 },
113 'dependencies': [
114 # TODO(gregoryd): chrome_resources and chrome_strings could be
115 # shared with the 64-bit target, but it does not work due to a gyp
116 # issue.
117 'chrome_resources',
118 'chrome_strings',
119 'common_constants',
120 'theme_resources',
121 '../app/app.gyp:app_base',
122 '../app/app.gyp:app_resources',
123 '../base/base.gyp:base',
124 '../base/base.gyp:base_i18n',
125 '../build/temp_gyp/googleurl.gyp:googleurl',
126 '../ipc/ipc.gyp:ipc',
127 '../net/net.gyp:net',
128 '../net/net.gyp:net_resources',
129 '../skia/skia.gyp:skia',
130 '../third_party/icu/icu.gyp:icui18n',
131 '../third_party/icu/icu.gyp:icuuc',
132 '../third_party/libxml/libxml.gyp:libxml',
133 '../third_party/sqlite/sqlite.gyp:sqlite',
134 '../third_party/zlib/zlib.gyp:zlib',
135 '../third_party/npapi/npapi.gyp:npapi',
136 '../webkit/webkit.gyp:appcache',
137 '../webkit/webkit.gyp:glue',
138 ],
139 'sources': [
140 # .cc, .h, and .mm files under chrome/common that are not required for
141 # building 64-bit Windows targets. Test files are not included.
142 'common/desktop_notifications/active_notification_tracker.h',
143 'common/desktop_notifications/active_notification_tracker.cc',
144 'common/extensions/extension.cc',
145 'common/extensions/extension.h',
146 'common/extensions/extension_constants.cc',
147 'common/extensions/extension_constants.h',
148 'common/extensions/extension_error_reporter.cc',
149 'common/extensions/extension_error_reporter.h',
150 'common/extensions/extension_error_utils.cc',
151 'common/extensions/extension_error_utils.h',
152 'common/extensions/extension_action.cc',
153 'common/extensions/extension_action.h',
154 'common/extensions/extension_l10n_util.cc',
155 'common/extensions/extension_l10n_util.h',
156 'common/extensions/extension_message_bundle.cc',
157 'common/extensions/extension_message_bundle.h',
[email protected]1e07f782010-02-11 00:20:09158 'common/extensions/extension_message_filter_peer.cc',
159 'common/extensions/extension_message_filter_peer.h',
[email protected]dd363682009-12-28 20:30:46160 'common/extensions/extension_resource.cc',
161 'common/extensions/extension_resource.h',
162 'common/extensions/extension_unpacker.cc',
163 'common/extensions/extension_unpacker.h',
164 'common/extensions/update_manifest.cc',
165 'common/extensions/update_manifest.h',
166 'common/extensions/url_pattern.cc',
167 'common/extensions/url_pattern.h',
168 'common/extensions/user_script.cc',
169 'common/extensions/user_script.h',
170 'common/gfx/utils.h',
171 'common/net/dns.h',
172 'common/net/net_resource_provider.cc',
173 'common/net/net_resource_provider.h',
174 'common/net/socket_stream.h',
175 'common/net/url_request_intercept_job.cc',
176 'common/net/url_request_intercept_job.h',
177 'common/web_resource/web_resource_unpacker.cc',
178 'common/web_resource/web_resource_unpacker.h',
179 'common/appcache/appcache_backend_proxy.cc',
180 'common/appcache/appcache_backend_proxy.h',
181 'common/appcache/appcache_dispatcher.cc',
182 'common/appcache/appcache_dispatcher.h',
183 'common/appcache/appcache_dispatcher_host.cc',
184 'common/appcache/appcache_dispatcher_host.h',
185 'common/appcache/appcache_frontend_proxy.cc',
186 'common/appcache/appcache_frontend_proxy.h',
187 'common/appcache/chrome_appcache_service.cc',
188 'common/appcache/chrome_appcache_service.h',
189 'common/automation_constants.cc',
190 'common/automation_constants.h',
191 'common/child_process_host.cc',
192 'common/child_process_host.h',
193 'common/chrome_descriptors.h',
194 'common/chrome_plugin_api.h',
195 'common/chrome_plugin_lib.cc',
196 'common/chrome_plugin_lib.h',
197 'common/chrome_plugin_util.cc',
198 'common/chrome_plugin_util.h',
199 'common/command_buffer_messages.h',
200 'common/command_buffer_messages_internal.h',
201 'common/common_glue.cc',
[email protected]08bc6302010-01-30 02:53:39202 'common/content_settings.h'
203 'common/content_settings_types.h',
[email protected]dd363682009-12-28 20:30:46204 'common/css_colors.h',
205 'common/db_message_filter.cc',
206 'common/db_message_filter.h',
[email protected]4e6419c2010-01-15 04:50:34207 'common/dom_storage_common.h',
[email protected]dd363682009-12-28 20:30:46208 'common/filter_policy.h',
209 'common/gears_api.h',
210 'common/gpu_plugin.cc',
211 'common/gpu_plugin.h',
212 'common/gtk_tree.cc',
213 'common/gtk_tree.h',
214 'common/gtk_util.cc',
215 'common/gtk_util.h',
216 'common/histogram_synchronizer.cc',
217 'common/histogram_synchronizer.h',
[email protected]dd363682009-12-28 20:30:46218 'common/jstemplate_builder.cc',
219 'common/jstemplate_builder.h',
220 'common/libxml_utils.cc',
221 'common/libxml_utils.h',
222 'common/mru_cache.h',
223 'common/navigation_gesture.h',
224 'common/navigation_types.h',
225 'common/native_web_keyboard_event.h',
226 'common/native_web_keyboard_event_linux.cc',
227 'common/native_web_keyboard_event_mac.mm',
228 'common/native_web_keyboard_event_win.cc',
229 'common/native_window_notification_source.h',
230 'common/owned_widget_gtk.cc',
231 'common/owned_widget_gtk.h',
232 'common/page_transition_types.h',
233 'common/page_zoom.h',
234 'common/platform_util.h',
235 'common/platform_util_linux.cc',
236 'common/platform_util_mac.mm',
237 'common/platform_util_win.cc',
238 'common/plugin_carbon_interpose_constants_mac.h',
239 'common/plugin_carbon_interpose_constants_mac.cc',
240 'common/plugin_messages.h',
241 'common/plugin_messages_internal.h',
[email protected]dd363682009-12-28 20:30:46242 'common/render_messages.h',
243 'common/render_messages_internal.h',
244 'common/renderer_preferences.h',
245 'common/resource_dispatcher.cc',
246 'common/resource_dispatcher.h',
247 'common/security_filter_peer.cc',
248 'common/security_filter_peer.h',
249 'common/socket_stream_dispatcher.cc',
250 'common/socket_stream_dispatcher.h',
251 'common/spellcheck_common.cc',
252 'common/spellcheck_common.h',
253 'common/sqlite_compiled_statement.cc',
254 'common/sqlite_compiled_statement.h',
255 'common/sqlite_utils.cc',
256 'common/sqlite_utils.h',
[email protected]dd363682009-12-28 20:30:46257 'common/thumbnail_score.cc',
258 'common/thumbnail_score.h',
259 'common/transport_dib_linux.cc',
260 'common/transport_dib_mac.cc',
261 'common/transport_dib_win.cc',
262 'common/url_constants.cc',
263 'common/url_constants.h',
264 'common/utility_messages.h',
265 'common/utility_messages_internal.h',
266 'common/view_types.cc',
267 'common/view_types.h',
268 'common/visitedlink_common.cc',
269 'common/visitedlink_common.h',
270 'common/webkit_param_traits.h',
271 'common/webmessageportchannel_impl.cc',
272 'common/webmessageportchannel_impl.h',
273 'common/worker_messages.h',
274 'common/worker_messages_internal.h',
275 'common/worker_thread_ticker.cc',
276 'common/worker_thread_ticker.h',
277 'common/x11_util.cc',
278 'common/x11_util.h',
279 'common/x11_util_internal.h',
280 'common/zip.cc', # Requires zlib directly.
281 'common/zip.h',
282 ],
283 'conditions': [
[email protected]6f5b3b292010-02-22 20:56:15284 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
[email protected]dd363682009-12-28 20:30:46285 'dependencies': [
286 '../build/linux/system.gyp:gtk',
287 ],
288 'export_dependent_settings': [
289 '../third_party/sqlite/sqlite.gyp:sqlite',
290 ],
291 'link_settings': {
292 'libraries': [
293 '-lX11',
294 '-lXrender',
[email protected]8b46c13b2010-01-26 19:50:54295 '-lXss',
[email protected]dd363682009-12-28 20:30:46296 '-lXext',
297 ],
298 },
299 },],
300 ['OS=="linux" and selinux==1', {
301 'dependencies': [
302 '../build/linux/system.gyp:selinux',
303 ],
304 }],
305 ['OS=="mac"', {
306 'sources!': [
307 'common/process_watcher_posix.cc',
308 ],
309 }],
[email protected]382abc22010-01-17 10:09:39310 ['OS!="win"', {
311 'sources!': [
312 'common/sandbox_policy.cc',
313 ],
314 }],
[email protected]dd363682009-12-28 20:30:46315 ],
316 'export_dependent_settings': [
317 '../app/app.gyp:app_base',
318 ],
319 },
320 ],
321 'conditions': [
322 ['OS=="win"', {
323 'targets': [
324 {
325 'target_name': 'common_nacl_win64',
326 'type': '<(library)',
327 'msvs_guid': '3AB5C5E9-470C-419B-A0AE-C7381FB632FA',
328 'variables': {
329 'chrome_common_target': 1,
330 },
331 'dependencies': [
332 # TODO(gregoryd): chrome_resources and chrome_strings could be
333 # shared with the 32-bit target, but it does not work due to a gyp
334 # issue.
335 'chrome_resources',
336 'chrome_strings',
337 'common_constants_win64',
338 '../app/app.gyp:app_base_nacl_win64',
339 '../app/app.gyp:app_resources',
340 '../base/base.gyp:base_nacl_win64',
341 '../ipc/ipc.gyp:ipc_win64',
342 ],
343 'include_dirs': [
344 '../third_party/npapi',
345 '../third_party/icu/public/i18n',
346 '../third_party/icu/public/common',
347 # We usually get these skia directories by adding a dependency on
348 # skia, bu we don't need it for NaCl's 64-bit Windows support. The
349 # directories are required for resolving the includes in any case.
350 '../third_party/skia/include/core',
351 '../skia/config',
352 ],
353 'defines': [
354 'EXCLUDE_SKIA_DEPENDENCIES',
355 '<@(nacl_win64_defines)',
356 ],
357 'sources': [
358 '../webkit/glue/webkit_glue_dummy.cc',
359 'common/resource_dispatcher_dummy.cc',
360 'common/socket_stream_dispatcher_dummy.cc',
361 ],
362 'export_dependent_settings': [
363 '../app/app.gyp:app_base_nacl_win64',
364 ],
365 # TODO(gregoryd): This could be shared with the 32-bit target, but
366 # it does not work due to a gyp issue.
367 'direct_dependent_settings': {
368 'include_dirs': [
369 '..',
370 ],
371 },
372 'configurations': {
373 'Common_Base': {
374 'msvs_target_platform': 'x64',
375 },
376 },
377 },
378 ],
379 }],
380 ],
381}