blob: d32d69400fd0e3567b158d04ee2021ee1080daeb [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]9bc8cff2010-04-03 01:05:3966 'env_var.cc',
67 'env_var.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',
179 'ref_counted_memory.h',
180 'registry.cc',
181 'registry.h',
182 'resource_util.cc',
183 'resource_util.h',
184 'safe_strerror_posix.cc',
185 'safe_strerror_posix.h',
186 'scoped_bstr_win.cc',
187 'scoped_bstr_win.h',
188 'scoped_cftyperef.h',
189 'scoped_comptr_win.h',
190 'scoped_handle.h',
[email protected]ef4fa4072009-12-04 22:46:50191 'scoped_handle_win.h',
192 'scoped_nsautorelease_pool.h',
193 'scoped_nsautorelease_pool.mm',
194 'scoped_nsdisable_screen_updates.h',
195 'scoped_nsobject.h',
[email protected]8ceb44c2010-02-24 22:27:04196 'scoped_open_process.h',
[email protected]ef4fa4072009-12-04 22:46:50197 'scoped_ptr.h',
198 'scoped_temp_dir.cc',
199 'scoped_temp_dir.h',
200 'scoped_variant_win.cc',
201 'scoped_variant_win.h',
202 'scoped_vector.h',
[email protected]ef4fa4072009-12-04 22:46:50203 'sha1.h',
[email protected]94d557e2010-06-23 21:41:40204 'sha1_portable.cc',
205 'sha1_win.cc',
[email protected]ef4fa4072009-12-04 22:46:50206 'shared_memory.h',
207 'shared_memory_posix.cc',
208 'shared_memory_win.cc',
209 'simple_thread.cc',
210 'simple_thread.h',
211 'singleton.h',
212 'spin_wait.h',
213 'stack_container.h',
214 'stats_counters.h',
215 'stats_table.cc',
216 'stats_table.h',
217 'stl_util-inl.h',
218 'string_piece.cc',
219 'string_piece.h',
[email protected]0477554f2010-01-21 19:29:25220 'string_split.cc',
221 'string_split.h',
[email protected]ef4fa4072009-12-04 22:46:50222 'string_tokenizer.h',
223 'string_util.cc',
224 'string_util.h',
225 'string_util_win.h',
226 'sys_info.h',
227 'sys_info_chromeos.cc',
228 'sys_info_freebsd.cc',
229 'sys_info_linux.cc',
230 'sys_info_mac.cc',
231 'sys_info_openbsd.cc',
232 'sys_info_posix.cc',
233 'sys_info_win.cc',
234 'sys_string_conversions.h',
235 'sys_string_conversions_linux.cc',
236 'sys_string_conversions_mac.mm',
237 'sys_string_conversions_win.cc',
238 'task.h',
[email protected]951269b2010-06-15 19:39:24239 'template_util.h',
[email protected]ef4fa4072009-12-04 22:46:50240 'thread.cc',
241 'thread.h',
242 'thread_collision_warner.cc',
243 'thread_collision_warner.h',
244 'thread_local.h',
245 'thread_local_posix.cc',
246 'thread_local_storage.h',
247 'thread_local_storage_posix.cc',
248 'thread_local_storage_win.cc',
249 'thread_local_win.cc',
250 'time.cc',
251 'time.h',
252 'time_win.cc',
253 'timer.cc',
254 'timer.h',
[email protected]3e569552010-05-07 20:25:49255 'trace_event_win.cc',
[email protected]ef4fa4072009-12-04 22:46:50256 'trace_event.cc',
257 'trace_event.h',
258 'tracked.cc',
259 'tracked.h',
260 'tracked_objects.cc',
261 'tracked_objects.h',
262 'tuple.h',
[email protected]9bc8cff2010-04-03 01:05:39263 'unix_domain_socket_posix.cc',
[email protected]ef4fa4072009-12-04 22:46:50264 'utf_offset_string_conversions.cc',
265 'utf_offset_string_conversions.h',
266 'utf_string_conversion_utils.cc',
267 'utf_string_conversion_utils.h',
268 'utf_string_conversions.cc',
269 'utf_string_conversions.h',
[email protected]c604a552010-03-22 20:12:50270 'values.cc',
271 'values.h',
[email protected]ef4fa4072009-12-04 22:46:50272 'waitable_event.h',
273 'waitable_event_posix.cc',
274 'waitable_event_watcher.h',
275 'waitable_event_watcher_posix.cc',
276 'waitable_event_watcher_win.cc',
277 'waitable_event_win.cc',
278 'watchdog.cc',
279 'watchdog.h',
280 'weak_ptr.h',
281 'win_util.cc',
282 'win_util.h',
283 'windows_message_list.h',
284 'wmi_util.cc',
285 'wmi_util.h',
286 'worker_pool.h',
287 'worker_pool_linux.cc',
288 'worker_pool_linux.h',
289 'worker_pool_mac.h',
290 'worker_pool_mac.mm',
291 'worker_pool_win.cc',
[email protected]1c657852010-04-22 23:28:05292 'xdg_util.h',
293 'xdg_util.cc',
[email protected]ef4fa4072009-12-04 22:46:50294 ],
295 'include_dirs': [
296 '..',
297 ],
298 # These warnings are needed for the files in third_party\dmg_fp.
299 'msvs_disabled_warnings': [
300 4244, 4554, 4018, 4102,
301 ],
302 'mac_framework_dirs': [
303 '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework/Frameworks',
304 ],
305 'conditions': [
[email protected]93f21e42010-04-01 00:35:15306 [ 'OS != "linux" and OS != "freebsd" and OS != "openbsd" and OS != "solaris"', {
[email protected]ef4fa4072009-12-04 22:46:50307 'sources/': [
[email protected]ef4fa4072009-12-04 22:46:50308 ['exclude', '/xdg_user_dirs/'],
[email protected]1c657852010-04-22 23:28:05309 ['exclude', '/xdg_[^/]*\\.cc$'],
[email protected]ef4fa4072009-12-04 22:46:50310 ['exclude', '_nss\.cc$'],
311 ],
312 'sources!': [
313 'atomicops_internals_x86_gcc.cc',
314 'base_paths_posix.cc',
[email protected]ef4fa4072009-12-04 22:46:50315 'message_pump_glib.cc',
[email protected]1c657852010-04-22 23:28:05316 'xdg_util.cc',
[email protected]ef4fa4072009-12-04 22:46:50317 ],
[email protected]bcff05a2010-04-14 01:46:43318 }],
[email protected]ef4fa4072009-12-04 22:46:50319 [ 'OS != "linux"', {
320 'sources!': [
321 # Not automatically excluded by the *linux.cc rules.
[email protected]0ea54822010-07-01 20:14:50322 'gtk_util.cc',
323 'gtk_util.h',
[email protected]1c657852010-04-22 23:28:05324 'linux_util.cc',
[email protected]ef4fa4072009-12-04 22:46:50325 'setproctitle_linux.c',
326 'setproctitle_linux.h',
327 ],
328 },
329 ],
330 # For now, just test the *BSD platforms enough to exclude them.
331 # Subsequent changes will include them further.
332 [ 'OS != "freebsd"', {
333 'sources/': [ ['exclude', '_freebsd\\.cc$'] ],
334 },
335 ],
336 [ 'OS != "openbsd"', {
337 'sources/': [ ['exclude', '_openbsd\\.cc$'] ],
338 },
339 ],
[email protected]3dd6f5e2010-06-01 20:28:03340 [ 'OS != "mac"', {
[email protected]ef4fa4072009-12-04 22:46:50341 'sources!': [
342 'crypto/cssm_init.cc',
343 'crypto/cssm_init.h',
344 ],
[email protected]abd4aba2010-01-27 19:36:22345 },],
[email protected]ef4fa4072009-12-04 22:46:50346 [ 'OS == "win"', {
347 'include_dirs': [
[email protected]cd134c8c2010-03-09 05:23:12348 '<(DEPTH)/third_party/wtl/include',
[email protected]ef4fa4072009-12-04 22:46:50349 ],
350 'sources!': [
[email protected]ef4fa4072009-12-04 22:46:50351 'event_recorder_stubs.cc',
352 'file_descriptor_shuffle.cc',
353 'message_pump_libevent.cc',
[email protected]5ac07d5b2010-06-25 21:53:41354 # Not using sha1_win.cc because it may have caused a
355 # regression to page cycler moz.
356 'sha1_win.cc',
[email protected]ef4fa4072009-12-04 22:46:50357 'string16.cc',
[email protected]3e569552010-05-07 20:25:49358 'trace_event.cc',
[email protected]ef4fa4072009-12-04 22:46:50359 ],
360 },],
361 ],
362 }],
[email protected]97a28e722010-06-11 21:30:37363 ['base_extra_target', {
364 'sources': [
[email protected]3bcd57902010-06-23 22:46:04365 'crypto/capi_util.cc',
366 'crypto/capi_util.h',
[email protected]97a28e722010-06-11 21:30:37367 'crypto/cssm_init.cc',
368 'crypto/cssm_init.h',
369 'crypto/encryptor.h',
370 'crypto/encryptor_mac.cc',
371 'crypto/encryptor_nss.cc',
372 'crypto/encryptor_win.cc',
373 'crypto/rsa_private_key.h',
374 'crypto/rsa_private_key.cc',
375 'crypto/rsa_private_key_mac.cc',
376 'crypto/rsa_private_key_nss.cc',
377 'crypto/rsa_private_key_win.cc',
378 'crypto/signature_creator.h',
379 'crypto/signature_creator_mac.cc',
380 'crypto/signature_creator_nss.cc',
381 'crypto/signature_creator_win.cc',
382 'crypto/signature_verifier.h',
383 'crypto/signature_verifier_mac.cc',
384 'crypto/signature_verifier_nss.cc',
385 'crypto/signature_verifier_win.cc',
386 'crypto/symmetric_key.h',
387 'crypto/symmetric_key_mac.cc',
388 'crypto/symmetric_key_nss.cc',
389 'crypto/symmetric_key_win.cc',
390 'third_party/nspr/prcpucfg.h',
391 'third_party/nspr/prcpucfg_win.h',
392 'third_party/nspr/prtypes.h',
393 'third_party/nss/blapi.h',
394 'third_party/nss/blapit.h',
395 'third_party/nss/sha256.h',
396 'third_party/nss/sha512.cc',
397 'third_party/purify/pure.h',
398 'third_party/purify/pure_api.c',
399 'third_party/xdg_user_dirs/xdg_user_dir_lookup.cc',
400 'third_party/xdg_user_dirs/xdg_user_dir_lookup.h',
401 'auto_reset.h',
402 'base64.cc',
403 'base64.h',
404 'base_drag_source.cc',
405 'base_drag_source.h',
406 'base_drop_target.cc',
407 'base_drop_target.h',
408 'data_pack.cc',
409 'event_recorder.cc',
410 'event_recorder.h',
411 'event_recorder_stubs.cc',
412 'field_trial.cc',
413 'field_trial.h',
414 'file_descriptor_shuffle.cc',
415 'file_descriptor_shuffle.h',
416 'hmac.h',
417 'hmac_mac.cc',
418 'hmac_nss.cc',
419 'hmac_win.cc',
420 'image_util.cc',
421 'image_util.h',
422 'json/json_reader.cc',
423 'json/json_reader.h',
424 'json/json_writer.cc',
425 'json/json_writer.h',
426 'json/string_escape.cc',
427 'json/string_escape.h',
428 'keyboard_code_conversion_gtk.cc',
429 'keyboard_code_conversion_gtk.h',
430 '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': [
462 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', {
463 '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 ],
475 },],
476 [ 'OS != "win"', {
477 'sources!': [
478 'third_party/purify/pure_api.c',
479 'base_drag_source.cc',
480 'base_drop_target.cc',
481 'cpu.cc',
[email protected]3bcd57902010-06-23 22:46:04482 'crypto/capi_util.h',
483 'crypto/capi_util.cc',
[email protected]97a28e722010-06-11 21:30:37484 'debug_on_start.cc',
485 'event_recorder.cc',
486 'file_version_info.cc',
487 'iat_patch.cc',
488 'image_util.cc',
489 'object_watcher.cc',
490 'pe_image.cc',
491 'registry.cc',
492 'resource_util.cc',
493 'win_util.cc',
494 'wmi_util.cc',
495 ],
496 },],
497 ],
498 }],
[email protected]ef4fa4072009-12-04 22:46:50499 ],
500 },
501 'targets': [
502 {
503 'target_name': 'base',
504 'type': '<(library)',
505 'msvs_guid': '1832A374-8A74-4F9E-B536-69A699B3E165',
506 'variables': {
507 'base_target': 1,
[email protected]97a28e722010-06-11 21:30:37508 'base_extra_target': 1,
[email protected]ef4fa4072009-12-04 22:46:50509 },
510 'dependencies': [
511 '../third_party/modp_b64/modp_b64.gyp:modp_b64',
[email protected]b4a0b99952010-05-19 08:33:37512 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]ef4fa4072009-12-04 22:46:50513 ],
514 # TODO(gregoryd): direct_dependent_settings should be shared with the
515 # 64-bit target, but it doesn't work due to a bug in gyp
516 'direct_dependent_settings': {
517 'include_dirs': [
518 '..',
519 ],
520 },
[email protected]ef4fa4072009-12-04 22:46:50521 'conditions': [
[email protected]66700d42010-03-10 07:46:43522 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', {
[email protected]ef4fa4072009-12-04 22:46:50523 'conditions': [
[email protected]3e0a8b82010-07-02 01:12:18524 [ 'linux_use_tcmalloc==0', {
525 'defines': [
526 'NO_TCMALLOC',
527 ],
528 'direct_dependent_settings': {
529 'defines': [
530 'NO_TCMALLOC',
531 ],
532 },
533 },
534 ],
[email protected]ef8f5ba2010-04-02 14:54:22535 [ 'linux_use_tcmalloc==1', {
536 'dependencies': [
537 'allocator/allocator.gyp:allocator',
538 ],
539 },
540 ],
[email protected]ef4fa4072009-12-04 22:46:50541 ],
542 'dependencies': [
[email protected]97a28e722010-06-11 21:30:37543 'symbolize',
[email protected]ef4fa4072009-12-04 22:46:50544 '../build/util/build_util.gyp:lastchange',
545 '../build/linux/system.gyp:gtk',
546 '../build/linux/system.gyp:nss',
[email protected]2d48004e2010-02-03 02:11:40547 'xdg_mime',
[email protected]48c27f72010-01-26 06:26:26548 ],
[email protected]ef4fa4072009-12-04 22:46:50549 'export_dependent_settings': [
550 '../build/linux/system.gyp:gtk',
551 ],
552 },],
[email protected]1d53ce12010-06-11 05:41:00553 [ 'OS == "freebsd" or OS == "openbsd"', {
[email protected]97a28e722010-06-11 21:30:37554 'link_settings': {
555 'libraries': [
556 '-L/usr/local/lib -lexecinfo',
[email protected]1d53ce12010-06-11 05:41:00557 ],
558 },
559 },
560 ],
[email protected]72d31962010-06-11 22:45:37561 [ 'OS == "linux"', {
562 'link_settings': {
563 'libraries': [
564 # We need rt for clock_gettime().
565 '-lrt',
566 # For 'native_library_linux.cc'
567 '-ldl',
568 ],
569 },
570 }],
[email protected]1d53ce12010-06-11 05:41:00571 [ 'OS == "mac"', {
[email protected]97a28e722010-06-11 21:30:37572 'link_settings': {
573 'libraries': [
574 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
575 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
576 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
577 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
578 '$(SDKROOT)/System/Library/Frameworks/IOKit.framework',
579 '$(SDKROOT)/System/Library/Frameworks/Security.framework',
580 ],
581 },
[email protected]1d53ce12010-06-11 05:41:00582 },],
[email protected]3dd6f5e2010-06-01 20:28:03583 [ 'OS == "mac" or OS == "win"', {
[email protected]abd4aba2010-01-27 19:36:22584 'dependencies': [
585 '../third_party/nss/nss.gyp:nss',
586 ],
[email protected]3dd6f5e2010-06-01 20:28:03587 },],
588 [ 'OS != "win"', {
[email protected]ef4fa4072009-12-04 22:46:50589 'dependencies': ['../third_party/libevent/libevent.gyp:libevent'],
[email protected]abd4aba2010-01-27 19:36:22590 },],
[email protected]ef4fa4072009-12-04 22:46:50591 ],
[email protected]ef4fa4072009-12-04 22:46:50592 },
593 ],
594 'conditions': [
595 [ 'OS == "win"', {
596 'targets': [
597 {
598 'target_name': 'base_nacl_win64',
599 'type': '<(library)',
600 'msvs_guid': 'CEE1F794-DC70-4FED-B7C4-4C12986672FE',
601 'variables': {
602 'base_target': 1,
603 },
[email protected]ee857512010-05-14 08:24:42604 'dependencies': [
[email protected]b4a0b99952010-05-19 08:33:37605 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations_win64',
[email protected]ee857512010-05-14 08:24:42606 ],
[email protected]ef4fa4072009-12-04 22:46:50607 # TODO(gregoryd): direct_dependent_settings should be shared with the
608 # 32-bit target, but it doesn't work due to a bug in gyp
609 'direct_dependent_settings': {
610 'include_dirs': [
611 '..',
612 ],
613 },
614 'defines': [
615 '<@(nacl_win64_defines)',
616 ],
617 'sources': [
618 'i18n/icu_util_nacl_win64.cc',
619 ],
620 'configurations': {
[email protected]8782f7072009-12-22 22:57:37621 'Common_Base': {
[email protected]ef4fa4072009-12-04 22:46:50622 'msvs_target_platform': 'x64',
623 },
624 },
625 },
626 ],
627 }],
[email protected]0c2583a92010-06-16 00:53:01628 [ 'OS == "linux" and internal_pdf', {
[email protected]97a28e722010-06-11 21:30:37629 'targets': [
630 {
631 'target_name': 'base_fpic',
632 'type': '<(library)',
633 'variables': {
634 'base_target': 1,
635 'base_extra_target': 1,
636 },
637 'cflags': [
638 '-fPIC',
639 ],
[email protected]93c4eb0d42010-06-15 01:54:26640 # Official builds set -gstabs, which fails when building with -fPIC.
641 # It's useless on 64 bits anyways because breakpad doesn't work then.
642 'cflags!': [
643 '-gstabs',
644 ],
[email protected]97a28e722010-06-11 21:30:37645 'direct_dependent_settings': {
646 'include_dirs': [
647 '..',
648 ],
649 },
650 'conditions': [
651 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', {
652 'dependencies': [
653 '../build/util/build_util.gyp:lastchange',
654 '../build/linux/system.gyp:gtk',
655 '../build/linux/system.gyp:nss',
656 'xdg_mime',
657 ],
658 'export_dependent_settings': [
659 '../build/linux/system.gyp:gtk',
660 ],
661 },],
[email protected]72d31962010-06-11 22:45:37662 ['OS == "linux"', {
663 'link_settings': {
664 'libraries': [
665 # We need rt for clock_gettime().
666 '-lrt',
667 # For 'native_library_linux.cc'
668 '-ldl',
669 ],
670 },
671 }],
[email protected]97a28e722010-06-11 21:30:37672 [ 'OS == "mac" or OS == "win"', {
673 'dependencies': [
674 '../third_party/nss/nss.gyp:nss',
675 ],
676 },],
677 [ 'OS != "win"', {
678 'dependencies': ['../third_party/libevent/libevent.gyp:libevent'],
679 },],
680 ],
681 },
682 ],
683 }],
[email protected]93f21e42010-04-01 00:35:15684 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
[email protected]48c27f72010-01-26 06:26:26685 'targets': [
686 {
687 'target_name': 'symbolize',
688 'type': '<(library)',
[email protected]076cf932010-02-16 19:13:36689 'variables': {
690 'chromium_code': 0,
691 },
[email protected]93f21e42010-04-01 00:35:15692 'conditions': [
693 [ 'OS == "solaris"', {
694 'include_dirs': [
695 '/usr/gnu/include',
696 '/usr/gnu/include/libelf',
697 ],
698 },],
699 ],
[email protected]48c27f72010-01-26 06:26:26700 'cflags': [
701 '-Wno-sign-compare',
702 ],
[email protected]225c8f52010-02-05 22:23:20703 'cflags!': [
704 '-Wextra',
705 ],
[email protected]48c27f72010-01-26 06:26:26706 'sources': [
707 'third_party/symbolize/symbolize.cc',
708 'third_party/symbolize/demangle.cc',
709 ],
710 },
[email protected]2d48004e2010-02-03 02:11:40711 {
712 'target_name': 'xdg_mime',
713 'type': '<(library)',
[email protected]076cf932010-02-16 19:13:36714 'variables': {
715 'chromium_code': 0,
716 },
[email protected]225c8f52010-02-05 22:23:20717 'cflags!': [
718 '-Wextra',
719 ],
[email protected]2d48004e2010-02-03 02:11:40720 'sources': [
721 'third_party/xdg_mime/xdgmime.c',
722 'third_party/xdg_mime/xdgmime.h',
723 'third_party/xdg_mime/xdgmimealias.c',
724 'third_party/xdg_mime/xdgmimealias.h',
725 'third_party/xdg_mime/xdgmimecache.c',
726 'third_party/xdg_mime/xdgmimecache.h',
727 'third_party/xdg_mime/xdgmimeglob.c',
728 'third_party/xdg_mime/xdgmimeglob.h',
729 'third_party/xdg_mime/xdgmimeicon.c',
730 'third_party/xdg_mime/xdgmimeicon.h',
731 'third_party/xdg_mime/xdgmimeint.c',
732 'third_party/xdg_mime/xdgmimeint.h',
733 'third_party/xdg_mime/xdgmimemagic.c',
734 'third_party/xdg_mime/xdgmimemagic.h',
735 'third_party/xdg_mime/xdgmimeparent.c',
736 'third_party/xdg_mime/xdgmimeparent.h',
737 ],
738 },
[email protected]48c27f72010-01-26 06:26:26739 ],
740 }],
[email protected]ef4fa4072009-12-04 22:46:50741 ],
742}