blob: 0a09fbed996f6e865d7781fa54f5025384762b4a [file] [log] [blame]
[email protected]dd363682009-12-28 20:30:461# Copyright (c) 2009 The Chromium Authors. All rights reserved.
2# 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 ],
20 }, { # else: OS != "win"
21 'sources!': [
22 'common/temp_scaffolding_stubs.h',
23 ],
24 }],
25 ['OS=="win" or OS=="linux"', {
26 'sources!': [
27 'common/hi_res_timer_manager.cc',
28 'common/hi_res_timer_manager.h',
29 'common/temp_scaffolding_stubs.cc',
30 ],
31 }],
32 ],
33 'sources': [
34 # .cc, .h, and .mm files under chrome/common that are used on all
35 # platforms, including both 32-bit and 64-bit Windows.
36 # Test files are not included.
37 'common/bindings_policy.h',
38 'common/child_process.cc',
39 'common/child_process.h',
40 'common/child_process_info.cc',
41 'common/child_process_info.h',
42 'common/child_process_logging.h',
43 'common/child_process_logging_linux.cc',
44 'common/child_process_logging_mac.mm',
45 'common/child_process_logging_win.cc',
46 'common/child_thread.cc',
47 'common/child_thread.h',
48 'common/chrome_counters.cc',
49 'common/chrome_counters.h',
50 'common/common_param_traits.cc',
51 'common/common_param_traits.h',
52 'common/debug_flags.cc',
53 'common/debug_flags.h',
54 'common/devtools_messages.h',
55 'common/devtools_messages_internal.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',
63 'common/nacl_messages.h',
64 'common/nacl_messages_internal.h',
65 'common/notification_details.h',
66 'common/notification_observer.h',
67 'common/notification_registrar.cc',
68 'common/notification_registrar.h',
69 'common/notification_service.cc',
70 'common/notification_service.h',
71 'common/notification_source.h',
72 'common/notification_type.h',
73 'common/process_watcher_mac.cc',
74 'common/process_watcher_posix.cc',
75 'common/process_watcher_win.cc',
76 'common/process_watcher.h',
77 'common/property_bag.cc',
78 'common/property_bag.h',
79 'common/ref_counted_util.h',
80 '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',
148 'common/extensions/extension_constants.cc',
149 'common/extensions/extension_constants.h',
150 'common/extensions/extension_error_reporter.cc',
151 'common/extensions/extension_error_reporter.h',
152 'common/extensions/extension_error_utils.cc',
153 'common/extensions/extension_error_utils.h',
154 'common/extensions/extension_action.cc',
155 'common/extensions/extension_action.h',
156 'common/extensions/extension_l10n_util.cc',
157 'common/extensions/extension_l10n_util.h',
158 'common/extensions/extension_message_bundle.cc',
159 'common/extensions/extension_message_bundle.h',
160 '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',
202 'common/css_colors.h',
203 'common/db_message_filter.cc',
204 'common/db_message_filter.h',
[email protected]4e6419c2010-01-15 04:50:34205 'common/dom_storage_common.h',
[email protected]dd363682009-12-28 20:30:46206 'common/filter_policy.h',
207 'common/gears_api.h',
208 'common/gpu_plugin.cc',
209 'common/gpu_plugin.h',
210 'common/gtk_tree.cc',
211 'common/gtk_tree.h',
212 'common/gtk_util.cc',
213 'common/gtk_util.h',
214 'common/histogram_synchronizer.cc',
215 'common/histogram_synchronizer.h',
216 'common/important_file_writer.cc',
217 'common/important_file_writer.h',
218 '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',
242 'common/pref_member.cc',
243 'common/pref_member.h',
244 'common/pref_service.cc',
245 'common/pref_service.h',
246 'common/render_messages.h',
247 'common/render_messages_internal.h',
248 'common/renderer_preferences.h',
249 'common/resource_dispatcher.cc',
250 'common/resource_dispatcher.h',
251 'common/security_filter_peer.cc',
252 'common/security_filter_peer.h',
253 'common/socket_stream_dispatcher.cc',
254 'common/socket_stream_dispatcher.h',
255 'common/spellcheck_common.cc',
256 'common/spellcheck_common.h',
257 'common/sqlite_compiled_statement.cc',
258 'common/sqlite_compiled_statement.h',
259 'common/sqlite_utils.cc',
260 'common/sqlite_utils.h',
261 'common/temp_scaffolding_stubs.cc',
262 'common/temp_scaffolding_stubs.h',
263 'common/thumbnail_score.cc',
264 'common/thumbnail_score.h',
265 'common/transport_dib_linux.cc',
266 'common/transport_dib_mac.cc',
267 'common/transport_dib_win.cc',
268 'common/url_constants.cc',
269 'common/url_constants.h',
270 'common/utility_messages.h',
271 'common/utility_messages_internal.h',
272 'common/view_types.cc',
273 'common/view_types.h',
274 'common/visitedlink_common.cc',
275 'common/visitedlink_common.h',
276 'common/webkit_param_traits.h',
277 'common/webmessageportchannel_impl.cc',
278 'common/webmessageportchannel_impl.h',
279 'common/worker_messages.h',
280 'common/worker_messages_internal.h',
281 'common/worker_thread_ticker.cc',
282 'common/worker_thread_ticker.h',
283 'common/x11_util.cc',
284 'common/x11_util.h',
285 'common/x11_util_internal.h',
286 'common/zip.cc', # Requires zlib directly.
287 'common/zip.h',
288 ],
289 'conditions': [
290 ['OS=="linux"', {
291 'dependencies': [
292 '../build/linux/system.gyp:gtk',
293 ],
294 'export_dependent_settings': [
295 '../third_party/sqlite/sqlite.gyp:sqlite',
296 ],
297 'link_settings': {
298 'libraries': [
299 '-lX11',
300 '-lXrender',
301 '-lXext',
302 ],
303 },
304 },],
305 ['OS=="linux" and selinux==1', {
306 'dependencies': [
307 '../build/linux/system.gyp:selinux',
308 ],
309 }],
310 ['OS=="mac"', {
311 'sources!': [
312 'common/process_watcher_posix.cc',
313 ],
314 }],
[email protected]382abc22010-01-17 10:09:39315 ['OS!="win"', {
316 'sources!': [
317 'common/sandbox_policy.cc',
318 ],
319 }],
[email protected]dd363682009-12-28 20:30:46320 ],
321 'export_dependent_settings': [
322 '../app/app.gyp:app_base',
323 ],
324 },
325 ],
326 'conditions': [
327 ['OS=="win"', {
328 'targets': [
329 {
330 'target_name': 'common_nacl_win64',
331 'type': '<(library)',
332 'msvs_guid': '3AB5C5E9-470C-419B-A0AE-C7381FB632FA',
333 'variables': {
334 'chrome_common_target': 1,
335 },
336 'dependencies': [
337 # TODO(gregoryd): chrome_resources and chrome_strings could be
338 # shared with the 32-bit target, but it does not work due to a gyp
339 # issue.
340 'chrome_resources',
341 'chrome_strings',
342 'common_constants_win64',
343 '../app/app.gyp:app_base_nacl_win64',
344 '../app/app.gyp:app_resources',
345 '../base/base.gyp:base_nacl_win64',
346 '../ipc/ipc.gyp:ipc_win64',
347 ],
348 'include_dirs': [
349 '../third_party/npapi',
350 '../third_party/icu/public/i18n',
351 '../third_party/icu/public/common',
352 # We usually get these skia directories by adding a dependency on
353 # skia, bu we don't need it for NaCl's 64-bit Windows support. The
354 # directories are required for resolving the includes in any case.
355 '../third_party/skia/include/core',
356 '../skia/config',
357 ],
358 'defines': [
359 'EXCLUDE_SKIA_DEPENDENCIES',
360 '<@(nacl_win64_defines)',
361 ],
362 'sources': [
363 '../webkit/glue/webkit_glue_dummy.cc',
364 'common/resource_dispatcher_dummy.cc',
365 'common/socket_stream_dispatcher_dummy.cc',
366 ],
367 'export_dependent_settings': [
368 '../app/app.gyp:app_base_nacl_win64',
369 ],
370 # TODO(gregoryd): This could be shared with the 32-bit target, but
371 # it does not work due to a gyp issue.
372 'direct_dependent_settings': {
373 'include_dirs': [
374 '..',
375 ],
376 },
377 'configurations': {
378 'Common_Base': {
379 'msvs_target_platform': 'x64',
380 },
381 },
382 },
383 ],
384 }],
385 ],
386}