1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
10 '../build/win_precompile.gypi',
15 'target_name': 'base',
16 'type': '<(component)',
17 'toolsets': ['host', 'target'],
20 'enable_wexit_time_destructors': 1,
25 'allocator/allocator.gyp:allocator_extension_thunks',
26 '../testing/gtest.gyp:gtest_prod',
27 '../third_party/modp_b64/modp_b64.gyp:modp_b64',
28 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
30 # TODO(gregoryd): direct_dependent_settings should be shared with the
31 # 64-bit target, but it doesn't work due to a bug in gyp
32 'direct_dependent_settings': {
41 'sources/': [ ['include', '_chromeos\\.cc$'] ]
43 ['linux_use_tcmalloc==0', {
47 'direct_dependent_settings': {
53 ['toolkit_uses_gtk==1', {
55 '../build/linux/system.gyp:gtk',
57 'export_dependent_settings': [
58 '../build/linux/system.gyp:gtk',
64 '../build/linux/system.gyp:glib',
65 '../build/linux/system.gyp:x11',
74 'export_dependent_settings': [
75 '../build/linux/system.gyp:glib',
76 '../build/linux/system.gyp:x11',
80 ['exclude', '/xdg_user_dirs/'],
81 ['exclude', '_nss\\.cc$'],
84 ['OS == "android" and _toolset == "host"', {
85 # Base for host support is the minimum required to run the
86 # ssl false start blacklist tool. It requires further changes
87 # to generically support host builds (and tests).
88 # Note: when building for host, gyp has OS == "android",
89 # hence the *_android.cc files are included but the actual code
90 # doesn't have OS_ANDROID / ANDROID defined.
92 # Host build on linux depends on system.gyp::gtk as
93 # default linux build has TOOLKIT_GTK defined.
94 ['host_os == "linux"', {
96 ['include', '^atomicops_internals_x86_gcc\\.cc$'],
99 '../build/linux/system.gyp:gtk',
101 'export_dependent_settings': [
102 '../build/linux/system.gyp:gtk',
105 ['host_os == "mac"', {
107 ['exclude', '^native_library_linux\\.cc$'],
108 ['exclude', '^process_util_linux\\.cc$'],
109 ['exclude', '^sys_info_linux\\.cc$'],
110 ['exclude', '^sys_string_conversions_linux\\.cc$'],
111 ['exclude', '^worker_pool_linux\\.cc$'],
116 ['OS == "android" and _toolset == "target"', {
118 ['target_arch == "ia32"', {
120 ['include', '^atomicops_internals_x86_gcc\\.cc$'],
127 '../third_party/ashmem/ashmem.gyp:ashmem',
128 '../third_party/icu/icu.gyp:icuuc',
131 '<(SHARED_INTERMEDIATE_DIR)/base',
142 'debug/stack_trace_posix.cc',
145 '../build/android/cpufeatures.gypi',
148 ['OS == "android" and _toolset == "target" and android_build_type == 0', {
155 '/usr/local/include',
159 '-L/usr/local/lib -lexecinfo',
166 # We need rt for clock_gettime().
168 # For 'native_library_linux.cc'
176 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
177 '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework',
178 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
179 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
180 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
181 '$(SDKROOT)/System/Library/Frameworks/IOKit.framework',
182 '$(SDKROOT)/System/Library/Frameworks/Security.framework',
186 '../third_party/mach_override/mach_override.gyp:mach_override',
192 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
193 '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework',
194 '$(SDKROOT)/System/Library/Frameworks/CoreText.framework',
195 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
196 '$(SDKROOT)/System/Library/Frameworks/UIKit.framework',
200 ['OS != "win" and OS != "ios"', {
201 'dependencies': ['../third_party/libevent/libevent.gyp:libevent'],
203 ['component=="shared_library"', {
207 'debug/debug_on_start_win.cc',
212 ['use_system_nspr==1', {
214 'third_party/nspr/nspr.gyp:nspr',
219 'third_party/nspr/prcpucfg.h',
220 'third_party/nspr/prcpucfg_win.h',
221 'third_party/nspr/prtypes.h',
222 'third_party/xdg_user_dirs/xdg_user_dir_lookup.cc',
223 'third_party/xdg_user_dirs/xdg_user_dir_lookup.h',
226 'event_recorder_stubs.cc',
227 'event_recorder_win.cc',
232 'message_pump_android.cc',
233 'message_pump_android.h',
234 'message_pump_glib.cc',
235 'message_pump_glib.h',
236 'message_pump_gtk.cc',
237 'message_pump_gtk.h',
238 'message_pump_io_ios.cc',
239 'message_pump_io_ios.h',
240 'message_pump_observer.h',
241 'message_pump_aurax11.cc',
242 'message_pump_aurax11.h',
243 'message_pump_libevent.cc',
244 'message_pump_libevent.h',
245 'message_pump_mac.h',
246 'message_pump_mac.mm',
247 'metrics/field_trial.cc',
248 'metrics/field_trial.h',
249 'posix/file_descriptor_shuffle.cc',
250 'posix/file_descriptor_shuffle.h',
252 'sync_socket_win.cc',
253 'sync_socket_posix.cc',
257 'target_name': 'base_i18n',
258 'type': '<(component)',
260 'enable_wexit_time_destructors': 1,
265 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
266 '../third_party/icu/icu.gyp:icui18n',
267 '../third_party/icu/icu.gyp:icuuc',
270 ['toolkit_uses_gtk==1', {
272 # i18n/rtl.cc uses gtk
273 '../build/linux/system.gyp:gtk',
277 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
278 'msvs_disabled_warnings': [
283 'export_dependent_settings': [
287 'BASE_I18N_IMPLEMENTATION',
290 'i18n/base_i18n_export.h',
291 'i18n/bidi_line_iterator.cc',
292 'i18n/bidi_line_iterator.h',
293 'i18n/break_iterator.cc',
294 'i18n/break_iterator.h',
295 'i18n/char_iterator.cc',
296 'i18n/char_iterator.h',
297 'i18n/case_conversion.cc',
298 'i18n/case_conversion.h',
299 'i18n/file_util_icu.cc',
300 'i18n/file_util_icu.h',
301 'i18n/icu_encoding_detection.cc',
302 'i18n/icu_encoding_detection.h',
303 'i18n/icu_string_conversions.cc',
304 'i18n/icu_string_conversions.h',
307 'i18n/number_formatting.cc',
308 'i18n/number_formatting.h',
311 'i18n/string_search.cc',
312 'i18n/string_search.h',
313 'i18n/time_formatting.cc',
314 'i18n/time_formatting.h',
318 'target_name': 'base_prefs',
319 'type': '<(component)',
321 'enable_wexit_time_destructors': 1,
327 'export_dependent_settings': [
331 'BASE_PREFS_IMPLEMENTATION',
334 'prefs/base_prefs_export.h',
335 'prefs/default_pref_store.cc',
336 'prefs/default_pref_store.h',
337 'prefs/json_pref_store.cc',
338 'prefs/json_pref_store.h',
339 'prefs/overlay_user_pref_store.cc',
340 'prefs/overlay_user_pref_store.h',
341 'prefs/persistent_pref_store.h',
342 'prefs/pref_notifier.h',
343 'prefs/pref_notifier_impl.cc',
344 'prefs/pref_notifier_impl.h',
345 'prefs/pref_observer.h',
346 'prefs/pref_registry.cc',
347 'prefs/pref_registry.h',
348 'prefs/pref_registry_simple.cc',
349 'prefs/pref_registry_simple.h',
350 'prefs/pref_service.cc',
351 'prefs/pref_service.h',
352 'prefs/pref_service_builder.cc',
353 'prefs/pref_service_builder.h',
354 'prefs/pref_store.cc',
355 'prefs/pref_store.h',
356 'prefs/pref_value_map.cc',
357 'prefs/pref_value_map.h',
358 'prefs/pref_value_store.cc',
359 'prefs/pref_value_store.h',
360 'prefs/public/pref_change_registrar.cc',
361 'prefs/public/pref_change_registrar.h',
362 'prefs/public/pref_member.cc',
363 'prefs/public/pref_member.h',
364 'prefs/value_map_pref_store.cc',
365 'prefs/value_map_pref_store.h',
369 'target_name': 'base_prefs_test_support',
370 'type': 'static_library',
374 '../testing/gmock.gyp:gmock',
377 'prefs/mock_pref_change_callback.cc',
378 'prefs/pref_store_observer_mock.cc',
379 'prefs/pref_store_observer_mock.h',
380 'prefs/testing_pref_service.cc',
381 'prefs/testing_pref_service.h',
382 'prefs/testing_pref_store.cc',
383 'prefs/testing_pref_store.h',
387 # This is the subset of files from base that should not be used with a
388 # dynamic library. Note that this library cannot depend on base because
389 # base depends on base_static.
390 'target_name': 'base_static',
391 'type': 'static_library',
393 'enable_wexit_time_destructors': 1,
396 'toolsets': ['host', 'target'],
407 # Include this target for a main() function that simply instantiates
408 # and runs a base::TestSuite.
410 'target_name': 'run_all_unittests',
411 'type': 'static_library',
416 'test/run_all_unittests.cc',
420 'target_name': 'base_unittests',
421 'type': '<(gtest_target_type)',
424 'android/jni_android_unittest.cc',
425 'android/jni_array_unittest.cc',
426 'android/jni_string_unittest.cc',
427 'android/path_utils_unittest.cc',
428 'android/scoped_java_ref_unittest.cc',
429 'at_exit_unittest.cc',
430 'atomicops_unittest.cc',
431 'base64_unittest.cc',
432 'bind_helpers_unittest.cc',
436 'build_time_unittest.cc',
437 'callback_unittest.cc',
438 'callback_unittest.nc',
439 'cancelable_callback_unittest.cc',
440 'command_line_unittest.cc',
441 'containers/linked_list_unittest.cc',
442 'containers/mru_cache_unittest.cc',
443 'containers/small_map_unittest.cc',
444 'containers/stack_container_unittest.cc',
446 'debug/crash_logging_unittest.cc',
447 'debug/leak_tracker_unittest.cc',
448 'debug/stack_trace_unittest.cc',
449 'debug/trace_event_unittest.cc',
450 'debug/trace_event_unittest.h',
451 'debug/trace_event_win_unittest.cc',
452 'environment_unittest.cc',
453 'file_util_unittest.cc',
454 'file_version_info_unittest.cc',
455 'files/dir_reader_posix_unittest.cc',
456 'files/file_path_unittest.cc',
457 'files/file_util_proxy_unittest.cc',
458 'files/important_file_writer_unittest.cc',
459 'files/scoped_temp_dir_unittest.cc',
462 'hi_res_timer_manager_unittest.cc',
463 'id_map_unittest.cc',
464 'i18n/break_iterator_unittest.cc',
465 'i18n/char_iterator_unittest.cc',
466 'i18n/case_conversion_unittest.cc',
467 'i18n/file_util_icu_unittest.cc',
468 'i18n/icu_string_conversions_unittest.cc',
469 'i18n/number_formatting_unittest.cc',
470 'i18n/rtl_unittest.cc',
471 'i18n/string_search_unittest.cc',
472 'i18n/time_formatting_unittest.cc',
473 'ios/device_util_unittest.mm',
474 'json/json_parser_unittest.cc',
475 'json/json_reader_unittest.cc',
476 'json/json_value_converter_unittest.cc',
477 'json/json_value_serializer_unittest.cc',
478 'json/json_writer_unittest.cc',
479 'json/string_escape_unittest.cc',
480 'lazy_instance_unittest.cc',
481 'logging_unittest.cc',
482 'mac/bind_objc_block_unittest.mm',
483 'mac/foundation_util_unittest.mm',
484 'mac/libdispatch_task_runner_unittest.cc',
485 'mac/mac_util_unittest.mm',
486 'mac/objc_property_releaser_unittest.mm',
487 'mac/scoped_sending_event_unittest.mm',
489 'memory/aligned_memory_unittest.cc',
490 'memory/discardable_memory_unittest.cc',
491 'memory/linked_ptr_unittest.cc',
492 'memory/ref_counted_memory_unittest.cc',
493 'memory/ref_counted_unittest.cc',
494 'memory/scoped_nsobject_unittest.mm',
495 'memory/scoped_ptr_unittest.cc',
496 'memory/scoped_ptr_unittest.nc',
497 'memory/scoped_vector_unittest.cc',
498 'memory/singleton_unittest.cc',
499 'memory/weak_ptr_unittest.cc',
500 'memory/weak_ptr_unittest.nc',
501 'message_loop_proxy_impl_unittest.cc',
502 'message_loop_proxy_unittest.cc',
503 'message_loop_unittest.cc',
504 'message_pump_glib_unittest.cc',
505 'message_pump_io_ios_unittest.cc',
506 'message_pump_libevent_unittest.cc',
507 'metrics/sample_map_unittest.cc',
508 'metrics/sample_vector_unittest.cc',
509 'metrics/bucket_ranges_unittest.cc',
510 'metrics/field_trial_unittest.cc',
511 'metrics/histogram_base_unittest.cc',
512 'metrics/histogram_unittest.cc',
513 'metrics/sparse_histogram_unittest.cc',
514 'metrics/stats_table_unittest.cc',
515 'metrics/statistics_recorder_unittest.cc',
516 'observer_list_unittest.cc',
517 'os_compat_android_unittest.cc',
518 'path_service_unittest.cc',
519 'pickle_unittest.cc',
520 'platform_file_unittest.cc',
521 'posix/file_descriptor_shuffle_unittest.cc',
522 'posix/unix_domain_socket_linux_unittest.cc',
523 'pr_time_unittest.cc',
524 'prefs/json_pref_store_unittest.cc',
525 'prefs/mock_pref_change_callback.h',
526 'prefs/overlay_user_pref_store_unittest.cc',
527 'prefs/pref_notifier_impl_unittest.cc',
528 'prefs/pref_service_unittest.cc',
529 'prefs/pref_value_map_unittest.cc',
530 'prefs/pref_value_store_unittest.cc',
531 'prefs/public/pref_change_registrar_unittest.cc',
532 'prefs/public/pref_member_unittest.cc',
533 'process_util_unittest.cc',
534 'process_util_unittest_ios.cc',
535 'process_util_unittest_mac.h',
536 'process_util_unittest_mac.mm',
537 'profiler/tracked_time_unittest.cc',
538 'rand_util_unittest.cc',
539 'safe_numerics_unittest.cc',
540 'safe_numerics_unittest.nc',
541 'scoped_native_library_unittest.cc',
543 'security_unittest.cc',
544 'sequence_checker_unittest.cc',
545 'sequence_checker_impl_unittest.cc',
547 'shared_memory_unittest.cc',
548 'stl_util_unittest.cc',
549 'string16_unittest.cc',
550 'string_piece_unittest.cc',
551 'string_util_unittest.cc',
552 'stringprintf_unittest.cc',
553 'strings/string_number_conversions_unittest.cc',
554 'strings/string_split_unittest.cc',
555 'strings/string_tokenizer_unittest.cc',
556 'strings/stringize_macros_unittest.cc',
557 'strings/sys_string_conversions_mac_unittest.mm',
558 'strings/sys_string_conversions_unittest.cc',
559 'strings/utf_offset_string_conversions_unittest.cc',
560 'synchronization/cancellation_flag_unittest.cc',
561 'synchronization/condition_variable_unittest.cc',
562 'synchronization/lock_unittest.cc',
563 'synchronization/waitable_event_unittest.cc',
564 'synchronization/waitable_event_watcher_unittest.cc',
565 'sys_info_unittest.cc',
566 'system_monitor/system_monitor_unittest.cc',
567 'task_runner_util_unittest.cc',
568 'template_util_unittest.cc',
569 'test/expectations/expectation_unittest.cc',
570 'test/expectations/parser_unittest.cc',
571 'test/sequenced_worker_pool_owner.cc',
572 'test/sequenced_worker_pool_owner.h',
573 'test/trace_event_analyzer_unittest.cc',
574 'threading/non_thread_safe_unittest.cc',
575 'threading/platform_thread_unittest.cc',
576 'threading/sequenced_worker_pool_unittest.cc',
577 'threading/simple_thread_unittest.cc',
578 'threading/thread_checker_unittest.cc',
579 'threading/thread_collision_warner_unittest.cc',
580 'threading/thread_id_name_manager_unittest.cc',
581 'threading/thread_local_storage_unittest.cc',
582 'threading/thread_local_unittest.cc',
583 'threading/thread_unittest.cc',
584 'threading/watchdog_unittest.cc',
585 'threading/worker_pool_posix_unittest.cc',
586 'threading/worker_pool_unittest.cc',
588 'time_win_unittest.cc',
590 'tools_sanity_unittest.cc',
591 'tracked_objects_unittest.cc',
593 'utf_string_conversions_unittest.cc',
594 'values_unittest.cc',
595 'version_unittest.cc',
598 'win/enum_variant_unittest.cc',
599 'win/event_trace_consumer_unittest.cc',
600 'win/event_trace_controller_unittest.cc',
601 'win/event_trace_provider_unittest.cc',
602 'win/i18n_unittest.cc',
603 'win/iunknown_impl_unittest.cc',
604 'win/object_watcher_unittest.cc',
605 'win/pe_image_unittest.cc',
606 'win/registry_unittest.cc',
607 'win/sampling_profiler_unittest.cc',
608 'win/scoped_bstr_unittest.cc',
609 'win/scoped_comptr_unittest.cc',
610 'win/scoped_handle_unittest.cc',
611 'win/scoped_process_information_unittest.cc',
612 'win/shortcut_unittest.cc',
613 'win/startup_information_unittest.cc',
614 'win/scoped_variant_unittest.cc',
615 'win/win_util_unittest.cc',
616 'win/wrapped_window_proc_unittest.cc',
622 'base_prefs_test_support',
626 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
627 '../testing/gmock.gyp:gmock',
628 '../testing/gtest.gyp:gtest',
629 '../third_party/icu/icu.gyp:icui18n',
630 '../third_party/icu/icu.gyp:icuuc',
632 'includes': ['../build/nocompile.gypi'],
634 # TODO(ajwong): Is there a way to autodetect this?
638 ['OS == "android"', {
640 'android/jni_generator/jni_generator.gyp:jni_generator_tests',
643 ['gtest_target_type == "shared_library"', {
645 '../testing/android/native_test.gyp:native_test_native_code',
650 # Broken on Android, and already disabled there.
651 'debug/stack_trace_unittest.cc',
656 # Only test the iOS-meaningful portion of process_utils.
657 ['exclude', '^process_util_unittest'],
658 ['include', '^process_util_unittest_ios\\.cc$'],
659 # Requires spawning processes.
660 ['exclude', '^metrics/stats_table_unittest\\.cc$'],
661 # iOS does not use message_pump_libevent.
662 ['exclude', '^message_pump_libevent_unittest\\.cc$'],
663 ['exclude', '^prefs/json_pref_store_unittest.\\cc$'],
669 # These sources can't be built with coverage due to a toolchain
670 # bug: http://openradar.appspot.com/radar?id=1499403
671 'json/json_reader_unittest.cc',
672 'string_piece_unittest.cc',
674 # These tests crash when run with coverage turned on due to an
675 # issue with llvm_gcda_increment_indirect_counter:
676 # http://crbug.com/156058
677 'debug/trace_event_unittest.cc',
678 'debug/trace_event_unittest.h',
679 'logging_unittest.cc',
680 'string_util_unittest.cc',
681 'test/trace_event_analyzer_unittest.cc',
682 'utf_offset_string_conversions_unittest.cc',
688 'action_name': 'copy_test_data',
691 'data/json/bom_feff.json',
692 'data/file_util_unittest',
694 'test_data_prefix': 'base',
696 'includes': [ '../build/copy_test_data_ios.gypi' ],
702 'file_version_info_unittest.cc',
705 [ 'linux_use_tcmalloc==1', {
707 'allocator/allocator.gyp:allocator',
711 [ 'toolkit_uses_gtk==1', {
713 'nix/xdg_util_unittest.cc',
716 '../build/linux/system.gyp:gtk',
721 '../build/linux/system.gyp:glib',
722 '../build/linux/system.gyp:ssl',
723 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
727 'message_pump_glib_unittest.cc',
730 # This is needed to trigger the dll copy step on windows.
731 # TODO(mark): This should not be necessary.
734 '../third_party/icu/icu.gyp:icudata',
737 'file_descriptor_shuffle_unittest.cc',
738 'files/dir_reader_posix_unittest.cc',
739 'threading/worker_pool_posix_unittest.cc',
740 'message_pump_libevent_unittest.cc',
742 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
743 'msvs_disabled_warnings': [
748 '../third_party/libevent/libevent.gyp:libevent'
751 ['exclude', '^win/'],
754 'debug/trace_event_win_unittest.cc',
755 'time_win_unittest.cc',
756 'win/win_util_unittest.cc',
759 ['use_system_nspr==1', {
761 'third_party/nspr/nspr.gyp:nspr',
765 'target_conditions': [
768 # Pull in specific Mac files for iOS (which have been filtered out
769 # by file name rules).
770 ['include', '^mac/objc_property_releaser_unittest\\.mm$'],
771 ['include', '^mac/bind_objc_block_unittest\\.mm$'],
772 ['include', '^sys_string_conversions_mac_unittest\\.mm$'],
775 ], # target_conditions
778 'target_name': 'test_support_base',
779 'type': 'static_library',
784 '../testing/gmock.gyp:gmock',
785 '../testing/gtest.gyp:gtest',
787 'export_dependent_settings': [
791 ['toolkit_uses_gtk==1', {
793 # test_suite initializes GTK.
794 '../build/linux/system.gyp:gtk',
799 'test/scoped_locale.cc',
800 'test/scoped_locale.h',
805 'test/test_file_util_linux.cc',
811 'test/expectations/expectation.cc',
812 'test/expectations/expectation.h',
813 'test/expectations/parser.cc',
814 'test/expectations/parser.h',
817 'test/main_hook_ios.mm',
818 'test/mock_chrome_application_mac.h',
819 'test/mock_chrome_application_mac.mm',
820 'test/mock_devices_changed_observer.cc',
821 'test/mock_devices_changed_observer.h',
822 'test/mock_time_provider.cc',
823 'test/mock_time_provider.h',
824 'test/multiprocess_test.cc',
825 'test/multiprocess_test.h',
826 'test/multiprocess_test_android.cc',
827 'test/null_task_runner.cc',
828 'test/null_task_runner.h',
829 'test/perf_test_suite.cc',
830 'test/perf_test_suite.h',
831 'test/scoped_locale.cc',
832 'test/scoped_locale.h',
833 'test/scoped_path_override.cc',
834 'test/scoped_path_override.h',
835 'test/sequenced_task_runner_test_template.cc',
836 'test/sequenced_task_runner_test_template.h',
837 'test/simple_test_clock.cc',
838 'test/simple_test_clock.h',
839 'test/simple_test_tick_clock.cc',
840 'test/simple_test_tick_clock.h',
841 'test/task_runner_test_template.cc',
842 'test/task_runner_test_template.h',
843 'test/test_file_util.h',
844 'test/test_file_util_linux.cc',
845 'test/test_file_util_mac.cc',
846 'test/test_file_util_posix.cc',
847 'test/test_file_util_win.cc',
848 'test/test_listener_ios.h',
849 'test/test_listener_ios.mm',
850 'test/test_pending_task.cc',
851 'test/test_pending_task.h',
852 'test/test_process_killer_win.cc',
853 'test/test_process_killer_win.h',
854 'test/test_reg_util_win.cc',
855 'test/test_reg_util_win.h',
856 'test/test_shortcut_win.cc',
857 'test/test_shortcut_win.h',
858 'test/test_simple_task_runner.cc',
859 'test/test_simple_task_runner.h',
860 'test/test_suite.cc',
862 'test/test_support_android.cc',
863 'test/test_support_android.h',
864 'test/test_support_ios.h',
865 'test/test_support_ios.mm',
866 'test/test_switches.cc',
867 'test/test_switches.h',
868 'test/test_timeouts.cc',
869 'test/test_timeouts.h',
870 'test/thread_test_helper.cc',
871 'test/thread_test_helper.h',
872 'test/trace_event_analyzer.cc',
873 'test/trace_event_analyzer.h',
874 'test/values_test_util.cc',
875 'test/values_test_util.h',
877 'target_conditions': [
880 # Pull in specific Mac files for iOS (which have been filtered out
881 # by file name rules).
882 ['include', '^test/test_file_util_mac\\.cc$'],
885 ], # target_conditions
888 'target_name': 'test_support_perf',
889 'type': 'static_library',
892 '../testing/gtest.gyp:gtest',
896 'test/run_all_perftests.cc',
898 'direct_dependent_settings': {
904 ['toolkit_uses_gtk==1', {
906 # Needed to handle the #include chain:
907 # base/test/perf_test_suite.h
908 # base/test/test_suite.h
910 '../build/linux/system.gyp:gtk',
920 'target_name': 'check_example',
921 'type': 'executable',
931 ['OS == "win" and target_arch=="ia32"', {
934 'target_name': 'base_nacl_win64',
935 'type': '<(component)',
941 'allocator/allocator.gyp:allocator_extension_thunks_win64',
942 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations_win64',
944 # TODO(gregoryd): direct_dependent_settings should be shared with the
945 # 32-bit target, but it doesn't work due to a bug in gyp
946 'direct_dependent_settings': {
952 '<@(nacl_win64_defines)',
955 # base64.cc depends on modp_b64.
960 'msvs_target_platform': 'x64',
964 ['component == "shared_library"', {
966 'debug/debug_on_start_win.cc',
972 'target_name': 'base_i18n_nacl_win64',
973 'type': '<(component)',
974 # TODO(gregoryd): direct_dependent_settings should be shared with the
975 # 32-bit target, but it doesn't work due to a bug in gyp
976 'direct_dependent_settings': {
982 '<@(nacl_win64_defines)',
983 'BASE_I18N_IMPLEMENTATION',
989 'i18n/icu_util_nacl_win64.cc',
993 'msvs_target_platform': 'x64',
998 # TODO(rvargas): Remove this when gyp finally supports a clean model.
1000 'target_name': 'base_static_win64',
1001 'type': 'static_library',
1009 # base64.cc depends on modp_b64.
1017 'msvs_target_platform': 'x64',
1023 # TODO(rvargas): Bug 78117. Remove this.
1024 'msvs_disabled_warnings': [
1030 ['os_posix==1 and OS!="mac" and OS!="ios"', {
1033 'target_name': 'symbolize',
1034 'type': 'static_library',
1035 'toolsets': ['host', 'target'],
1040 ['OS == "solaris"', {
1043 '/usr/gnu/include/libelf',
1048 '-Wno-sign-compare',
1054 'third_party/symbolize/config.h',
1055 'third_party/symbolize/demangle.cc',
1056 'third_party/symbolize/demangle.h',
1057 'third_party/symbolize/glog/logging.h',
1058 'third_party/symbolize/glog/raw_logging.h',
1059 'third_party/symbolize/symbolize.cc',
1060 'third_party/symbolize/symbolize.h',
1061 'third_party/symbolize/utilities.h',
1068 'target_name': 'xdg_mime',
1069 'type': 'static_library',
1070 'toolsets': ['host', 'target'],
1078 'third_party/xdg_mime/xdgmime.c',
1079 'third_party/xdg_mime/xdgmime.h',
1080 'third_party/xdg_mime/xdgmimealias.c',
1081 'third_party/xdg_mime/xdgmimealias.h',
1082 'third_party/xdg_mime/xdgmimecache.c',
1083 'third_party/xdg_mime/xdgmimecache.h',
1084 'third_party/xdg_mime/xdgmimeglob.c',
1085 'third_party/xdg_mime/xdgmimeglob.h',
1086 'third_party/xdg_mime/xdgmimeicon.c',
1087 'third_party/xdg_mime/xdgmimeicon.h',
1088 'third_party/xdg_mime/xdgmimeint.c',
1089 'third_party/xdg_mime/xdgmimeint.h',
1090 'third_party/xdg_mime/xdgmimemagic.c',
1091 'third_party/xdg_mime/xdgmimemagic.h',
1092 'third_party/xdg_mime/xdgmimeparent.c',
1093 'third_party/xdg_mime/xdgmimeparent.h',
1098 ['OS == "android"', {
1101 'target_name': 'base_jni_headers',
1104 'android/java/src/org/chromium/base/BuildInfo.java',
1105 'android/java/src/org/chromium/base/CpuFeatures.java',
1106 'android/java/src/org/chromium/base/LocaleUtils.java',
1107 'android/java/src/org/chromium/base/PathService.java',
1108 'android/java/src/org/chromium/base/PathUtils.java',
1109 'android/java/src/org/chromium/base/SystemMessageHandler.java',
1110 'android/java/src/org/chromium/base/SystemMonitor.java',
1111 'android/java/src/org/chromium/base/ThreadUtils.java',
1114 'jni_gen_dir': 'base',
1116 'includes': [ '../build/jni_generator.gypi' ],
1119 'target_name': 'base_java',
1122 'java_in_dir': '../base/android/java',
1124 'includes': [ '../build/java.gypi' ],
1127 'target_name': 'base_java_test_support',
1133 'java_in_dir': '../base/test/android/javatests',
1135 'includes': [ '../build/java.gypi' ],
1142 'target_name': 'debug_message',
1143 'type': 'executable',
1149 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
1155 # Special target to wrap a gtest_target_type == shared_library
1156 # base_unittests into an android apk for execution.
1157 # TODO(jrg): lib.target comes from _InstallableTargetInstallPath()
1158 # in the gyp make generator. What is the correct way to extract
1159 # this path from gyp and into 'raw' for input to antfiles?
1160 # Hard-coding in the gypfile seems a poor choice.
1161 ['OS == "android" and gtest_target_type == "shared_library"', {
1164 'target_name': 'base_unittests_apk',
1171 'test_suite_name': 'base_unittests',
1172 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)base_unittests<(SHARED_LIB_SUFFIX)',
1174 'includes': [ '../build/apk_test.gypi' ],
1178 ['test_isolation_mode != "noop"', {
1181 'target_name': 'base_unittests_run',
1187 '../build/isolate.gypi',
1188 'base_unittests.isolate',
1191 'base_unittests.isolate',