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