blob: 09dcdff1ddf89a947c34f40486df6aa738052909 [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',
[email protected]824ff722010-08-13 15:24:53187 'scoped_aedesc.h',
[email protected]ef4fa4072009-12-04 22:46:50188 'scoped_bstr_win.cc',
189 'scoped_bstr_win.h',
[email protected]21ae1f92010-07-30 23:05:15190 'scoped_callback_factory.h',
[email protected]ef4fa4072009-12-04 22:46:50191 'scoped_cftyperef.h',
192 'scoped_comptr_win.h',
193 'scoped_handle.h',
[email protected]ef4fa4072009-12-04 22:46:50194 'scoped_handle_win.h',
195 'scoped_nsautorelease_pool.h',
196 'scoped_nsautorelease_pool.mm',
197 'scoped_nsdisable_screen_updates.h',
198 'scoped_nsobject.h',
[email protected]8ceb44c2010-02-24 22:27:04199 'scoped_open_process.h',
[email protected]ef4fa4072009-12-04 22:46:50200 'scoped_ptr.h',
201 'scoped_temp_dir.cc',
202 'scoped_temp_dir.h',
203 'scoped_variant_win.cc',
204 'scoped_variant_win.h',
205 'scoped_vector.h',
[email protected]ef4fa4072009-12-04 22:46:50206 'sha1.h',
[email protected]94d557e2010-06-23 21:41:40207 'sha1_portable.cc',
208 'sha1_win.cc',
[email protected]ef4fa4072009-12-04 22:46:50209 'shared_memory.h',
210 'shared_memory_posix.cc',
211 'shared_memory_win.cc',
212 'simple_thread.cc',
213 'simple_thread.h',
214 'singleton.h',
215 'spin_wait.h',
216 'stack_container.h',
217 'stats_counters.h',
218 'stats_table.cc',
219 'stats_table.h',
220 'stl_util-inl.h',
[email protected]528c56d2010-07-30 19:28:44221 'string_number_conversions.cc',
222 'string_number_conversions.h',
[email protected]ef4fa4072009-12-04 22:46:50223 'string_piece.cc',
224 'string_piece.h',
[email protected]0477554f2010-01-21 19:29:25225 'string_split.cc',
226 'string_split.h',
[email protected]ef4fa4072009-12-04 22:46:50227 'string_tokenizer.h',
228 'string_util.cc',
229 'string_util.h',
230 'string_util_win.h',
[email protected]e6811ed52010-08-17 03:45:37231 'stringprintf.cc',
232 'stringprintf.h',
[email protected]ef4fa4072009-12-04 22:46:50233 'sys_info.h',
234 'sys_info_chromeos.cc',
235 'sys_info_freebsd.cc',
236 'sys_info_linux.cc',
237 'sys_info_mac.cc',
238 'sys_info_openbsd.cc',
239 'sys_info_posix.cc',
240 'sys_info_win.cc',
241 'sys_string_conversions.h',
242 'sys_string_conversions_linux.cc',
243 'sys_string_conversions_mac.mm',
244 'sys_string_conversions_win.cc',
[email protected]3a3d47472010-07-15 21:03:54245 'task.cc',
[email protected]ef4fa4072009-12-04 22:46:50246 'task.h',
[email protected]951269b2010-06-15 19:39:24247 'template_util.h',
[email protected]ef4fa4072009-12-04 22:46:50248 'thread.cc',
249 'thread.h',
250 'thread_collision_warner.cc',
251 'thread_collision_warner.h',
252 'thread_local.h',
253 'thread_local_posix.cc',
254 'thread_local_storage.h',
255 'thread_local_storage_posix.cc',
256 'thread_local_storage_win.cc',
257 'thread_local_win.cc',
258 'time.cc',
259 'time.h',
260 'time_win.cc',
261 'timer.cc',
262 'timer.h',
[email protected]3e569552010-05-07 20:25:49263 'trace_event_win.cc',
[email protected]ef4fa4072009-12-04 22:46:50264 'trace_event.cc',
265 'trace_event.h',
266 'tracked.cc',
267 'tracked.h',
268 'tracked_objects.cc',
269 'tracked_objects.h',
270 'tuple.h',
[email protected]9bc8cff2010-04-03 01:05:39271 'unix_domain_socket_posix.cc',
[email protected]ef4fa4072009-12-04 22:46:50272 'utf_offset_string_conversions.cc',
273 'utf_offset_string_conversions.h',
274 'utf_string_conversion_utils.cc',
275 'utf_string_conversion_utils.h',
276 'utf_string_conversions.cc',
277 'utf_string_conversions.h',
[email protected]c604a552010-03-22 20:12:50278 'values.cc',
279 'values.h',
[email protected]ef4fa4072009-12-04 22:46:50280 'waitable_event.h',
281 'waitable_event_posix.cc',
282 'waitable_event_watcher.h',
283 'waitable_event_watcher_posix.cc',
284 'waitable_event_watcher_win.cc',
285 'waitable_event_win.cc',
286 'watchdog.cc',
287 'watchdog.h',
[email protected]3a3d47472010-07-15 21:03:54288 'weak_ptr.cc',
[email protected]ef4fa4072009-12-04 22:46:50289 'weak_ptr.h',
290 'win_util.cc',
291 'win_util.h',
292 'windows_message_list.h',
293 'wmi_util.cc',
294 'wmi_util.h',
295 'worker_pool.h',
296 'worker_pool_linux.cc',
297 'worker_pool_linux.h',
298 'worker_pool_mac.h',
299 'worker_pool_mac.mm',
300 'worker_pool_win.cc',
[email protected]1c657852010-04-22 23:28:05301 'xdg_util.h',
302 'xdg_util.cc',
[email protected]ef4fa4072009-12-04 22:46:50303 ],
304 'include_dirs': [
305 '..',
306 ],
307 # These warnings are needed for the files in third_party\dmg_fp.
308 'msvs_disabled_warnings': [
309 4244, 4554, 4018, 4102,
310 ],
311 'mac_framework_dirs': [
312 '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework/Frameworks',
313 ],
314 'conditions': [
[email protected]93f21e42010-04-01 00:35:15315 [ 'OS != "linux" and OS != "freebsd" and OS != "openbsd" and OS != "solaris"', {
[email protected]ef4fa4072009-12-04 22:46:50316 'sources/': [
[email protected]1c657852010-04-22 23:28:05317 ['exclude', '/xdg_[^/]*\\.cc$'],
[email protected]ef4fa4072009-12-04 22:46:50318 ],
319 'sources!': [
320 'atomicops_internals_x86_gcc.cc',
321 'base_paths_posix.cc',
[email protected]ef4fa4072009-12-04 22:46:50322 'message_pump_glib.cc',
[email protected]1c657852010-04-22 23:28:05323 'xdg_util.cc',
[email protected]ef4fa4072009-12-04 22:46:50324 ],
[email protected]bcff05a2010-04-14 01:46:43325 }],
[email protected]ef4fa4072009-12-04 22:46:50326 [ 'OS != "linux"', {
327 'sources!': [
328 # Not automatically excluded by the *linux.cc rules.
[email protected]0ea54822010-07-01 20:14:50329 'gtk_util.cc',
330 'gtk_util.h',
[email protected]1c657852010-04-22 23:28:05331 'linux_util.cc',
[email protected]ef4fa4072009-12-04 22:46:50332 'setproctitle_linux.c',
333 'setproctitle_linux.h',
334 ],
335 },
336 ],
[email protected]824ff722010-08-13 15:24:53337 [ 'OS != "mac"', {
338 'sources!': [
339 'scoped_aedesc.h'
340 ],
341 }],
[email protected]ef4fa4072009-12-04 22:46:50342 # For now, just test the *BSD platforms enough to exclude them.
343 # Subsequent changes will include them further.
344 [ 'OS != "freebsd"', {
345 'sources/': [ ['exclude', '_freebsd\\.cc$'] ],
346 },
347 ],
348 [ 'OS != "openbsd"', {
349 'sources/': [ ['exclude', '_openbsd\\.cc$'] ],
350 },
351 ],
[email protected]ef4fa4072009-12-04 22:46:50352 [ 'OS == "win"', {
353 'include_dirs': [
[email protected]cd134c8c2010-03-09 05:23:12354 '<(DEPTH)/third_party/wtl/include',
[email protected]ef4fa4072009-12-04 22:46:50355 ],
356 'sources!': [
[email protected]ef4fa4072009-12-04 22:46:50357 'event_recorder_stubs.cc',
358 'file_descriptor_shuffle.cc',
359 'message_pump_libevent.cc',
[email protected]5ac07d5b2010-06-25 21:53:41360 # Not using sha1_win.cc because it may have caused a
361 # regression to page cycler moz.
362 'sha1_win.cc',
[email protected]ef4fa4072009-12-04 22:46:50363 'string16.cc',
[email protected]3e569552010-05-07 20:25:49364 'trace_event.cc',
[email protected]ef4fa4072009-12-04 22:46:50365 ],
366 },],
367 ],
368 }],
[email protected]90f18912010-07-08 16:51:04369 ['base_extra_target==1', {
[email protected]97a28e722010-06-11 21:30:37370 'sources': [
[email protected]3bcd57902010-06-23 22:46:04371 'crypto/capi_util.cc',
372 'crypto/capi_util.h',
[email protected]97a28e722010-06-11 21:30:37373 'crypto/cssm_init.cc',
374 'crypto/cssm_init.h',
375 'crypto/encryptor.h',
376 'crypto/encryptor_mac.cc',
377 'crypto/encryptor_nss.cc',
378 'crypto/encryptor_win.cc',
379 'crypto/rsa_private_key.h',
380 'crypto/rsa_private_key.cc',
381 'crypto/rsa_private_key_mac.cc',
382 'crypto/rsa_private_key_nss.cc',
383 'crypto/rsa_private_key_win.cc',
384 'crypto/signature_creator.h',
385 'crypto/signature_creator_mac.cc',
386 'crypto/signature_creator_nss.cc',
387 'crypto/signature_creator_win.cc',
388 'crypto/signature_verifier.h',
389 'crypto/signature_verifier_mac.cc',
390 'crypto/signature_verifier_nss.cc',
391 'crypto/signature_verifier_win.cc',
392 'crypto/symmetric_key.h',
393 'crypto/symmetric_key_mac.cc',
394 'crypto/symmetric_key_nss.cc',
395 'crypto/symmetric_key_win.cc',
396 'third_party/nspr/prcpucfg.h',
397 'third_party/nspr/prcpucfg_win.h',
398 'third_party/nspr/prtypes.h',
399 'third_party/nss/blapi.h',
400 'third_party/nss/blapit.h',
401 'third_party/nss/sha256.h',
402 'third_party/nss/sha512.cc',
403 'third_party/purify/pure.h',
404 'third_party/purify/pure_api.c',
405 'third_party/xdg_user_dirs/xdg_user_dir_lookup.cc',
406 'third_party/xdg_user_dirs/xdg_user_dir_lookup.h',
407 'auto_reset.h',
408 'base64.cc',
409 'base64.h',
410 'base_drag_source.cc',
411 'base_drag_source.h',
412 'base_drop_target.cc',
413 'base_drop_target.h',
414 'data_pack.cc',
415 'event_recorder.cc',
416 'event_recorder.h',
417 'event_recorder_stubs.cc',
418 'field_trial.cc',
419 'field_trial.h',
420 'file_descriptor_shuffle.cc',
421 'file_descriptor_shuffle.h',
422 'hmac.h',
423 'hmac_mac.cc',
424 'hmac_nss.cc',
425 'hmac_win.cc',
426 'image_util.cc',
427 'image_util.h',
428 'json/json_reader.cc',
429 'json/json_reader.h',
430 'json/json_writer.cc',
431 'json/json_writer.h',
432 'json/string_escape.cc',
433 'json/string_escape.h',
434 'keyboard_code_conversion_gtk.cc',
435 'keyboard_code_conversion_gtk.h',
[email protected]853300a82010-07-27 21:17:57436 'keyboard_code_conversion_mac.mm',
437 'keyboard_code_conversion_mac.h',
[email protected]97a28e722010-06-11 21:30:37438 'keyboard_codes.h',
439 'keyboard_codes_win.h',
440 'keyboard_codes_posix.h',
441 'linux_util.cc',
442 'linux_util.h',
443 'md5.cc',
444 'md5.h',
445 'message_pump_glib.cc',
446 'message_pump_glib.h',
447 'message_pump_libevent.cc',
448 'message_pump_libevent.h',
449 'message_pump_mac.h',
450 'message_pump_mac.mm',
451 'nsimage_cache_mac.h',
452 'nsimage_cache_mac.mm',
453 'nss_util.cc',
454 'nss_util.h',
455 'setproctitle_linux.c',
456 'setproctitle_linux.h',
457 'sha2.cc',
458 'sha2.h',
459 'string16.cc',
460 'string16.h',
461 'sync_socket.h',
462 'sync_socket_win.cc',
463 'sync_socket_posix.cc',
464 'time_mac.cc',
465 'time_posix.cc',
466 'version.cc',
467 'version.h',
468 ],
469 'conditions': [
[email protected]e001408d2010-07-09 03:07:58470 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
[email protected]97a28e722010-06-11 21:30:37471 'conditions': [
472 [ 'chromeos==1', {
473 'sources/': [ ['include', '_chromeos\\.cc$'] ]
474 },
475 ],
[email protected]97a28e722010-06-11 21:30:37476 ],
477 'defines': [
478 'USE_SYMBOLIZE',
479 ],
480 'cflags': [
481 '-Wno-write-strings',
482 ],
[email protected]e001408d2010-07-09 03:07:58483 }, { # OS != "linux" and OS != "freebsd" and OS != "openbsd" and OS != "solaris"
[email protected]90f18912010-07-08 16:51:04484 'sources/': [
485 ['exclude', '/xdg_user_dirs/'],
486 ['exclude', '_nss\.cc$'],
487 ],
488 }],
489 [ 'OS != "mac"', {
490 'sources!': [
491 'crypto/cssm_init.cc',
492 'crypto/cssm_init.h',
493 ],
494 },],
[email protected]97a28e722010-06-11 21:30:37495 [ 'OS != "win"', {
496 'sources!': [
497 'third_party/purify/pure_api.c',
498 'base_drag_source.cc',
499 'base_drop_target.cc',
500 'cpu.cc',
[email protected]3bcd57902010-06-23 22:46:04501 'crypto/capi_util.h',
502 'crypto/capi_util.cc',
[email protected]97a28e722010-06-11 21:30:37503 'debug_on_start.cc',
504 'event_recorder.cc',
505 'file_version_info.cc',
506 'iat_patch.cc',
507 'image_util.cc',
508 'object_watcher.cc',
509 'pe_image.cc',
510 'registry.cc',
511 'resource_util.cc',
512 'win_util.cc',
513 'wmi_util.cc',
514 ],
515 },],
516 ],
517 }],
[email protected]ef4fa4072009-12-04 22:46:50518 ],
519 },
520 'targets': [
521 {
522 'target_name': 'base',
523 'type': '<(library)',
524 'msvs_guid': '1832A374-8A74-4F9E-B536-69A699B3E165',
525 'variables': {
526 'base_target': 1,
[email protected]97a28e722010-06-11 21:30:37527 'base_extra_target': 1,
[email protected]ef4fa4072009-12-04 22:46:50528 },
529 'dependencies': [
530 '../third_party/modp_b64/modp_b64.gyp:modp_b64',
[email protected]b4a0b99952010-05-19 08:33:37531 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]ef4fa4072009-12-04 22:46:50532 ],
533 # TODO(gregoryd): direct_dependent_settings should be shared with the
534 # 64-bit target, but it doesn't work due to a bug in gyp
535 'direct_dependent_settings': {
536 'include_dirs': [
537 '..',
538 ],
539 },
[email protected]ef4fa4072009-12-04 22:46:50540 'conditions': [
[email protected]66700d42010-03-10 07:46:43541 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', {
[email protected]ef4fa4072009-12-04 22:46:50542 'conditions': [
[email protected]3e0a8b82010-07-02 01:12:18543 [ 'linux_use_tcmalloc==0', {
544 'defines': [
545 'NO_TCMALLOC',
546 ],
547 'direct_dependent_settings': {
548 'defines': [
549 'NO_TCMALLOC',
550 ],
551 },
552 },
553 ],
[email protected]ef8f5ba2010-04-02 14:54:22554 [ 'linux_use_tcmalloc==1', {
555 'dependencies': [
556 'allocator/allocator.gyp:allocator',
557 ],
558 },
559 ],
[email protected]ef4fa4072009-12-04 22:46:50560 ],
561 'dependencies': [
[email protected]97a28e722010-06-11 21:30:37562 'symbolize',
[email protected]ef4fa4072009-12-04 22:46:50563 '../build/util/build_util.gyp:lastchange',
564 '../build/linux/system.gyp:gtk',
565 '../build/linux/system.gyp:nss',
[email protected]2d48004e2010-02-03 02:11:40566 'xdg_mime',
[email protected]48c27f72010-01-26 06:26:26567 ],
[email protected]ef4fa4072009-12-04 22:46:50568 'export_dependent_settings': [
569 '../build/linux/system.gyp:gtk',
570 ],
571 },],
[email protected]1d53ce12010-06-11 05:41:00572 [ 'OS == "freebsd" or OS == "openbsd"', {
[email protected]97a28e722010-06-11 21:30:37573 'link_settings': {
574 'libraries': [
575 '-L/usr/local/lib -lexecinfo',
[email protected]1d53ce12010-06-11 05:41:00576 ],
577 },
578 },
579 ],
[email protected]72d31962010-06-11 22:45:37580 [ 'OS == "linux"', {
581 'link_settings': {
582 'libraries': [
583 # We need rt for clock_gettime().
584 '-lrt',
585 # For 'native_library_linux.cc'
586 '-ldl',
587 ],
588 },
589 }],
[email protected]1d53ce12010-06-11 05:41:00590 [ 'OS == "mac"', {
[email protected]97a28e722010-06-11 21:30:37591 'link_settings': {
592 'libraries': [
593 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
594 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
595 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
596 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
597 '$(SDKROOT)/System/Library/Frameworks/IOKit.framework',
598 '$(SDKROOT)/System/Library/Frameworks/Security.framework',
599 ],
600 },
[email protected]1d53ce12010-06-11 05:41:00601 },],
[email protected]3dd6f5e2010-06-01 20:28:03602 [ 'OS == "mac" or OS == "win"', {
[email protected]abd4aba2010-01-27 19:36:22603 'dependencies': [
604 '../third_party/nss/nss.gyp:nss',
605 ],
[email protected]3dd6f5e2010-06-01 20:28:03606 },],
607 [ 'OS != "win"', {
[email protected]ef4fa4072009-12-04 22:46:50608 'dependencies': ['../third_party/libevent/libevent.gyp:libevent'],
[email protected]abd4aba2010-01-27 19:36:22609 },],
[email protected]ef4fa4072009-12-04 22:46:50610 ],
[email protected]ef4fa4072009-12-04 22:46:50611 },
612 ],
613 'conditions': [
614 [ 'OS == "win"', {
615 'targets': [
616 {
617 'target_name': 'base_nacl_win64',
618 'type': '<(library)',
619 'msvs_guid': 'CEE1F794-DC70-4FED-B7C4-4C12986672FE',
620 'variables': {
621 'base_target': 1,
622 },
[email protected]ee857512010-05-14 08:24:42623 'dependencies': [
[email protected]b4a0b99952010-05-19 08:33:37624 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations_win64',
[email protected]ee857512010-05-14 08:24:42625 ],
[email protected]ef4fa4072009-12-04 22:46:50626 # TODO(gregoryd): direct_dependent_settings should be shared with the
627 # 32-bit target, but it doesn't work due to a bug in gyp
628 'direct_dependent_settings': {
629 'include_dirs': [
630 '..',
631 ],
632 },
633 'defines': [
634 '<@(nacl_win64_defines)',
635 ],
636 'sources': [
637 'i18n/icu_util_nacl_win64.cc',
638 ],
639 'configurations': {
[email protected]8782f7072009-12-22 22:57:37640 'Common_Base': {
[email protected]ef4fa4072009-12-04 22:46:50641 'msvs_target_platform': 'x64',
642 },
643 },
644 },
645 ],
646 }],
[email protected]0c2583a92010-06-16 00:53:01647 [ 'OS == "linux" and internal_pdf', {
[email protected]97a28e722010-06-11 21:30:37648 'targets': [
649 {
650 'target_name': 'base_fpic',
651 'type': '<(library)',
652 'variables': {
653 'base_target': 1,
654 'base_extra_target': 1,
655 },
656 'cflags': [
657 '-fPIC',
658 ],
[email protected]93c4eb0d42010-06-15 01:54:26659 # Official builds set -gstabs, which fails when building with -fPIC.
660 # It's useless on 64 bits anyways because breakpad doesn't work then.
661 'cflags!': [
662 '-gstabs',
663 ],
[email protected]97a28e722010-06-11 21:30:37664 'direct_dependent_settings': {
665 'include_dirs': [
666 '..',
667 ],
668 },
669 'conditions': [
670 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', {
671 'dependencies': [
672 '../build/util/build_util.gyp:lastchange',
673 '../build/linux/system.gyp:gtk',
674 '../build/linux/system.gyp:nss',
675 'xdg_mime',
676 ],
677 'export_dependent_settings': [
678 '../build/linux/system.gyp:gtk',
679 ],
680 },],
[email protected]72d31962010-06-11 22:45:37681 ['OS == "linux"', {
682 'link_settings': {
683 'libraries': [
684 # We need rt for clock_gettime().
685 '-lrt',
686 # For 'native_library_linux.cc'
687 '-ldl',
688 ],
689 },
690 }],
[email protected]97a28e722010-06-11 21:30:37691 [ 'OS == "mac" or OS == "win"', {
692 'dependencies': [
693 '../third_party/nss/nss.gyp:nss',
694 ],
695 },],
696 [ 'OS != "win"', {
697 'dependencies': ['../third_party/libevent/libevent.gyp:libevent'],
698 },],
699 ],
700 },
701 ],
702 }],
[email protected]93f21e42010-04-01 00:35:15703 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
[email protected]48c27f72010-01-26 06:26:26704 'targets': [
705 {
706 'target_name': 'symbolize',
707 'type': '<(library)',
[email protected]076cf932010-02-16 19:13:36708 'variables': {
709 'chromium_code': 0,
710 },
[email protected]93f21e42010-04-01 00:35:15711 'conditions': [
712 [ 'OS == "solaris"', {
713 'include_dirs': [
714 '/usr/gnu/include',
715 '/usr/gnu/include/libelf',
716 ],
717 },],
718 ],
[email protected]48c27f72010-01-26 06:26:26719 'cflags': [
720 '-Wno-sign-compare',
721 ],
[email protected]225c8f52010-02-05 22:23:20722 'cflags!': [
723 '-Wextra',
724 ],
[email protected]48c27f72010-01-26 06:26:26725 'sources': [
726 'third_party/symbolize/symbolize.cc',
727 'third_party/symbolize/demangle.cc',
728 ],
729 },
[email protected]2d48004e2010-02-03 02:11:40730 {
731 'target_name': 'xdg_mime',
732 'type': '<(library)',
[email protected]076cf932010-02-16 19:13:36733 'variables': {
734 'chromium_code': 0,
735 },
[email protected]225c8f52010-02-05 22:23:20736 'cflags!': [
737 '-Wextra',
738 ],
[email protected]2d48004e2010-02-03 02:11:40739 'sources': [
740 'third_party/xdg_mime/xdgmime.c',
741 'third_party/xdg_mime/xdgmime.h',
742 'third_party/xdg_mime/xdgmimealias.c',
743 'third_party/xdg_mime/xdgmimealias.h',
744 'third_party/xdg_mime/xdgmimecache.c',
745 'third_party/xdg_mime/xdgmimecache.h',
746 'third_party/xdg_mime/xdgmimeglob.c',
747 'third_party/xdg_mime/xdgmimeglob.h',
748 'third_party/xdg_mime/xdgmimeicon.c',
749 'third_party/xdg_mime/xdgmimeicon.h',
750 'third_party/xdg_mime/xdgmimeint.c',
751 'third_party/xdg_mime/xdgmimeint.h',
752 'third_party/xdg_mime/xdgmimemagic.c',
753 'third_party/xdg_mime/xdgmimemagic.h',
754 'third_party/xdg_mime/xdgmimeparent.c',
755 'third_party/xdg_mime/xdgmimeparent.h',
756 ],
757 },
[email protected]48c27f72010-01-26 06:26:26758 ],
759 }],
[email protected]ef4fa4072009-12-04 22:46:50760 ],
761}