blob: e3551728e5dba971dcccf206f75bdd597e32897d [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]b90c93ff2010-08-20 22:42:5084 'file_util_proxy.cc',
85 'file_util_proxy.h',
[email protected]ef4fa4072009-12-04 22:46:5086 'file_version_info.h',
[email protected]bcff05a2010-04-14 01:46:4387 'file_version_info_mac.h',
[email protected]ef4fa4072009-12-04 22:46:5088 'file_version_info_mac.mm',
[email protected]bcff05a2010-04-14 01:46:4389 'file_version_info_win.cc',
90 'file_version_info_win.h',
[email protected]ef4fa4072009-12-04 22:46:5091 'fix_wp64.h',
92 'float_util.h',
93 'foundation_utils_mac.h',
[email protected]ef4fa4072009-12-04 22:46:5094 'global_descriptors_posix.cc',
[email protected]9bc8cff2010-04-03 01:05:3995 'global_descriptors_posix.h',
[email protected]a918f872010-06-01 14:30:5196 'gtest_prod_util.h',
[email protected]0ea54822010-07-01 20:14:5097 'gtk_util.cc',
98 'gtk_util.h',
[email protected]ef4fa4072009-12-04 22:46:5099 'hash_tables.h',
100 'histogram.cc',
101 'histogram.h',
102 'iat_patch.cc',
103 'iat_patch.h',
104 'id_map.h',
[email protected]252cad62010-08-18 18:33:57105 'json/json_reader.cc',
106 'json/json_reader.h',
107 'json/json_writer.cc',
108 'json/json_writer.h',
109 'json/string_escape.cc',
110 'json/string_escape.h',
[email protected]ef4fa4072009-12-04 22:46:50111 'lazy_instance.cc',
112 'lazy_instance.h',
113 'leak_annotations.h',
114 'leak_tracker.h',
115 'linked_list.h',
116 'linked_ptr.h',
117 'lock.cc',
118 'lock.h',
119 'lock_impl.h',
120 'lock_impl_posix.cc',
121 'lock_impl_win.cc',
122 'logging.cc',
[email protected]ef4fa4072009-12-04 22:46:50123 'logging.h',
[email protected]9bc8cff2010-04-03 01:05:39124 'logging_win.cc',
[email protected]ef4fa4072009-12-04 22:46:50125 'mac_util.h',
126 'mac_util.mm',
[email protected]c0028792010-01-12 00:39:15127 'mach_ipc_mac.h',
128 'mach_ipc_mac.mm',
[email protected]ef4fa4072009-12-04 22:46:50129 'memory_debug.cc',
130 'memory_debug.h',
131 'message_loop.cc',
132 'message_loop.h',
[email protected]2cbac9e2010-04-29 03:31:34133 'message_loop_proxy.h',
[email protected]656475d2010-05-06 18:34:24134 'message_loop_proxy_impl.cc',
135 'message_loop_proxy_impl.h',
[email protected]ef4fa4072009-12-04 22:46:50136 'message_pump.h',
137 'message_pump_default.cc',
138 'message_pump_default.h',
139 'message_pump_win.cc',
140 'message_pump_win.h',
141 'mime_util.h',
[email protected]1c657852010-04-22 23:28:05142 'mime_util_xdg.cc',
[email protected]0fecda62010-03-19 21:59:01143 'move.h',
[email protected]ef4fa4072009-12-04 22:46:50144 'native_library.h',
145 'native_library_linux.cc',
146 'native_library_mac.mm',
147 'native_library_win.cc',
148 'non_thread_safe.cc',
149 'non_thread_safe.h',
150 'nullable_string16.h',
151 'object_watcher.cc',
152 'object_watcher.h',
153 'observer_list.h',
154 'observer_list_threadsafe.h',
155 'path_service.cc',
156 'path_service.h',
[email protected]4bc818e2010-02-04 22:47:37157 'pe_image.cc',
158 'pe_image.h',
[email protected]ef4fa4072009-12-04 22:46:50159 'pickle.cc',
160 'pickle.h',
161 'platform_file.h',
[email protected]ef4fa4072009-12-04 22:46:50162 'platform_file_posix.cc',
[email protected]9bc8cff2010-04-03 01:05:39163 'platform_file_win.cc',
[email protected]ef4fa4072009-12-04 22:46:50164 'platform_thread.h',
165 'platform_thread_mac.mm',
166 'platform_thread_posix.cc',
167 'platform_thread_win.cc',
168 'port.h',
[email protected]ef4fa4072009-12-04 22:46:50169 'process.h',
170 'process_linux.cc',
171 'process_posix.cc',
[email protected]b6128aa2010-04-29 17:44:42172 'process_util.cc',
[email protected]ef4fa4072009-12-04 22:46:50173 'process_util.h',
174 'process_util_linux.cc',
175 'process_util_mac.mm',
176 'process_util_posix.cc',
177 'process_util_win.cc',
178 'process_win.cc',
[email protected]9bc8cff2010-04-03 01:05:39179 'profiler.cc',
180 'profiler.h',
[email protected]ef4fa4072009-12-04 22:46:50181 'rand_util.cc',
182 'rand_util.h',
183 'rand_util_posix.cc',
184 'rand_util_win.cc',
185 'raw_scoped_refptr_mismatch_checker.h',
186 'ref_counted.cc',
187 'ref_counted.h',
[email protected]3071754432010-07-28 00:09:54188 'ref_counted_memory.cc',
[email protected]ef4fa4072009-12-04 22:46:50189 'ref_counted_memory.h',
190 'registry.cc',
191 'registry.h',
192 'resource_util.cc',
193 'resource_util.h',
194 'safe_strerror_posix.cc',
195 'safe_strerror_posix.h',
[email protected]824ff722010-08-13 15:24:53196 'scoped_aedesc.h',
[email protected]ef4fa4072009-12-04 22:46:50197 'scoped_bstr_win.cc',
198 'scoped_bstr_win.h',
[email protected]21ae1f92010-07-30 23:05:15199 'scoped_callback_factory.h',
[email protected]ef4fa4072009-12-04 22:46:50200 'scoped_cftyperef.h',
201 'scoped_comptr_win.h',
202 'scoped_handle.h',
[email protected]ef4fa4072009-12-04 22:46:50203 'scoped_handle_win.h',
204 'scoped_nsautorelease_pool.h',
205 'scoped_nsautorelease_pool.mm',
206 'scoped_nsdisable_screen_updates.h',
207 'scoped_nsobject.h',
[email protected]8ceb44c2010-02-24 22:27:04208 'scoped_open_process.h',
[email protected]ef4fa4072009-12-04 22:46:50209 'scoped_ptr.h',
210 'scoped_temp_dir.cc',
211 'scoped_temp_dir.h',
212 'scoped_variant_win.cc',
213 'scoped_variant_win.h',
214 'scoped_vector.h',
[email protected]ef4fa4072009-12-04 22:46:50215 'sha1.h',
[email protected]94d557e2010-06-23 21:41:40216 'sha1_portable.cc',
217 'sha1_win.cc',
[email protected]ef4fa4072009-12-04 22:46:50218 'shared_memory.h',
219 'shared_memory_posix.cc',
220 'shared_memory_win.cc',
221 'simple_thread.cc',
222 'simple_thread.h',
223 'singleton.h',
224 'spin_wait.h',
225 'stack_container.h',
226 'stats_counters.h',
227 'stats_table.cc',
228 'stats_table.h',
229 'stl_util-inl.h',
[email protected]528c56d2010-07-30 19:28:44230 'string_number_conversions.cc',
231 'string_number_conversions.h',
[email protected]ef4fa4072009-12-04 22:46:50232 'string_piece.cc',
233 'string_piece.h',
[email protected]0477554f2010-01-21 19:29:25234 'string_split.cc',
235 'string_split.h',
[email protected]ef4fa4072009-12-04 22:46:50236 'string_tokenizer.h',
237 'string_util.cc',
238 'string_util.h',
239 'string_util_win.h',
[email protected]e6811ed52010-08-17 03:45:37240 'stringprintf.cc',
241 'stringprintf.h',
[email protected]ef4fa4072009-12-04 22:46:50242 'sys_info.h',
243 'sys_info_chromeos.cc',
244 'sys_info_freebsd.cc',
245 'sys_info_linux.cc',
246 'sys_info_mac.cc',
247 'sys_info_openbsd.cc',
248 'sys_info_posix.cc',
249 'sys_info_win.cc',
250 'sys_string_conversions.h',
251 'sys_string_conversions_linux.cc',
252 'sys_string_conversions_mac.mm',
253 'sys_string_conversions_win.cc',
[email protected]3a3d47472010-07-15 21:03:54254 'task.cc',
[email protected]ef4fa4072009-12-04 22:46:50255 'task.h',
[email protected]951269b2010-06-15 19:39:24256 'template_util.h',
[email protected]ef4fa4072009-12-04 22:46:50257 'thread.cc',
258 'thread.h',
259 'thread_collision_warner.cc',
260 'thread_collision_warner.h',
261 'thread_local.h',
262 'thread_local_posix.cc',
263 'thread_local_storage.h',
264 'thread_local_storage_posix.cc',
265 'thread_local_storage_win.cc',
266 'thread_local_win.cc',
267 'time.cc',
268 'time.h',
269 'time_win.cc',
270 'timer.cc',
271 'timer.h',
[email protected]3e569552010-05-07 20:25:49272 'trace_event_win.cc',
[email protected]ef4fa4072009-12-04 22:46:50273 'trace_event.cc',
274 'trace_event.h',
275 'tracked.cc',
276 'tracked.h',
277 'tracked_objects.cc',
278 'tracked_objects.h',
279 'tuple.h',
[email protected]9bc8cff2010-04-03 01:05:39280 'unix_domain_socket_posix.cc',
[email protected]ef4fa4072009-12-04 22:46:50281 'utf_offset_string_conversions.cc',
282 'utf_offset_string_conversions.h',
283 'utf_string_conversion_utils.cc',
284 'utf_string_conversion_utils.h',
285 'utf_string_conversions.cc',
286 'utf_string_conversions.h',
[email protected]c604a552010-03-22 20:12:50287 'values.cc',
288 'values.h',
[email protected]ef4fa4072009-12-04 22:46:50289 'waitable_event.h',
290 'waitable_event_posix.cc',
291 'waitable_event_watcher.h',
292 'waitable_event_watcher_posix.cc',
293 'waitable_event_watcher_win.cc',
294 'waitable_event_win.cc',
295 'watchdog.cc',
296 'watchdog.h',
[email protected]3a3d47472010-07-15 21:03:54297 'weak_ptr.cc',
[email protected]ef4fa4072009-12-04 22:46:50298 'weak_ptr.h',
299 'win_util.cc',
300 'win_util.h',
301 'windows_message_list.h',
302 'wmi_util.cc',
303 'wmi_util.h',
304 'worker_pool.h',
305 'worker_pool_linux.cc',
306 'worker_pool_linux.h',
307 'worker_pool_mac.h',
308 'worker_pool_mac.mm',
309 'worker_pool_win.cc',
[email protected]1c657852010-04-22 23:28:05310 'xdg_util.h',
311 'xdg_util.cc',
[email protected]ef4fa4072009-12-04 22:46:50312 ],
313 'include_dirs': [
314 '..',
315 ],
316 # These warnings are needed for the files in third_party\dmg_fp.
317 'msvs_disabled_warnings': [
318 4244, 4554, 4018, 4102,
319 ],
320 'mac_framework_dirs': [
321 '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework/Frameworks',
322 ],
323 'conditions': [
[email protected]93f21e42010-04-01 00:35:15324 [ 'OS != "linux" and OS != "freebsd" and OS != "openbsd" and OS != "solaris"', {
[email protected]ef4fa4072009-12-04 22:46:50325 'sources/': [
[email protected]1c657852010-04-22 23:28:05326 ['exclude', '/xdg_[^/]*\\.cc$'],
[email protected]ef4fa4072009-12-04 22:46:50327 ],
328 'sources!': [
329 'atomicops_internals_x86_gcc.cc',
330 'base_paths_posix.cc',
[email protected]ef4fa4072009-12-04 22:46:50331 'message_pump_glib.cc',
[email protected]1c657852010-04-22 23:28:05332 'xdg_util.cc',
[email protected]ef4fa4072009-12-04 22:46:50333 ],
[email protected]bcff05a2010-04-14 01:46:43334 }],
[email protected]ef4fa4072009-12-04 22:46:50335 [ 'OS != "linux"', {
336 'sources!': [
337 # Not automatically excluded by the *linux.cc rules.
[email protected]0ea54822010-07-01 20:14:50338 'gtk_util.cc',
339 'gtk_util.h',
[email protected]1c657852010-04-22 23:28:05340 'linux_util.cc',
[email protected]ef4fa4072009-12-04 22:46:50341 'setproctitle_linux.c',
342 'setproctitle_linux.h',
343 ],
344 },
345 ],
[email protected]824ff722010-08-13 15:24:53346 [ 'OS != "mac"', {
347 'sources!': [
348 'scoped_aedesc.h'
349 ],
350 }],
[email protected]ef4fa4072009-12-04 22:46:50351 # For now, just test the *BSD platforms enough to exclude them.
352 # Subsequent changes will include them further.
353 [ 'OS != "freebsd"', {
354 'sources/': [ ['exclude', '_freebsd\\.cc$'] ],
355 },
356 ],
357 [ 'OS != "openbsd"', {
358 'sources/': [ ['exclude', '_openbsd\\.cc$'] ],
359 },
360 ],
[email protected]ef4fa4072009-12-04 22:46:50361 [ 'OS == "win"', {
362 'include_dirs': [
[email protected]cd134c8c2010-03-09 05:23:12363 '<(DEPTH)/third_party/wtl/include',
[email protected]ef4fa4072009-12-04 22:46:50364 ],
365 'sources!': [
[email protected]ef4fa4072009-12-04 22:46:50366 'event_recorder_stubs.cc',
367 'file_descriptor_shuffle.cc',
368 'message_pump_libevent.cc',
[email protected]5ac07d5b2010-06-25 21:53:41369 # Not using sha1_win.cc because it may have caused a
370 # regression to page cycler moz.
371 'sha1_win.cc',
[email protected]ef4fa4072009-12-04 22:46:50372 'string16.cc',
[email protected]3e569552010-05-07 20:25:49373 'trace_event.cc',
[email protected]ef4fa4072009-12-04 22:46:50374 ],
375 },],
376 ],
377 }],
[email protected]90f18912010-07-08 16:51:04378 ['base_extra_target==1', {
[email protected]97a28e722010-06-11 21:30:37379 'sources': [
[email protected]3bcd57902010-06-23 22:46:04380 'crypto/capi_util.cc',
381 'crypto/capi_util.h',
[email protected]97a28e722010-06-11 21:30:37382 'crypto/cssm_init.cc',
383 'crypto/cssm_init.h',
384 'crypto/encryptor.h',
385 'crypto/encryptor_mac.cc',
386 'crypto/encryptor_nss.cc',
387 'crypto/encryptor_win.cc',
388 'crypto/rsa_private_key.h',
389 'crypto/rsa_private_key.cc',
390 'crypto/rsa_private_key_mac.cc',
391 'crypto/rsa_private_key_nss.cc',
392 'crypto/rsa_private_key_win.cc',
393 'crypto/signature_creator.h',
394 'crypto/signature_creator_mac.cc',
395 'crypto/signature_creator_nss.cc',
396 'crypto/signature_creator_win.cc',
397 'crypto/signature_verifier.h',
398 'crypto/signature_verifier_mac.cc',
399 'crypto/signature_verifier_nss.cc',
400 'crypto/signature_verifier_win.cc',
401 'crypto/symmetric_key.h',
402 'crypto/symmetric_key_mac.cc',
403 'crypto/symmetric_key_nss.cc',
404 'crypto/symmetric_key_win.cc',
405 'third_party/nspr/prcpucfg.h',
406 'third_party/nspr/prcpucfg_win.h',
407 'third_party/nspr/prtypes.h',
408 'third_party/nss/blapi.h',
409 'third_party/nss/blapit.h',
410 'third_party/nss/sha256.h',
411 'third_party/nss/sha512.cc',
412 'third_party/purify/pure.h',
413 'third_party/purify/pure_api.c',
414 'third_party/xdg_user_dirs/xdg_user_dir_lookup.cc',
415 'third_party/xdg_user_dirs/xdg_user_dir_lookup.h',
416 'auto_reset.h',
417 'base64.cc',
418 'base64.h',
419 'base_drag_source.cc',
420 'base_drag_source.h',
421 'base_drop_target.cc',
422 'base_drop_target.h',
423 'data_pack.cc',
424 'event_recorder.cc',
425 'event_recorder.h',
426 'event_recorder_stubs.cc',
427 'field_trial.cc',
428 'field_trial.h',
429 'file_descriptor_shuffle.cc',
430 'file_descriptor_shuffle.h',
431 'hmac.h',
432 'hmac_mac.cc',
433 'hmac_nss.cc',
434 'hmac_win.cc',
435 'image_util.cc',
436 'image_util.h',
[email protected]d6833852010-08-20 18:00:45437 'keyboard_code_conversion.cc',
438 'keyboard_code_conversion.h',
[email protected]97a28e722010-06-11 21:30:37439 'keyboard_code_conversion_gtk.cc',
440 'keyboard_code_conversion_gtk.h',
[email protected]853300a82010-07-27 21:17:57441 'keyboard_code_conversion_mac.mm',
442 'keyboard_code_conversion_mac.h',
[email protected]97a28e722010-06-11 21:30:37443 'keyboard_codes.h',
444 'keyboard_codes_win.h',
445 'keyboard_codes_posix.h',
446 'linux_util.cc',
447 'linux_util.h',
448 'md5.cc',
449 'md5.h',
450 'message_pump_glib.cc',
451 'message_pump_glib.h',
452 'message_pump_libevent.cc',
453 'message_pump_libevent.h',
454 'message_pump_mac.h',
455 'message_pump_mac.mm',
456 'nsimage_cache_mac.h',
457 'nsimage_cache_mac.mm',
458 'nss_util.cc',
459 'nss_util.h',
460 'setproctitle_linux.c',
461 'setproctitle_linux.h',
462 'sha2.cc',
463 'sha2.h',
464 'string16.cc',
465 'string16.h',
466 'sync_socket.h',
467 'sync_socket_win.cc',
468 'sync_socket_posix.cc',
469 'time_mac.cc',
470 'time_posix.cc',
471 'version.cc',
472 'version.h',
473 ],
474 'conditions': [
[email protected]e001408d2010-07-09 03:07:58475 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
[email protected]97a28e722010-06-11 21:30:37476 'conditions': [
477 [ 'chromeos==1', {
478 'sources/': [ ['include', '_chromeos\\.cc$'] ]
479 },
480 ],
[email protected]97a28e722010-06-11 21:30:37481 ],
482 'defines': [
483 'USE_SYMBOLIZE',
484 ],
485 'cflags': [
486 '-Wno-write-strings',
487 ],
[email protected]e001408d2010-07-09 03:07:58488 }, { # OS != "linux" and OS != "freebsd" and OS != "openbsd" and OS != "solaris"
[email protected]90f18912010-07-08 16:51:04489 'sources/': [
490 ['exclude', '/xdg_user_dirs/'],
491 ['exclude', '_nss\.cc$'],
492 ],
493 }],
494 [ 'OS != "mac"', {
495 'sources!': [
496 'crypto/cssm_init.cc',
497 'crypto/cssm_init.h',
498 ],
499 },],
[email protected]97a28e722010-06-11 21:30:37500 [ 'OS != "win"', {
501 'sources!': [
502 'third_party/purify/pure_api.c',
503 'base_drag_source.cc',
504 'base_drop_target.cc',
505 'cpu.cc',
[email protected]3bcd57902010-06-23 22:46:04506 'crypto/capi_util.h',
507 'crypto/capi_util.cc',
[email protected]97a28e722010-06-11 21:30:37508 'debug_on_start.cc',
509 'event_recorder.cc',
510 'file_version_info.cc',
511 'iat_patch.cc',
512 'image_util.cc',
513 'object_watcher.cc',
514 'pe_image.cc',
515 'registry.cc',
516 'resource_util.cc',
517 'win_util.cc',
518 'wmi_util.cc',
519 ],
520 },],
521 ],
522 }],
[email protected]ef4fa4072009-12-04 22:46:50523 ],
524 },
525 'targets': [
526 {
527 'target_name': 'base',
528 'type': '<(library)',
529 'msvs_guid': '1832A374-8A74-4F9E-B536-69A699B3E165',
530 'variables': {
531 'base_target': 1,
[email protected]97a28e722010-06-11 21:30:37532 'base_extra_target': 1,
[email protected]ef4fa4072009-12-04 22:46:50533 },
534 'dependencies': [
535 '../third_party/modp_b64/modp_b64.gyp:modp_b64',
[email protected]b4a0b99952010-05-19 08:33:37536 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]ef4fa4072009-12-04 22:46:50537 ],
538 # TODO(gregoryd): direct_dependent_settings should be shared with the
539 # 64-bit target, but it doesn't work due to a bug in gyp
540 'direct_dependent_settings': {
541 'include_dirs': [
542 '..',
543 ],
544 },
[email protected]ef4fa4072009-12-04 22:46:50545 'conditions': [
[email protected]66700d42010-03-10 07:46:43546 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', {
[email protected]ef4fa4072009-12-04 22:46:50547 'conditions': [
[email protected]3e0a8b82010-07-02 01:12:18548 [ 'linux_use_tcmalloc==0', {
549 'defines': [
550 'NO_TCMALLOC',
551 ],
552 'direct_dependent_settings': {
553 'defines': [
554 'NO_TCMALLOC',
555 ],
556 },
557 },
558 ],
[email protected]ef8f5ba2010-04-02 14:54:22559 [ 'linux_use_tcmalloc==1', {
560 'dependencies': [
561 'allocator/allocator.gyp:allocator',
562 ],
563 },
564 ],
[email protected]ef4fa4072009-12-04 22:46:50565 ],
566 'dependencies': [
[email protected]97a28e722010-06-11 21:30:37567 'symbolize',
[email protected]ef4fa4072009-12-04 22:46:50568 '../build/util/build_util.gyp:lastchange',
569 '../build/linux/system.gyp:gtk',
570 '../build/linux/system.gyp:nss',
[email protected]2d48004e2010-02-03 02:11:40571 'xdg_mime',
[email protected]48c27f72010-01-26 06:26:26572 ],
[email protected]ef4fa4072009-12-04 22:46:50573 'export_dependent_settings': [
574 '../build/linux/system.gyp:gtk',
575 ],
576 },],
[email protected]1d53ce12010-06-11 05:41:00577 [ 'OS == "freebsd" or OS == "openbsd"', {
[email protected]97a28e722010-06-11 21:30:37578 'link_settings': {
579 'libraries': [
580 '-L/usr/local/lib -lexecinfo',
[email protected]1d53ce12010-06-11 05:41:00581 ],
582 },
583 },
584 ],
[email protected]72d31962010-06-11 22:45:37585 [ 'OS == "linux"', {
586 'link_settings': {
587 'libraries': [
588 # We need rt for clock_gettime().
589 '-lrt',
590 # For 'native_library_linux.cc'
591 '-ldl',
592 ],
593 },
594 }],
[email protected]1d53ce12010-06-11 05:41:00595 [ 'OS == "mac"', {
[email protected]97a28e722010-06-11 21:30:37596 'link_settings': {
597 'libraries': [
598 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
599 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
600 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
601 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
602 '$(SDKROOT)/System/Library/Frameworks/IOKit.framework',
603 '$(SDKROOT)/System/Library/Frameworks/Security.framework',
604 ],
605 },
[email protected]1d53ce12010-06-11 05:41:00606 },],
[email protected]3dd6f5e2010-06-01 20:28:03607 [ 'OS == "mac" or OS == "win"', {
[email protected]abd4aba2010-01-27 19:36:22608 'dependencies': [
609 '../third_party/nss/nss.gyp:nss',
610 ],
[email protected]3dd6f5e2010-06-01 20:28:03611 },],
612 [ 'OS != "win"', {
[email protected]ef4fa4072009-12-04 22:46:50613 'dependencies': ['../third_party/libevent/libevent.gyp:libevent'],
[email protected]abd4aba2010-01-27 19:36:22614 },],
[email protected]ef4fa4072009-12-04 22:46:50615 ],
[email protected]ef4fa4072009-12-04 22:46:50616 },
617 ],
618 'conditions': [
619 [ 'OS == "win"', {
620 'targets': [
621 {
622 'target_name': 'base_nacl_win64',
623 'type': '<(library)',
624 'msvs_guid': 'CEE1F794-DC70-4FED-B7C4-4C12986672FE',
625 'variables': {
626 'base_target': 1,
627 },
[email protected]ee857512010-05-14 08:24:42628 'dependencies': [
[email protected]b4a0b99952010-05-19 08:33:37629 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations_win64',
[email protected]ee857512010-05-14 08:24:42630 ],
[email protected]ef4fa4072009-12-04 22:46:50631 # TODO(gregoryd): direct_dependent_settings should be shared with the
632 # 32-bit target, but it doesn't work due to a bug in gyp
633 'direct_dependent_settings': {
634 'include_dirs': [
635 '..',
636 ],
637 },
638 'defines': [
639 '<@(nacl_win64_defines)',
640 ],
641 'sources': [
642 'i18n/icu_util_nacl_win64.cc',
643 ],
644 'configurations': {
[email protected]8782f7072009-12-22 22:57:37645 'Common_Base': {
[email protected]ef4fa4072009-12-04 22:46:50646 'msvs_target_platform': 'x64',
647 },
648 },
649 },
650 ],
651 }],
[email protected]0c2583a92010-06-16 00:53:01652 [ 'OS == "linux" and internal_pdf', {
[email protected]97a28e722010-06-11 21:30:37653 'targets': [
654 {
655 'target_name': 'base_fpic',
656 'type': '<(library)',
657 'variables': {
658 'base_target': 1,
659 'base_extra_target': 1,
660 },
661 'cflags': [
662 '-fPIC',
663 ],
[email protected]93c4eb0d42010-06-15 01:54:26664 # Official builds set -gstabs, which fails when building with -fPIC.
665 # It's useless on 64 bits anyways because breakpad doesn't work then.
666 'cflags!': [
667 '-gstabs',
668 ],
[email protected]97a28e722010-06-11 21:30:37669 'direct_dependent_settings': {
670 'include_dirs': [
671 '..',
672 ],
673 },
674 'conditions': [
675 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', {
676 'dependencies': [
677 '../build/util/build_util.gyp:lastchange',
678 '../build/linux/system.gyp:gtk',
679 '../build/linux/system.gyp:nss',
680 'xdg_mime',
681 ],
682 'export_dependent_settings': [
683 '../build/linux/system.gyp:gtk',
684 ],
685 },],
[email protected]72d31962010-06-11 22:45:37686 ['OS == "linux"', {
687 'link_settings': {
688 'libraries': [
689 # We need rt for clock_gettime().
690 '-lrt',
691 # For 'native_library_linux.cc'
692 '-ldl',
693 ],
694 },
695 }],
[email protected]97a28e722010-06-11 21:30:37696 [ 'OS == "mac" or OS == "win"', {
697 'dependencies': [
698 '../third_party/nss/nss.gyp:nss',
699 ],
700 },],
701 [ 'OS != "win"', {
702 'dependencies': ['../third_party/libevent/libevent.gyp:libevent'],
703 },],
704 ],
705 },
706 ],
707 }],
[email protected]93f21e42010-04-01 00:35:15708 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
[email protected]48c27f72010-01-26 06:26:26709 'targets': [
710 {
711 'target_name': 'symbolize',
712 'type': '<(library)',
[email protected]076cf932010-02-16 19:13:36713 'variables': {
714 'chromium_code': 0,
715 },
[email protected]93f21e42010-04-01 00:35:15716 'conditions': [
717 [ 'OS == "solaris"', {
718 'include_dirs': [
719 '/usr/gnu/include',
720 '/usr/gnu/include/libelf',
721 ],
722 },],
723 ],
[email protected]48c27f72010-01-26 06:26:26724 'cflags': [
725 '-Wno-sign-compare',
726 ],
[email protected]225c8f52010-02-05 22:23:20727 'cflags!': [
728 '-Wextra',
729 ],
[email protected]48c27f72010-01-26 06:26:26730 'sources': [
731 'third_party/symbolize/symbolize.cc',
732 'third_party/symbolize/demangle.cc',
733 ],
734 },
[email protected]2d48004e2010-02-03 02:11:40735 {
736 'target_name': 'xdg_mime',
737 'type': '<(library)',
[email protected]076cf932010-02-16 19:13:36738 'variables': {
739 'chromium_code': 0,
740 },
[email protected]225c8f52010-02-05 22:23:20741 'cflags!': [
742 '-Wextra',
743 ],
[email protected]2d48004e2010-02-03 02:11:40744 'sources': [
745 'third_party/xdg_mime/xdgmime.c',
746 'third_party/xdg_mime/xdgmime.h',
747 'third_party/xdg_mime/xdgmimealias.c',
748 'third_party/xdg_mime/xdgmimealias.h',
749 'third_party/xdg_mime/xdgmimecache.c',
750 'third_party/xdg_mime/xdgmimecache.h',
751 'third_party/xdg_mime/xdgmimeglob.c',
752 'third_party/xdg_mime/xdgmimeglob.h',
753 'third_party/xdg_mime/xdgmimeicon.c',
754 'third_party/xdg_mime/xdgmimeicon.h',
755 'third_party/xdg_mime/xdgmimeint.c',
756 'third_party/xdg_mime/xdgmimeint.h',
757 'third_party/xdg_mime/xdgmimemagic.c',
758 'third_party/xdg_mime/xdgmimemagic.h',
759 'third_party/xdg_mime/xdgmimeparent.c',
760 'third_party/xdg_mime/xdgmimeparent.h',
761 ],
762 },
[email protected]48c27f72010-01-26 06:26:26763 ],
764 }],
[email protected]ef4fa4072009-12-04 22:46:50765 ],
766}