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': {
158 ['OS == "mac" or (OS == "ios" and _toolset == "host")', {
161 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
162 '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework',
163 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
164 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
165 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
166 '$(SDKROOT)/System/Library/Frameworks/IOKit.framework',
167 '$(SDKROOT)/System/Library/Frameworks/Security.framework',
171 '../third_party/mach_override/mach_override.gyp:mach_override',
174 ['OS == "ios" and _toolset != "host"', {
177 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
178 '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework',
179 '$(SDKROOT)/System/Library/Frameworks/CoreText.framework',
180 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
181 '$(SDKROOT)/System/Library/Frameworks/UIKit.framework',
185 ['OS != "win" and OS != "ios"', {
186 'dependencies': ['../third_party/libevent/libevent.gyp:libevent'],
188 ['component=="shared_library"', {
192 'debug/debug_on_start_win.cc',
199 'third_party/xdg_user_dirs/xdg_user_dir_lookup.cc',
200 'third_party/xdg_user_dirs/xdg_user_dir_lookup.h',
201 'async_socket_io_handler.h',
202 'async_socket_io_handler_posix.cc',
203 'async_socket_io_handler_win.cc',
206 'event_recorder_stubs.cc',
207 'event_recorder_win.cc',
210 'message_loop/message_pump_android.cc',
211 'message_loop/message_pump_android.h',
212 'message_loop/message_pump_glib.cc',
213 'message_loop/message_pump_glib.h',
214 'message_loop/message_pump_io_ios.cc',
215 'message_loop/message_pump_io_ios.h',
216 'message_loop/message_pump_observer.h',
217 'message_loop/message_pump_libevent.cc',
218 'message_loop/message_pump_libevent.h',
219 'message_loop/message_pump_mac.h',
220 'message_loop/message_pump_mac.mm',
221 'metrics/field_trial.cc',
222 'metrics/field_trial.h',
223 'posix/file_descriptor_shuffle.cc',
224 'posix/file_descriptor_shuffle.h',
226 'sync_socket_win.cc',
227 'sync_socket_posix.cc',
231 'target_name': 'base_i18n',
232 'type': '<(component)',
234 'enable_wexit_time_destructors': 1,
236 'base_i18n_target': 1,
240 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
241 '../third_party/icu/icu.gyp:icui18n',
242 '../third_party/icu/icu.gyp:icuuc',
246 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
247 'msvs_disabled_warnings': [
251 ['icu_use_data_file_flag==1', {
252 'defines': ['ICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE'],
253 }, { # else icu_use_data_file_flag !=1
256 'defines': ['ICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_SHARED'],
258 'defines': ['ICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC'],
263 'export_dependent_settings': [
270 'target_name': 'base_message_loop_tests',
271 'type': 'static_library',
274 '../testing/gtest.gyp:gtest',
277 'message_loop/message_loop_test.cc',
278 'message_loop/message_loop_test.h',
282 'target_name': 'base_prefs',
283 'type': '<(component)',
285 'enable_wexit_time_destructors': 1,
291 'export_dependent_settings': [
295 'BASE_PREFS_IMPLEMENTATION',
298 'prefs/base_prefs_export.h',
299 'prefs/default_pref_store.cc',
300 'prefs/default_pref_store.h',
301 'prefs/json_pref_store.cc',
302 'prefs/json_pref_store.h',
303 'prefs/overlay_user_pref_store.cc',
304 'prefs/overlay_user_pref_store.h',
305 'prefs/persistent_pref_store.h',
306 'prefs/pref_change_registrar.cc',
307 'prefs/pref_change_registrar.h',
308 'prefs/pref_filter.h',
309 'prefs/pref_member.cc',
310 'prefs/pref_member.h',
311 'prefs/pref_notifier.h',
312 'prefs/pref_notifier_impl.cc',
313 'prefs/pref_notifier_impl.h',
314 'prefs/pref_observer.h',
315 'prefs/pref_registry.cc',
316 'prefs/pref_registry.h',
317 'prefs/pref_registry_simple.cc',
318 'prefs/pref_registry_simple.h',
319 'prefs/pref_service.cc',
320 'prefs/pref_service.h',
321 'prefs/pref_service_factory.cc',
322 'prefs/pref_service_factory.h',
323 'prefs/pref_store.cc',
324 'prefs/pref_store.h',
325 'prefs/pref_value_map.cc',
326 'prefs/pref_value_map.h',
327 'prefs/pref_value_store.cc',
328 'prefs/pref_value_store.h',
329 'prefs/scoped_user_pref_update.cc',
330 'prefs/scoped_user_pref_update.h',
331 'prefs/value_map_pref_store.cc',
332 'prefs/value_map_pref_store.h',
333 'prefs/writeable_pref_store.h',
337 'target_name': 'base_prefs_test_support',
338 'type': 'static_library',
342 '../testing/gmock.gyp:gmock',
345 'prefs/mock_pref_change_callback.cc',
346 'prefs/pref_store_observer_mock.cc',
347 'prefs/pref_store_observer_mock.h',
348 'prefs/testing_pref_service.cc',
349 'prefs/testing_pref_service.h',
350 'prefs/testing_pref_store.cc',
351 'prefs/testing_pref_store.h',
355 # This is the subset of files from base that should not be used with a
356 # dynamic library. Note that this library cannot depend on base because
357 # base depends on base_static.
358 'target_name': 'base_static',
359 'type': 'static_library',
361 'enable_wexit_time_destructors': 1,
364 'toolsets': ['host', 'target'],
375 # Include this target for a main() function that simply instantiates
376 # and runs a base::TestSuite.
378 'target_name': 'run_all_unittests',
379 'type': 'static_library',
384 'test/run_all_unittests.cc',
388 'target_name': 'base_unittests',
389 'type': '<(gtest_target_type)',
391 'android/application_status_listener_unittest.cc',
392 'android/jni_android_unittest.cc',
393 'android/jni_array_unittest.cc',
394 'android/jni_string_unittest.cc',
395 'android/path_utils_unittest.cc',
396 'android/scoped_java_ref_unittest.cc',
397 'android/sys_utils_unittest.cc',
398 'async_socket_io_handler_unittest.cc',
399 'at_exit_unittest.cc',
400 'atomicops_unittest.cc',
401 'barrier_closure_unittest.cc',
402 'base64_unittest.cc',
403 'big_endian_unittest.cc',
407 'build_time_unittest.cc',
408 'callback_helpers_unittest.cc',
409 'callback_list_unittest.cc',
410 'callback_list_unittest.nc',
411 'callback_unittest.cc',
412 'callback_unittest.nc',
413 'cancelable_callback_unittest.cc',
414 'command_line_unittest.cc',
415 'containers/hash_tables_unittest.cc',
416 'containers/linked_list_unittest.cc',
417 'containers/mru_cache_unittest.cc',
418 'containers/small_map_unittest.cc',
419 'containers/stack_container_unittest.cc',
421 'debug/crash_logging_unittest.cc',
422 'debug/leak_tracker_unittest.cc',
423 'debug/proc_maps_linux_unittest.cc',
424 'debug/stack_trace_unittest.cc',
425 'debug/trace_event_memory_unittest.cc',
426 'debug/trace_event_synthetic_delay_unittest.cc',
427 'debug/trace_event_system_stats_monitor_unittest.cc',
428 'debug/trace_event_unittest.cc',
429 'debug/trace_event_unittest.h',
430 'debug/trace_event_win_unittest.cc',
431 'deferred_sequenced_task_runner_unittest.cc',
432 'environment_unittest.cc',
433 'file_util_unittest.cc',
434 'file_version_info_unittest.cc',
435 'files/dir_reader_posix_unittest.cc',
436 'files/file_path_unittest.cc',
437 'files/file_proxy_unittest.cc',
438 'files/file_unittest.cc',
439 'files/file_util_proxy_unittest.cc',
440 'files/important_file_writer_unittest.cc',
441 'files/scoped_temp_dir_unittest.cc',
445 'id_map_unittest.cc',
446 'i18n/break_iterator_unittest.cc',
447 'i18n/char_iterator_unittest.cc',
448 'i18n/case_conversion_unittest.cc',
449 'i18n/file_util_icu_unittest.cc',
450 'i18n/icu_string_conversions_unittest.cc',
451 'i18n/number_formatting_unittest.cc',
452 'i18n/rtl_unittest.cc',
453 'i18n/streaming_utf8_validator_unittest.cc',
454 'i18n/string_search_unittest.cc',
455 'i18n/time_formatting_unittest.cc',
456 'i18n/timezone_unittest.cc',
457 'ini_parser_unittest.cc',
458 'ios/device_util_unittest.mm',
459 'json/json_parser_unittest.cc',
460 'json/json_reader_unittest.cc',
461 'json/json_value_converter_unittest.cc',
462 'json/json_value_serializer_unittest.cc',
463 'json/json_writer_unittest.cc',
464 'json/string_escape_unittest.cc',
465 'lazy_instance_unittest.cc',
466 'logging_unittest.cc',
467 'mac/bind_objc_block_unittest.mm',
468 'mac/foundation_util_unittest.mm',
469 'mac/libdispatch_task_runner_unittest.cc',
470 'mac/mac_util_unittest.mm',
471 'mac/objc_property_releaser_unittest.mm',
472 'mac/scoped_nsobject_unittest.mm',
473 'mac/scoped_sending_event_unittest.mm',
475 'memory/aligned_memory_unittest.cc',
476 'memory/discardable_memory_manager_unittest.cc',
477 'memory/discardable_memory_unittest.cc',
478 'memory/linked_ptr_unittest.cc',
479 'memory/ref_counted_memory_unittest.cc',
480 'memory/ref_counted_unittest.cc',
481 'memory/scoped_ptr_unittest.cc',
482 'memory/scoped_ptr_unittest.nc',
483 'memory/scoped_vector_unittest.cc',
484 'memory/shared_memory_unittest.cc',
485 'memory/singleton_unittest.cc',
486 'memory/weak_ptr_unittest.cc',
487 'memory/weak_ptr_unittest.nc',
488 'message_loop/message_loop_proxy_impl_unittest.cc',
489 'message_loop/message_loop_proxy_unittest.cc',
490 'message_loop/message_loop_unittest.cc',
491 'message_loop/message_pump_glib_unittest.cc',
492 'message_loop/message_pump_io_ios_unittest.cc',
493 'message_loop/message_pump_libevent_unittest.cc',
494 'metrics/sample_map_unittest.cc',
495 'metrics/sample_vector_unittest.cc',
496 'metrics/bucket_ranges_unittest.cc',
497 'metrics/field_trial_unittest.cc',
498 'metrics/histogram_base_unittest.cc',
499 'metrics/histogram_delta_serialization_unittest.cc',
500 'metrics/histogram_snapshot_manager_unittest.cc',
501 'metrics/histogram_unittest.cc',
502 'metrics/sparse_histogram_unittest.cc',
503 'metrics/stats_table_unittest.cc',
504 'metrics/statistics_recorder_unittest.cc',
505 'observer_list_unittest.cc',
506 'os_compat_android_unittest.cc',
507 'path_service_unittest.cc',
508 'pickle_unittest.cc',
509 'platform_file_unittest.cc',
510 'posix/file_descriptor_shuffle_unittest.cc',
511 'posix/unix_domain_socket_linux_unittest.cc',
512 'power_monitor/power_monitor_unittest.cc',
513 'prefs/default_pref_store_unittest.cc',
514 'prefs/json_pref_store_unittest.cc',
515 'prefs/mock_pref_change_callback.h',
516 'prefs/overlay_user_pref_store_unittest.cc',
517 'prefs/pref_change_registrar_unittest.cc',
518 'prefs/pref_member_unittest.cc',
519 'prefs/pref_notifier_impl_unittest.cc',
520 'prefs/pref_service_unittest.cc',
521 'prefs/pref_value_map_unittest.cc',
522 'prefs/pref_value_store_unittest.cc',
523 'prefs/scoped_user_pref_update_unittest.cc',
524 'process/memory_unittest.cc',
525 'process/memory_unittest_mac.h',
526 'process/memory_unittest_mac.mm',
527 'process/process_metrics_unittest.cc',
528 'process/process_metrics_unittest_ios.cc',
529 'process/process_util_unittest.cc',
530 'profiler/tracked_time_unittest.cc',
531 'rand_util_unittest.cc',
532 'numerics/safe_numerics_unittest.cc',
533 'scoped_clear_errno_unittest.cc',
534 'scoped_generic_unittest.cc',
535 'scoped_native_library_unittest.cc',
537 'security_unittest.cc',
538 'sequence_checker_unittest.cc',
540 'stl_util_unittest.cc',
541 'strings/nullable_string16_unittest.cc',
542 'strings/safe_sprintf_unittest.cc',
543 'strings/string16_unittest.cc',
544 'strings/stringprintf_unittest.cc',
545 'strings/string_number_conversions_unittest.cc',
546 'strings/string_piece_unittest.cc',
547 'strings/string_split_unittest.cc',
548 'strings/string_tokenizer_unittest.cc',
549 'strings/string_util_unittest.cc',
550 'strings/stringize_macros_unittest.cc',
551 'strings/sys_string_conversions_mac_unittest.mm',
552 'strings/sys_string_conversions_unittest.cc',
553 'strings/utf_offset_string_conversions_unittest.cc',
554 'strings/utf_string_conversions_unittest.cc',
555 'sync_socket_unittest.cc',
556 'synchronization/cancellation_flag_unittest.cc',
557 'synchronization/condition_variable_unittest.cc',
558 'synchronization/lock_unittest.cc',
559 'synchronization/waitable_event_unittest.cc',
560 'synchronization/waitable_event_watcher_unittest.cc',
561 'sys_info_unittest.cc',
562 'system_monitor/system_monitor_unittest.cc',
563 'task/cancelable_task_tracker_unittest.cc',
564 'task_runner_util_unittest.cc',
565 'template_util_unittest.cc',
566 'test/expectations/expectation_unittest.cc',
567 'test/expectations/parser_unittest.cc',
568 'test/statistics_delta_reader_unittest.cc',
569 'test/test_reg_util_win_unittest.cc',
570 'test/trace_event_analyzer_unittest.cc',
571 'threading/non_thread_safe_unittest.cc',
572 'threading/platform_thread_unittest.cc',
573 'threading/sequenced_worker_pool_unittest.cc',
574 'threading/simple_thread_unittest.cc',
575 'threading/thread_checker_unittest.cc',
576 'threading/thread_collision_warner_unittest.cc',
577 'threading/thread_id_name_manager_unittest.cc',
578 'threading/thread_local_storage_unittest.cc',
579 'threading/thread_local_unittest.cc',
580 'threading/thread_unittest.cc',
581 'threading/watchdog_unittest.cc',
582 'threading/worker_pool_posix_unittest.cc',
583 'threading/worker_pool_unittest.cc',
584 'time/pr_time_unittest.cc',
585 'time/time_unittest.cc',
586 'time/time_win_unittest.cc',
587 'timer/hi_res_timer_manager_unittest.cc',
588 'timer/mock_timer_unittest.cc',
589 'timer/timer_unittest.cc',
590 'tools_sanity_unittest.cc',
591 'tracked_objects_unittest.cc',
593 'values_unittest.cc',
594 'version_unittest.cc',
597 'win/enum_variant_unittest.cc',
598 'win/event_trace_consumer_unittest.cc',
599 'win/event_trace_controller_unittest.cc',
600 'win/event_trace_provider_unittest.cc',
601 'win/i18n_unittest.cc',
602 'win/iunknown_impl_unittest.cc',
603 'win/message_window_unittest.cc',
604 'win/object_watcher_unittest.cc',
605 'win/pe_image_unittest.cc',
606 'win/registry_unittest.cc',
607 'win/scoped_bstr_unittest.cc',
608 'win/scoped_comptr_unittest.cc',
609 'win/scoped_process_information_unittest.cc',
610 'win/scoped_variant_unittest.cc',
611 'win/shortcut_unittest.cc',
612 'win/startup_information_unittest.cc',
613 'win/win_util_unittest.cc',
614 'win/wrapped_window_proc_unittest.cc',
619 'base_message_loop_tests',
621 'base_prefs_test_support',
625 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
626 '../testing/gmock.gyp:gmock',
627 '../testing/gtest.gyp:gtest',
628 '../third_party/icu/icu.gyp:icui18n',
629 '../third_party/icu/icu.gyp:icuuc',
631 'includes': ['../build/nocompile.gypi'],
633 # TODO(ajwong): Is there a way to autodetect this?
637 ['OS == "android"', {
639 'android/jni_generator/jni_generator.gyp:jni_generator_tests',
642 ['gtest_target_type == "shared_library"', {
644 '../testing/android/native_test.gyp:native_test_native_code',
649 ['OS == "ios" and _toolset != "host"', {
651 # Only test the iOS-meaningful portion of process_utils.
652 ['exclude', '^process/memory_unittest'],
653 ['exclude', '^process/process_util_unittest\\.cc$'],
654 ['include', '^process/process_util_unittest_ios\\.cc$'],
655 # Requires spawning processes.
656 ['exclude', '^metrics/stats_table_unittest\\.cc$'],
657 # iOS does not use message_pump_libevent.
658 ['exclude', '^message_loop/message_pump_libevent_unittest\\.cc$'],
662 'action_name': 'copy_test_data',
667 'test_data_prefix': 'base',
669 'includes': [ '../build/copy_test_data_ios.gypi' ],
673 ['desktop_linux == 1 or chromeos == 1', {
678 'file_version_info_unittest.cc',
681 [ 'desktop_linux==1', {
683 'nix/xdg_util_unittest.cc',
690 '../build/linux/system.gyp:glib',
694 'message_loop/message_pump_glib_unittest.cc',
699 'message_loop/message_pump_glib_unittest.cc',
702 ['OS == "linux" and use_allocator!="none"', {
704 'allocator/allocator.gyp:allocator',
710 'file_descriptor_shuffle_unittest.cc',
711 'files/dir_reader_posix_unittest.cc',
712 'threading/worker_pool_posix_unittest.cc',
713 'message_loop/message_pump_libevent_unittest.cc',
715 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
716 'msvs_disabled_warnings': [
720 # This is needed so base_unittests uses the allocator shim, as
721 # SecurityTest.MemoryAllocationRestriction* tests are dependent
723 # TODO(wfh): crbug.com/246278 Move tcmalloc specific tests into
724 # their own test suite.
725 ['win_use_allocator_shim==1', {
727 'allocator/allocator.gyp:allocator',
730 ['icu_use_data_file_flag==0', {
731 # This is needed to trigger the dll copy step on windows.
732 # TODO(mark): This should not be necessary.
734 '../third_party/icu/icu.gyp:icudata',
740 '../third_party/libevent/libevent.gyp:libevent'
744 'target_conditions': [
745 ['OS == "ios" and _toolset != "host"', {
747 # Pull in specific Mac files for iOS (which have been filtered out
748 # by file name rules).
749 ['include', '^mac/bind_objc_block_unittest\\.mm$'],
750 ['include', '^mac/foundation_util_unittest\\.mm$',],
751 ['include', '^mac/objc_property_releaser_unittest\\.mm$'],
752 ['include', '^mac/scoped_nsobject_unittest\\.mm$'],
753 ['include', '^sys_string_conversions_mac_unittest\\.mm$'],
756 ['OS == "android" and _toolset == "target"', {
758 'memory/discardable_memory_ashmem_allocator_unittest.cc',
761 ['OS == "android"', {
763 ['include', '^debug/proc_maps_linux_unittest\\.cc$'],
766 ], # target_conditions
769 'target_name': 'base_perftests',
770 'type': '<(gtest_target_type)',
774 '../testing/gtest.gyp:gtest',
777 'threading/thread_perftest.cc',
778 'test/run_all_unittests.cc',
779 '../testing/perf/perf_test.cc'
782 ['OS == "android" and gtest_target_type == "shared_library"', {
784 '../testing/android/native_test.gyp:native_test_native_code',
790 'target_name': 'base_i18n_perftests',
791 'type': '<(gtest_target_type)',
795 '../testing/gtest.gyp:gtest',
800 'i18n/streaming_utf8_validator_perftest.cc',
804 'target_name': 'test_support_base',
805 'type': 'static_library',
810 '../testing/gmock.gyp:gmock',
811 '../testing/gtest.gyp:gtest',
812 '../third_party/libxml/libxml.gyp:libxml',
813 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
815 'export_dependent_settings': [
821 'test/scoped_locale.cc',
822 'test/scoped_locale.h',
827 'test/test_file_util_linux.cc',
830 ['OS == "android"', {
832 'base_unittests_jni_headers',
833 'base_java_unittest_support',
838 'test/expectations/expectation.cc',
839 'test/expectations/expectation.h',
840 'test/expectations/parser.cc',
841 'test/expectations/parser.h',
842 'test/gtest_xml_util.cc',
843 'test/gtest_xml_util.h',
844 'test/launcher/test_launcher.cc',
845 'test/launcher/test_launcher.h',
846 'test/launcher/test_result.cc',
847 'test/launcher/test_result.h',
848 'test/launcher/test_results_tracker.cc',
849 'test/launcher/test_results_tracker.h',
850 'test/launcher/unit_test_launcher.cc',
851 'test/launcher/unit_test_launcher.h',
852 'test/launcher/unit_test_launcher_ios.cc',
853 'test/mock_chrome_application_mac.h',
854 'test/mock_chrome_application_mac.mm',
855 'test/mock_devices_changed_observer.cc',
856 'test/mock_devices_changed_observer.h',
857 'test/mock_time_provider.cc',
858 'test/mock_time_provider.h',
859 'test/multiprocess_test.cc',
860 'test/multiprocess_test.h',
861 'test/multiprocess_test_android.cc',
862 'test/null_task_runner.cc',
863 'test/null_task_runner.h',
866 'test/perf_test_suite.cc',
867 'test/perf_test_suite.h',
868 'test/perf_time_logger.cc',
869 'test/perf_time_logger.h',
870 'test/power_monitor_test_base.cc',
871 'test/power_monitor_test_base.h',
872 'test/scoped_locale.cc',
873 'test/scoped_locale.h',
874 'test/scoped_path_override.cc',
875 'test/scoped_path_override.h',
876 'test/sequenced_task_runner_test_template.cc',
877 'test/sequenced_task_runner_test_template.h',
878 'test/sequenced_worker_pool_owner.cc',
879 'test/sequenced_worker_pool_owner.h',
880 'test/simple_test_clock.cc',
881 'test/simple_test_clock.h',
882 'test/simple_test_tick_clock.cc',
883 'test/simple_test_tick_clock.h',
884 'test/statistics_delta_reader.cc',
885 'test/statistics_delta_reader.h',
886 'test/task_runner_test_template.cc',
887 'test/task_runner_test_template.h',
888 'test/test_file_util.cc',
889 'test/test_file_util.h',
890 'test/test_file_util_android.cc',
891 'test/test_file_util_linux.cc',
892 'test/test_file_util_mac.cc',
893 'test/test_file_util_posix.cc',
894 'test/test_file_util_win.cc',
895 'test/test_listener_ios.h',
896 'test/test_listener_ios.mm',
897 'test/test_pending_task.cc',
898 'test/test_pending_task.h',
899 'test/test_process_killer_win.cc',
900 'test/test_process_killer_win.h',
901 'test/test_reg_util_win.cc',
902 'test/test_reg_util_win.h',
903 'test/test_shortcut_win.cc',
904 'test/test_shortcut_win.h',
905 'test/test_simple_task_runner.cc',
906 'test/test_simple_task_runner.h',
907 'test/test_suite.cc',
909 'test/test_support_android.cc',
910 'test/test_support_android.h',
911 'test/test_support_ios.h',
912 'test/test_support_ios.mm',
913 'test/test_switches.cc',
914 'test/test_switches.h',
915 'test/test_timeouts.cc',
916 'test/test_timeouts.h',
917 'test/thread_test_helper.cc',
918 'test/thread_test_helper.h',
919 'test/trace_event_analyzer.cc',
920 'test/trace_event_analyzer.h',
921 'test/values_test_util.cc',
922 'test/values_test_util.h',
924 'target_conditions': [
927 # Pull in specific Mac files for iOS (which have been filtered out
928 # by file name rules).
929 ['include', '^test/test_file_util_mac\\.cc$'],
932 # iOS uses its own unit test launcher.
933 'test/launcher/unit_test_launcher.cc',
936 ], # target_conditions
939 'target_name': 'test_support_perf',
940 'type': 'static_library',
944 '../testing/gtest.gyp:gtest',
947 'test/run_all_perftests.cc',
949 'direct_dependent_settings': {
956 'target_name': 'sanitizer_options',
957 'type': 'static_library',
958 'toolsets': ['host', 'target'],
960 # Every target is going to depend on sanitizer_options, so allow
961 # this one to depend on itself.
962 'prune_self_dependency': 1,
963 # Do not let 'none' targets depend on this one, they don't need to.
964 'link_dependency': 1,
967 'debug/sanitizer_options.cc',
972 # Some targets may want to opt-out from ASan, TSan and MSan and link
973 # without the corresponding runtime libraries. We drop the libc++
974 # dependency and omit the compiler flags to avoid bringing instrumented
975 # code to those targets.
977 ['use_custom_libcxx==1', {
979 '../third_party/libc++/libc++.gyp:libcxx_proxy',
984 '-fsanitize=address',
987 '-fsanitize-memory-track-origins',
989 'direct_dependent_settings': {
991 '-Wl,-u_sanitizer_options_link_helper',
1000 'target_name': 'check_example',
1001 'type': 'executable',
1010 'target_name': 'build_utf8_validator_tables',
1011 'type': 'executable',
1012 'toolsets': ['host'],
1015 '../third_party/icu/icu.gyp:icuuc',
1018 'i18n/build_utf8_validator_tables.cc'
1023 ['OS == "win" and target_arch=="ia32"', {
1025 # The base_win64 target here allows us to use base for Win64 targets
1026 # (the normal build is 32 bits).
1028 'target_name': 'base_win64',
1029 'type': '<(component)',
1034 'base_static_win64',
1035 'allocator/allocator.gyp:allocator_extension_thunks_win64',
1036 '../third_party/modp_b64/modp_b64.gyp:modp_b64_win64',
1037 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations_win64',
1039 # TODO(gregoryd): direct_dependent_settings should be shared with the
1040 # 32-bit target, but it doesn't work due to a bug in gyp
1041 'direct_dependent_settings': {
1048 '<@(nacl_win64_defines)',
1052 'msvs_target_platform': 'x64',
1056 ['component == "shared_library"', {
1058 'debug/debug_on_start_win.cc',
1062 # TODO(rvargas): Bug 78117. Remove this.
1063 'msvs_disabled_warnings': [
1069 'third_party/xdg_user_dirs/xdg_user_dir_lookup.cc',
1070 'third_party/xdg_user_dirs/xdg_user_dir_lookup.h',
1071 'async_socket_io_handler.h',
1072 'async_socket_io_handler_posix.cc',
1073 'async_socket_io_handler_win.cc',
1076 'event_recorder_stubs.cc',
1077 'event_recorder_win.cc',
1082 'message_loop/message_pump_observer.h',
1083 'message_loop/message_pump_libevent.cc',
1084 'message_loop/message_pump_libevent.h',
1085 'metrics/field_trial.cc',
1086 'metrics/field_trial.h',
1087 'posix/file_descriptor_shuffle.cc',
1088 'posix/file_descriptor_shuffle.h',
1090 'sync_socket_win.cc',
1091 'sync_socket_posix.cc',
1095 'target_name': 'base_i18n_nacl_win64',
1096 'type': '<(component)',
1097 # TODO(gregoryd): direct_dependent_settings should be shared with the
1098 # 32-bit target, but it doesn't work due to a bug in gyp
1099 'direct_dependent_settings': {
1105 '<@(nacl_win64_defines)',
1106 'BASE_I18N_IMPLEMENTATION',
1112 'i18n/icu_util_nacl_win64.cc',
1116 'msvs_target_platform': 'x64',
1121 # TODO(rvargas): Remove this when gyp finally supports a clean model.
1123 'target_name': 'base_static_win64',
1124 'type': 'static_library',
1132 # base64.cc depends on modp_b64.
1140 'msvs_target_platform': 'x64',
1144 '<@(nacl_win64_defines)',
1146 # TODO(rvargas): Bug 78117. Remove this.
1147 'msvs_disabled_warnings': [
1153 ['os_posix==1 and OS!="mac" and OS!="ios"', {
1156 'target_name': 'symbolize',
1157 'type': 'static_library',
1158 'toolsets': ['host', 'target'],
1163 ['OS == "solaris"', {
1166 '/usr/gnu/include/libelf',
1171 '-Wno-sign-compare',
1177 'GLOG_BUILD_CONFIG_INCLUDE="build/build_config.h"',
1180 'third_party/symbolize/config.h',
1181 'third_party/symbolize/demangle.cc',
1182 'third_party/symbolize/demangle.h',
1183 'third_party/symbolize/glog/logging.h',
1184 'third_party/symbolize/glog/raw_logging.h',
1185 'third_party/symbolize/symbolize.cc',
1186 'third_party/symbolize/symbolize.h',
1187 'third_party/symbolize/utilities.h',
1194 'target_name': 'xdg_mime',
1195 'type': 'static_library',
1196 'toolsets': ['host', 'target'],
1204 'third_party/xdg_mime/xdgmime.c',
1205 'third_party/xdg_mime/xdgmime.h',
1206 'third_party/xdg_mime/xdgmimealias.c',
1207 'third_party/xdg_mime/xdgmimealias.h',
1208 'third_party/xdg_mime/xdgmimecache.c',
1209 'third_party/xdg_mime/xdgmimecache.h',
1210 'third_party/xdg_mime/xdgmimeglob.c',
1211 'third_party/xdg_mime/xdgmimeglob.h',
1212 'third_party/xdg_mime/xdgmimeicon.c',
1213 'third_party/xdg_mime/xdgmimeicon.h',
1214 'third_party/xdg_mime/xdgmimeint.c',
1215 'third_party/xdg_mime/xdgmimeint.h',
1216 'third_party/xdg_mime/xdgmimemagic.c',
1217 'third_party/xdg_mime/xdgmimemagic.h',
1218 'third_party/xdg_mime/xdgmimeparent.c',
1219 'third_party/xdg_mime/xdgmimeparent.h',
1224 ['OS == "android"', {
1227 'target_name': 'base_jni_headers',
1230 'android/java/src/org/chromium/base/ApplicationStatus.java',
1231 'android/java/src/org/chromium/base/BuildInfo.java',
1232 'android/java/src/org/chromium/base/CommandLine.java',
1233 'android/java/src/org/chromium/base/ContentUriUtils.java',
1234 'android/java/src/org/chromium/base/CpuFeatures.java',
1235 'android/java/src/org/chromium/base/ImportantFileWriterAndroid.java',
1236 'android/java/src/org/chromium/base/library_loader/LibraryLoader.java',
1237 'android/java/src/org/chromium/base/MemoryPressureListener.java',
1238 'android/java/src/org/chromium/base/JavaHandlerThread.java',
1239 'android/java/src/org/chromium/base/PathService.java',
1240 'android/java/src/org/chromium/base/PathUtils.java',
1241 'android/java/src/org/chromium/base/PowerMonitor.java',
1242 'android/java/src/org/chromium/base/SystemMessageHandler.java',
1243 'android/java/src/org/chromium/base/SysUtils.java',
1244 'android/java/src/org/chromium/base/ThreadUtils.java',
1245 'android/java/src/org/chromium/base/TraceEvent.java',
1248 'jni_gen_package': 'base',
1249 'jni_generator_ptr_type': 'long',
1251 'includes': [ '../build/jni_generator.gypi' ],
1254 'target_name': 'base_unittests_jni_headers',
1257 'test/android/java/src/org/chromium/base/ContentUriTestUtils.java',
1260 'jni_gen_package': 'base',
1261 'jni_generator_ptr_type': 'long',
1263 'includes': [ '../build/jni_generator.gypi' ],
1266 'target_name': 'base_native_libraries_gen',
1269 'android/java/templates/NativeLibraries.template',
1272 'package_name': 'org/chromium/base/library_loader',
1273 'include_path': 'android/java/templates',
1275 'android/java/templates/native_libraries_array.h'
1278 'includes': [ '../build/android/java_cpp_template.gypi' ],
1281 'target_name': 'base_java',
1284 'java_in_dir': '../base/android/java',
1285 'jar_excluded_classes': [ '*/NativeLibraries.class' ],
1288 'base_java_application_state',
1289 'base_java_memory_pressure_level_list',
1290 'base_native_libraries_gen',
1292 'includes': [ '../build/java.gypi' ],
1294 ['android_webview_build==0', {
1296 '../third_party/jsr-305/jsr-305.gyp:jsr_305_javalib',
1302 'target_name': 'base_java_unittest_support',
1308 'java_in_dir': '../base/test/android/java',
1310 'includes': [ '../build/java.gypi' ],
1313 'target_name': 'base_java_application_state',
1315 # This target is used to auto-generate ApplicationState.java
1316 # from a template file. The source file contains a list of
1317 # Java constant declarations matching the ones in
1318 # android/application_state_list.h.
1320 'android/java/src/org/chromium/base/ApplicationState.template',
1323 'package_name': 'org/chromium/base',
1324 'template_deps': ['android/application_state_list.h'],
1326 'includes': [ '../build/android/java_cpp_template.gypi' ],
1329 'target_name': 'base_java_memory_pressure_level_list',
1332 'android/java/src/org/chromium/base/MemoryPressureLevelList.template',
1335 'package_name': 'org/chromium/base',
1336 'template_deps': ['memory/memory_pressure_level_list.h'],
1338 'includes': [ '../build/android/java_cpp_template.gypi' ],
1341 'target_name': 'base_java_test_support',
1347 'java_in_dir': '../base/test/android/javatests',
1349 'includes': [ '../build/java.gypi' ],
1352 'target_name': 'base_javatests',
1356 'base_java_test_support',
1359 'java_in_dir': '../base/android/javatests',
1361 'includes': [ '../build/java.gypi' ],
1364 'target_name': 'chromium_android_linker',
1365 'type': 'shared_library',
1367 ['android_webview_build == 0 and target_arch != "x64" and \
1368 target_arch != "arm64"', {
1369 # Avoid breaking the webview/64-bit build because they
1370 # don't have <(android_ndk_root)/crazy_linker.gyp.
1371 # Note that webview never uses the linker anyway.
1372 # Note there is no 64-bit support in the linker.
1374 'android/linker/linker_jni.cc',
1377 '<(android_ndk_root)/crazy_linker.gyp:crazy_linker',
1385 ['OS == "android" and gtest_target_type == "shared_library"', {
1388 'target_name': 'base_perftests_apk',
1394 'test_suite_name': 'base_perftests',
1396 'includes': [ '../build/apk_test.gypi' ],
1403 'target_name': 'debug_message',
1404 'type': 'executable',
1410 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
1416 # Special target to wrap a gtest_target_type == shared_library
1417 # base_unittests into an android apk for execution.
1418 # TODO(jrg): lib.target comes from _InstallableTargetInstallPath()
1419 # in the gyp make generator. What is the correct way to extract
1420 # this path from gyp and into 'raw' for input to antfiles?
1421 # Hard-coding in the gypfile seems a poor choice.
1422 ['OS == "android" and gtest_target_type == "shared_library"', {
1425 'target_name': 'base_unittests_apk',
1432 'test_suite_name': 'base_unittests',
1434 'includes': [ '../build/apk_test.gypi' ],
1438 ['test_isolation_mode != "noop"', {
1441 'target_name': 'base_unittests_run',
1447 '../build/isolate.gypi',
1448 'base_unittests.isolate',
1451 'base_unittests.isolate',