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': {
38 ['desktop_linux == 1 or chromeos == 1', {
41 'sources/': [ ['include', '_chromeos\\.cc$'] ]
51 }, { # desktop_linux == 0 and chromeos == 0
53 ['exclude', '/xdg_user_dirs/'],
54 ['exclude', '_nss\\.cc$'],
59 '../build/linux/system.gyp:glib',
61 'export_dependent_settings': [
62 '../build/linux/system.gyp:glib',
65 ['OS == "android" and _toolset == "host"', {
66 # Always build base as a static_library for host toolset, even if
67 # we're doing a component build. Specifically, we only care about the
68 # target toolset using components since that's what developers are
69 # focusing on. In theory we should do this more generally for all
70 # targets when building for host, but getting the gyp magic
71 # per-toolset for the "component" variable is hard, and we really only
73 'type': 'static_library',
74 # Base for host support is the minimum required to run the
75 # ssl false start blacklist tool. It requires further changes
76 # to generically support host builds (and tests).
77 # Note: when building for host, gyp has OS == "android",
78 # hence the *_android.cc files are included but the actual code
79 # doesn't have OS_ANDROID / ANDROID defined.
81 ['host_os == "mac"', {
83 ['exclude', '^native_library_linux\\.cc$'],
84 ['exclude', '^process_util_linux\\.cc$'],
85 ['exclude', '^sys_info_linux\\.cc$'],
86 ['exclude', '^sys_string_conversions_linux\\.cc$'],
87 ['exclude', '^worker_pool_linux\\.cc$'],
92 ['OS == "android" and _toolset == "target"', {
94 ['target_arch == "ia32" or target_arch == "x64"', {
96 ['include', '^atomicops_internals_x86_gcc\\.cc$'],
99 ['target_arch == "mipsel"', {
101 ['include', '^atomicops_internals_mips_gcc\\.cc$'],
107 '../third_party/ashmem/ashmem.gyp:ashmem',
115 'debug/stack_trace_posix.cc',
118 '../build/android/cpufeatures.gypi',
121 ['OS == "android" and _toolset == "target" and android_webview_build == 0', {
128 '/usr/local/include',
132 '-L/usr/local/lib -lexecinfo',
139 # We need rt for clock_gettime().
141 # For 'native_library_linux.cc'
146 ['use_allocator!="tcmalloc"', {
150 'direct_dependent_settings': {
159 # Specify delayload for base.dll.
165 'AdditionalDependencies': [
170 # Specify delayload for components that link with base.lib.
171 'all_dependent_settings': {
177 'AdditionalDependencies': [
184 ['OS == "mac" or (OS == "ios" and _toolset == "host")', {
187 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
188 '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework',
189 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
190 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
191 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
192 '$(SDKROOT)/System/Library/Frameworks/IOKit.framework',
193 '$(SDKROOT)/System/Library/Frameworks/Security.framework',
197 '../third_party/mach_override/mach_override.gyp:mach_override',
200 ['OS == "ios" and _toolset != "host"', {
203 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
204 '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework',
205 '$(SDKROOT)/System/Library/Frameworks/CoreText.framework',
206 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
207 '$(SDKROOT)/System/Library/Frameworks/UIKit.framework',
211 ['OS != "win" and OS != "ios"', {
212 'dependencies': ['../third_party/libevent/libevent.gyp:libevent'],
214 ['component=="shared_library"', {
218 'debug/debug_on_start_win.cc',
225 'third_party/xdg_user_dirs/xdg_user_dir_lookup.cc',
226 'third_party/xdg_user_dirs/xdg_user_dir_lookup.h',
227 'async_socket_io_handler.h',
228 'async_socket_io_handler_posix.cc',
229 'async_socket_io_handler_win.cc',
232 'event_recorder_stubs.cc',
233 'event_recorder_win.cc',
236 'message_loop/message_pump_android.cc',
237 'message_loop/message_pump_android.h',
238 'message_loop/message_pump_glib.cc',
239 'message_loop/message_pump_glib.h',
240 'message_loop/message_pump_io_ios.cc',
241 'message_loop/message_pump_io_ios.h',
242 'message_loop/message_pump_observer.h',
243 'message_loop/message_pump_libevent.cc',
244 'message_loop/message_pump_libevent.h',
245 'message_loop/message_pump_mac.h',
246 'message_loop/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,
262 'base_i18n_target': 1,
266 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
267 '../third_party/icu/icu.gyp:icui18n',
268 '../third_party/icu/icu.gyp:icuuc',
272 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
273 'msvs_disabled_warnings': [
277 ['icu_use_data_file_flag==1', {
278 'defines': ['ICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE'],
279 }, { # else icu_use_data_file_flag !=1
282 'defines': ['ICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_SHARED'],
284 'defines': ['ICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC'],
289 'export_dependent_settings': [
296 'target_name': 'base_message_loop_tests',
297 'type': 'static_library',
300 '../testing/gtest.gyp:gtest',
303 'message_loop/message_loop_test.cc',
304 'message_loop/message_loop_test.h',
308 'target_name': 'base_prefs',
309 'type': '<(component)',
311 'enable_wexit_time_destructors': 1,
317 'export_dependent_settings': [
321 'BASE_PREFS_IMPLEMENTATION',
324 'prefs/base_prefs_export.h',
325 'prefs/default_pref_store.cc',
326 'prefs/default_pref_store.h',
327 'prefs/json_pref_store.cc',
328 'prefs/json_pref_store.h',
329 'prefs/overlay_user_pref_store.cc',
330 'prefs/overlay_user_pref_store.h',
331 'prefs/persistent_pref_store.h',
332 'prefs/pref_change_registrar.cc',
333 'prefs/pref_change_registrar.h',
334 'prefs/pref_filter.h',
335 'prefs/pref_member.cc',
336 'prefs/pref_member.h',
337 'prefs/pref_notifier.h',
338 'prefs/pref_notifier_impl.cc',
339 'prefs/pref_notifier_impl.h',
340 'prefs/pref_observer.h',
341 'prefs/pref_registry.cc',
342 'prefs/pref_registry.h',
343 'prefs/pref_registry_simple.cc',
344 'prefs/pref_registry_simple.h',
345 'prefs/pref_service.cc',
346 'prefs/pref_service.h',
347 'prefs/pref_service_factory.cc',
348 'prefs/pref_service_factory.h',
349 'prefs/pref_store.cc',
350 'prefs/pref_store.h',
351 'prefs/pref_value_map.cc',
352 'prefs/pref_value_map.h',
353 'prefs/pref_value_store.cc',
354 'prefs/pref_value_store.h',
355 'prefs/scoped_user_pref_update.cc',
356 'prefs/scoped_user_pref_update.h',
357 'prefs/value_map_pref_store.cc',
358 'prefs/value_map_pref_store.h',
359 'prefs/writeable_pref_store.h',
363 'target_name': 'base_prefs_test_support',
364 'type': 'static_library',
368 '../testing/gmock.gyp:gmock',
371 'prefs/mock_pref_change_callback.cc',
372 'prefs/pref_store_observer_mock.cc',
373 'prefs/pref_store_observer_mock.h',
374 'prefs/testing_pref_service.cc',
375 'prefs/testing_pref_service.h',
376 'prefs/testing_pref_store.cc',
377 'prefs/testing_pref_store.h',
381 # This is the subset of files from base that should not be used with a
382 # dynamic library. Note that this library cannot depend on base because
383 # base depends on base_static.
384 'target_name': 'base_static',
385 'type': 'static_library',
387 'enable_wexit_time_destructors': 1,
390 'toolsets': ['host', 'target'],
401 # Include this target for a main() function that simply instantiates
402 # and runs a base::TestSuite.
404 'target_name': 'run_all_unittests',
405 'type': 'static_library',
410 'test/run_all_unittests.cc',
414 'target_name': 'base_unittests',
415 'type': '<(gtest_target_type)',
417 'android/application_status_listener_unittest.cc',
418 'android/jni_android_unittest.cc',
419 'android/jni_array_unittest.cc',
420 'android/jni_string_unittest.cc',
421 'android/path_utils_unittest.cc',
422 'android/scoped_java_ref_unittest.cc',
423 'android/sys_utils_unittest.cc',
424 'async_socket_io_handler_unittest.cc',
425 'at_exit_unittest.cc',
426 'atomicops_unittest.cc',
427 'barrier_closure_unittest.cc',
428 'base64_unittest.cc',
429 'big_endian_unittest.cc',
433 'build_time_unittest.cc',
434 'callback_helpers_unittest.cc',
435 'callback_list_unittest.cc',
436 'callback_list_unittest.nc',
437 'callback_unittest.cc',
438 'callback_unittest.nc',
439 'cancelable_callback_unittest.cc',
440 'command_line_unittest.cc',
441 'containers/hash_tables_unittest.cc',
442 'containers/linked_list_unittest.cc',
443 'containers/mru_cache_unittest.cc',
444 'containers/small_map_unittest.cc',
445 'containers/stack_container_unittest.cc',
447 'debug/crash_logging_unittest.cc',
448 'debug/leak_tracker_unittest.cc',
449 'debug/proc_maps_linux_unittest.cc',
450 'debug/stack_trace_unittest.cc',
451 'debug/trace_event_memory_unittest.cc',
452 'debug/trace_event_synthetic_delay_unittest.cc',
453 'debug/trace_event_system_stats_monitor_unittest.cc',
454 'debug/trace_event_unittest.cc',
455 'debug/trace_event_unittest.h',
456 'debug/trace_event_win_unittest.cc',
457 'deferred_sequenced_task_runner_unittest.cc',
458 'environment_unittest.cc',
459 'file_util_unittest.cc',
460 'file_version_info_unittest.cc',
461 'files/dir_reader_posix_unittest.cc',
462 'files/file_path_unittest.cc',
463 'files/file_proxy_unittest.cc',
464 'files/file_unittest.cc',
465 'files/file_util_proxy_unittest.cc',
466 'files/important_file_writer_unittest.cc',
467 'files/scoped_temp_dir_unittest.cc',
471 'id_map_unittest.cc',
472 'i18n/break_iterator_unittest.cc',
473 'i18n/char_iterator_unittest.cc',
474 'i18n/case_conversion_unittest.cc',
475 'i18n/file_util_icu_unittest.cc',
476 'i18n/icu_string_conversions_unittest.cc',
477 'i18n/number_formatting_unittest.cc',
478 'i18n/rtl_unittest.cc',
479 'i18n/streaming_utf8_validator_unittest.cc',
480 'i18n/string_search_unittest.cc',
481 'i18n/time_formatting_unittest.cc',
482 'i18n/timezone_unittest.cc',
483 'ini_parser_unittest.cc',
484 'ios/device_util_unittest.mm',
485 'json/json_parser_unittest.cc',
486 'json/json_reader_unittest.cc',
487 'json/json_value_converter_unittest.cc',
488 'json/json_value_serializer_unittest.cc',
489 'json/json_writer_unittest.cc',
490 'json/string_escape_unittest.cc',
491 'lazy_instance_unittest.cc',
492 'logging_unittest.cc',
493 'mac/bind_objc_block_unittest.mm',
494 'mac/foundation_util_unittest.mm',
495 'mac/libdispatch_task_runner_unittest.cc',
496 'mac/mac_util_unittest.mm',
497 'mac/objc_property_releaser_unittest.mm',
498 'mac/scoped_nsobject_unittest.mm',
499 'mac/scoped_sending_event_unittest.mm',
501 'memory/aligned_memory_unittest.cc',
502 'memory/discardable_memory_manager_unittest.cc',
503 'memory/discardable_memory_unittest.cc',
504 'memory/linked_ptr_unittest.cc',
505 'memory/ref_counted_memory_unittest.cc',
506 'memory/ref_counted_unittest.cc',
507 'memory/scoped_ptr_unittest.cc',
508 'memory/scoped_ptr_unittest.nc',
509 'memory/scoped_vector_unittest.cc',
510 'memory/shared_memory_unittest.cc',
511 'memory/singleton_unittest.cc',
512 'memory/weak_ptr_unittest.cc',
513 'memory/weak_ptr_unittest.nc',
514 'message_loop/message_loop_proxy_impl_unittest.cc',
515 'message_loop/message_loop_proxy_unittest.cc',
516 'message_loop/message_loop_unittest.cc',
517 'message_loop/message_pump_glib_unittest.cc',
518 'message_loop/message_pump_io_ios_unittest.cc',
519 'message_loop/message_pump_libevent_unittest.cc',
520 'metrics/sample_map_unittest.cc',
521 'metrics/sample_vector_unittest.cc',
522 'metrics/bucket_ranges_unittest.cc',
523 'metrics/field_trial_unittest.cc',
524 'metrics/histogram_base_unittest.cc',
525 'metrics/histogram_delta_serialization_unittest.cc',
526 'metrics/histogram_snapshot_manager_unittest.cc',
527 'metrics/histogram_unittest.cc',
528 'metrics/sparse_histogram_unittest.cc',
529 'metrics/stats_table_unittest.cc',
530 'metrics/statistics_recorder_unittest.cc',
531 'observer_list_unittest.cc',
532 'os_compat_android_unittest.cc',
533 'path_service_unittest.cc',
534 'pickle_unittest.cc',
535 'platform_file_unittest.cc',
536 'posix/file_descriptor_shuffle_unittest.cc',
537 'posix/unix_domain_socket_linux_unittest.cc',
538 'power_monitor/power_monitor_unittest.cc',
539 'prefs/default_pref_store_unittest.cc',
540 'prefs/json_pref_store_unittest.cc',
541 'prefs/mock_pref_change_callback.h',
542 'prefs/overlay_user_pref_store_unittest.cc',
543 'prefs/pref_change_registrar_unittest.cc',
544 'prefs/pref_member_unittest.cc',
545 'prefs/pref_notifier_impl_unittest.cc',
546 'prefs/pref_service_unittest.cc',
547 'prefs/pref_value_map_unittest.cc',
548 'prefs/pref_value_store_unittest.cc',
549 'prefs/scoped_user_pref_update_unittest.cc',
550 'process/memory_unittest.cc',
551 'process/memory_unittest_mac.h',
552 'process/memory_unittest_mac.mm',
553 'process/process_metrics_unittest.cc',
554 'process/process_metrics_unittest_ios.cc',
555 'process/process_util_unittest.cc',
556 'profiler/tracked_time_unittest.cc',
557 'rand_util_unittest.cc',
558 'numerics/safe_numerics_unittest.cc',
559 'scoped_clear_errno_unittest.cc',
560 'scoped_generic_unittest.cc',
561 'scoped_native_library_unittest.cc',
563 'security_unittest.cc',
564 'sequence_checker_unittest.cc',
566 'stl_util_unittest.cc',
567 'strings/nullable_string16_unittest.cc',
568 'strings/safe_sprintf_unittest.cc',
569 'strings/string16_unittest.cc',
570 'strings/stringprintf_unittest.cc',
571 'strings/string_number_conversions_unittest.cc',
572 'strings/string_piece_unittest.cc',
573 'strings/string_split_unittest.cc',
574 'strings/string_tokenizer_unittest.cc',
575 'strings/string_util_unittest.cc',
576 'strings/stringize_macros_unittest.cc',
577 'strings/sys_string_conversions_mac_unittest.mm',
578 'strings/sys_string_conversions_unittest.cc',
579 'strings/utf_offset_string_conversions_unittest.cc',
580 'strings/utf_string_conversions_unittest.cc',
581 'supports_user_data_unittest.cc',
582 'sync_socket_unittest.cc',
583 'synchronization/cancellation_flag_unittest.cc',
584 'synchronization/condition_variable_unittest.cc',
585 'synchronization/lock_unittest.cc',
586 'synchronization/waitable_event_unittest.cc',
587 'synchronization/waitable_event_watcher_unittest.cc',
588 'sys_info_unittest.cc',
589 'system_monitor/system_monitor_unittest.cc',
590 'task/cancelable_task_tracker_unittest.cc',
591 'task_runner_util_unittest.cc',
592 'template_util_unittest.cc',
593 'test/expectations/expectation_unittest.cc',
594 'test/expectations/parser_unittest.cc',
595 'test/statistics_delta_reader_unittest.cc',
596 'test/test_reg_util_win_unittest.cc',
597 'test/trace_event_analyzer_unittest.cc',
598 'threading/non_thread_safe_unittest.cc',
599 'threading/platform_thread_unittest.cc',
600 'threading/sequenced_worker_pool_unittest.cc',
601 'threading/simple_thread_unittest.cc',
602 'threading/thread_checker_unittest.cc',
603 'threading/thread_collision_warner_unittest.cc',
604 'threading/thread_id_name_manager_unittest.cc',
605 'threading/thread_local_storage_unittest.cc',
606 'threading/thread_local_unittest.cc',
607 'threading/thread_unittest.cc',
608 'threading/watchdog_unittest.cc',
609 'threading/worker_pool_posix_unittest.cc',
610 'threading/worker_pool_unittest.cc',
611 'time/pr_time_unittest.cc',
612 'time/time_unittest.cc',
613 'time/time_win_unittest.cc',
614 'timer/hi_res_timer_manager_unittest.cc',
615 'timer/mock_timer_unittest.cc',
616 'timer/timer_unittest.cc',
617 'tools_sanity_unittest.cc',
618 'tracked_objects_unittest.cc',
620 'values_unittest.cc',
621 'version_unittest.cc',
624 'win/enum_variant_unittest.cc',
625 'win/event_trace_consumer_unittest.cc',
626 'win/event_trace_controller_unittest.cc',
627 'win/event_trace_provider_unittest.cc',
628 'win/i18n_unittest.cc',
629 'win/iunknown_impl_unittest.cc',
630 'win/message_window_unittest.cc',
631 'win/object_watcher_unittest.cc',
632 'win/pe_image_unittest.cc',
633 'win/registry_unittest.cc',
634 'win/scoped_bstr_unittest.cc',
635 'win/scoped_comptr_unittest.cc',
636 'win/scoped_process_information_unittest.cc',
637 'win/scoped_variant_unittest.cc',
638 'win/shortcut_unittest.cc',
639 'win/startup_information_unittest.cc',
640 'win/win_util_unittest.cc',
641 'win/wrapped_window_proc_unittest.cc',
646 'base_message_loop_tests',
648 'base_prefs_test_support',
652 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
653 '../testing/gmock.gyp:gmock',
654 '../testing/gtest.gyp:gtest',
655 '../third_party/icu/icu.gyp:icui18n',
656 '../third_party/icu/icu.gyp:icuuc',
658 'includes': ['../build/nocompile.gypi'],
660 # TODO(ajwong): Is there a way to autodetect this?
664 ['OS == "android"', {
666 'android/jni_generator/jni_generator.gyp:jni_generator_tests',
667 '../testing/android/native_test.gyp:native_test_native_code',
670 ['OS == "ios" and _toolset != "host"', {
672 # Only test the iOS-meaningful portion of process_utils.
673 ['exclude', '^process/memory_unittest'],
674 ['exclude', '^process/process_util_unittest\\.cc$'],
675 ['include', '^process/process_util_unittest_ios\\.cc$'],
676 # Requires spawning processes.
677 ['exclude', '^metrics/stats_table_unittest\\.cc$'],
678 # iOS does not use message_pump_libevent.
679 ['exclude', '^message_loop/message_pump_libevent_unittest\\.cc$'],
683 'action_name': 'copy_test_data',
688 'test_data_prefix': 'base',
690 'includes': [ '../build/copy_test_data_ios.gypi' ],
694 ['desktop_linux == 1 or chromeos == 1', {
699 'file_version_info_unittest.cc',
702 [ 'desktop_linux==1', {
704 'nix/xdg_util_unittest.cc',
711 '../build/linux/system.gyp:glib',
715 'message_loop/message_pump_glib_unittest.cc',
720 'message_loop/message_pump_glib_unittest.cc',
723 ['OS == "linux" and use_allocator!="none"', {
725 'allocator/allocator.gyp:allocator',
731 'file_descriptor_shuffle_unittest.cc',
732 'files/dir_reader_posix_unittest.cc',
733 'threading/worker_pool_posix_unittest.cc',
734 'message_loop/message_pump_libevent_unittest.cc',
736 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
737 'msvs_disabled_warnings': [
741 # This is needed so base_unittests uses the allocator shim, as
742 # SecurityTest.MemoryAllocationRestriction* tests are dependent
744 # TODO(wfh): crbug.com/246278 Move tcmalloc specific tests into
745 # their own test suite.
746 ['win_use_allocator_shim==1', {
748 'allocator/allocator.gyp:allocator',
751 ['icu_use_data_file_flag==0', {
752 # This is needed to trigger the dll copy step on windows.
753 # TODO(mark): This should not be necessary.
755 '../third_party/icu/icu.gyp:icudata',
761 '../third_party/libevent/libevent.gyp:libevent'
765 'target_conditions': [
766 ['OS == "ios" and _toolset != "host"', {
768 # Pull in specific Mac files for iOS (which have been filtered out
769 # by file name rules).
770 ['include', '^mac/bind_objc_block_unittest\\.mm$'],
771 ['include', '^mac/foundation_util_unittest\\.mm$',],
772 ['include', '^mac/objc_property_releaser_unittest\\.mm$'],
773 ['include', '^mac/scoped_nsobject_unittest\\.mm$'],
774 ['include', '^sys_string_conversions_mac_unittest\\.mm$'],
777 ['OS == "android" and _toolset == "target"', {
779 'memory/discardable_memory_ashmem_allocator_unittest.cc',
782 ['OS == "android"', {
784 ['include', '^debug/proc_maps_linux_unittest\\.cc$'],
787 ], # target_conditions
790 'target_name': 'base_perftests',
791 'type': '<(gtest_target_type)',
795 '../testing/gtest.gyp:gtest',
798 'threading/thread_perftest.cc',
799 'test/run_all_unittests.cc',
800 '../testing/perf/perf_test.cc'
803 ['OS == "android"', {
805 '../testing/android/native_test.gyp:native_test_native_code',
811 'target_name': 'base_i18n_perftests',
812 'type': '<(gtest_target_type)',
816 '../testing/gtest.gyp:gtest',
821 'i18n/streaming_utf8_validator_perftest.cc',
825 'target_name': 'test_support_base',
826 'type': 'static_library',
831 '../testing/gmock.gyp:gmock',
832 '../testing/gtest.gyp:gtest',
833 '../third_party/libxml/libxml.gyp:libxml',
834 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
836 'export_dependent_settings': [
842 'test/scoped_locale.cc',
843 'test/scoped_locale.h',
848 'test/test_file_util_linux.cc',
851 ['OS == "android"', {
853 'base_unittests_jni_headers',
854 'base_java_unittest_support',
859 'test/expectations/expectation.cc',
860 'test/expectations/expectation.h',
861 'test/expectations/parser.cc',
862 'test/expectations/parser.h',
863 'test/gtest_xml_util.cc',
864 'test/gtest_xml_util.h',
865 'test/launcher/test_launcher.cc',
866 'test/launcher/test_launcher.h',
867 'test/launcher/test_result.cc',
868 'test/launcher/test_result.h',
869 'test/launcher/test_results_tracker.cc',
870 'test/launcher/test_results_tracker.h',
871 'test/launcher/unit_test_launcher.cc',
872 'test/launcher/unit_test_launcher.h',
873 'test/launcher/unit_test_launcher_ios.cc',
874 'test/mock_chrome_application_mac.h',
875 'test/mock_chrome_application_mac.mm',
876 'test/mock_devices_changed_observer.cc',
877 'test/mock_devices_changed_observer.h',
878 'test/mock_time_provider.cc',
879 'test/mock_time_provider.h',
880 'test/multiprocess_test.cc',
881 'test/multiprocess_test.h',
882 'test/multiprocess_test_android.cc',
883 'test/null_task_runner.cc',
884 'test/null_task_runner.h',
887 'test/perf_test_suite.cc',
888 'test/perf_test_suite.h',
889 'test/perf_time_logger.cc',
890 'test/perf_time_logger.h',
891 'test/power_monitor_test_base.cc',
892 'test/power_monitor_test_base.h',
893 'test/scoped_locale.cc',
894 'test/scoped_locale.h',
895 'test/scoped_path_override.cc',
896 'test/scoped_path_override.h',
897 'test/sequenced_task_runner_test_template.cc',
898 'test/sequenced_task_runner_test_template.h',
899 'test/sequenced_worker_pool_owner.cc',
900 'test/sequenced_worker_pool_owner.h',
901 'test/simple_test_clock.cc',
902 'test/simple_test_clock.h',
903 'test/simple_test_tick_clock.cc',
904 'test/simple_test_tick_clock.h',
905 'test/statistics_delta_reader.cc',
906 'test/statistics_delta_reader.h',
907 'test/task_runner_test_template.cc',
908 'test/task_runner_test_template.h',
909 'test/test_file_util.cc',
910 'test/test_file_util.h',
911 'test/test_file_util_android.cc',
912 'test/test_file_util_linux.cc',
913 'test/test_file_util_mac.cc',
914 'test/test_file_util_posix.cc',
915 'test/test_file_util_win.cc',
916 'test/test_listener_ios.h',
917 'test/test_listener_ios.mm',
918 'test/test_pending_task.cc',
919 'test/test_pending_task.h',
920 'test/test_process_killer_win.cc',
921 'test/test_process_killer_win.h',
922 'test/test_reg_util_win.cc',
923 'test/test_reg_util_win.h',
924 'test/test_shortcut_win.cc',
925 'test/test_shortcut_win.h',
926 'test/test_simple_task_runner.cc',
927 'test/test_simple_task_runner.h',
928 'test/test_suite.cc',
930 'test/test_support_android.cc',
931 'test/test_support_android.h',
932 'test/test_support_ios.h',
933 'test/test_support_ios.mm',
934 'test/test_switches.cc',
935 'test/test_switches.h',
936 'test/test_timeouts.cc',
937 'test/test_timeouts.h',
938 'test/thread_test_helper.cc',
939 'test/thread_test_helper.h',
940 'test/trace_event_analyzer.cc',
941 'test/trace_event_analyzer.h',
942 'test/values_test_util.cc',
943 'test/values_test_util.h',
945 'target_conditions': [
948 # Pull in specific Mac files for iOS (which have been filtered out
949 # by file name rules).
950 ['include', '^test/test_file_util_mac\\.cc$'],
953 # iOS uses its own unit test launcher.
954 'test/launcher/unit_test_launcher.cc',
957 ], # target_conditions
960 'target_name': 'test_support_perf',
961 'type': 'static_library',
965 '../testing/gtest.gyp:gtest',
968 'test/run_all_perftests.cc',
970 'direct_dependent_settings': {
977 'target_name': 'sanitizer_options',
978 'type': 'static_library',
979 'toolsets': ['host', 'target'],
981 # Every target is going to depend on sanitizer_options, so allow
982 # this one to depend on itself.
983 'prune_self_dependency': 1,
984 # Do not let 'none' targets depend on this one, they don't need to.
985 'link_dependency': 1,
988 'debug/sanitizer_options.cc',
993 # Some targets may want to opt-out from ASan, TSan and MSan and link
994 # without the corresponding runtime libraries. We drop the libc++
995 # dependency and omit the compiler flags to avoid bringing instrumented
996 # code to those targets.
998 ['use_custom_libcxx==1', {
1000 '../third_party/libc++/libc++.gyp:libcxx_proxy',
1005 'debug/tsan_suppressions.cc',
1010 '-fsanitize=address',
1011 '-fsanitize=thread',
1012 '-fsanitize=memory',
1013 '-fsanitize-memory-track-origins',
1015 'direct_dependent_settings': {
1017 '-Wl,-u_sanitizer_options_link_helper',
1026 'target_name': 'check_example',
1027 'type': 'executable',
1036 'target_name': 'build_utf8_validator_tables',
1037 'type': 'executable',
1038 'toolsets': ['host'],
1041 '../third_party/icu/icu.gyp:icuuc',
1044 'i18n/build_utf8_validator_tables.cc'
1049 ['OS == "win" and target_arch=="ia32"', {
1051 # The base_win64 target here allows us to use base for Win64 targets
1052 # (the normal build is 32 bits).
1054 'target_name': 'base_win64',
1055 'type': '<(component)',
1060 'base_static_win64',
1061 'allocator/allocator.gyp:allocator_extension_thunks_win64',
1062 '../third_party/modp_b64/modp_b64.gyp:modp_b64_win64',
1063 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations_win64',
1065 # TODO(gregoryd): direct_dependent_settings should be shared with the
1066 # 32-bit target, but it doesn't work due to a bug in gyp
1067 'direct_dependent_settings': {
1074 '<@(nacl_win64_defines)',
1078 'msvs_target_platform': 'x64',
1082 ['component == "shared_library"', {
1084 'debug/debug_on_start_win.cc',
1088 # Specify delayload for base_win64.dll.
1094 'AdditionalDependencies': [
1099 # Specify delayload for components that link with base_win64.lib.
1100 'all_dependent_settings': {
1106 'AdditionalDependencies': [
1112 # TODO(rvargas): Bug 78117. Remove this.
1113 'msvs_disabled_warnings': [
1119 'third_party/xdg_user_dirs/xdg_user_dir_lookup.cc',
1120 'third_party/xdg_user_dirs/xdg_user_dir_lookup.h',
1121 'async_socket_io_handler.h',
1122 'async_socket_io_handler_posix.cc',
1123 'async_socket_io_handler_win.cc',
1126 'event_recorder_stubs.cc',
1127 'event_recorder_win.cc',
1132 'message_loop/message_pump_observer.h',
1133 'message_loop/message_pump_libevent.cc',
1134 'message_loop/message_pump_libevent.h',
1135 'metrics/field_trial.cc',
1136 'metrics/field_trial.h',
1137 'posix/file_descriptor_shuffle.cc',
1138 'posix/file_descriptor_shuffle.h',
1140 'sync_socket_win.cc',
1141 'sync_socket_posix.cc',
1145 'target_name': 'base_i18n_nacl_win64',
1146 'type': '<(component)',
1147 # TODO(gregoryd): direct_dependent_settings should be shared with the
1148 # 32-bit target, but it doesn't work due to a bug in gyp
1149 'direct_dependent_settings': {
1155 '<@(nacl_win64_defines)',
1156 'BASE_I18N_IMPLEMENTATION',
1162 'i18n/icu_util_nacl_win64.cc',
1166 'msvs_target_platform': 'x64',
1171 # TODO(rvargas): Remove this when gyp finally supports a clean model.
1173 'target_name': 'base_static_win64',
1174 'type': 'static_library',
1182 # base64.cc depends on modp_b64.
1190 'msvs_target_platform': 'x64',
1194 '<@(nacl_win64_defines)',
1196 # TODO(rvargas): Bug 78117. Remove this.
1197 'msvs_disabled_warnings': [
1203 ['os_posix==1 and OS!="mac" and OS!="ios"', {
1206 'target_name': 'symbolize',
1207 'type': 'static_library',
1208 'toolsets': ['host', 'target'],
1213 ['OS == "solaris"', {
1216 '/usr/gnu/include/libelf',
1221 '-Wno-sign-compare',
1227 'GLOG_BUILD_CONFIG_INCLUDE="build/build_config.h"',
1230 'third_party/symbolize/config.h',
1231 'third_party/symbolize/demangle.cc',
1232 'third_party/symbolize/demangle.h',
1233 'third_party/symbolize/glog/logging.h',
1234 'third_party/symbolize/glog/raw_logging.h',
1235 'third_party/symbolize/symbolize.cc',
1236 'third_party/symbolize/symbolize.h',
1237 'third_party/symbolize/utilities.h',
1244 'target_name': 'xdg_mime',
1245 'type': 'static_library',
1246 'toolsets': ['host', 'target'],
1254 'third_party/xdg_mime/xdgmime.c',
1255 'third_party/xdg_mime/xdgmime.h',
1256 'third_party/xdg_mime/xdgmimealias.c',
1257 'third_party/xdg_mime/xdgmimealias.h',
1258 'third_party/xdg_mime/xdgmimecache.c',
1259 'third_party/xdg_mime/xdgmimecache.h',
1260 'third_party/xdg_mime/xdgmimeglob.c',
1261 'third_party/xdg_mime/xdgmimeglob.h',
1262 'third_party/xdg_mime/xdgmimeicon.c',
1263 'third_party/xdg_mime/xdgmimeicon.h',
1264 'third_party/xdg_mime/xdgmimeint.c',
1265 'third_party/xdg_mime/xdgmimeint.h',
1266 'third_party/xdg_mime/xdgmimemagic.c',
1267 'third_party/xdg_mime/xdgmimemagic.h',
1268 'third_party/xdg_mime/xdgmimeparent.c',
1269 'third_party/xdg_mime/xdgmimeparent.h',
1274 ['OS == "android"', {
1277 'target_name': 'base_jni_headers',
1280 'android/java/src/org/chromium/base/ApplicationStatus.java',
1281 'android/java/src/org/chromium/base/BuildInfo.java',
1282 'android/java/src/org/chromium/base/CommandLine.java',
1283 'android/java/src/org/chromium/base/ContentUriUtils.java',
1284 'android/java/src/org/chromium/base/CpuFeatures.java',
1285 'android/java/src/org/chromium/base/ImportantFileWriterAndroid.java',
1286 'android/java/src/org/chromium/base/library_loader/LibraryLoader.java',
1287 'android/java/src/org/chromium/base/MemoryPressureListener.java',
1288 'android/java/src/org/chromium/base/JavaHandlerThread.java',
1289 'android/java/src/org/chromium/base/PathService.java',
1290 'android/java/src/org/chromium/base/PathUtils.java',
1291 'android/java/src/org/chromium/base/PowerMonitor.java',
1292 'android/java/src/org/chromium/base/SystemMessageHandler.java',
1293 'android/java/src/org/chromium/base/SysUtils.java',
1294 'android/java/src/org/chromium/base/ThreadUtils.java',
1295 'android/java/src/org/chromium/base/TraceEvent.java',
1298 'jni_gen_package': 'base',
1300 'includes': [ '../build/jni_generator.gypi' ],
1303 'target_name': 'base_unittests_jni_headers',
1306 'test/android/java/src/org/chromium/base/ContentUriTestUtils.java',
1309 'jni_gen_package': 'base',
1311 'includes': [ '../build/jni_generator.gypi' ],
1314 'target_name': 'base_native_libraries_gen',
1317 'android/java/templates/NativeLibraries.template',
1320 'package_name': 'org/chromium/base/library_loader',
1321 'include_path': 'android/java/templates',
1323 'android/java/templates/native_libraries_array.h'
1326 'includes': [ '../build/android/java_cpp_template.gypi' ],
1329 'target_name': 'base_java',
1332 'java_in_dir': '../base/android/java',
1333 'jar_excluded_classes': [ '*/NativeLibraries.class' ],
1336 'base_java_application_state',
1337 'base_java_memory_pressure_level_list',
1338 'base_native_libraries_gen',
1340 'includes': [ '../build/java.gypi' ],
1342 ['android_webview_build==0', {
1344 '../third_party/jsr-305/jsr-305.gyp:jsr_305_javalib',
1350 'target_name': 'base_java_unittest_support',
1356 'java_in_dir': '../base/test/android/java',
1358 'includes': [ '../build/java.gypi' ],
1361 'target_name': 'base_java_application_state',
1363 # This target is used to auto-generate ApplicationState.java
1364 # from a template file. The source file contains a list of
1365 # Java constant declarations matching the ones in
1366 # android/application_state_list.h.
1368 'android/java/src/org/chromium/base/ApplicationState.template',
1371 'package_name': 'org/chromium/base',
1372 'template_deps': ['android/application_state_list.h'],
1374 'includes': [ '../build/android/java_cpp_template.gypi' ],
1377 'target_name': 'base_java_memory_pressure_level_list',
1380 'android/java/src/org/chromium/base/MemoryPressureLevelList.template',
1383 'package_name': 'org/chromium/base',
1384 'template_deps': ['memory/memory_pressure_level_list.h'],
1386 'includes': [ '../build/android/java_cpp_template.gypi' ],
1389 'target_name': 'base_java_test_support',
1395 'java_in_dir': '../base/test/android/javatests',
1397 'includes': [ '../build/java.gypi' ],
1400 'target_name': 'base_javatests',
1404 'base_java_test_support',
1407 'java_in_dir': '../base/android/javatests',
1409 'includes': [ '../build/java.gypi' ],
1412 'target_name': 'chromium_android_linker',
1413 'type': 'shared_library',
1415 ['android_webview_build == 0 and target_arch != "x64" and \
1416 target_arch != "arm64"', {
1417 # Avoid breaking the webview/64-bit build because they
1418 # don't have <(android_ndk_root)/crazy_linker.gyp.
1419 # Note that webview never uses the linker anyway.
1420 # Note there is no 64-bit support in the linker.
1422 'android/linker/linker_jni.cc',
1424 # The crazy linker is never instrumented.
1426 '-finstrument-functions',
1429 '<(android_ndk_root)/crazy_linker.gyp:crazy_linker',
1437 ['OS == "android"', {
1440 'target_name': 'base_perftests_apk',
1446 'test_suite_name': 'base_perftests',
1448 'includes': [ '../build/apk_test.gypi' ],
1455 'target_name': 'debug_message',
1456 'type': 'executable',
1462 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
1468 ['OS == "android"', {
1471 'target_name': 'base_unittests_apk',
1478 'test_suite_name': 'base_unittests',
1480 'includes': [ '../build/apk_test.gypi' ],
1484 ['test_isolation_mode != "noop"', {
1487 'target_name': 'base_unittests_run',
1493 '../build/isolate.gypi',
1494 'base_unittests.isolate',
1497 'base_unittests.isolate',