Home | History | Annotate | Download | only in base
      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.
      4 
      5 {
      6   'target_defaults': {
      7     'variables': {
      8       'base_target': 0,
      9       'base_i18n_target': 0,
     10     },
     11     'target_conditions': [
     12       # This part is shared between the targets defined below.
     13       ['base_target==1', {
     14         'sources': [
     15           '../build/build_config.h',
     16           'third_party/dmg_fp/dmg_fp.h',
     17           'third_party/dmg_fp/g_fmt.cc',
     18           'third_party/dmg_fp/dtoa_wrapper.cc',
     19           'third_party/icu/icu_utf.cc',
     20           'third_party/icu/icu_utf.h',
     21           'third_party/nspr/prtime.cc',
     22           'third_party/nspr/prtime.h',
     23           'third_party/superfasthash/superfasthash.c',
     24           'third_party/xdg_mime/xdgmime.h',
     25           'allocator/allocator_extension.cc',
     26           'allocator/allocator_extension.h',
     27           'allocator/type_profiler_control.cc',
     28           'allocator/type_profiler_control.h',
     29           'android/application_status_listener.cc',
     30           'android/application_status_listener.h',
     31           'android/base_jni_registrar.cc',
     32           'android/base_jni_registrar.h',
     33           'android/build_info.cc',
     34           'android/build_info.h',
     35           'android/command_line_android.cc',
     36           'android/command_line_android.h',
     37           'android/content_uri_utils.cc',
     38           'android/content_uri_utils.h',
     39           'android/cpu_features.cc',
     40           'android/event_log.cc',
     41           'android/event_log.h',
     42           'android/fifo_utils.cc',
     43           'android/fifo_utils.h',
     44           'android/important_file_writer_android.cc',
     45           'android/important_file_writer_android.h',
     46           'android/scoped_java_ref.cc',
     47           'android/scoped_java_ref.h',
     48           'android/jni_android.cc',
     49           'android/jni_android.h',
     50           'android/jni_array.cc',
     51           'android/jni_array.h',
     52           'android/jni_registrar.cc',
     53           'android/jni_registrar.h',
     54           'android/jni_string.cc',
     55           'android/jni_string.h',
     56           'android/jni_utils.cc',
     57           'android/jni_utils.h',
     58           'android/jni_weak_ref.cc',
     59           'android/jni_weak_ref.h',
     60           'android/library_loader/library_loader_hooks.cc',
     61           'android/library_loader/library_loader_hooks.h',
     62           'android/memory_pressure_listener_android.cc',
     63           'android/memory_pressure_listener_android.h',
     64           'android/java_handler_thread.cc',
     65           'android/java_handler_thread.h',
     66           'android/path_service_android.cc',
     67           'android/path_service_android.h',
     68           'android/path_utils.cc',
     69           'android/path_utils.h',
     70           'android/sys_utils.cc',
     71           'android/sys_utils.h',
     72           'android/thread_utils.h',
     73           'android/trace_event_binding.cc',
     74           'android/trace_event_binding.h',
     75           'at_exit.cc',
     76           'at_exit.h',
     77           'atomic_ref_count.h',
     78           'atomic_sequence_num.h',
     79           'atomicops.h',
     80           'atomicops_internals_gcc.h',
     81           'atomicops_internals_mac.h',
     82           'atomicops_internals_tsan.h',
     83           'atomicops_internals_x86_gcc.cc',
     84           'atomicops_internals_x86_gcc.h',
     85           'atomicops_internals_x86_msvc.h',
     86           'barrier_closure.cc',
     87           'barrier_closure.h',
     88           'base64.cc',
     89           'base64.h',
     90           'base_export.h',
     91           'base_paths.cc',
     92           'base_paths.h',
     93           'base_paths_android.cc',
     94           'base_paths_android.h',
     95           'base_paths_mac.h',
     96           'base_paths_mac.mm',
     97           'base_paths_posix.cc',
     98           'base_paths_posix.h',
     99           'base_paths_win.cc',
    100           'base_paths_win.h',
    101           'base_switches.h',
    102           'basictypes.h',
    103           'big_endian.cc',
    104           'big_endian.h',
    105           'bind.h',
    106           'bind_helpers.cc',
    107           'bind_helpers.h',
    108           'bind_internal.h',
    109           'bind_internal_win.h',
    110           'bits.h',
    111           'build_time.cc',
    112           'build_time.h',
    113           'callback.h',
    114           'callback_helpers.cc',
    115           'callback_helpers.h',
    116           'callback_internal.cc',
    117           'callback_internal.h',
    118           'callback_list.h',
    119           'cancelable_callback.h',
    120           'command_line.cc',
    121           'command_line.h',
    122           'compiler_specific.h',
    123           'containers/hash_tables.h',
    124           'containers/linked_list.h',
    125           'containers/mru_cache.h',
    126           'containers/scoped_ptr_hash_map.h',
    127           'containers/small_map.h',
    128           'containers/stack_container.h',
    129           'cpu.cc',
    130           'cpu.h',
    131           'critical_closure.h',
    132           'critical_closure_internal_ios.mm',
    133           'debug/alias.cc',
    134           'debug/alias.h',
    135           'debug/asan_invalid_access.cc',
    136           'debug/asan_invalid_access.h',
    137           'debug/crash_logging.cc',
    138           'debug/crash_logging.h',
    139           'debug/debugger.cc',
    140           'debug/debugger.h',
    141           'debug/debugger_posix.cc',
    142           'debug/debugger_win.cc',
    143           'debug/dump_without_crashing.cc',
    144           'debug/dump_without_crashing.h',
    145           'debug/gdi_debug_util_win.cc',
    146           'debug/gdi_debug_util_win.h',
    147           # This file depends on files from the 'allocator' target,
    148           # but this target does not depend on 'allocator' (see
    149           # allocator.gyp for details).
    150           'debug/leak_annotations.h',
    151           'debug/leak_tracker.h',
    152           'debug/proc_maps_linux.cc',
    153           'debug/proc_maps_linux.h',
    154           'debug/profiler.cc',
    155           'debug/profiler.h',
    156           'debug/stack_trace.cc',
    157           'debug/stack_trace.h',
    158           'debug/stack_trace_android.cc',
    159           'debug/stack_trace_posix.cc',
    160           'debug/stack_trace_win.cc',
    161           'debug/trace_event.h',
    162           'debug/trace_event_android.cc',
    163           'debug/trace_event_impl.cc',
    164           'debug/trace_event_impl.h',
    165           'debug/trace_event_impl_constants.cc',
    166           'debug/trace_event_synthetic_delay.cc',
    167           'debug/trace_event_synthetic_delay.h',
    168           'debug/trace_event_system_stats_monitor.cc',
    169           'debug/trace_event_memory.cc',
    170           'debug/trace_event_memory.h',
    171           'debug/trace_event_win.cc',
    172           'deferred_sequenced_task_runner.cc',
    173           'deferred_sequenced_task_runner.h',
    174           'environment.cc',
    175           'environment.h',
    176           'file_descriptor_posix.h',
    177           'file_util.cc',
    178           'file_util.h',
    179           'file_util_android.cc',
    180           'file_util_linux.cc',
    181           'file_util_mac.mm',
    182           'file_util_posix.cc',
    183           'file_util_win.cc',
    184           'file_version_info.h',
    185           'file_version_info_mac.h',
    186           'file_version_info_mac.mm',
    187           'file_version_info_win.cc',
    188           'file_version_info_win.h',
    189           'files/dir_reader_fallback.h',
    190           'files/dir_reader_linux.h',
    191           'files/dir_reader_posix.h',
    192           'files/file.cc',
    193           'files/file.h',
    194           'files/file_enumerator.cc',
    195           'files/file_enumerator.h',
    196           'files/file_enumerator_posix.cc',
    197           'files/file_enumerator_win.cc',
    198           'files/file_path.cc',
    199           'files/file_path.h',
    200           'files/file_path_constants.cc',
    201           'files/file_path_watcher.cc',
    202           'files/file_path_watcher.h',
    203           'files/file_path_watcher_fsevents.cc',
    204           'files/file_path_watcher_fsevents.h',
    205           'files/file_path_watcher_kqueue.cc',
    206           'files/file_path_watcher_kqueue.h',
    207           'files/file_path_watcher_linux.cc',
    208           'files/file_path_watcher_mac.cc',
    209           'files/file_path_watcher_stub.cc',
    210           'files/file_path_watcher_win.cc',
    211           'files/file_posix.cc',
    212           'files/file_proxy.cc',
    213           'files/file_proxy.h',
    214           'files/file_util_proxy.cc',
    215           'files/file_util_proxy.h',
    216           'files/file_win.cc',
    217           'files/important_file_writer.h',
    218           'files/important_file_writer.cc',
    219           'files/memory_mapped_file.cc',
    220           'files/memory_mapped_file.h',
    221           'files/memory_mapped_file_posix.cc',
    222           'files/memory_mapped_file_win.cc',
    223           'files/scoped_file.cc',
    224           'files/scoped_file.h',
    225           'files/scoped_platform_file_closer.cc',
    226           'files/scoped_platform_file_closer.h',
    227           'files/scoped_temp_dir.cc',
    228           'files/scoped_temp_dir.h',
    229           'float_util.h',
    230           'format_macros.h',
    231           'gtest_prod_util.h',
    232           'guid.cc',
    233           'guid.h',
    234           'guid_posix.cc',
    235           'guid_win.cc',
    236           'hash.cc',
    237           'hash.h',
    238           'id_map.h',
    239           'ini_parser.cc',
    240           'ini_parser.h',
    241           'ios/device_util.h',
    242           'ios/device_util.mm',
    243           'ios/ios_util.h',
    244           'ios/ios_util.mm',
    245           'ios/scoped_critical_action.h',
    246           'ios/scoped_critical_action.mm',
    247           'json/json_file_value_serializer.cc',
    248           'json/json_file_value_serializer.h',
    249           'json/json_parser.cc',
    250           'json/json_parser.h',
    251           'json/json_reader.cc',
    252           'json/json_reader.h',
    253           'json/json_string_value_serializer.cc',
    254           'json/json_string_value_serializer.h',
    255           'json/json_value_converter.h',
    256           'json/json_writer.cc',
    257           'json/json_writer.h',
    258           'json/string_escape.cc',
    259           'json/string_escape.h',
    260           'lazy_instance.cc',
    261           'lazy_instance.h',
    262           'location.cc',
    263           'location.h',
    264           'logging.cc',
    265           'logging.h',
    266           'logging_win.cc',
    267           'logging_win.h',
    268           'mac/authorization_util.h',
    269           'mac/authorization_util.mm',
    270           'mac/bind_objc_block.h',
    271           'mac/bundle_locations.h',
    272           'mac/bundle_locations.mm',
    273           'mac/close_nocancel.cc',
    274           'mac/cocoa_protocols.h',
    275           'mac/foundation_util.h',
    276           'mac/foundation_util.mm',
    277           'mac/launch_services_util.cc',
    278           'mac/launch_services_util.h',
    279           'mac/launchd.cc',
    280           'mac/launchd.h',
    281           'mac/libdispatch_task_runner.cc',
    282           'mac/libdispatch_task_runner.h',
    283           'mac/mac_logging.h',
    284           'mac/mac_logging.cc',
    285           'mac/mac_util.h',
    286           'mac/mac_util.mm',
    287           'mac/mach_logging.cc',
    288           'mac/mach_logging.h',
    289           'mac/objc_property_releaser.h',
    290           'mac/objc_property_releaser.mm',
    291           'mac/os_crash_dumps.cc',
    292           'mac/os_crash_dumps.h',
    293           'mac/scoped_aedesc.h',
    294           'mac/scoped_authorizationref.h',
    295           'mac/scoped_block.h',
    296           'mac/scoped_cftyperef.h',
    297           'mac/scoped_ioobject.h',
    298           'mac/scoped_ioplugininterface.h',
    299           'mac/scoped_launch_data.h',
    300           'mac/scoped_mach_port.cc',
    301           'mac/scoped_mach_port.h',
    302           'mac/scoped_mach_vm.cc',
    303           'mac/scoped_mach_vm.h',
    304           'mac/scoped_nsautorelease_pool.h',
    305           'mac/scoped_nsautorelease_pool.mm',
    306           'mac/scoped_nsexception_enabler.h',
    307           'mac/scoped_nsexception_enabler.mm',
    308           'mac/scoped_nsobject.h',
    309           'mac/scoped_sending_event.h',
    310           'mac/scoped_sending_event.mm',
    311           'mac/scoped_typeref.h',
    312           'mac/sdk_forward_declarations.h',
    313           'mac/sdk_forward_declarations.mm',
    314           'macros.h',
    315           'md5.cc',
    316           'md5.h',
    317           'memory/aligned_memory.cc',
    318           'memory/aligned_memory.h',
    319           'memory/discardable_memory.cc',
    320           'memory/discardable_memory.h',
    321           'memory/discardable_memory_android.cc',
    322           'memory/discardable_memory_emulated.cc',
    323           'memory/discardable_memory_emulated.h',
    324           'memory/discardable_memory_linux.cc',
    325           'memory/discardable_memory_mac.cc',
    326           'memory/discardable_memory_malloc.cc',
    327           'memory/discardable_memory_malloc.h',
    328           'memory/discardable_memory_manager.cc',
    329           'memory/discardable_memory_manager.h',
    330           'memory/discardable_memory_win.cc',
    331           'memory/linked_ptr.h',
    332           'memory/manual_constructor.h',
    333           'memory/memory_pressure_listener.cc',
    334           'memory/memory_pressure_listener.h',
    335           'memory/raw_scoped_refptr_mismatch_checker.h',
    336           'memory/ref_counted.cc',
    337           'memory/ref_counted.h',
    338           'memory/ref_counted_delete_on_message_loop.h',
    339           'memory/ref_counted_memory.cc',
    340           'memory/ref_counted_memory.h',
    341           'memory/scoped_open_process.h',
    342           'memory/scoped_policy.h',
    343           'memory/scoped_ptr.h',
    344           'memory/scoped_vector.h',
    345           'memory/shared_memory.h',
    346           'memory/shared_memory_android.cc',
    347           'memory/shared_memory_nacl.cc',
    348           'memory/shared_memory_posix.cc',
    349           'memory/shared_memory_win.cc',
    350           'memory/singleton.cc',
    351           'memory/singleton.h',
    352           'memory/weak_ptr.cc',
    353           'memory/weak_ptr.h',
    354           'message_loop/incoming_task_queue.cc',
    355           'message_loop/incoming_task_queue.h',
    356           'message_loop/message_loop.cc',
    357           'message_loop/message_loop.h',
    358           'message_loop/message_loop_proxy.cc',
    359           'message_loop/message_loop_proxy.h',
    360           'message_loop/message_loop_proxy_impl.cc',
    361           'message_loop/message_loop_proxy_impl.h',
    362           'message_loop/message_pump.cc',
    363           'message_loop/message_pump.h',
    364           'message_loop/message_pump_android.cc',
    365           'message_loop/message_pump_android.h',
    366           'message_loop/message_pump_default.cc',
    367           'message_loop/message_pump_default.h',
    368           'message_loop/message_pump_win.cc',
    369           'message_loop/message_pump_win.h',
    370           'message_loop/timer_slack.h',
    371           'metrics/sample_map.cc',
    372           'metrics/sample_map.h',
    373           'metrics/sample_vector.cc',
    374           'metrics/sample_vector.h',
    375           'metrics/bucket_ranges.cc',
    376           'metrics/bucket_ranges.h',
    377           'metrics/histogram.cc',
    378           'metrics/histogram.h',
    379           'metrics/histogram_base.cc',
    380           'metrics/histogram_base.h',
    381           'metrics/histogram_delta_serialization.cc',
    382           'metrics/histogram_delta_serialization.h',
    383           'metrics/histogram_flattener.h',
    384           'metrics/histogram_samples.cc',
    385           'metrics/histogram_samples.h',
    386           'metrics/histogram_snapshot_manager.cc',
    387           'metrics/histogram_snapshot_manager.h',
    388           'metrics/sparse_histogram.cc',
    389           'metrics/sparse_histogram.h',
    390           'metrics/statistics_recorder.cc',
    391           'metrics/statistics_recorder.h',
    392           'metrics/stats_counters.cc',
    393           'metrics/stats_counters.h',
    394           'metrics/stats_table.cc',
    395           'metrics/stats_table.h',
    396           'metrics/user_metrics.cc',
    397           'metrics/user_metrics.h',
    398           'metrics/user_metrics_action.h',
    399           'move.h',
    400           'native_library.h',
    401           'native_library_mac.mm',
    402           'native_library_posix.cc',
    403           'native_library_win.cc',
    404           'nix/mime_util_xdg.cc',
    405           'nix/mime_util_xdg.h',
    406           'nix/xdg_util.cc',
    407           'nix/xdg_util.h',
    408           'observer_list.h',
    409           'observer_list_threadsafe.h',
    410           'os_compat_android.cc',
    411           'os_compat_android.h',
    412           'os_compat_nacl.cc',
    413           'os_compat_nacl.h',
    414           'path_service.cc',
    415           'path_service.h',
    416           'pending_task.cc',
    417           'pending_task.h',
    418           'pickle.cc',
    419           'pickle.h',
    420           'platform_file.cc',
    421           'platform_file.h',
    422           'platform_file_posix.cc',
    423           'platform_file_win.cc',
    424           'port.h',
    425           'posix/eintr_wrapper.h',
    426           'posix/global_descriptors.cc',
    427           'posix/global_descriptors.h',
    428           'posix/unix_domain_socket_linux.cc',
    429           'posix/unix_domain_socket_linux.h',
    430           'power_monitor/power_monitor.cc',
    431           'power_monitor/power_monitor.h',
    432           'power_monitor/power_monitor_device_source_android.cc',
    433           'power_monitor/power_monitor_device_source_android.h',
    434           'power_monitor/power_monitor_device_source.cc',
    435           'power_monitor/power_monitor_device_source.h',
    436           'power_monitor/power_monitor_device_source_ios.mm',
    437           'power_monitor/power_monitor_device_source_mac.mm',
    438           'power_monitor/power_monitor_device_source_posix.cc',
    439           'power_monitor/power_monitor_device_source_win.cc',
    440           'power_monitor/power_monitor_source.cc',
    441           'power_monitor/power_monitor_source.h',
    442           'power_monitor/power_observer.h',
    443           'process/internal_linux.cc',
    444           'process/internal_linux.h',
    445           'process/kill.cc',
    446           'process/kill.h',
    447           'process/kill_mac.cc',
    448           'process/kill_posix.cc',
    449           'process/kill_win.cc',
    450           'process/launch.cc',
    451           'process/launch.h',
    452           'process/launch_ios.cc',
    453           'process/launch_mac.cc',
    454           'process/launch_posix.cc',
    455           'process/launch_win.cc',
    456           'process/memory.h',
    457           'process/memory.cc',
    458           'process/memory_linux.cc',
    459           'process/memory_mac.mm',
    460           'process/memory_win.cc',
    461           'process/process.h',
    462           'process/process_handle_freebsd.cc',
    463           'process/process_handle_linux.cc',
    464           'process/process_handle_mac.cc',
    465           'process/process_handle_openbsd.cc',
    466           'process/process_handle_posix.cc',
    467           'process/process_handle_win.cc',
    468           'process/process_info.h',
    469           'process/process_info_linux.cc',
    470           'process/process_info_mac.cc',
    471           'process/process_info_win.cc',
    472           'process/process_iterator.cc',
    473           'process/process_iterator.h',
    474           'process/process_iterator_freebsd.cc',
    475           'process/process_iterator_linux.cc',
    476           'process/process_iterator_mac.cc',
    477           'process/process_iterator_openbsd.cc',
    478           'process/process_iterator_win.cc',
    479           'process/process_linux.cc',
    480           'process/process_metrics.h',
    481           'process/process_metrics.cc',
    482           'process/process_metrics_freebsd.cc',
    483           'process/process_metrics_ios.cc',
    484           'process/process_metrics_linux.cc',
    485           'process/process_metrics_mac.cc',
    486           'process/process_metrics_openbsd.cc',
    487           'process/process_metrics_posix.cc',
    488           'process/process_metrics_win.cc',
    489           'process/process_posix.cc',
    490           'process/process_win.cc',
    491           'profiler/scoped_profile.cc',
    492           'profiler/scoped_profile.h',
    493           'profiler/alternate_timer.cc',
    494           'profiler/alternate_timer.h',
    495           'profiler/tracked_time.cc',
    496           'profiler/tracked_time.h',
    497           'rand_util.cc',
    498           'rand_util.h',
    499           'rand_util_nacl.cc',
    500           'rand_util_posix.cc',
    501           'rand_util_win.cc',
    502           'run_loop.cc',
    503           'run_loop.h',
    504           'numerics/safe_conversions.h',
    505           'numerics/safe_conversions_impl.h',
    506           'numerics/safe_math.h',
    507           'numerics/safe_math_impl.h',
    508           'safe_strerror_posix.cc',
    509           'safe_strerror_posix.h',
    510           'scoped_generic.h',
    511           'scoped_native_library.cc',
    512           'scoped_native_library.h',
    513           'sequence_checker.h',
    514           'sequence_checker_impl.cc',
    515           'sequence_checker_impl.h',
    516           'sequenced_task_runner.cc',
    517           'sequenced_task_runner.h',
    518           'sequenced_task_runner_helpers.h',
    519           'sha1.h',
    520           'sha1_portable.cc',
    521           'sha1_win.cc',
    522           'single_thread_task_runner.h',
    523           'stl_util.h',
    524           'strings/latin1_string_conversions.cc',
    525           'strings/latin1_string_conversions.h',
    526           'strings/nullable_string16.cc',
    527           'strings/nullable_string16.h',
    528           'strings/safe_sprintf.cc',
    529           'strings/safe_sprintf.h',
    530           'strings/string16.cc',
    531           'strings/string16.h',
    532           'strings/string_number_conversions.cc',
    533           'strings/string_split.cc',
    534           'strings/string_split.h',
    535           'strings/string_number_conversions.h',
    536           'strings/string_piece.cc',
    537           'strings/string_piece.h',
    538           'strings/string_tokenizer.h',
    539           'strings/string_util.cc',
    540           'strings/string_util.h',
    541           'strings/string_util_constants.cc',
    542           'strings/string_util_posix.h',
    543           'strings/string_util_win.h',
    544           'strings/stringize_macros.h',
    545           'strings/stringprintf.cc',
    546           'strings/stringprintf.h',
    547           'strings/sys_string_conversions.h',
    548           'strings/sys_string_conversions_mac.mm',
    549           'strings/sys_string_conversions_posix.cc',
    550           'strings/sys_string_conversions_win.cc',
    551           'strings/utf_offset_string_conversions.cc',
    552           'strings/utf_offset_string_conversions.h',
    553           'strings/utf_string_conversion_utils.cc',
    554           'strings/utf_string_conversion_utils.h',
    555           'strings/utf_string_conversions.cc',
    556           'strings/utf_string_conversions.h',
    557           'supports_user_data.cc',
    558           'supports_user_data.h',
    559           'synchronization/cancellation_flag.cc',
    560           'synchronization/cancellation_flag.h',
    561           'synchronization/condition_variable.h',
    562           'synchronization/condition_variable_posix.cc',
    563           'synchronization/condition_variable_win.cc',
    564           'synchronization/lock.cc',
    565           'synchronization/lock.h',
    566           'synchronization/lock_impl.h',
    567           'synchronization/lock_impl_posix.cc',
    568           'synchronization/lock_impl_win.cc',
    569           'synchronization/spin_wait.h',
    570           'synchronization/waitable_event.h',
    571           'synchronization/waitable_event_posix.cc',
    572           'synchronization/waitable_event_watcher.h',
    573           'synchronization/waitable_event_watcher_posix.cc',
    574           'synchronization/waitable_event_watcher_win.cc',
    575           'synchronization/waitable_event_win.cc',
    576           'system_monitor/system_monitor.cc',
    577           'system_monitor/system_monitor.h',
    578           'sys_byteorder.h',
    579           'sys_info.cc',
    580           'sys_info.h',
    581           'sys_info_android.cc',
    582           'sys_info_chromeos.cc',
    583           'sys_info_freebsd.cc',
    584           'sys_info_internal.h',
    585           'sys_info_ios.mm',
    586           'sys_info_linux.cc',
    587           'sys_info_mac.cc',
    588           'sys_info_openbsd.cc',
    589           'sys_info_posix.cc',
    590           'sys_info_win.cc',
    591           'task/cancelable_task_tracker.cc',
    592           'task/cancelable_task_tracker.h',
    593           'task_runner.cc',
    594           'task_runner.h',
    595           'task_runner_util.h',
    596           'template_util.h',
    597           'thread_task_runner_handle.cc',
    598           'thread_task_runner_handle.h',
    599           'threading/non_thread_safe.h',
    600           'threading/non_thread_safe_impl.cc',
    601           'threading/non_thread_safe_impl.h',
    602           'threading/platform_thread.h',
    603           'threading/platform_thread_android.cc',
    604           'threading/platform_thread_linux.cc',
    605           'threading/platform_thread_mac.mm',
    606           'threading/platform_thread_posix.cc',
    607           'threading/platform_thread_win.cc',
    608           'threading/post_task_and_reply_impl.cc',
    609           'threading/post_task_and_reply_impl.h',
    610           'threading/sequenced_worker_pool.cc',
    611           'threading/sequenced_worker_pool.h',
    612           'threading/simple_thread.cc',
    613           'threading/simple_thread.h',
    614           'threading/thread.cc',
    615           'threading/thread.h',
    616           'threading/thread_checker.h',
    617           'threading/thread_checker_impl.cc',
    618           'threading/thread_checker_impl.h',
    619           'threading/thread_collision_warner.cc',
    620           'threading/thread_collision_warner.h',
    621           'threading/thread_id_name_manager.cc',
    622           'threading/thread_id_name_manager.h',
    623           'threading/thread_local.h',
    624           'threading/thread_local_android.cc',
    625           'threading/thread_local_posix.cc',
    626           'threading/thread_local_storage.cc',
    627           'threading/thread_local_storage.h',
    628           'threading/thread_local_storage_posix.cc',
    629           'threading/thread_local_storage_win.cc',
    630           'threading/thread_local_win.cc',
    631           'threading/thread_restrictions.h',
    632           'threading/thread_restrictions.cc',
    633           'threading/watchdog.cc',
    634           'threading/watchdog.h',
    635           'threading/worker_pool.h',
    636           'threading/worker_pool.cc',
    637           'threading/worker_pool_posix.cc',
    638           'threading/worker_pool_posix.h',
    639           'threading/worker_pool_win.cc',
    640           'time/clock.cc',
    641           'time/clock.h',
    642           'time/default_clock.cc',
    643           'time/default_clock.h',
    644           'time/default_tick_clock.cc',
    645           'time/default_tick_clock.h',
    646           'time/tick_clock.cc',
    647           'time/tick_clock.h',
    648           'time/time.cc',
    649           'time/time.h',
    650           'time/time_mac.cc',
    651           'time/time_posix.cc',
    652           'time/time_win.cc',
    653           'timer/elapsed_timer.cc',
    654           'timer/elapsed_timer.h',
    655           'timer/hi_res_timer_manager.h',
    656           'timer/hi_res_timer_manager_posix.cc',
    657           'timer/hi_res_timer_manager_win.cc',
    658           'timer/mock_timer.cc',
    659           'timer/mock_timer.h',
    660           'timer/timer.cc',
    661           'timer/timer.h',
    662           'tracked_objects.cc',
    663           'tracked_objects.h',
    664           'tracking_info.cc',
    665           'tracking_info.h',
    666           'tuple.h',
    667           'values.cc',
    668           'values.h',
    669           'value_conversions.cc',
    670           'value_conversions.h',
    671           'version.cc',
    672           'version.h',
    673           'vlog.cc',
    674           'vlog.h',
    675           'win/enum_variant.cc',
    676           'win/enum_variant.h',
    677           'win/event_trace_consumer.h',
    678           'win/event_trace_controller.cc',
    679           'win/event_trace_controller.h',
    680           'win/event_trace_provider.cc',
    681           'win/event_trace_provider.h',
    682           'win/i18n.cc',
    683           'win/i18n.h',
    684           'win/iat_patch_function.cc',
    685           'win/iat_patch_function.h',
    686           'win/iunknown_impl.cc',
    687           'win/iunknown_impl.h',
    688           'win/message_window.cc',
    689           'win/message_window.h',
    690           'win/metro.cc',
    691           'win/metro.h',
    692           'win/object_watcher.cc',
    693           'win/object_watcher.h',
    694           'win/registry.cc',
    695           'win/registry.h',
    696           'win/resource_util.cc',
    697           'win/resource_util.h',
    698           'win/scoped_bstr.cc',
    699           'win/scoped_bstr.h',
    700           'win/scoped_co_mem.h',
    701           'win/scoped_com_initializer.h',
    702           'win/scoped_comptr.h',
    703           'win/scoped_gdi_object.h',
    704           'win/scoped_handle.cc',
    705           'win/scoped_handle.h',
    706           'win/scoped_hdc.h',
    707           'win/scoped_hglobal.h',
    708           'win/scoped_process_information.cc',
    709           'win/scoped_process_information.h',
    710           'win/scoped_propvariant.h',
    711           'win/scoped_select_object.h',
    712           'win/scoped_variant.cc',
    713           'win/scoped_variant.h',
    714           'win/shortcut.cc',
    715           'win/shortcut.h',
    716           'win/startup_information.cc',
    717           'win/startup_information.h',
    718           'win/win_util.cc',
    719           'win/win_util.h',
    720           'win/windows_version.cc',
    721           'win/windows_version.h',
    722           'win/wrapped_window_proc.cc',
    723           'win/wrapped_window_proc.h',
    724         ],
    725         'defines': [
    726           'BASE_IMPLEMENTATION',
    727         ],
    728         'include_dirs': [
    729           '..',
    730         ],
    731         'msvs_disabled_warnings': [
    732           4018,
    733         ],
    734         'target_conditions': [
    735           ['(<(desktop_linux) == 0 and <(chromeos) == 0) or >(nacl_untrusted_build)==1', {
    736               'sources/': [
    737                 ['exclude', '^nix/'],
    738               ],
    739               'sources!': [
    740                 'atomicops_internals_x86_gcc.cc',
    741               ],
    742           }],
    743           ['<(use_glib)==0 or >(nacl_untrusted_build)==1', {
    744               'sources!': [
    745                 'message_loop/message_pump_glib.cc',
    746               ],
    747           }],
    748           ['(OS != "linux" and <(os_bsd) != 1 and OS != "android") or >(nacl_untrusted_build)==1', {
    749               'sources!': [
    750                 # Not automatically excluded by the *linux.cc rules.
    751                 'linux_util.cc',
    752               ],
    753             },
    754           ],
    755           ['>(nacl_untrusted_build)==1', {
    756             'sources!': [
    757                'allocator/type_profiler_control.cc',
    758                'allocator/type_profiler_control.h',
    759                'base_paths.cc',
    760                'cpu.cc',
    761                'debug/stack_trace_posix.cc',
    762                'file_util.cc',
    763                'file_util_posix.cc',
    764                'files/file_enumerator_posix.cc',
    765                'files/file_path_watcher_fsevents.cc',
    766                'files/file_path_watcher_fsevents.h',
    767                'files/file_path_watcher_kqueue.cc',
    768                'files/file_path_watcher_kqueue.h',
    769                'files/file_proxy.cc',
    770                'files/file_util_proxy.cc',
    771                'memory/shared_memory_posix.cc',
    772                'native_library_posix.cc',
    773                'path_service.cc',
    774                'posix/unix_domain_socket_linux.cc',
    775                'process/kill_posix.cc',
    776                'process/launch_posix.cc',
    777                'process/process_metrics_posix.cc',
    778                'process/process_posix.cc',
    779                'rand_util_posix.cc',
    780                'scoped_native_library.cc',
    781                'files/scoped_temp_dir.cc',
    782                'sys_info_posix.cc',
    783                'third_party/dynamic_annotations/dynamic_annotations.c',
    784             ],
    785             'sources/': [
    786               ['include', '^threading/platform_thread_linux\\.cc$'],
    787             ],
    788           }],
    789           ['OS == "android" and _toolset == "target" and >(nacl_untrusted_build)==0', {
    790            'sources': [
    791              'memory/discardable_memory_ashmem_allocator.cc',
    792              'memory/discardable_memory_ashmem_allocator.h',
    793              'memory/discardable_memory_ashmem.cc',
    794              'memory/discardable_memory_ashmem.h',
    795            ],
    796           }],
    797           ['OS == "android" and >(nacl_untrusted_build)==0', {
    798             'sources!': [
    799               'base_paths_posix.cc',
    800               'files/file_path_watcher_fsevents.cc',
    801               'files/file_path_watcher_fsevents.h',
    802               'files/file_path_watcher_kqueue.cc',
    803               'files/file_path_watcher_kqueue.h',
    804               'files/file_path_watcher_stub.cc',
    805               'power_monitor/power_monitor_device_source_posix.cc',
    806             ],
    807             'sources/': [
    808               ['include', '^debug/proc_maps_linux\\.cc$'],
    809               ['include', '^files/file_path_watcher_linux\\.cc$'],
    810               ['include', '^process/memory_linux\\.cc$'],
    811               ['include', '^process/internal_linux\\.cc$'],
    812               ['include', '^process/process_handle_linux\\.cc$'],
    813               ['include', '^process/process_iterator\\.cc$'],
    814               ['include', '^process/process_iterator_linux\\.cc$'],
    815               ['include', '^process/process_metrics_linux\\.cc$'],
    816               ['include', '^posix/unix_domain_socket_linux\\.cc$'],
    817               ['include', '^strings/sys_string_conversions_posix\\.cc$'],
    818               ['include', '^sys_info_linux\\.cc$'],
    819               ['include', '^worker_pool_linux\\.cc$'],
    820             ],
    821           }],
    822           ['OS == "android" and _toolset == "host" and host_os == "linux"', {
    823             'defines': [
    824               'OS_ANDROID_HOST=Linux',
    825             ],
    826             'sources/': [
    827               # Pull in specific files for host builds.
    828               ['include', '^atomicops_internals_x86_gcc\\.cc$'],
    829               ['include', '^threading/platform_thread_linux\\.cc$'],
    830             ],
    831           }],
    832           ['OS == "android" and <(android_webview_build)==1', {
    833             'defines': [
    834                # WebView builds as part of the system which already has sincos;
    835                # avoid defining it again as it causes a linker warning.
    836                'ANDROID_SINCOS_PROVIDED',
    837             ],
    838           }],
    839           ['OS == "ios" and _toolset != "host"', {
    840             'sources/': [
    841               # Pull in specific Mac files for iOS (which have been filtered out
    842               # by file name rules).
    843               ['include', '^atomicops_internals_mac\\.'],
    844               ['include', '^base_paths_mac\\.'],
    845               ['include', '^file_util_mac\\.'],
    846               ['include', '^file_version_info_mac\\.'],
    847               ['include', '^mac/bundle_locations\\.'],
    848               ['include', '^mac/foundation_util\\.'],
    849               ['include', '^mac/mac_logging\\.'],
    850               ['include', '^mac/mach_logging\\.'],
    851               ['include', '^mac/objc_property_releaser\\.'],
    852               ['include', '^mac/scoped_mach_port\\.'],
    853               ['include', '^mac/scoped_mach_vm\\.'],
    854               ['include', '^mac/scoped_nsautorelease_pool\\.'],
    855               ['include', '^mac/scoped_nsobject\\.'],
    856               ['include', '^memory/discardable_memory_mac\\.'],
    857               ['include', '^message_loop/message_pump_mac\\.'],
    858               ['include', '^strings/sys_string_conversions_mac\\.'],
    859               ['include', '^threading/platform_thread_mac\\.'],
    860               ['include', '^time/time_mac\\.'],
    861               ['include', '^worker_pool_mac\\.'],
    862               # Exclude all process/ except the minimal implementation
    863               # needed on iOS (mostly for unit tests).
    864               ['exclude', '^process/.*'],
    865               ['include', '^process/.*_ios\.(cc|mm)$'],
    866               ['include', '^process/memory_stubs\.cc$'],
    867               ['include', '^process/process_handle_posix\.cc$'],
    868               ['exclude', 'files/file_path_watcher_fsevents.cc'],
    869               ['exclude', 'files/file_path_watcher_fsevents.h'],
    870               ['include', 'files/file_path_watcher_mac.cc'],
    871             ],
    872             'sources': [
    873               'process/memory_stubs.cc',
    874             ],
    875             'sources!': [
    876               'message_loop/message_pump_libevent.cc'
    877             ],
    878           }],
    879           ['OS == "ios" and _toolset == "host"', {
    880             'sources/': [
    881               # Copied filename_rules to switch from iOS to Mac inclusions.
    882               ['include', '_(cocoa|mac)(_unittest)?\\.(h|cc|mm?)$'],
    883               ['include', '(^|/)(cocoa|mac)/'],
    884               ['exclude', '_ios(_unittest)?\\.(h|cc|mm?)$'],
    885               ['exclude', '(^|/)ios/'],
    886               ['exclude', 'files/file_path_watcher_fsevents.cc'],
    887               ['exclude', 'files/file_path_watcher_fsevents.h'],
    888               ['include', 'files/file_path_watcher_mac.cc'],
    889             ]
    890           }],
    891           # For now, just test the *BSD platforms enough to exclude them.
    892           # Subsequent changes will include them further.
    893           ['OS != "freebsd" or >(nacl_untrusted_build)==1', {
    894               'sources/': [ ['exclude', '_freebsd\\.cc$'] ],
    895             },
    896           ],
    897           ['OS != "openbsd" or >(nacl_untrusted_build)==1', {
    898               'sources/': [ ['exclude', '_openbsd\\.cc$'] ],
    899             },
    900           ],
    901           ['OS == "win" and >(nacl_untrusted_build)==0', {
    902             'include_dirs': [
    903               '<(DEPTH)/third_party/wtl/include',
    904             ],
    905             'sources!': [
    906               'event_recorder_stubs.cc',
    907               'files/file_path_watcher_fsevents.cc',
    908               'files/file_path_watcher_fsevents.h',
    909               'files/file_path_watcher_kqueue.cc',
    910               'files/file_path_watcher_kqueue.h',
    911               'files/file_path_watcher_stub.cc',
    912               'message_loop/message_pump_libevent.cc',
    913               'posix/file_descriptor_shuffle.cc',
    914               # Not using sha1_win.cc because it may have caused a
    915               # regression to page cycler moz.
    916               'sha1_win.cc',
    917               'strings/string16.cc',
    918             ],
    919           },],
    920           ['<(use_ozone) == 1', {
    921             'sources!': [
    922               'message_loop/message_pump_glib.cc',
    923             ]
    924           }],
    925           ['OS == "linux" and >(nacl_untrusted_build)==0', {
    926             'sources!': [
    927               'files/file_path_watcher_fsevents.cc',
    928               'files/file_path_watcher_fsevents.h',
    929               'files/file_path_watcher_kqueue.cc',
    930               'files/file_path_watcher_kqueue.h',
    931               'files/file_path_watcher_stub.cc',
    932             ],
    933           }],
    934           ['(OS == "mac" or OS == "ios") and >(nacl_untrusted_build)==0', {
    935             'sources/': [
    936               ['exclude', '^files/file_path_watcher_stub\\.cc$'],
    937               ['exclude', '^base_paths_posix\\.cc$'],
    938               ['exclude', '^native_library_posix\\.cc$'],
    939               ['exclude', '^strings/sys_string_conversions_posix\\.cc$'],
    940             ],
    941           }],
    942           ['<(os_bsd)==1 and >(nacl_untrusted_build)==0', {
    943             'sources': [
    944               'process/memory_stubs.cc',
    945             ],
    946             'sources/': [
    947               ['exclude', '^files/file_path_watcher_linux\\.cc$'],
    948               ['exclude', '^files/file_path_watcher_stub\\.cc$'],
    949               ['exclude', '^file_util_linux\\.cc$'],
    950               ['exclude', '^process/process_linux\\.cc$'],
    951               ['exclude', '^sys_info_linux\\.cc$'],
    952             ],
    953           }],
    954           # Remove all unnecessary files for build_nexe.py to avoid exceeding
    955           # command-line-string limitation when building NaCl on Windows.
    956           ['OS == "win" and >(nacl_untrusted_build)==1', {
    957               'sources/': [ ['exclude', '\\.h$'] ],
    958           }],
    959         ],
    960       }],
    961       ['base_i18n_target==1', {
    962         'defines': [
    963           'BASE_I18N_IMPLEMENTATION',
    964         ],
    965         'sources': [
    966           'i18n/base_i18n_export.h',
    967           'i18n/bidi_line_iterator.cc',
    968           'i18n/bidi_line_iterator.h',
    969           'i18n/break_iterator.cc',
    970           'i18n/break_iterator.h',
    971           'i18n/case_conversion.cc',
    972           'i18n/case_conversion.h',
    973           'i18n/char_iterator.cc',
    974           'i18n/char_iterator.h',
    975           'i18n/file_util_icu.cc',
    976           'i18n/file_util_icu.h',
    977           'i18n/i18n_constants.cc',
    978           'i18n/i18n_constants.h',
    979           'i18n/icu_encoding_detection.cc',
    980           'i18n/icu_encoding_detection.h',
    981           'i18n/icu_string_conversions.cc',
    982           'i18n/icu_string_conversions.h',
    983           'i18n/icu_util.cc',
    984           'i18n/icu_util.h',
    985           'i18n/number_formatting.cc',
    986           'i18n/number_formatting.h',
    987           'i18n/rtl.cc',
    988           'i18n/rtl.h',
    989           'i18n/streaming_utf8_validator.cc',
    990           'i18n/streaming_utf8_validator.h',
    991           'i18n/string_compare.cc',
    992           'i18n/string_compare.h',
    993           'i18n/string_search.cc',
    994           'i18n/string_search.h',
    995           'i18n/time_formatting.cc',
    996           'i18n/time_formatting.h',
    997           'i18n/timezone.cc',
    998           'i18n/timezone.h',
    999           'i18n/utf8_validator_tables.cc',
   1000           'i18n/utf8_validator_tables.h',
   1001         ],
   1002       }]
   1003     ],
   1004   },
   1005 }
   1006