blob: 383f645f5db6f5479979b8902f534e30c16c2067 [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]1d01d412010-08-20 00:36:0180 'file_util_linux.cc',
[email protected]ef4fa4072009-12-04 22:46:5081 'file_util_mac.mm',
82 'file_util_posix.cc',
83 'file_util_win.cc',
[email protected]ef4fa4072009-12-04 22:46:5084 'file_version_info.h',
[email protected]bcff05a2010-04-14 01:46:4385 'file_version_info_mac.h',
[email protected]ef4fa4072009-12-04 22:46:5086 'file_version_info_mac.mm',
[email protected]bcff05a2010-04-14 01:46:4387 'file_version_info_win.cc',
88 'file_version_info_win.h',
[email protected]ef4fa4072009-12-04 22:46:5089 'fix_wp64.h',
90 'float_util.h',
91 'foundation_utils_mac.h',
[email protected]ef4fa4072009-12-04 22:46:5092 'global_descriptors_posix.cc',
[email protected]9bc8cff2010-04-03 01:05:3993 'global_descriptors_posix.h',
[email protected]a918f872010-06-01 14:30:5194 'gtest_prod_util.h',
[email protected]0ea54822010-07-01 20:14:5095 'gtk_util.cc',
96 'gtk_util.h',
[email protected]ef4fa4072009-12-04 22:46:5097 'hash_tables.h',
98 'histogram.cc',
99 'histogram.h',
100 'iat_patch.cc',
101 'iat_patch.h',
102 'id_map.h',
[email protected]252cad62010-08-18 18:33:57103 'json/json_reader.cc',
104 'json/json_reader.h',
105 'json/json_writer.cc',
106 'json/json_writer.h',
107 'json/string_escape.cc',
108 'json/string_escape.h',
[email protected]ef4fa4072009-12-04 22:46:50109 'lazy_instance.cc',
110 'lazy_instance.h',
111 'leak_annotations.h',
112 'leak_tracker.h',
113 'linked_list.h',
114 'linked_ptr.h',
115 'lock.cc',
116 'lock.h',
117 'lock_impl.h',
118 'lock_impl_posix.cc',
119 'lock_impl_win.cc',
120 'logging.cc',
[email protected]ef4fa4072009-12-04 22:46:50121 'logging.h',
[email protected]9bc8cff2010-04-03 01:05:39122 'logging_win.cc',
[email protected]ef4fa4072009-12-04 22:46:50123 'mac_util.h',
124 'mac_util.mm',
[email protected]c0028792010-01-12 00:39:15125 'mach_ipc_mac.h',
126 'mach_ipc_mac.mm',
[email protected]ef4fa4072009-12-04 22:46:50127 'memory_debug.cc',
128 'memory_debug.h',
129 'message_loop.cc',
130 'message_loop.h',
[email protected]2cbac9e2010-04-29 03:31:34131 'message_loop_proxy.h',
[email protected]656475d2010-05-06 18:34:24132 'message_loop_proxy_impl.cc',
133 'message_loop_proxy_impl.h',
[email protected]ef4fa4072009-12-04 22:46:50134 'message_pump.h',
135 'message_pump_default.cc',
136 'message_pump_default.h',
137 'message_pump_win.cc',
138 'message_pump_win.h',
139 'mime_util.h',
[email protected]1c657852010-04-22 23:28:05140 'mime_util_xdg.cc',
[email protected]0fecda62010-03-19 21:59:01141 'move.h',
[email protected]ef4fa4072009-12-04 22:46:50142 'native_library.h',
143 'native_library_linux.cc',
144 'native_library_mac.mm',
145 'native_library_win.cc',
146 'non_thread_safe.cc',
147 'non_thread_safe.h',
148 'nullable_string16.h',
149 'object_watcher.cc',
150 'object_watcher.h',
151 'observer_list.h',
152 'observer_list_threadsafe.h',
153 'path_service.cc',
154 'path_service.h',
[email protected]4bc818e2010-02-04 22:47:37155 'pe_image.cc',
156 'pe_image.h',
[email protected]ef4fa4072009-12-04 22:46:50157 'pickle.cc',
158 'pickle.h',
159 'platform_file.h',
[email protected]ef4fa4072009-12-04 22:46:50160 'platform_file_posix.cc',
[email protected]9bc8cff2010-04-03 01:05:39161 'platform_file_win.cc',
[email protected]ef4fa4072009-12-04 22:46:50162 'platform_thread.h',
163 'platform_thread_mac.mm',
164 'platform_thread_posix.cc',
165 'platform_thread_win.cc',
166 'port.h',
[email protected]ef4fa4072009-12-04 22:46:50167 'process.h',
168 'process_linux.cc',
169 'process_posix.cc',
[email protected]b6128aa2010-04-29 17:44:42170 'process_util.cc',
[email protected]ef4fa4072009-12-04 22:46:50171 'process_util.h',
172 'process_util_linux.cc',
173 'process_util_mac.mm',
174 'process_util_posix.cc',
175 'process_util_win.cc',
176 'process_win.cc',
[email protected]9bc8cff2010-04-03 01:05:39177 'profiler.cc',
178 'profiler.h',
[email protected]ef4fa4072009-12-04 22:46:50179 'rand_util.cc',
180 'rand_util.h',
181 'rand_util_posix.cc',
182 'rand_util_win.cc',
183 'raw_scoped_refptr_mismatch_checker.h',
184 'ref_counted.cc',
185 'ref_counted.h',
[email protected]3071754432010-07-28 00:09:54186 'ref_counted_memory.cc',
[email protected]ef4fa4072009-12-04 22:46:50187 'ref_counted_memory.h',
188 'registry.cc',
189 'registry.h',
190 'resource_util.cc',
191 'resource_util.h',
192 'safe_strerror_posix.cc',
193 'safe_strerror_posix.h',
[email protected]824ff722010-08-13 15:24:53194 'scoped_aedesc.h',
[email protected]ef4fa4072009-12-04 22:46:50195 'scoped_bstr_win.cc',
196 'scoped_bstr_win.h',
[email protected]21ae1f92010-07-30 23:05:15197 'scoped_callback_factory.h',
[email protected]ef4fa4072009-12-04 22:46:50198 'scoped_cftyperef.h',
199 'scoped_comptr_win.h',
200 'scoped_handle.h',
[email protected]ef4fa4072009-12-04 22:46:50201 'scoped_handle_win.h',
202 'scoped_nsautorelease_pool.h',
203 'scoped_nsautorelease_pool.mm',
204 'scoped_nsdisable_screen_updates.h',
205 'scoped_nsobject.h',
[email protected]8ceb44c2010-02-24 22:27:04206 'scoped_open_process.h',
[email protected]ef4fa4072009-12-04 22:46:50207 'scoped_ptr.h',
208 'scoped_temp_dir.cc',
209 'scoped_temp_dir.h',
210 'scoped_variant_win.cc',
211 'scoped_variant_win.h',
212 'scoped_vector.h',
[email protected]ef4fa4072009-12-04 22:46:50213 'sha1.h',
[email protected]94d557e2010-06-23 21:41:40214 'sha1_portable.cc',
215 'sha1_win.cc',
[email protected]ef4fa4072009-12-04 22:46:50216 'shared_memory.h',
217 'shared_memory_posix.cc',
218 'shared_memory_win.cc',
219 'simple_thread.cc',
220 'simple_thread.h',
221 'singleton.h',
222 'spin_wait.h',
223 'stack_container.h',
224 'stats_counters.h',
225 'stats_table.cc',
226 'stats_table.h',
227 'stl_util-inl.h',
[email protected]528c56d2010-07-30 19:28:44228 'string_number_conversions.cc',
229 'string_number_conversions.h',
[email protected]ef4fa4072009-12-04 22:46:50230 'string_piece.cc',
231 'string_piece.h',
[email protected]0477554f2010-01-21 19:29:25232 'string_split.cc',
233 'string_split.h',
[email protected]ef4fa4072009-12-04 22:46:50234 'string_tokenizer.h',
235 'string_util.cc',
236 'string_util.h',
237 'string_util_win.h',
[email protected]e6811ed52010-08-17 03:45:37238 'stringprintf.cc',
239 'stringprintf.h',
[email protected]ef4fa4072009-12-04 22:46:50240 'sys_info.h',
241 'sys_info_chromeos.cc',
242 'sys_info_freebsd.cc',
243 'sys_info_linux.cc',
244 'sys_info_mac.cc',
245 'sys_info_openbsd.cc',
246 'sys_info_posix.cc',
247 'sys_info_win.cc',
248 'sys_string_conversions.h',
249 'sys_string_conversions_linux.cc',
250 'sys_string_conversions_mac.mm',
251 'sys_string_conversions_win.cc',
[email protected]3a3d47472010-07-15 21:03:54252 'task.cc',
[email protected]ef4fa4072009-12-04 22:46:50253 'task.h',
[email protected]951269b2010-06-15 19:39:24254 'template_util.h',
[email protected]ef4fa4072009-12-04 22:46:50255 'thread.cc',
256 'thread.h',
257 'thread_collision_warner.cc',
258 'thread_collision_warner.h',
259 'thread_local.h',
260 'thread_local_posix.cc',
261 'thread_local_storage.h',
262 'thread_local_storage_posix.cc',
263 'thread_local_storage_win.cc',
264 'thread_local_win.cc',
265 'time.cc',
266 'time.h',
267 'time_win.cc',
268 'timer.cc',
269 'timer.h',
[email protected]3e569552010-05-07 20:25:49270 'trace_event_win.cc',
[email protected]ef4fa4072009-12-04 22:46:50271 'trace_event.cc',
272 'trace_event.h',
273 'tracked.cc',
274 'tracked.h',
275 'tracked_objects.cc',
276 'tracked_objects.h',
277 'tuple.h',
[email protected]9bc8cff2010-04-03 01:05:39278 'unix_domain_socket_posix.cc',
[email protected]ef4fa4072009-12-04 22:46:50279 'utf_offset_string_conversions.cc',
280 'utf_offset_string_conversions.h',
281 'utf_string_conversion_utils.cc',
282 'utf_string_conversion_utils.h',
283 'utf_string_conversions.cc',
284 'utf_string_conversions.h',
[email protected]c604a552010-03-22 20:12:50285 'values.cc',
286 'values.h',
[email protected]ef4fa4072009-12-04 22:46:50287 'waitable_event.h',
288 'waitable_event_posix.cc',
289 'waitable_event_watcher.h',
290 'waitable_event_watcher_posix.cc',
291 'waitable_event_watcher_win.cc',
292 'waitable_event_win.cc',
293 'watchdog.cc',
294 'watchdog.h',
[email protected]3a3d47472010-07-15 21:03:54295 'weak_ptr.cc',
[email protected]ef4fa4072009-12-04 22:46:50296 'weak_ptr.h',
297 'win_util.cc',
298 'win_util.h',
299 'windows_message_list.h',
300 'wmi_util.cc',
301 'wmi_util.h',
302 'worker_pool.h',
303 'worker_pool_linux.cc',
304 'worker_pool_linux.h',
305 'worker_pool_mac.h',
306 'worker_pool_mac.mm',
307 'worker_pool_win.cc',
[email protected]1c657852010-04-22 23:28:05308 'xdg_util.h',
309 'xdg_util.cc',
[email protected]ef4fa4072009-12-04 22:46:50310 ],
311 'include_dirs': [
312 '..',
313 ],
314 # These warnings are needed for the files in third_party\dmg_fp.
315 'msvs_disabled_warnings': [
316 4244, 4554, 4018, 4102,
317 ],
318 'mac_framework_dirs': [
319 '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework/Frameworks',
320 ],
321 'conditions': [
[email protected]93f21e42010-04-01 00:35:15322 [ 'OS != "linux" and OS != "freebsd" and OS != "openbsd" and OS != "solaris"', {
[email protected]ef4fa4072009-12-04 22:46:50323 'sources/': [
[email protected]1c657852010-04-22 23:28:05324 ['exclude', '/xdg_[^/]*\\.cc$'],
[email protected]ef4fa4072009-12-04 22:46:50325 ],
326 'sources!': [
327 'atomicops_internals_x86_gcc.cc',
328 'base_paths_posix.cc',
[email protected]ef4fa4072009-12-04 22:46:50329 'message_pump_glib.cc',
[email protected]1c657852010-04-22 23:28:05330 'xdg_util.cc',
[email protected]ef4fa4072009-12-04 22:46:50331 ],
[email protected]bcff05a2010-04-14 01:46:43332 }],
[email protected]ef4fa4072009-12-04 22:46:50333 [ 'OS != "linux"', {
334 'sources!': [
335 # Not automatically excluded by the *linux.cc rules.
[email protected]0ea54822010-07-01 20:14:50336 'gtk_util.cc',
337 'gtk_util.h',
[email protected]1c657852010-04-22 23:28:05338 'linux_util.cc',
[email protected]ef4fa4072009-12-04 22:46:50339 'setproctitle_linux.c',
340 'setproctitle_linux.h',
341 ],
342 },
343 ],
[email protected]824ff722010-08-13 15:24:53344 [ 'OS != "mac"', {
345 'sources!': [
346 'scoped_aedesc.h'
347 ],
348 }],
[email protected]ef4fa4072009-12-04 22:46:50349 # For now, just test the *BSD platforms enough to exclude them.
350 # Subsequent changes will include them further.
351 [ 'OS != "freebsd"', {
352 'sources/': [ ['exclude', '_freebsd\\.cc$'] ],
353 },
354 ],
355 [ 'OS != "openbsd"', {
356 'sources/': [ ['exclude', '_openbsd\\.cc$'] ],
357 },
358 ],
[email protected]ef4fa4072009-12-04 22:46:50359 [ 'OS == "win"', {
360 'include_dirs': [
[email protected]cd134c8c2010-03-09 05:23:12361 '<(DEPTH)/third_party/wtl/include',
[email protected]ef4fa4072009-12-04 22:46:50362 ],
363 'sources!': [
[email protected]ef4fa4072009-12-04 22:46:50364 'event_recorder_stubs.cc',
365 'file_descriptor_shuffle.cc',
366 'message_pump_libevent.cc',
[email protected]5ac07d5b2010-06-25 21:53:41367 # Not using sha1_win.cc because it may have caused a
368 # regression to page cycler moz.
369 'sha1_win.cc',
[email protected]ef4fa4072009-12-04 22:46:50370 'string16.cc',
[email protected]3e569552010-05-07 20:25:49371 'trace_event.cc',
[email protected]ef4fa4072009-12-04 22:46:50372 ],
373 },],
374 ],
375 }],
[email protected]90f18912010-07-08 16:51:04376 ['base_extra_target==1', {
[email protected]97a28e722010-06-11 21:30:37377 'sources': [
[email protected]3bcd57902010-06-23 22:46:04378 'crypto/capi_util.cc',
379 'crypto/capi_util.h',
[email protected]97a28e722010-06-11 21:30:37380 'crypto/cssm_init.cc',
381 'crypto/cssm_init.h',
382 'crypto/encryptor.h',
383 'crypto/encryptor_mac.cc',
384 'crypto/encryptor_nss.cc',
385 'crypto/encryptor_win.cc',
386 'crypto/rsa_private_key.h',
387 'crypto/rsa_private_key.cc',
388 'crypto/rsa_private_key_mac.cc',
389 'crypto/rsa_private_key_nss.cc',
390 'crypto/rsa_private_key_win.cc',
391 'crypto/signature_creator.h',
392 'crypto/signature_creator_mac.cc',
393 'crypto/signature_creator_nss.cc',
394 'crypto/signature_creator_win.cc',
395 'crypto/signature_verifier.h',
396 'crypto/signature_verifier_mac.cc',
397 'crypto/signature_verifier_nss.cc',
398 'crypto/signature_verifier_win.cc',
399 'crypto/symmetric_key.h',
400 'crypto/symmetric_key_mac.cc',
401 'crypto/symmetric_key_nss.cc',
402 'crypto/symmetric_key_win.cc',
403 'third_party/nspr/prcpucfg.h',
404 'third_party/nspr/prcpucfg_win.h',
405 'third_party/nspr/prtypes.h',
406 'third_party/nss/blapi.h',
407 'third_party/nss/blapit.h',
408 'third_party/nss/sha256.h',
409 'third_party/nss/sha512.cc',
410 'third_party/purify/pure.h',
411 'third_party/purify/pure_api.c',
412 'third_party/xdg_user_dirs/xdg_user_dir_lookup.cc',
413 'third_party/xdg_user_dirs/xdg_user_dir_lookup.h',
414 'auto_reset.h',
415 'base64.cc',
416 'base64.h',
417 'base_drag_source.cc',
418 'base_drag_source.h',
419 'base_drop_target.cc',
420 'base_drop_target.h',
421 'data_pack.cc',
422 'event_recorder.cc',
423 'event_recorder.h',
424 'event_recorder_stubs.cc',
425 'field_trial.cc',
426 'field_trial.h',
427 'file_descriptor_shuffle.cc',
428 'file_descriptor_shuffle.h',
429 'hmac.h',
430 'hmac_mac.cc',
431 'hmac_nss.cc',
432 'hmac_win.cc',
433 'image_util.cc',
434 'image_util.h',
[email protected]97a28e722010-06-11 21:30:37435 'keyboard_code_conversion_gtk.cc',
436 'keyboard_code_conversion_gtk.h',
[email protected]853300a82010-07-27 21:17:57437 'keyboard_code_conversion_mac.mm',
438 'keyboard_code_conversion_mac.h',
[email protected]97a28e722010-06-11 21:30:37439 'keyboard_codes.h',
440 'keyboard_codes_win.h',
441 'keyboard_codes_posix.h',
442 'linux_util.cc',
443 'linux_util.h',
444 'md5.cc',
445 'md5.h',
446 'message_pump_glib.cc',
447 'message_pump_glib.h',
448 'message_pump_libevent.cc',
449 'message_pump_libevent.h',
450 'message_pump_mac.h',
451 'message_pump_mac.mm',
452 'nsimage_cache_mac.h',
453 'nsimage_cache_mac.mm',
454 'nss_util.cc',
455 'nss_util.h',
456 'setproctitle_linux.c',
457 'setproctitle_linux.h',
458 'sha2.cc',
459 'sha2.h',
460 'string16.cc',
461 'string16.h',
462 'sync_socket.h',
463 'sync_socket_win.cc',
464 'sync_socket_posix.cc',
465 'time_mac.cc',
466 'time_posix.cc',
467 'version.cc',
468 'version.h',
469 ],
470 'conditions': [
[email protected]e001408d2010-07-09 03:07:58471 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
[email protected]97a28e722010-06-11 21:30:37472 'conditions': [
473 [ 'chromeos==1', {
474 'sources/': [ ['include', '_chromeos\\.cc$'] ]
475 },
476 ],
[email protected]97a28e722010-06-11 21:30:37477 ],
478 'defines': [
479 'USE_SYMBOLIZE',
480 ],
481 'cflags': [
482 '-Wno-write-strings',
483 ],
[email protected]e001408d2010-07-09 03:07:58484 }, { # OS != "linux" and OS != "freebsd" and OS != "openbsd" and OS != "solaris"
[email protected]90f18912010-07-08 16:51:04485 'sources/': [
486 ['exclude', '/xdg_user_dirs/'],
487 ['exclude', '_nss\.cc$'],
488 ],
489 }],
490 [ 'OS != "mac"', {
491 'sources!': [
492 'crypto/cssm_init.cc',
493 'crypto/cssm_init.h',
494 ],
495 },],
[email protected]97a28e722010-06-11 21:30:37496 [ 'OS != "win"', {
497 'sources!': [
498 'third_party/purify/pure_api.c',
499 'base_drag_source.cc',
500 'base_drop_target.cc',
501 'cpu.cc',
[email protected]3bcd57902010-06-23 22:46:04502 'crypto/capi_util.h',
503 'crypto/capi_util.cc',
[email protected]97a28e722010-06-11 21:30:37504 'debug_on_start.cc',
505 'event_recorder.cc',
506 'file_version_info.cc',
507 'iat_patch.cc',
508 'image_util.cc',
509 'object_watcher.cc',
510 'pe_image.cc',
511 'registry.cc',
512 'resource_util.cc',
513 'win_util.cc',
514 'wmi_util.cc',
515 ],
516 },],
517 ],
518 }],
[email protected]ef4fa4072009-12-04 22:46:50519 ],
520 },
521 'targets': [
522 {
523 'target_name': 'base',
524 'type': '<(library)',
525 'msvs_guid': '1832A374-8A74-4F9E-B536-69A699B3E165',
526 'variables': {
527 'base_target': 1,
[email protected]97a28e722010-06-11 21:30:37528 'base_extra_target': 1,
[email protected]ef4fa4072009-12-04 22:46:50529 },
530 'dependencies': [
531 '../third_party/modp_b64/modp_b64.gyp:modp_b64',
[email protected]b4a0b99952010-05-19 08:33:37532 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]ef4fa4072009-12-04 22:46:50533 ],
534 # TODO(gregoryd): direct_dependent_settings should be shared with the
535 # 64-bit target, but it doesn't work due to a bug in gyp
536 'direct_dependent_settings': {
537 'include_dirs': [
538 '..',
539 ],
540 },
[email protected]ef4fa4072009-12-04 22:46:50541 'conditions': [
[email protected]66700d42010-03-10 07:46:43542 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', {
[email protected]ef4fa4072009-12-04 22:46:50543 'conditions': [
[email protected]3e0a8b82010-07-02 01:12:18544 [ 'linux_use_tcmalloc==0', {
545 'defines': [
546 'NO_TCMALLOC',
547 ],
548 'direct_dependent_settings': {
549 'defines': [
550 'NO_TCMALLOC',
551 ],
552 },
553 },
554 ],
[email protected]ef8f5ba2010-04-02 14:54:22555 [ 'linux_use_tcmalloc==1', {
556 'dependencies': [
557 'allocator/allocator.gyp:allocator',
558 ],
559 },
560 ],
[email protected]ef4fa4072009-12-04 22:46:50561 ],
562 'dependencies': [
[email protected]97a28e722010-06-11 21:30:37563 'symbolize',
[email protected]ef4fa4072009-12-04 22:46:50564 '../build/util/build_util.gyp:lastchange',
565 '../build/linux/system.gyp:gtk',
566 '../build/linux/system.gyp:nss',
[email protected]2d48004e2010-02-03 02:11:40567 'xdg_mime',
[email protected]48c27f72010-01-26 06:26:26568 ],
[email protected]ef4fa4072009-12-04 22:46:50569 'export_dependent_settings': [
570 '../build/linux/system.gyp:gtk',
571 ],
572 },],
[email protected]1d53ce12010-06-11 05:41:00573 [ 'OS == "freebsd" or OS == "openbsd"', {
[email protected]97a28e722010-06-11 21:30:37574 'link_settings': {
575 'libraries': [
576 '-L/usr/local/lib -lexecinfo',
[email protected]1d53ce12010-06-11 05:41:00577 ],
578 },
579 },
580 ],
[email protected]72d31962010-06-11 22:45:37581 [ 'OS == "linux"', {
582 'link_settings': {
583 'libraries': [
584 # We need rt for clock_gettime().
585 '-lrt',
586 # For 'native_library_linux.cc'
587 '-ldl',
588 ],
589 },
590 }],
[email protected]1d53ce12010-06-11 05:41:00591 [ 'OS == "mac"', {
[email protected]97a28e722010-06-11 21:30:37592 'link_settings': {
593 'libraries': [
594 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
595 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
596 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
597 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
598 '$(SDKROOT)/System/Library/Frameworks/IOKit.framework',
599 '$(SDKROOT)/System/Library/Frameworks/Security.framework',
600 ],
601 },
[email protected]1d53ce12010-06-11 05:41:00602 },],
[email protected]3dd6f5e2010-06-01 20:28:03603 [ 'OS == "mac" or OS == "win"', {
[email protected]abd4aba2010-01-27 19:36:22604 'dependencies': [
605 '../third_party/nss/nss.gyp:nss',
606 ],
[email protected]3dd6f5e2010-06-01 20:28:03607 },],
608 [ 'OS != "win"', {
[email protected]ef4fa4072009-12-04 22:46:50609 'dependencies': ['../third_party/libevent/libevent.gyp:libevent'],
[email protected]abd4aba2010-01-27 19:36:22610 },],
[email protected]ef4fa4072009-12-04 22:46:50611 ],
[email protected]ef4fa4072009-12-04 22:46:50612 },
613 ],
614 'conditions': [
615 [ 'OS == "win"', {
616 'targets': [
617 {
618 'target_name': 'base_nacl_win64',
619 'type': '<(library)',
620 'msvs_guid': 'CEE1F794-DC70-4FED-B7C4-4C12986672FE',
621 'variables': {
622 'base_target': 1,
623 },
[email protected]ee857512010-05-14 08:24:42624 'dependencies': [
[email protected]b4a0b99952010-05-19 08:33:37625 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations_win64',
[email protected]ee857512010-05-14 08:24:42626 ],
[email protected]ef4fa4072009-12-04 22:46:50627 # TODO(gregoryd): direct_dependent_settings should be shared with the
628 # 32-bit target, but it doesn't work due to a bug in gyp
629 'direct_dependent_settings': {
630 'include_dirs': [
631 '..',
632 ],
633 },
634 'defines': [
635 '<@(nacl_win64_defines)',
636 ],
637 'sources': [
638 'i18n/icu_util_nacl_win64.cc',
639 ],
640 'configurations': {
[email protected]8782f7072009-12-22 22:57:37641 'Common_Base': {
[email protected]ef4fa4072009-12-04 22:46:50642 'msvs_target_platform': 'x64',
643 },
644 },
645 },
646 ],
647 }],
[email protected]0c2583a92010-06-16 00:53:01648 [ 'OS == "linux" and internal_pdf', {
[email protected]97a28e722010-06-11 21:30:37649 'targets': [
650 {
651 'target_name': 'base_fpic',
652 'type': '<(library)',
653 'variables': {
654 'base_target': 1,
655 'base_extra_target': 1,
656 },
657 'cflags': [
658 '-fPIC',
659 ],
[email protected]93c4eb0d42010-06-15 01:54:26660 # Official builds set -gstabs, which fails when building with -fPIC.
661 # It's useless on 64 bits anyways because breakpad doesn't work then.
662 'cflags!': [
663 '-gstabs',
664 ],
[email protected]97a28e722010-06-11 21:30:37665 'direct_dependent_settings': {
666 'include_dirs': [
667 '..',
668 ],
669 },
670 'conditions': [
671 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', {
672 'dependencies': [
673 '../build/util/build_util.gyp:lastchange',
674 '../build/linux/system.gyp:gtk',
675 '../build/linux/system.gyp:nss',
676 'xdg_mime',
677 ],
678 'export_dependent_settings': [
679 '../build/linux/system.gyp:gtk',
680 ],
681 },],
[email protected]72d31962010-06-11 22:45:37682 ['OS == "linux"', {
683 'link_settings': {
684 'libraries': [
685 # We need rt for clock_gettime().
686 '-lrt',
687 # For 'native_library_linux.cc'
688 '-ldl',
689 ],
690 },
691 }],
[email protected]97a28e722010-06-11 21:30:37692 [ 'OS == "mac" or OS == "win"', {
693 'dependencies': [
694 '../third_party/nss/nss.gyp:nss',
695 ],
696 },],
697 [ 'OS != "win"', {
698 'dependencies': ['../third_party/libevent/libevent.gyp:libevent'],
699 },],
700 ],
701 },
702 ],
703 }],
[email protected]93f21e42010-04-01 00:35:15704 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
[email protected]48c27f72010-01-26 06:26:26705 'targets': [
706 {
707 'target_name': 'symbolize',
708 'type': '<(library)',
[email protected]076cf932010-02-16 19:13:36709 'variables': {
710 'chromium_code': 0,
711 },
[email protected]93f21e42010-04-01 00:35:15712 'conditions': [
713 [ 'OS == "solaris"', {
714 'include_dirs': [
715 '/usr/gnu/include',
716 '/usr/gnu/include/libelf',
717 ],
718 },],
719 ],
[email protected]48c27f72010-01-26 06:26:26720 'cflags': [
721 '-Wno-sign-compare',
722 ],
[email protected]225c8f52010-02-05 22:23:20723 'cflags!': [
724 '-Wextra',
725 ],
[email protected]48c27f72010-01-26 06:26:26726 'sources': [
727 'third_party/symbolize/symbolize.cc',
728 'third_party/symbolize/demangle.cc',
729 ],
730 },
[email protected]2d48004e2010-02-03 02:11:40731 {
732 'target_name': 'xdg_mime',
733 'type': '<(library)',
[email protected]076cf932010-02-16 19:13:36734 'variables': {
735 'chromium_code': 0,
736 },
[email protected]225c8f52010-02-05 22:23:20737 'cflags!': [
738 '-Wextra',
739 ],
[email protected]2d48004e2010-02-03 02:11:40740 'sources': [
741 'third_party/xdg_mime/xdgmime.c',
742 'third_party/xdg_mime/xdgmime.h',
743 'third_party/xdg_mime/xdgmimealias.c',
744 'third_party/xdg_mime/xdgmimealias.h',
745 'third_party/xdg_mime/xdgmimecache.c',
746 'third_party/xdg_mime/xdgmimecache.h',
747 'third_party/xdg_mime/xdgmimeglob.c',
748 'third_party/xdg_mime/xdgmimeglob.h',
749 'third_party/xdg_mime/xdgmimeicon.c',
750 'third_party/xdg_mime/xdgmimeicon.h',
751 'third_party/xdg_mime/xdgmimeint.c',
752 'third_party/xdg_mime/xdgmimeint.h',
753 'third_party/xdg_mime/xdgmimemagic.c',
754 'third_party/xdg_mime/xdgmimemagic.h',
755 'third_party/xdg_mime/xdgmimeparent.c',
756 'third_party/xdg_mime/xdgmimeparent.h',
757 ],
758 },
[email protected]48c27f72010-01-26 06:26:26759 ],
760 }],
[email protected]ef4fa4072009-12-04 22:46:50761 ],
762}