blob: 1d0c8644bedc957647e56df485457a084da00cbb [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]12dc3d42010-02-22 23:37:1226 'common/app_mode_constants_mac.h',
27 'common/app_mode_constants_mac.mm',
[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',
[email protected]aee541e2010-03-19 01:52:4543 'common/content_settings.cc',
44 'common/content_settings.h',
45 'common/content_settings_types.h',
[email protected]dd363682009-12-28 20:30:4646 'common/debug_flags.cc',
47 'common/debug_flags.h',
48 'common/devtools_messages.h',
49 'common/devtools_messages_internal.h',
[email protected]58c321d2010-02-19 12:11:2850 'common/geoposition.cc',
[email protected]7c927b62010-02-24 09:54:1351 'common/geoposition.h',
[email protected]c0fc0942010-01-13 00:55:3752 'common/gpu_messages.h',
53 'common/gpu_messages_internal.h',
[email protected]dd363682009-12-28 20:30:4654 'common/logging_chrome.cc',
55 'common/logging_chrome.h',
56 'common/main_function_params.h',
57 'common/message_router.cc',
58 'common/message_router.h',
[email protected]103607e2010-02-01 18:57:0959 'common/nacl_cmd_line.cc',
60 'common/nacl_cmd_line.h',
[email protected]dd363682009-12-28 20:30:4661 'common/nacl_messages.h',
[email protected]103607e2010-02-01 18:57:0962 'common/nacl_types.h',
[email protected]dd363682009-12-28 20:30:4663 'common/nacl_messages_internal.h',
64 'common/notification_details.h',
65 'common/notification_observer.h',
66 'common/notification_registrar.cc',
67 'common/notification_registrar.h',
68 'common/notification_service.cc',
69 'common/notification_service.h',
70 'common/notification_source.h',
71 'common/notification_type.h',
72 'common/process_watcher_mac.cc',
73 'common/process_watcher_posix.cc',
74 'common/process_watcher_win.cc',
75 'common/process_watcher.h',
76 'common/property_bag.cc',
77 'common/property_bag.h',
78 'common/ref_counted_util.h',
[email protected]7c927b62010-02-24 09:54:1379 'common/resource_response.h',
[email protected]dd363682009-12-28 20:30:4680 'common/result_codes.h',
81 'common/sandbox_init_wrapper.h',
82 'common/sandbox_init_wrapper_linux.cc',
83 'common/sandbox_init_wrapper_mac.cc',
84 'common/sandbox_init_wrapper_win.cc',
85 'common/sandbox_mac.h',
86 'common/sandbox_mac.mm',
[email protected]382abc22010-01-17 10:09:3987 'common/sandbox_policy.cc',
88 'common/sandbox_policy.h',
[email protected]dd363682009-12-28 20:30:4689 'common/task_queue.cc',
90 'common/task_queue.h',
91 'common/time_format.cc',
92 'common/time_format.h',
93 'common/transport_dib.h',
94 'common/win_safe_util.cc',
95 'common/win_safe_util.h',
96 ],
97 }],
98 ],
99 },
100 'targets': [
101 {
102 'target_name': 'common',
103 'type': '<(library)',
104 'msvs_guid': '899F1280-3441-4D1F-BA04-CCD6208D9146',
105 'variables': {
106 'chrome_common_target': 1,
107 },
108 # TODO(gregoryd): This could be shared with the 64-bit target, but
109 # it does not work due to a gyp issue.
110 'direct_dependent_settings': {
111 'include_dirs': [
112 '..',
113 ],
114 },
115 'dependencies': [
116 # TODO(gregoryd): chrome_resources and chrome_strings could be
117 # shared with the 64-bit target, but it does not work due to a gyp
118 # issue.
119 'chrome_resources',
120 'chrome_strings',
121 'common_constants',
122 'theme_resources',
123 '../app/app.gyp:app_base',
124 '../app/app.gyp:app_resources',
125 '../base/base.gyp:base',
126 '../base/base.gyp:base_i18n',
127 '../build/temp_gyp/googleurl.gyp:googleurl',
128 '../ipc/ipc.gyp:ipc',
129 '../net/net.gyp:net',
130 '../net/net.gyp:net_resources',
131 '../skia/skia.gyp:skia',
132 '../third_party/icu/icu.gyp:icui18n',
133 '../third_party/icu/icu.gyp:icuuc',
134 '../third_party/libxml/libxml.gyp:libxml',
135 '../third_party/sqlite/sqlite.gyp:sqlite',
136 '../third_party/zlib/zlib.gyp:zlib',
137 '../third_party/npapi/npapi.gyp:npapi',
138 '../webkit/webkit.gyp:appcache',
139 '../webkit/webkit.gyp:glue',
140 ],
141 'sources': [
142 # .cc, .h, and .mm files under chrome/common that are not required for
143 # building 64-bit Windows targets. Test files are not included.
144 'common/desktop_notifications/active_notification_tracker.h',
145 'common/desktop_notifications/active_notification_tracker.cc',
146 'common/extensions/extension.cc',
147 'common/extensions/extension.h',
[email protected]7c927b62010-02-24 09:54:13148 'common/extensions/extension_action.cc',
149 'common/extensions/extension_action.h',
[email protected]dd363682009-12-28 20:30:46150 'common/extensions/extension_constants.cc',
151 'common/extensions/extension_constants.h',
152 'common/extensions/extension_error_reporter.cc',
153 'common/extensions/extension_error_reporter.h',
154 'common/extensions/extension_error_utils.cc',
155 'common/extensions/extension_error_utils.h',
[email protected]867a73e12010-03-19 20:45:46156 'common/extensions/extension_extent.cc',
157 'common/extensions/extension_extent.h',
[email protected]7c927b62010-02-24 09:54:13158 'common/extensions/extension_file_util.cc',
159 'common/extensions/extension_file_util.h',
[email protected]dd363682009-12-28 20:30:46160 'common/extensions/extension_l10n_util.cc',
161 'common/extensions/extension_l10n_util.h',
162 'common/extensions/extension_message_bundle.cc',
163 'common/extensions/extension_message_bundle.h',
[email protected]1e07f782010-02-11 00:20:09164 'common/extensions/extension_message_filter_peer.cc',
165 'common/extensions/extension_message_filter_peer.h',
[email protected]dd363682009-12-28 20:30:46166 'common/extensions/extension_resource.cc',
167 'common/extensions/extension_resource.h',
168 'common/extensions/extension_unpacker.cc',
169 'common/extensions/extension_unpacker.h',
170 'common/extensions/update_manifest.cc',
171 'common/extensions/update_manifest.h',
172 'common/extensions/url_pattern.cc',
173 'common/extensions/url_pattern.h',
174 'common/extensions/user_script.cc',
175 'common/extensions/user_script.h',
176 'common/gfx/utils.h',
177 'common/net/dns.h',
178 'common/net/net_resource_provider.cc',
179 'common/net/net_resource_provider.h',
180 'common/net/socket_stream.h',
181 'common/net/url_request_intercept_job.cc',
182 'common/net/url_request_intercept_job.h',
183 'common/web_resource/web_resource_unpacker.cc',
184 'common/web_resource/web_resource_unpacker.h',
185 'common/appcache/appcache_backend_proxy.cc',
186 'common/appcache/appcache_backend_proxy.h',
187 'common/appcache/appcache_dispatcher.cc',
188 'common/appcache/appcache_dispatcher.h',
[email protected]dd363682009-12-28 20:30:46189 'common/automation_constants.cc',
190 'common/automation_constants.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]4e6419c2010-01-15 04:50:34203 'common/dom_storage_common.h',
[email protected]dd363682009-12-28 20:30:46204 'common/filter_policy.h',
205 'common/gears_api.h',
206 'common/gpu_plugin.cc',
207 'common/gpu_plugin.h',
[email protected]dd363682009-12-28 20:30:46208 'common/jstemplate_builder.cc',
209 'common/jstemplate_builder.h',
210 'common/libxml_utils.cc',
211 'common/libxml_utils.h',
212 'common/mru_cache.h',
213 'common/navigation_gesture.h',
214 'common/navigation_types.h',
215 'common/native_web_keyboard_event.h',
216 'common/native_web_keyboard_event_linux.cc',
217 'common/native_web_keyboard_event_mac.mm',
218 'common/native_web_keyboard_event_win.cc',
219 'common/native_window_notification_source.h',
220 'common/owned_widget_gtk.cc',
221 'common/owned_widget_gtk.h',
[email protected]bb0a6a02010-04-01 21:17:00222 'common/page_transition_types.cc',
[email protected]dd363682009-12-28 20:30:46223 'common/page_transition_types.h',
224 'common/page_zoom.h',
225 'common/platform_util.h',
226 'common/platform_util_linux.cc',
227 'common/platform_util_mac.mm',
228 'common/platform_util_win.cc',
229 'common/plugin_carbon_interpose_constants_mac.h',
230 'common/plugin_carbon_interpose_constants_mac.cc',
231 'common/plugin_messages.h',
232 'common/plugin_messages_internal.h',
[email protected]dd363682009-12-28 20:30:46233 'common/render_messages.h',
234 'common/render_messages_internal.h',
235 'common/renderer_preferences.h',
236 'common/resource_dispatcher.cc',
237 'common/resource_dispatcher.h',
238 'common/security_filter_peer.cc',
239 'common/security_filter_peer.h',
240 'common/socket_stream_dispatcher.cc',
241 'common/socket_stream_dispatcher.h',
242 'common/spellcheck_common.cc',
243 'common/spellcheck_common.h',
244 'common/sqlite_compiled_statement.cc',
245 'common/sqlite_compiled_statement.h',
246 'common/sqlite_utils.cc',
247 'common/sqlite_utils.h',
[email protected]dd363682009-12-28 20:30:46248 'common/thumbnail_score.cc',
249 'common/thumbnail_score.h',
[email protected]dd363682009-12-28 20:30:46250 'common/url_constants.cc',
251 'common/url_constants.h',
252 'common/utility_messages.h',
253 'common/utility_messages_internal.h',
254 'common/view_types.cc',
255 'common/view_types.h',
256 'common/visitedlink_common.cc',
257 'common/visitedlink_common.h',
[email protected]2b437e232010-04-02 01:30:08258 'common/web_database_observer_impl.cc',
259 'common/web_database_observer_impl.h',
[email protected]dd363682009-12-28 20:30:46260 'common/webkit_param_traits.h',
261 'common/webmessageportchannel_impl.cc',
262 'common/webmessageportchannel_impl.h',
263 'common/worker_messages.h',
264 'common/worker_messages_internal.h',
265 'common/worker_thread_ticker.cc',
266 'common/worker_thread_ticker.h',
[email protected]dd363682009-12-28 20:30:46267 'common/zip.cc', # Requires zlib directly.
268 'common/zip.h',
269 ],
270 'conditions': [
[email protected]6f5b3b292010-02-22 20:56:15271 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
[email protected]dd363682009-12-28 20:30:46272 'dependencies': [
273 '../build/linux/system.gyp:gtk',
274 ],
275 'export_dependent_settings': [
276 '../third_party/sqlite/sqlite.gyp:sqlite',
277 ],
278 'link_settings': {
279 'libraries': [
280 '-lX11',
281 '-lXrender',
[email protected]8b46c13b2010-01-26 19:50:54282 '-lXss',
[email protected]dd363682009-12-28 20:30:46283 '-lXext',
284 ],
285 },
286 },],
287 ['OS=="linux" and selinux==1', {
288 'dependencies': [
289 '../build/linux/system.gyp:selinux',
290 ],
291 }],
292 ['OS=="mac"', {
293 'sources!': [
294 'common/process_watcher_posix.cc',
295 ],
[email protected]1e652d022010-04-16 19:09:11296 'link_settings': {
297 'mac_bundle_resources': [
298 'common/common.sb',
299 ],
300 },
[email protected]dd363682009-12-28 20:30:46301 }],
[email protected]382abc22010-01-17 10:09:39302 ['OS!="win"', {
303 'sources!': [
304 'common/sandbox_policy.cc',
305 ],
306 }],
[email protected]dd363682009-12-28 20:30:46307 ],
308 'export_dependent_settings': [
309 '../app/app.gyp:app_base',
310 ],
311 },
312 ],
313 'conditions': [
314 ['OS=="win"', {
315 'targets': [
316 {
317 'target_name': 'common_nacl_win64',
318 'type': '<(library)',
319 'msvs_guid': '3AB5C5E9-470C-419B-A0AE-C7381FB632FA',
320 'variables': {
321 'chrome_common_target': 1,
322 },
323 'dependencies': [
324 # TODO(gregoryd): chrome_resources and chrome_strings could be
325 # shared with the 32-bit target, but it does not work due to a gyp
326 # issue.
327 'chrome_resources',
328 'chrome_strings',
329 'common_constants_win64',
330 '../app/app.gyp:app_base_nacl_win64',
331 '../app/app.gyp:app_resources',
332 '../base/base.gyp:base_nacl_win64',
333 '../ipc/ipc.gyp:ipc_win64',
334 ],
335 'include_dirs': [
336 '../third_party/npapi',
337 '../third_party/icu/public/i18n',
338 '../third_party/icu/public/common',
339 # We usually get these skia directories by adding a dependency on
340 # skia, bu we don't need it for NaCl's 64-bit Windows support. The
341 # directories are required for resolving the includes in any case.
342 '../third_party/skia/include/core',
343 '../skia/config',
344 ],
345 'defines': [
346 'EXCLUDE_SKIA_DEPENDENCIES',
347 '<@(nacl_win64_defines)',
348 ],
349 'sources': [
350 '../webkit/glue/webkit_glue_dummy.cc',
351 'common/resource_dispatcher_dummy.cc',
352 'common/socket_stream_dispatcher_dummy.cc',
[email protected]7fc13ed2010-03-06 05:06:20353 'common/url_constants.cc',
[email protected]dd363682009-12-28 20:30:46354 ],
355 'export_dependent_settings': [
356 '../app/app.gyp:app_base_nacl_win64',
357 ],
358 # TODO(gregoryd): This could be shared with the 32-bit target, but
359 # it does not work due to a gyp issue.
360 'direct_dependent_settings': {
361 'include_dirs': [
362 '..',
363 ],
364 },
365 'configurations': {
366 'Common_Base': {
367 'msvs_target_platform': 'x64',
368 },
369 },
370 },
371 ],
372 }],
373 ],
374}