blob: 0624d4a83b17741d3b4db67865140e46921f0b4d [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',
56 'common/logging_chrome.cc',
57 'common/logging_chrome.h',
58 'common/main_function_params.h',
59 'common/message_router.cc',
60 'common/message_router.h',
61 'common/nacl_messages.h',
62 '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',
85 'common/task_queue.cc',
86 'common/task_queue.h',
87 'common/time_format.cc',
88 'common/time_format.h',
89 'common/transport_dib.h',
90 'common/win_safe_util.cc',
91 'common/win_safe_util.h',
92 ],
93 }],
94 ],
95 },
96 'targets': [
97 {
98 'target_name': 'common',
99 'type': '<(library)',
100 'msvs_guid': '899F1280-3441-4D1F-BA04-CCD6208D9146',
101 'variables': {
102 'chrome_common_target': 1,
103 },
104 # TODO(gregoryd): This could be shared with the 64-bit target, but
105 # it does not work due to a gyp issue.
106 'direct_dependent_settings': {
107 'include_dirs': [
108 '..',
109 ],
110 },
111 'dependencies': [
112 # TODO(gregoryd): chrome_resources and chrome_strings could be
113 # shared with the 64-bit target, but it does not work due to a gyp
114 # issue.
115 'chrome_resources',
116 'chrome_strings',
117 'common_constants',
118 'theme_resources',
119 '../app/app.gyp:app_base',
120 '../app/app.gyp:app_resources',
121 '../base/base.gyp:base',
122 '../base/base.gyp:base_i18n',
123 '../build/temp_gyp/googleurl.gyp:googleurl',
124 '../ipc/ipc.gyp:ipc',
125 '../net/net.gyp:net',
126 '../net/net.gyp:net_resources',
127 '../skia/skia.gyp:skia',
128 '../third_party/icu/icu.gyp:icui18n',
129 '../third_party/icu/icu.gyp:icuuc',
130 '../third_party/libxml/libxml.gyp:libxml',
131 '../third_party/sqlite/sqlite.gyp:sqlite',
132 '../third_party/zlib/zlib.gyp:zlib',
133 '../third_party/npapi/npapi.gyp:npapi',
134 '../webkit/webkit.gyp:appcache',
135 '../webkit/webkit.gyp:glue',
136 ],
137 'sources': [
138 # .cc, .h, and .mm files under chrome/common that are not required for
139 # building 64-bit Windows targets. Test files are not included.
140 'common/desktop_notifications/active_notification_tracker.h',
141 'common/desktop_notifications/active_notification_tracker.cc',
142 'common/extensions/extension.cc',
143 'common/extensions/extension.h',
144 'common/extensions/extension_constants.cc',
145 'common/extensions/extension_constants.h',
146 'common/extensions/extension_error_reporter.cc',
147 'common/extensions/extension_error_reporter.h',
148 'common/extensions/extension_error_utils.cc',
149 'common/extensions/extension_error_utils.h',
150 'common/extensions/extension_action.cc',
151 'common/extensions/extension_action.h',
152 'common/extensions/extension_l10n_util.cc',
153 'common/extensions/extension_l10n_util.h',
154 'common/extensions/extension_message_bundle.cc',
155 'common/extensions/extension_message_bundle.h',
156 'common/extensions/extension_resource.cc',
157 'common/extensions/extension_resource.h',
158 'common/extensions/extension_unpacker.cc',
159 'common/extensions/extension_unpacker.h',
160 'common/extensions/update_manifest.cc',
161 'common/extensions/update_manifest.h',
162 'common/extensions/url_pattern.cc',
163 'common/extensions/url_pattern.h',
164 'common/extensions/user_script.cc',
165 'common/extensions/user_script.h',
166 'common/gfx/utils.h',
167 'common/net/dns.h',
168 'common/net/net_resource_provider.cc',
169 'common/net/net_resource_provider.h',
170 'common/net/socket_stream.h',
171 'common/net/url_request_intercept_job.cc',
172 'common/net/url_request_intercept_job.h',
173 'common/web_resource/web_resource_unpacker.cc',
174 'common/web_resource/web_resource_unpacker.h',
175 'common/appcache/appcache_backend_proxy.cc',
176 'common/appcache/appcache_backend_proxy.h',
177 'common/appcache/appcache_dispatcher.cc',
178 'common/appcache/appcache_dispatcher.h',
179 'common/appcache/appcache_dispatcher_host.cc',
180 'common/appcache/appcache_dispatcher_host.h',
181 'common/appcache/appcache_frontend_proxy.cc',
182 'common/appcache/appcache_frontend_proxy.h',
183 'common/appcache/chrome_appcache_service.cc',
184 'common/appcache/chrome_appcache_service.h',
185 'common/automation_constants.cc',
186 'common/automation_constants.h',
187 'common/child_process_host.cc',
188 'common/child_process_host.h',
189 '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',
195 'common/command_buffer_messages.h',
196 'common/command_buffer_messages_internal.h',
197 'common/common_glue.cc',
198 'common/css_colors.h',
199 'common/db_message_filter.cc',
200 'common/db_message_filter.h',
201 'common/dom_storage_type.h',
202 'common/filter_policy.h',
203 'common/gears_api.h',
204 'common/gpu_plugin.cc',
205 'common/gpu_plugin.h',
206 'common/gtk_tree.cc',
207 'common/gtk_tree.h',
208 'common/gtk_util.cc',
209 'common/gtk_util.h',
210 'common/histogram_synchronizer.cc',
211 'common/histogram_synchronizer.h',
212 'common/important_file_writer.cc',
213 'common/important_file_writer.h',
214 'common/jstemplate_builder.cc',
215 'common/jstemplate_builder.h',
216 'common/libxml_utils.cc',
217 'common/libxml_utils.h',
218 'common/mru_cache.h',
219 'common/navigation_gesture.h',
220 'common/navigation_types.h',
221 'common/native_web_keyboard_event.h',
222 'common/native_web_keyboard_event_linux.cc',
223 'common/native_web_keyboard_event_mac.mm',
224 'common/native_web_keyboard_event_win.cc',
225 'common/native_window_notification_source.h',
226 'common/owned_widget_gtk.cc',
227 'common/owned_widget_gtk.h',
228 'common/page_transition_types.h',
229 'common/page_zoom.h',
230 'common/platform_util.h',
231 'common/platform_util_linux.cc',
232 'common/platform_util_mac.mm',
233 'common/platform_util_win.cc',
234 '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',
238 'common/pref_member.cc',
239 'common/pref_member.h',
240 'common/pref_service.cc',
241 'common/pref_service.h',
242 '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',
257 'common/temp_scaffolding_stubs.cc',
258 'common/temp_scaffolding_stubs.h',
259 'common/thumbnail_score.cc',
260 'common/thumbnail_score.h',
261 'common/transport_dib_linux.cc',
262 'common/transport_dib_mac.cc',
263 'common/transport_dib_win.cc',
264 'common/url_constants.cc',
265 'common/url_constants.h',
266 'common/utility_messages.h',
267 'common/utility_messages_internal.h',
268 'common/view_types.cc',
269 'common/view_types.h',
270 'common/visitedlink_common.cc',
271 'common/visitedlink_common.h',
272 'common/webkit_param_traits.h',
273 'common/webmessageportchannel_impl.cc',
274 'common/webmessageportchannel_impl.h',
275 'common/worker_messages.h',
276 'common/worker_messages_internal.h',
277 'common/worker_thread_ticker.cc',
278 'common/worker_thread_ticker.h',
279 'common/x11_util.cc',
280 'common/x11_util.h',
281 'common/x11_util_internal.h',
282 'common/zip.cc', # Requires zlib directly.
283 'common/zip.h',
284 ],
285 'conditions': [
286 ['OS=="linux"', {
287 'dependencies': [
288 '../build/linux/system.gyp:gtk',
289 ],
290 'export_dependent_settings': [
291 '../third_party/sqlite/sqlite.gyp:sqlite',
292 ],
293 'link_settings': {
294 'libraries': [
295 '-lX11',
296 '-lXrender',
297 '-lXext',
298 ],
299 },
300 },],
301 ['OS=="linux" and selinux==1', {
302 'dependencies': [
303 '../build/linux/system.gyp:selinux',
304 ],
305 }],
306 ['OS=="mac"', {
307 'sources!': [
308 'common/process_watcher_posix.cc',
309 ],
310 }],
311 ],
312 'export_dependent_settings': [
313 '../app/app.gyp:app_base',
314 ],
315 },
316 ],
317 'conditions': [
318 ['OS=="win"', {
319 'targets': [
320 {
321 'target_name': 'common_nacl_win64',
322 'type': '<(library)',
323 'msvs_guid': '3AB5C5E9-470C-419B-A0AE-C7381FB632FA',
324 'variables': {
325 'chrome_common_target': 1,
326 },
327 'dependencies': [
328 # TODO(gregoryd): chrome_resources and chrome_strings could be
329 # shared with the 32-bit target, but it does not work due to a gyp
330 # issue.
331 'chrome_resources',
332 'chrome_strings',
333 'common_constants_win64',
334 '../app/app.gyp:app_base_nacl_win64',
335 '../app/app.gyp:app_resources',
336 '../base/base.gyp:base_nacl_win64',
337 '../ipc/ipc.gyp:ipc_win64',
338 ],
339 'include_dirs': [
340 '../third_party/npapi',
341 '../third_party/icu/public/i18n',
342 '../third_party/icu/public/common',
343 # We usually get these skia directories by adding a dependency on
344 # skia, bu we don't need it for NaCl's 64-bit Windows support. The
345 # directories are required for resolving the includes in any case.
346 '../third_party/skia/include/core',
347 '../skia/config',
348 ],
349 'defines': [
350 'EXCLUDE_SKIA_DEPENDENCIES',
351 '<@(nacl_win64_defines)',
352 ],
353 'sources': [
354 '../webkit/glue/webkit_glue_dummy.cc',
355 'common/resource_dispatcher_dummy.cc',
356 'common/socket_stream_dispatcher_dummy.cc',
357 ],
358 'export_dependent_settings': [
359 '../app/app.gyp:app_base_nacl_win64',
360 ],
361 # TODO(gregoryd): This could be shared with the 32-bit target, but
362 # it does not work due to a gyp issue.
363 'direct_dependent_settings': {
364 'include_dirs': [
365 '..',
366 ],
367 },
368 'configurations': {
369 'Common_Base': {
370 'msvs_target_platform': 'x64',
371 },
372 },
373 },
374 ],
375 }],
376 ],
377}