blob: 62b3de3e2b4c2540fe5585e198d4c7d6793babae [file] [log] [blame]
[email protected]225c8f52010-02-05 22:23:201# Copyright (c) 2010 The Chromium Authors. All rights reserved.
[email protected]ef4fa4072009-12-04 22:46:502# 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 'base_target': 0,
[email protected]97a28e722010-06-11 21:30:379 'base_extra_target': 0,
[email protected]ef4fa4072009-12-04 22:46:5010 },
11 'target_conditions': [
[email protected]0ea54822010-07-01 20:14:5012 # This part is shared between the targets defined below.
[email protected]ef4fa4072009-12-04 22:46:5013 ['base_target==1', {
14 'sources': [
15 '../build/build_config.h',
16 'third_party/dmg_fp/dmg_fp.h',
17 'third_party/dmg_fp/dtoa.cc',
18 'third_party/dmg_fp/g_fmt.cc',
19 'third_party/icu/icu_utf.cc',
20 'third_party/icu/icu_utf.h',
21 'third_party/nspr/prtime.cc',
22 'third_party/nspr/prtime.h',
[email protected]ef4fa4072009-12-04 22:46:5023 'at_exit.cc',
24 'at_exit.h',
25 'atomic_ref_count.h',
26 'atomic_sequence_num.h',
27 'atomicops.h',
[email protected]9bc8cff2010-04-03 01:05:3928 'atomicops_internals_x86_gcc.cc',
[email protected]ef4fa4072009-12-04 22:46:5029 'atomicops_internals_x86_msvc.h',
30 'base_paths.cc',
31 'base_paths.h',
32 'base_paths_mac.h',
33 'base_paths_mac.mm',
34 'base_paths_posix.cc',
35 'base_paths_win.cc',
36 'base_paths_win.h',
37 'base_switches.cc',
38 'base_switches.h',
39 'basictypes.h',
40 'bits.h',
41 'bzip2_error_handler.cc',
[email protected]2041cf342010-02-19 03:15:5942 'callback.h',
[email protected]ef4fa4072009-12-04 22:46:5043 'cancellation_flag.cc',
[email protected]9bc8cff2010-04-03 01:05:3944 'cancellation_flag.h',
[email protected]ef4fa4072009-12-04 22:46:5045 'chrome_application_mac.h',
46 'chrome_application_mac.mm',
47 'cocoa_protocols_mac.h',
48 'command_line.cc',
49 'command_line.h',
50 'compiler_specific.h',
51 'condition_variable.h',
52 'condition_variable_posix.cc',
53 'condition_variable_win.cc',
54 'cpu.cc',
55 'cpu.h',
56 'debug_on_start.cc',
57 'debug_on_start.h',
58 'debug_util.cc',
59 'debug_util.h',
60 'debug_util_mac.cc',
61 'debug_util_posix.cc',
62 'debug_util_win.cc',
[email protected]ef73044e2010-03-11 15:25:5463 'dir_reader_fallback.h',
64 'dir_reader_linux.h',
65 'dir_reader_posix.h',
[email protected]76b90d312010-08-03 03:00:5066 'environment.cc',
67 'environment.h',
[email protected]ef4fa4072009-12-04 22:46:5068 'event_trace_consumer_win.h',
69 'event_trace_controller_win.cc',
70 'event_trace_controller_win.h',
71 'event_trace_provider_win.cc',
72 'event_trace_provider_win.h',
[email protected]687e25d2010-05-19 03:39:2773 'event_synthesis_gtk.cc',
74 'event_synthesis_gtk.h',
[email protected]ef4fa4072009-12-04 22:46:5075 'file_path.cc',
76 'file_path.h',
77 'file_util.cc',
78 'file_util.h',
[email protected]a84ab952010-02-23 11:34:5479 'file_util_deprecated.h',
[email protected]ef4fa4072009-12-04 22:46:5080 'file_util_mac.mm',
81 'file_util_posix.cc',
82 'file_util_win.cc',
[email protected]ef4fa4072009-12-04 22:46:5083 'file_version_info.h',
[email protected]bcff05a2010-04-14 01:46:4384 'file_version_info_mac.h',
[email protected]ef4fa4072009-12-04 22:46:5085 'file_version_info_mac.mm',
[email protected]bcff05a2010-04-14 01:46:4386 'file_version_info_win.cc',
87 'file_version_info_win.h',
[email protected]ef4fa4072009-12-04 22:46:5088 'fix_wp64.h',
89 'float_util.h',
90 'foundation_utils_mac.h',
[email protected]ef4fa4072009-12-04 22:46:5091 'global_descriptors_posix.cc',
[email protected]9bc8cff2010-04-03 01:05:3992 'global_descriptors_posix.h',
[email protected]a918f872010-06-01 14:30:5193 'gtest_prod_util.h',
[email protected]0ea54822010-07-01 20:14:5094 'gtk_util.cc',
95 'gtk_util.h',
[email protected]ef4fa4072009-12-04 22:46:5096 'hash_tables.h',
97 'histogram.cc',
98 'histogram.h',
99 'iat_patch.cc',
100 'iat_patch.h',
101 'id_map.h',
102 'lazy_instance.cc',
103 'lazy_instance.h',
104 'leak_annotations.h',
105 'leak_tracker.h',
106 'linked_list.h',
107 'linked_ptr.h',
108 'lock.cc',
109 'lock.h',
110 'lock_impl.h',
111 'lock_impl_posix.cc',
112 'lock_impl_win.cc',
113 'logging.cc',
[email protected]ef4fa4072009-12-04 22:46:50114 'logging.h',
[email protected]9bc8cff2010-04-03 01:05:39115 'logging_win.cc',
[email protected]ef4fa4072009-12-04 22:46:50116 'mac_util.h',
117 'mac_util.mm',
[email protected]c0028792010-01-12 00:39:15118 'mach_ipc_mac.h',
119 'mach_ipc_mac.mm',
[email protected]ef4fa4072009-12-04 22:46:50120 'memory_debug.cc',
121 'memory_debug.h',
122 'message_loop.cc',
123 'message_loop.h',
[email protected]2cbac9e2010-04-29 03:31:34124 'message_loop_proxy.h',
[email protected]656475d2010-05-06 18:34:24125 'message_loop_proxy_impl.cc',
126 'message_loop_proxy_impl.h',
[email protected]ef4fa4072009-12-04 22:46:50127 'message_pump.h',
128 'message_pump_default.cc',
129 'message_pump_default.h',
130 'message_pump_win.cc',
131 'message_pump_win.h',
132 'mime_util.h',
[email protected]1c657852010-04-22 23:28:05133 'mime_util_xdg.cc',
[email protected]0fecda62010-03-19 21:59:01134 'move.h',
[email protected]ef4fa4072009-12-04 22:46:50135 'native_library.h',
136 'native_library_linux.cc',
137 'native_library_mac.mm',
138 'native_library_win.cc',
139 'non_thread_safe.cc',
140 'non_thread_safe.h',
141 'nullable_string16.h',
142 'object_watcher.cc',
143 'object_watcher.h',
144 'observer_list.h',
145 'observer_list_threadsafe.h',
146 'path_service.cc',
147 'path_service.h',
[email protected]4bc818e2010-02-04 22:47:37148 'pe_image.cc',
149 'pe_image.h',
[email protected]ef4fa4072009-12-04 22:46:50150 'pickle.cc',
151 'pickle.h',
152 'platform_file.h',
[email protected]ef4fa4072009-12-04 22:46:50153 'platform_file_posix.cc',
[email protected]9bc8cff2010-04-03 01:05:39154 'platform_file_win.cc',
[email protected]ef4fa4072009-12-04 22:46:50155 'platform_thread.h',
156 'platform_thread_mac.mm',
157 'platform_thread_posix.cc',
158 'platform_thread_win.cc',
159 'port.h',
[email protected]ef4fa4072009-12-04 22:46:50160 'process.h',
161 'process_linux.cc',
162 'process_posix.cc',
[email protected]b6128aa2010-04-29 17:44:42163 'process_util.cc',
[email protected]ef4fa4072009-12-04 22:46:50164 'process_util.h',
165 'process_util_linux.cc',
166 'process_util_mac.mm',
167 'process_util_posix.cc',
168 'process_util_win.cc',
169 'process_win.cc',
[email protected]9bc8cff2010-04-03 01:05:39170 'profiler.cc',
171 'profiler.h',
[email protected]ef4fa4072009-12-04 22:46:50172 'rand_util.cc',
173 'rand_util.h',
174 'rand_util_posix.cc',
175 'rand_util_win.cc',
176 'raw_scoped_refptr_mismatch_checker.h',
177 'ref_counted.cc',
178 'ref_counted.h',
[email protected]3071754432010-07-28 00:09:54179 'ref_counted_memory.cc',
[email protected]ef4fa4072009-12-04 22:46:50180 'ref_counted_memory.h',
181 'registry.cc',
182 'registry.h',
183 'resource_util.cc',
184 'resource_util.h',
185 'safe_strerror_posix.cc',
186 'safe_strerror_posix.h',
187 'scoped_bstr_win.cc',
188 'scoped_bstr_win.h',
[email protected]21ae1f92010-07-30 23:05:15189 'scoped_callback_factory.h',
[email protected]ef4fa4072009-12-04 22:46:50190 'scoped_cftyperef.h',
191 'scoped_comptr_win.h',
192 'scoped_handle.h',
[email protected]ef4fa4072009-12-04 22:46:50193 'scoped_handle_win.h',
194 'scoped_nsautorelease_pool.h',
195 'scoped_nsautorelease_pool.mm',
196 'scoped_nsdisable_screen_updates.h',
197 'scoped_nsobject.h',
[email protected]8ceb44c2010-02-24 22:27:04198 'scoped_open_process.h',
[email protected]ef4fa4072009-12-04 22:46:50199 'scoped_ptr.h',
200 'scoped_temp_dir.cc',
201 'scoped_temp_dir.h',
202 'scoped_variant_win.cc',
203 'scoped_variant_win.h',
204 'scoped_vector.h',
[email protected]ef4fa4072009-12-04 22:46:50205 'sha1.h',
[email protected]94d557e2010-06-23 21:41:40206 'sha1_portable.cc',
207 'sha1_win.cc',
[email protected]ef4fa4072009-12-04 22:46:50208 'shared_memory.h',
209 'shared_memory_posix.cc',
210 'shared_memory_win.cc',
211 'simple_thread.cc',
212 'simple_thread.h',
213 'singleton.h',
214 'spin_wait.h',
215 'stack_container.h',
216 'stats_counters.h',
217 'stats_table.cc',
218 'stats_table.h',
219 'stl_util-inl.h',
[email protected]528c56d2010-07-30 19:28:44220 'string_number_conversions.cc',
221 'string_number_conversions.h',
[email protected]ef4fa4072009-12-04 22:46:50222 'string_piece.cc',
223 'string_piece.h',
[email protected]0477554f2010-01-21 19:29:25224 'string_split.cc',
225 'string_split.h',
[email protected]ef4fa4072009-12-04 22:46:50226 'string_tokenizer.h',
227 'string_util.cc',
228 'string_util.h',
229 'string_util_win.h',
230 'sys_info.h',
231 'sys_info_chromeos.cc',
232 'sys_info_freebsd.cc',
233 'sys_info_linux.cc',
234 'sys_info_mac.cc',
235 'sys_info_openbsd.cc',
236 'sys_info_posix.cc',
237 'sys_info_win.cc',
238 'sys_string_conversions.h',
239 'sys_string_conversions_linux.cc',
240 'sys_string_conversions_mac.mm',
241 'sys_string_conversions_win.cc',
[email protected]3a3d47472010-07-15 21:03:54242 'task.cc',
[email protected]ef4fa4072009-12-04 22:46:50243 'task.h',
[email protected]951269b2010-06-15 19:39:24244 'template_util.h',
[email protected]ef4fa4072009-12-04 22:46:50245 'thread.cc',
246 'thread.h',
247 'thread_collision_warner.cc',
248 'thread_collision_warner.h',
249 'thread_local.h',
250 'thread_local_posix.cc',
251 'thread_local_storage.h',
252 'thread_local_storage_posix.cc',
253 'thread_local_storage_win.cc',
254 'thread_local_win.cc',
255 'time.cc',
256 'time.h',
257 'time_win.cc',
258 'timer.cc',
259 'timer.h',
[email protected]3e569552010-05-07 20:25:49260 'trace_event_win.cc',
[email protected]ef4fa4072009-12-04 22:46:50261 'trace_event.cc',
262 'trace_event.h',
263 'tracked.cc',
264 'tracked.h',
265 'tracked_objects.cc',
266 'tracked_objects.h',
267 'tuple.h',
[email protected]9bc8cff2010-04-03 01:05:39268 'unix_domain_socket_posix.cc',
[email protected]ef4fa4072009-12-04 22:46:50269 'utf_offset_string_conversions.cc',
270 'utf_offset_string_conversions.h',
271 'utf_string_conversion_utils.cc',
272 'utf_string_conversion_utils.h',
273 'utf_string_conversions.cc',
274 'utf_string_conversions.h',
[email protected]c604a552010-03-22 20:12:50275 'values.cc',
276 'values.h',
[email protected]ef4fa4072009-12-04 22:46:50277 'waitable_event.h',
278 'waitable_event_posix.cc',
279 'waitable_event_watcher.h',
280 'waitable_event_watcher_posix.cc',
281 'waitable_event_watcher_win.cc',
282 'waitable_event_win.cc',
283 'watchdog.cc',
284 'watchdog.h',
[email protected]3a3d47472010-07-15 21:03:54285 'weak_ptr.cc',
[email protected]ef4fa4072009-12-04 22:46:50286 'weak_ptr.h',
287 'win_util.cc',
288 'win_util.h',
289 'windows_message_list.h',
290 'wmi_util.cc',
291 'wmi_util.h',
292 'worker_pool.h',
293 'worker_pool_linux.cc',
294 'worker_pool_linux.h',
295 'worker_pool_mac.h',
296 'worker_pool_mac.mm',
297 'worker_pool_win.cc',
[email protected]1c657852010-04-22 23:28:05298 'xdg_util.h',
299 'xdg_util.cc',
[email protected]ef4fa4072009-12-04 22:46:50300 ],
301 'include_dirs': [
302 '..',
303 ],
304 # These warnings are needed for the files in third_party\dmg_fp.
305 'msvs_disabled_warnings': [
306 4244, 4554, 4018, 4102,
307 ],
308 'mac_framework_dirs': [
309 '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework/Frameworks',
310 ],
311 'conditions': [
[email protected]93f21e42010-04-01 00:35:15312 [ 'OS != "linux" and OS != "freebsd" and OS != "openbsd" and OS != "solaris"', {
[email protected]ef4fa4072009-12-04 22:46:50313 'sources/': [
[email protected]1c657852010-04-22 23:28:05314 ['exclude', '/xdg_[^/]*\\.cc$'],
[email protected]ef4fa4072009-12-04 22:46:50315 ],
316 'sources!': [
317 'atomicops_internals_x86_gcc.cc',
318 'base_paths_posix.cc',
[email protected]ef4fa4072009-12-04 22:46:50319 'message_pump_glib.cc',
[email protected]1c657852010-04-22 23:28:05320 'xdg_util.cc',
[email protected]ef4fa4072009-12-04 22:46:50321 ],
[email protected]bcff05a2010-04-14 01:46:43322 }],
[email protected]ef4fa4072009-12-04 22:46:50323 [ 'OS != "linux"', {
324 'sources!': [
325 # Not automatically excluded by the *linux.cc rules.
[email protected]0ea54822010-07-01 20:14:50326 'gtk_util.cc',
327 'gtk_util.h',
[email protected]1c657852010-04-22 23:28:05328 'linux_util.cc',
[email protected]ef4fa4072009-12-04 22:46:50329 'setproctitle_linux.c',
330 'setproctitle_linux.h',
331 ],
332 },
333 ],
334 # For now, just test the *BSD platforms enough to exclude them.
335 # Subsequent changes will include them further.
336 [ 'OS != "freebsd"', {
337 'sources/': [ ['exclude', '_freebsd\\.cc$'] ],
338 },
339 ],
340 [ 'OS != "openbsd"', {
341 'sources/': [ ['exclude', '_openbsd\\.cc$'] ],
342 },
343 ],
[email protected]ef4fa4072009-12-04 22:46:50344 [ 'OS == "win"', {
345 'include_dirs': [
[email protected]cd134c8c2010-03-09 05:23:12346 '<(DEPTH)/third_party/wtl/include',
[email protected]ef4fa4072009-12-04 22:46:50347 ],
348 'sources!': [
[email protected]ef4fa4072009-12-04 22:46:50349 'event_recorder_stubs.cc',
350 'file_descriptor_shuffle.cc',
351 'message_pump_libevent.cc',
[email protected]5ac07d5b2010-06-25 21:53:41352 # Not using sha1_win.cc because it may have caused a
353 # regression to page cycler moz.
354 'sha1_win.cc',
[email protected]ef4fa4072009-12-04 22:46:50355 'string16.cc',
[email protected]3e569552010-05-07 20:25:49356 'trace_event.cc',
[email protected]ef4fa4072009-12-04 22:46:50357 ],
358 },],
359 ],
360 }],
[email protected]90f18912010-07-08 16:51:04361 ['base_extra_target==1', {
[email protected]97a28e722010-06-11 21:30:37362 'sources': [
[email protected]3bcd57902010-06-23 22:46:04363 'crypto/capi_util.cc',
364 'crypto/capi_util.h',
[email protected]97a28e722010-06-11 21:30:37365 'crypto/cssm_init.cc',
366 'crypto/cssm_init.h',
367 'crypto/encryptor.h',
368 'crypto/encryptor_mac.cc',
369 'crypto/encryptor_nss.cc',
370 'crypto/encryptor_win.cc',
371 'crypto/rsa_private_key.h',
372 'crypto/rsa_private_key.cc',
373 'crypto/rsa_private_key_mac.cc',
374 'crypto/rsa_private_key_nss.cc',
375 'crypto/rsa_private_key_win.cc',
376 'crypto/signature_creator.h',
377 'crypto/signature_creator_mac.cc',
378 'crypto/signature_creator_nss.cc',
379 'crypto/signature_creator_win.cc',
380 'crypto/signature_verifier.h',
381 'crypto/signature_verifier_mac.cc',
382 'crypto/signature_verifier_nss.cc',
383 'crypto/signature_verifier_win.cc',
384 'crypto/symmetric_key.h',
385 'crypto/symmetric_key_mac.cc',
386 'crypto/symmetric_key_nss.cc',
387 'crypto/symmetric_key_win.cc',
388 'third_party/nspr/prcpucfg.h',
389 'third_party/nspr/prcpucfg_win.h',
390 'third_party/nspr/prtypes.h',
391 'third_party/nss/blapi.h',
392 'third_party/nss/blapit.h',
393 'third_party/nss/sha256.h',
394 'third_party/nss/sha512.cc',
395 'third_party/purify/pure.h',
396 'third_party/purify/pure_api.c',
397 'third_party/xdg_user_dirs/xdg_user_dir_lookup.cc',
398 'third_party/xdg_user_dirs/xdg_user_dir_lookup.h',
399 'auto_reset.h',
400 'base64.cc',
401 'base64.h',
402 'base_drag_source.cc',
403 'base_drag_source.h',
404 'base_drop_target.cc',
405 'base_drop_target.h',
406 'data_pack.cc',
407 'event_recorder.cc',
408 'event_recorder.h',
409 'event_recorder_stubs.cc',
410 'field_trial.cc',
411 'field_trial.h',
412 'file_descriptor_shuffle.cc',
413 'file_descriptor_shuffle.h',
414 'hmac.h',
415 'hmac_mac.cc',
416 'hmac_nss.cc',
417 'hmac_win.cc',
418 'image_util.cc',
419 'image_util.h',
420 'json/json_reader.cc',
421 'json/json_reader.h',
422 'json/json_writer.cc',
423 'json/json_writer.h',
424 'json/string_escape.cc',
425 'json/string_escape.h',
426 'keyboard_code_conversion_gtk.cc',
427 'keyboard_code_conversion_gtk.h',
[email protected]853300a82010-07-27 21:17:57428 'keyboard_code_conversion_mac.mm',
429 'keyboard_code_conversion_mac.h',
[email protected]97a28e722010-06-11 21:30:37430 'keyboard_codes.h',
431 'keyboard_codes_win.h',
432 'keyboard_codes_posix.h',
433 'linux_util.cc',
434 'linux_util.h',
435 'md5.cc',
436 'md5.h',
437 'message_pump_glib.cc',
438 'message_pump_glib.h',
439 'message_pump_libevent.cc',
440 'message_pump_libevent.h',
441 'message_pump_mac.h',
442 'message_pump_mac.mm',
443 'nsimage_cache_mac.h',
444 'nsimage_cache_mac.mm',
445 'nss_util.cc',
446 'nss_util.h',
447 'setproctitle_linux.c',
448 'setproctitle_linux.h',
449 'sha2.cc',
450 'sha2.h',
451 'string16.cc',
452 'string16.h',
453 'sync_socket.h',
454 'sync_socket_win.cc',
455 'sync_socket_posix.cc',
456 'time_mac.cc',
457 'time_posix.cc',
458 'version.cc',
459 'version.h',
460 ],
461 'conditions': [
[email protected]e001408d2010-07-09 03:07:58462 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
[email protected]97a28e722010-06-11 21:30:37463 'conditions': [
464 [ 'chromeos==1', {
465 'sources/': [ ['include', '_chromeos\\.cc$'] ]
466 },
467 ],
[email protected]97a28e722010-06-11 21:30:37468 ],
469 'defines': [
470 'USE_SYMBOLIZE',
471 ],
472 'cflags': [
473 '-Wno-write-strings',
474 ],
[email protected]e001408d2010-07-09 03:07:58475 }, { # OS != "linux" and OS != "freebsd" and OS != "openbsd" and OS != "solaris"
[email protected]90f18912010-07-08 16:51:04476 'sources/': [
477 ['exclude', '/xdg_user_dirs/'],
478 ['exclude', '_nss\.cc$'],
479 ],
480 }],
481 [ 'OS != "mac"', {
482 'sources!': [
483 'crypto/cssm_init.cc',
484 'crypto/cssm_init.h',
485 ],
486 },],
[email protected]97a28e722010-06-11 21:30:37487 [ 'OS != "win"', {
488 'sources!': [
489 'third_party/purify/pure_api.c',
490 'base_drag_source.cc',
491 'base_drop_target.cc',
492 'cpu.cc',
[email protected]3bcd57902010-06-23 22:46:04493 'crypto/capi_util.h',
494 'crypto/capi_util.cc',
[email protected]97a28e722010-06-11 21:30:37495 'debug_on_start.cc',
496 'event_recorder.cc',
497 'file_version_info.cc',
498 'iat_patch.cc',
499 'image_util.cc',
500 'object_watcher.cc',
501 'pe_image.cc',
502 'registry.cc',
503 'resource_util.cc',
504 'win_util.cc',
505 'wmi_util.cc',
506 ],
507 },],
508 ],
509 }],
[email protected]ef4fa4072009-12-04 22:46:50510 ],
511 },
512 'targets': [
513 {
514 'target_name': 'base',
515 'type': '<(library)',
516 'msvs_guid': '1832A374-8A74-4F9E-B536-69A699B3E165',
517 'variables': {
518 'base_target': 1,
[email protected]97a28e722010-06-11 21:30:37519 'base_extra_target': 1,
[email protected]ef4fa4072009-12-04 22:46:50520 },
521 'dependencies': [
522 '../third_party/modp_b64/modp_b64.gyp:modp_b64',
[email protected]b4a0b99952010-05-19 08:33:37523 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]ef4fa4072009-12-04 22:46:50524 ],
525 # TODO(gregoryd): direct_dependent_settings should be shared with the
526 # 64-bit target, but it doesn't work due to a bug in gyp
527 'direct_dependent_settings': {
528 'include_dirs': [
529 '..',
530 ],
531 },
[email protected]ef4fa4072009-12-04 22:46:50532 'conditions': [
[email protected]66700d42010-03-10 07:46:43533 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', {
[email protected]ef4fa4072009-12-04 22:46:50534 'conditions': [
[email protected]3e0a8b82010-07-02 01:12:18535 [ 'linux_use_tcmalloc==0', {
536 'defines': [
537 'NO_TCMALLOC',
538 ],
539 'direct_dependent_settings': {
540 'defines': [
541 'NO_TCMALLOC',
542 ],
543 },
544 },
545 ],
[email protected]ef8f5ba2010-04-02 14:54:22546 [ 'linux_use_tcmalloc==1', {
547 'dependencies': [
548 'allocator/allocator.gyp:allocator',
549 ],
550 },
551 ],
[email protected]ef4fa4072009-12-04 22:46:50552 ],
553 'dependencies': [
[email protected]97a28e722010-06-11 21:30:37554 'symbolize',
[email protected]ef4fa4072009-12-04 22:46:50555 '../build/util/build_util.gyp:lastchange',
556 '../build/linux/system.gyp:gtk',
557 '../build/linux/system.gyp:nss',
[email protected]2d48004e2010-02-03 02:11:40558 'xdg_mime',
[email protected]48c27f72010-01-26 06:26:26559 ],
[email protected]ef4fa4072009-12-04 22:46:50560 'export_dependent_settings': [
561 '../build/linux/system.gyp:gtk',
562 ],
563 },],
[email protected]1d53ce12010-06-11 05:41:00564 [ 'OS == "freebsd" or OS == "openbsd"', {
[email protected]97a28e722010-06-11 21:30:37565 'link_settings': {
566 'libraries': [
567 '-L/usr/local/lib -lexecinfo',
[email protected]1d53ce12010-06-11 05:41:00568 ],
569 },
570 },
571 ],
[email protected]72d31962010-06-11 22:45:37572 [ 'OS == "linux"', {
573 'link_settings': {
574 'libraries': [
575 # We need rt for clock_gettime().
576 '-lrt',
577 # For 'native_library_linux.cc'
578 '-ldl',
579 ],
580 },
581 }],
[email protected]1d53ce12010-06-11 05:41:00582 [ 'OS == "mac"', {
[email protected]97a28e722010-06-11 21:30:37583 'link_settings': {
584 'libraries': [
585 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
586 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
587 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
588 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
589 '$(SDKROOT)/System/Library/Frameworks/IOKit.framework',
590 '$(SDKROOT)/System/Library/Frameworks/Security.framework',
591 ],
592 },
[email protected]1d53ce12010-06-11 05:41:00593 },],
[email protected]3dd6f5e2010-06-01 20:28:03594 [ 'OS == "mac" or OS == "win"', {
[email protected]abd4aba2010-01-27 19:36:22595 'dependencies': [
596 '../third_party/nss/nss.gyp:nss',
597 ],
[email protected]3dd6f5e2010-06-01 20:28:03598 },],
599 [ 'OS != "win"', {
[email protected]ef4fa4072009-12-04 22:46:50600 'dependencies': ['../third_party/libevent/libevent.gyp:libevent'],
[email protected]abd4aba2010-01-27 19:36:22601 },],
[email protected]ef4fa4072009-12-04 22:46:50602 ],
[email protected]ef4fa4072009-12-04 22:46:50603 },
604 ],
605 'conditions': [
606 [ 'OS == "win"', {
607 'targets': [
608 {
609 'target_name': 'base_nacl_win64',
610 'type': '<(library)',
611 'msvs_guid': 'CEE1F794-DC70-4FED-B7C4-4C12986672FE',
612 'variables': {
613 'base_target': 1,
614 },
[email protected]ee857512010-05-14 08:24:42615 'dependencies': [
[email protected]b4a0b99952010-05-19 08:33:37616 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations_win64',
[email protected]ee857512010-05-14 08:24:42617 ],
[email protected]ef4fa4072009-12-04 22:46:50618 # TODO(gregoryd): direct_dependent_settings should be shared with the
619 # 32-bit target, but it doesn't work due to a bug in gyp
620 'direct_dependent_settings': {
621 'include_dirs': [
622 '..',
623 ],
624 },
625 'defines': [
626 '<@(nacl_win64_defines)',
627 ],
628 'sources': [
629 'i18n/icu_util_nacl_win64.cc',
630 ],
631 'configurations': {
[email protected]8782f7072009-12-22 22:57:37632 'Common_Base': {
[email protected]ef4fa4072009-12-04 22:46:50633 'msvs_target_platform': 'x64',
634 },
635 },
636 },
637 ],
638 }],
[email protected]0c2583a92010-06-16 00:53:01639 [ 'OS == "linux" and internal_pdf', {
[email protected]97a28e722010-06-11 21:30:37640 'targets': [
641 {
642 'target_name': 'base_fpic',
643 'type': '<(library)',
644 'variables': {
645 'base_target': 1,
646 'base_extra_target': 1,
647 },
648 'cflags': [
649 '-fPIC',
650 ],
[email protected]93c4eb0d42010-06-15 01:54:26651 # Official builds set -gstabs, which fails when building with -fPIC.
652 # It's useless on 64 bits anyways because breakpad doesn't work then.
653 'cflags!': [
654 '-gstabs',
655 ],
[email protected]97a28e722010-06-11 21:30:37656 'direct_dependent_settings': {
657 'include_dirs': [
658 '..',
659 ],
660 },
661 'conditions': [
662 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', {
663 'dependencies': [
664 '../build/util/build_util.gyp:lastchange',
665 '../build/linux/system.gyp:gtk',
666 '../build/linux/system.gyp:nss',
667 'xdg_mime',
668 ],
669 'export_dependent_settings': [
670 '../build/linux/system.gyp:gtk',
671 ],
672 },],
[email protected]72d31962010-06-11 22:45:37673 ['OS == "linux"', {
674 'link_settings': {
675 'libraries': [
676 # We need rt for clock_gettime().
677 '-lrt',
678 # For 'native_library_linux.cc'
679 '-ldl',
680 ],
681 },
682 }],
[email protected]97a28e722010-06-11 21:30:37683 [ 'OS == "mac" or OS == "win"', {
684 'dependencies': [
685 '../third_party/nss/nss.gyp:nss',
686 ],
687 },],
688 [ 'OS != "win"', {
689 'dependencies': ['../third_party/libevent/libevent.gyp:libevent'],
690 },],
691 ],
692 },
693 ],
694 }],
[email protected]93f21e42010-04-01 00:35:15695 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
[email protected]48c27f72010-01-26 06:26:26696 'targets': [
697 {
698 'target_name': 'symbolize',
699 'type': '<(library)',
[email protected]076cf932010-02-16 19:13:36700 'variables': {
701 'chromium_code': 0,
702 },
[email protected]93f21e42010-04-01 00:35:15703 'conditions': [
704 [ 'OS == "solaris"', {
705 'include_dirs': [
706 '/usr/gnu/include',
707 '/usr/gnu/include/libelf',
708 ],
709 },],
710 ],
[email protected]48c27f72010-01-26 06:26:26711 'cflags': [
712 '-Wno-sign-compare',
713 ],
[email protected]225c8f52010-02-05 22:23:20714 'cflags!': [
715 '-Wextra',
716 ],
[email protected]48c27f72010-01-26 06:26:26717 'sources': [
718 'third_party/symbolize/symbolize.cc',
719 'third_party/symbolize/demangle.cc',
720 ],
721 },
[email protected]2d48004e2010-02-03 02:11:40722 {
723 'target_name': 'xdg_mime',
724 'type': '<(library)',
[email protected]076cf932010-02-16 19:13:36725 'variables': {
726 'chromium_code': 0,
727 },
[email protected]225c8f52010-02-05 22:23:20728 'cflags!': [
729 '-Wextra',
730 ],
[email protected]2d48004e2010-02-03 02:11:40731 'sources': [
732 'third_party/xdg_mime/xdgmime.c',
733 'third_party/xdg_mime/xdgmime.h',
734 'third_party/xdg_mime/xdgmimealias.c',
735 'third_party/xdg_mime/xdgmimealias.h',
736 'third_party/xdg_mime/xdgmimecache.c',
737 'third_party/xdg_mime/xdgmimecache.h',
738 'third_party/xdg_mime/xdgmimeglob.c',
739 'third_party/xdg_mime/xdgmimeglob.h',
740 'third_party/xdg_mime/xdgmimeicon.c',
741 'third_party/xdg_mime/xdgmimeicon.h',
742 'third_party/xdg_mime/xdgmimeint.c',
743 'third_party/xdg_mime/xdgmimeint.h',
744 'third_party/xdg_mime/xdgmimemagic.c',
745 'third_party/xdg_mime/xdgmimemagic.h',
746 'third_party/xdg_mime/xdgmimeparent.c',
747 'third_party/xdg_mime/xdgmimeparent.h',
748 ],
749 },
[email protected]48c27f72010-01-26 06:26:26750 ],
751 }],
[email protected]ef4fa4072009-12-04 22:46:50752 ],
753}