# Copyright 2018 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. config("base_config") { cflags_cc = [] cflags_objcc = [] if (is_gcc) { cflags_cc += [ "-Wno-format-truncation", "-Wno-class-memaccess", ] } if (is_clang) { cflags_cc += [ "-Wno-c++11-narrowing" ] cflags = [ "-Wno-c++98-compat-extra-semi", "-Wno-extra-semi", "-Wno-deprecated-declarations", ] if (is_mac) { # Necessary since trybots have an old version of clang. cflags += [ "-Wno-unknown-warning-option" ] } } configs = [ "//third_party/chromium_quic:chromium_quic_config" ] # Point libevent modules at the platform-specific configuration. This is # defined here so that src/base code that includes the headers also processes # the correct set. defines = [ "HAVE_CONFIG_H" ] if (is_linux) { include_dirs = [ "../../src/base/third_party/libevent/linux" ] } else if (is_mac) { include_dirs = [ "../../src/base/third_party/libevent/mac" ] } } source_set("base") { defines = [] sources = [ "../../src/base/allocator/allocator_extension.cc", "../../src/base/allocator/allocator_extension.h", "../../src/base/allocator/allocator_shim.h", "../../src/base/at_exit.cc", "../../src/base/at_exit.h", "../../src/base/atomic_ref_count.h", "../../src/base/atomic_sequence_num.h", "../../src/base/atomicops.h", "../../src/base/atomicops_internals_portable.h", "../../src/base/auto_reset.h", "../../src/base/base64.cc", "../../src/base/base64.h", "../../src/base/base_export.h", "../../src/base/base_paths.cc", "../../src/base/base_paths.h", "../../src/base/base_switches.cc", "../../src/base/base_switches.h", "../../src/base/bind.h", "../../src/base/bind_helpers.h", "../../src/base/bind_internal.h", "../../src/base/bit_cast.h", "../../src/base/bits.h", "../../src/base/build_time.cc", "../../src/base/build_time.h", "../../src/base/callback.h", "../../src/base/callback_forward.h", "../../src/base/callback_helpers.cc", "../../src/base/callback_helpers.h", "../../src/base/callback_internal.cc", "../../src/base/callback_internal.h", "../../src/base/cancelable_callback.h", "../../src/base/command_line.cc", "../../src/base/command_line.h", "../../src/base/compiler_specific.h", "../../src/base/containers/adapters.h", "../../src/base/containers/circular_deque.h", "../../src/base/containers/flat_map.h", "../../src/base/containers/flat_set.h", "../../src/base/containers/flat_tree.h", "../../src/base/containers/hash_tables.h", "../../src/base/containers/linked_list.h", "../../src/base/containers/mru_cache.h", "../../src/base/containers/queue.h", "../../src/base/containers/small_map.h", "../../src/base/containers/span.h", "../../src/base/containers/stack.h", "../../src/base/containers/stack_container.h", "../../src/base/containers/vector_buffer.h", "../../src/base/critical_closure.h", "../../src/base/debug/activity_tracker.cc", "../../src/base/debug/activity_tracker.h", "../../src/base/debug/alias.cc", "../../src/base/debug/alias.h", "../../src/base/debug/crash_logging.cc", "../../src/base/debug/crash_logging.h", "../../src/base/debug/debugger.cc", "../../src/base/debug/debugger.h", "../../src/base/debug/leak_annotations.h", "../../src/base/debug/profiler.cc", "../../src/base/debug/profiler.h", "../../src/base/debug/stack_trace.cc", "../../src/base/debug/stack_trace.h", "../../src/base/debug/task_annotator.cc", "../../src/base/debug/task_annotator.h", "../../src/base/debug/thread_heap_usage_tracker.cc", "../../src/base/debug/thread_heap_usage_tracker.h", "../../src/base/environment.cc", "../../src/base/environment.h", "../../src/base/export_template.h", "../../src/base/feature_list.cc", "../../src/base/feature_list.h", "../../src/base/files/file.cc", "../../src/base/files/file.h", "../../src/base/files/file_enumerator.cc", "../../src/base/files/file_enumerator.h", "../../src/base/files/file_path.cc", "../../src/base/files/file_path.h", "../../src/base/files/file_path_constants.cc", "../../src/base/files/file_tracing.cc", "../../src/base/files/file_tracing.h", "../../src/base/files/file_util.cc", "../../src/base/files/file_util.h", "../../src/base/files/important_file_writer.cc", "../../src/base/files/important_file_writer.h", "../../src/base/files/memory_mapped_file.cc", "../../src/base/files/memory_mapped_file.h", "../../src/base/files/platform_file.h", "../../src/base/files/scoped_file.cc", "../../src/base/files/scoped_file.h", "../../src/base/format_macros.h", "../../src/base/gtest_prod_util.h", "../../src/base/hash.cc", "../../src/base/hash.h", "../../src/base/json/json_parser.cc", "../../src/base/json/json_parser.h", "../../src/base/json/json_reader.cc", "../../src/base/json/json_reader.h", "../../src/base/json/json_string_value_serializer.cc", "../../src/base/json/json_string_value_serializer.h", "../../src/base/json/json_writer.cc", "../../src/base/json/json_writer.h", "../../src/base/json/string_escape.cc", "../../src/base/json/string_escape.h", "../../src/base/lazy_instance.h", "../../src/base/lazy_instance_helpers.cc", "../../src/base/lazy_instance_helpers.h", "../../src/base/location.cc", "../../src/base/location.h", "../../src/base/logging.cc", "../../src/base/logging.h", "../../src/base/macros.h", "../../src/base/md5.cc", "../../src/base/md5.h", "../../src/base/memory/free_deleter.h", "../../src/base/memory/platform_shared_memory_region.cc", "../../src/base/memory/platform_shared_memory_region.h", "../../src/base/memory/ptr_util.h", "../../src/base/memory/raw_scoped_refptr_mismatch_checker.h", "../../src/base/memory/read_only_shared_memory_region.cc", "../../src/base/memory/read_only_shared_memory_region.h", "../../src/base/memory/ref_counted.cc", "../../src/base/memory/ref_counted.h", "../../src/base/memory/ref_counted_memory.cc", "../../src/base/memory/ref_counted_memory.h", "../../src/base/memory/scoped_refptr.h", "../../src/base/memory/shared_memory.h", "../../src/base/memory/shared_memory_handle.cc", "../../src/base/memory/shared_memory_handle.h", "../../src/base/memory/shared_memory_helper.cc", "../../src/base/memory/shared_memory_helper.h", "../../src/base/memory/shared_memory_mapping.cc", "../../src/base/memory/shared_memory_mapping.h", "../../src/base/memory/shared_memory_tracker.cc", "../../src/base/memory/shared_memory_tracker.h", "../../src/base/memory/singleton.h", "../../src/base/memory/weak_ptr.cc", "../../src/base/memory/weak_ptr.h", "../../src/base/message_loop/message_loop.cc", "../../src/base/message_loop/message_loop.h", "../../src/base/message_loop/message_loop_current.cc", "../../src/base/message_loop/message_loop_current.h", "../../src/base/message_loop/message_loop_task_runner.cc", "../../src/base/message_loop/message_loop_task_runner.h", "../../src/base/message_loop/message_pump.cc", "../../src/base/message_loop/message_pump.h", "../../src/base/message_loop/message_pump_default.cc", "../../src/base/message_loop/message_pump_default.h", "../../src/base/message_loop/message_pump_for_io.h", "../../src/base/message_loop/message_pump_for_ui.h", "../../src/base/message_loop/message_pump_libevent.cc", "../../src/base/message_loop/message_pump_libevent.h", "../../src/base/message_loop/pending_task_queue.cc", "../../src/base/message_loop/pending_task_queue.h", "../../src/base/message_loop/sequenced_task_source.h", "../../src/base/message_loop/timer_slack.h", "../../src/base/metrics/bucket_ranges.cc", "../../src/base/metrics/bucket_ranges.h", "../../src/base/metrics/dummy_histogram.cc", "../../src/base/metrics/dummy_histogram.h", "../../src/base/metrics/field_trial.cc", "../../src/base/metrics/field_trial.h", "../../src/base/metrics/field_trial_param_associator.cc", "../../src/base/metrics/field_trial_param_associator.h", "../../src/base/metrics/field_trial_params.cc", "../../src/base/metrics/field_trial_params.h", "../../src/base/metrics/histogram.cc", "../../src/base/metrics/histogram.h", "../../src/base/metrics/histogram_base.cc", "../../src/base/metrics/histogram_base.h", "../../src/base/metrics/histogram_flattener.h", "../../src/base/metrics/histogram_functions.cc", "../../src/base/metrics/histogram_functions.h", "../../src/base/metrics/histogram_macros.h", "../../src/base/metrics/histogram_macros_internal.h", "../../src/base/metrics/histogram_macros_local.h", "../../src/base/metrics/histogram_samples.cc", "../../src/base/metrics/histogram_samples.h", "../../src/base/metrics/histogram_snapshot_manager.cc", "../../src/base/metrics/histogram_snapshot_manager.h", "../../src/base/metrics/metrics_hashes.cc", "../../src/base/metrics/metrics_hashes.h", "../../src/base/metrics/persistent_histogram_allocator.cc", "../../src/base/metrics/persistent_histogram_allocator.h", "../../src/base/metrics/persistent_memory_allocator.cc", "../../src/base/metrics/persistent_memory_allocator.h", "../../src/base/metrics/persistent_sample_map.cc", "../../src/base/metrics/persistent_sample_map.h", "../../src/base/metrics/record_histogram_checker.h", "../../src/base/metrics/sample_map.cc", "../../src/base/metrics/sample_map.h", "../../src/base/metrics/sample_vector.cc", "../../src/base/metrics/sample_vector.h", "../../src/base/metrics/sparse_histogram.cc", "../../src/base/metrics/sparse_histogram.h", "../../src/base/metrics/statistics_recorder.cc", "../../src/base/metrics/statistics_recorder.h", "../../src/base/nix/xdg_util.cc", "../../src/base/nix/xdg_util.h", "../../src/base/no_destructor.h", "../../src/base/numerics/checked_math.h", "../../src/base/numerics/checked_math_impl.h", "../../src/base/numerics/clamped_math.h", "../../src/base/numerics/clamped_math_impl.h", "../../src/base/numerics/safe_conversions.h", "../../src/base/numerics/safe_conversions_impl.h", "../../src/base/numerics/safe_math.h", "../../src/base/numerics/safe_math_clang_gcc_impl.h", "../../src/base/numerics/safe_math_shared_impl.h", "../../src/base/observer_list.h", "../../src/base/observer_list_threadsafe.cc", "../../src/base/observer_list_threadsafe.h", "../../src/base/optional.h", "../../src/base/path_service.cc", "../../src/base/path_service.h", "../../src/base/pending_task.cc", "../../src/base/pending_task.h", "../../src/base/pickle.cc", "../../src/base/pickle.h", "../../src/base/posix/eintr_wrapper.h", "../../src/base/posix/file_descriptor_shuffle.cc", "../../src/base/posix/file_descriptor_shuffle.h", "../../src/base/posix/global_descriptors.cc", "../../src/base/posix/global_descriptors.h", "../../src/base/posix/safe_strerror.cc", "../../src/base/posix/safe_strerror.h", "../../src/base/post_task_and_reply_with_result_internal.h", "../../src/base/process/kill.cc", "../../src/base/process/kill.h", "../../src/base/process/launch.cc", "../../src/base/process/launch.h", "../../src/base/process/memory.cc", "../../src/base/process/memory.h", "../../src/base/process/process.h", "../../src/base/process/process_handle.cc", "../../src/base/process/process_handle.h", "../../src/base/process/process_info.h", "../../src/base/process/process_iterator.cc", "../../src/base/process/process_iterator.h", "../../src/base/process/process_metrics.cc", "../../src/base/process/process_metrics.h", "../../src/base/process/process_metrics_iocounters.h", "../../src/base/rand_util.cc", "../../src/base/rand_util.h", "../../src/base/run_loop.cc", "../../src/base/run_loop.h", "../../src/base/scoped_clear_errno.h", "../../src/base/scoped_generic.h", "../../src/base/sequence_checker.h", "../../src/base/sequence_checker_impl.cc", "../../src/base/sequence_checker_impl.h", "../../src/base/sequence_token.cc", "../../src/base/sequence_token.h", "../../src/base/sequenced_task_runner.cc", "../../src/base/sequenced_task_runner.h", "../../src/base/sequenced_task_runner_helpers.h", "../../src/base/sha1.cc", "../../src/base/sha1.h", "../../src/base/single_thread_task_runner.h", "../../src/base/stl_util.h", "../../src/base/strings/char_traits.h", "../../src/base/strings/pattern.cc", "../../src/base/strings/pattern.h", "../../src/base/strings/string16.cc", "../../src/base/strings/string16.h", "../../src/base/strings/string_number_conversions.cc", "../../src/base/strings/string_number_conversions.h", "../../src/base/strings/string_piece.cc", "../../src/base/strings/string_piece.h", "../../src/base/strings/string_piece_forward.h", "../../src/base/strings/string_split.cc", "../../src/base/strings/string_split.h", "../../src/base/strings/string_tokenizer.h", "../../src/base/strings/string_util.cc", "../../src/base/strings/string_util.h", "../../src/base/strings/string_util_constants.cc", "../../src/base/strings/stringprintf.cc", "../../src/base/strings/stringprintf.h", "../../src/base/strings/sys_string_conversions.h", "../../src/base/strings/utf_offset_string_conversions.cc", "../../src/base/strings/utf_offset_string_conversions.h", "../../src/base/strings/utf_string_conversion_utils.cc", "../../src/base/strings/utf_string_conversion_utils.h", "../../src/base/strings/utf_string_conversions.cc", "../../src/base/strings/utf_string_conversions.h", "../../src/base/synchronization/atomic_flag.cc", "../../src/base/synchronization/atomic_flag.h", "../../src/base/synchronization/condition_variable.h", "../../src/base/synchronization/lock.cc", "../../src/base/synchronization/lock.h", "../../src/base/synchronization/lock_impl.h", "../../src/base/synchronization/waitable_event.h", "../../src/base/sys_byteorder.h", "../../src/base/sys_info.cc", "../../src/base/sys_info.h", "../../src/base/sys_info_internal.h", "../../src/base/task/post_task.cc", "../../src/base/task/post_task.h", "../../src/base/task/scoped_set_task_priority_for_current_thread.cc", "../../src/base/task/scoped_set_task_priority_for_current_thread.h", "../../src/base/task/sequence_manager/associated_thread_id.h", "../../src/base/task/sequence_manager/enqueue_order.cc", "../../src/base/task/sequence_manager/enqueue_order.h", "../../src/base/task/sequence_manager/graceful_queue_shutdown_helper.cc", "../../src/base/task/sequence_manager/graceful_queue_shutdown_helper.h", "../../src/base/task/sequence_manager/intrusive_heap.h", "../../src/base/task/sequence_manager/lazily_deallocated_deque.h", "../../src/base/task/sequence_manager/lazy_now.cc", "../../src/base/task/sequence_manager/lazy_now.h", "../../src/base/task/sequence_manager/moveable_auto_lock.h", "../../src/base/task/sequence_manager/real_time_domain.cc", "../../src/base/task/sequence_manager/real_time_domain.h", "../../src/base/task/sequence_manager/sequence_manager.cc", "../../src/base/task/sequence_manager/sequence_manager.h", "../../src/base/task/sequence_manager/sequence_manager_impl.cc", "../../src/base/task/sequence_manager/sequence_manager_impl.h", "../../src/base/task/sequence_manager/sequenced_task_source.h", "../../src/base/task/sequence_manager/task_queue.cc", "../../src/base/task/sequence_manager/task_queue.h", "../../src/base/task/sequence_manager/task_queue_impl.cc", "../../src/base/task/sequence_manager/task_queue_impl.h", "../../src/base/task/sequence_manager/task_queue_selector.cc", "../../src/base/task/sequence_manager/task_queue_selector.h", "../../src/base/task/sequence_manager/task_queue_selector_logic.h", "../../src/base/task/sequence_manager/task_queue_task_runner.cc", "../../src/base/task/sequence_manager/task_queue_task_runner.h", "../../src/base/task/sequence_manager/task_time_observer.h", "../../src/base/task/sequence_manager/thread_controller.h", "../../src/base/task/sequence_manager/thread_controller_impl.cc", "../../src/base/task/sequence_manager/thread_controller_impl.h", "../../src/base/task/sequence_manager/time_domain.cc", "../../src/base/task/sequence_manager/time_domain.h", "../../src/base/task/sequence_manager/work_queue.cc", "../../src/base/task/sequence_manager/work_queue.h", "../../src/base/task/sequence_manager/work_queue_sets.cc", "../../src/base/task/sequence_manager/work_queue_sets.h", "../../src/base/task/single_thread_task_runner_thread_mode.h", "../../src/base/task/task_scheduler/can_schedule_sequence_observer.h", "../../src/base/task/task_scheduler/delayed_task_manager.cc", "../../src/base/task/task_scheduler/delayed_task_manager.h", "../../src/base/task/task_scheduler/environment_config.cc", "../../src/base/task/task_scheduler/environment_config.h", "../../src/base/task/task_scheduler/priority_queue.cc", "../../src/base/task/task_scheduler/priority_queue.h", "../../src/base/task/task_scheduler/scheduler_lock.h", "../../src/base/task/task_scheduler/scheduler_lock_impl.cc", "../../src/base/task/task_scheduler/scheduler_lock_impl.h", "../../src/base/task/task_scheduler/scheduler_single_thread_task_runner_manager.cc", "../../src/base/task/task_scheduler/scheduler_single_thread_task_runner_manager.h", "../../src/base/task/task_scheduler/scheduler_worker.cc", "../../src/base/task/task_scheduler/scheduler_worker.h", "../../src/base/task/task_scheduler/scheduler_worker_observer.h", "../../src/base/task/task_scheduler/scheduler_worker_params.h", "../../src/base/task/task_scheduler/scheduler_worker_pool.cc", "../../src/base/task/task_scheduler/scheduler_worker_pool.h", "../../src/base/task/task_scheduler/scheduler_worker_pool_impl.cc", "../../src/base/task/task_scheduler/scheduler_worker_pool_impl.h", "../../src/base/task/task_scheduler/scheduler_worker_pool_params.cc", "../../src/base/task/task_scheduler/scheduler_worker_pool_params.h", "../../src/base/task/task_scheduler/scheduler_worker_stack.cc", "../../src/base/task/task_scheduler/scheduler_worker_stack.h", "../../src/base/task/task_scheduler/sequence.cc", "../../src/base/task/task_scheduler/sequence.h", "../../src/base/task/task_scheduler/sequence_sort_key.cc", "../../src/base/task/task_scheduler/sequence_sort_key.h", "../../src/base/task/task_scheduler/service_thread.cc", "../../src/base/task/task_scheduler/service_thread.h", "../../src/base/task/task_scheduler/task.cc", "../../src/base/task/task_scheduler/task.h", "../../src/base/task/task_scheduler/task_scheduler.cc", "../../src/base/task/task_scheduler/task_scheduler.h", "../../src/base/task/task_scheduler/task_scheduler_impl.cc", "../../src/base/task/task_scheduler/task_scheduler_impl.h", "../../src/base/task/task_scheduler/task_tracker.cc", "../../src/base/task/task_scheduler/task_tracker.h", "../../src/base/task/task_scheduler/tracked_ref.h", "../../src/base/task/task_traits.cc", "../../src/base/task/task_traits.h", "../../src/base/task/task_traits_details.h", "../../src/base/task_runner.cc", "../../src/base/task_runner.h", "../../src/base/task_runner_util.h", "../../src/base/template_util.h", "../../src/base/test/fuzzed_data_provider.cc", "../../src/base/test/fuzzed_data_provider.h", "../../src/base/third_party/dynamic_annotations/dynamic_annotations.h", "../../src/base/third_party/icu/icu_utf.cc", "../../src/base/third_party/icu/icu_utf.h", "../../src/base/third_party/nspr/prtime.cc", "../../src/base/third_party/nspr/prtime.h", "../../src/base/third_party/superfasthash/superfasthash.c", "../../src/base/third_party/xdg_user_dirs/xdg_user_dir_lookup.cc", "../../src/base/third_party/xdg_user_dirs/xdg_user_dir_lookup.h", "../../src/base/threading/platform_thread.h", "../../src/base/threading/post_task_and_reply_impl.cc", "../../src/base/threading/post_task_and_reply_impl.h", "../../src/base/threading/scoped_blocking_call.cc", "../../src/base/threading/scoped_blocking_call.h", "../../src/base/threading/sequence_local_storage_map.cc", "../../src/base/threading/sequence_local_storage_map.h", "../../src/base/threading/sequenced_task_runner_handle.cc", "../../src/base/threading/sequenced_task_runner_handle.h", "../../src/base/threading/thread.cc", "../../src/base/threading/thread.h", "../../src/base/threading/thread_checker.h", "../../src/base/threading/thread_checker_impl.cc", "../../src/base/threading/thread_checker_impl.h", "../../src/base/threading/thread_collision_warner.cc", "../../src/base/threading/thread_collision_warner.h", "../../src/base/threading/thread_id_name_manager.cc", "../../src/base/threading/thread_id_name_manager.h", "../../src/base/threading/thread_local.h", "../../src/base/threading/thread_local_storage.cc", "../../src/base/threading/thread_local_storage.h", "../../src/base/threading/thread_local_storage_posix.cc", "../../src/base/threading/thread_restrictions.cc", "../../src/base/threading/thread_restrictions.h", "../../src/base/threading/thread_task_runner_handle.cc", "../../src/base/threading/thread_task_runner_handle.h", "../../src/base/time/clock.cc", "../../src/base/time/clock.h", "../../src/base/time/default_clock.cc", "../../src/base/time/default_clock.h", "../../src/base/time/default_tick_clock.cc", "../../src/base/time/default_tick_clock.h", "../../src/base/time/tick_clock.cc", "../../src/base/time/tick_clock.h", "../../src/base/time/time.cc", "../../src/base/time/time.h", "../../src/base/time/time_override.cc", "../../src/base/time/time_override.h", "../../src/base/timer/elapsed_timer.cc", "../../src/base/timer/elapsed_timer.h", "../../src/base/timer/timer.cc", "../../src/base/timer/timer.h", "../../src/base/trace_event/blame_context.cc", "../../src/base/trace_event/blame_context.h", "../../src/base/trace_event/category_registry.cc", "../../src/base/trace_event/category_registry.h", "../../src/base/trace_event/common/trace_event_common.h", "../../src/base/trace_event/event_name_filter.cc", "../../src/base/trace_event/event_name_filter.h", "../../src/base/trace_event/heap_profiler.h", "../../src/base/trace_event/heap_profiler_allocation_context.cc", "../../src/base/trace_event/heap_profiler_allocation_context.h", "../../src/base/trace_event/heap_profiler_allocation_context_tracker.cc", "../../src/base/trace_event/heap_profiler_allocation_context_tracker.h", "../../src/base/trace_event/heap_profiler_event_filter.cc", "../../src/base/trace_event/heap_profiler_event_filter.h", "../../src/base/trace_event/malloc_dump_provider.cc", "../../src/base/trace_event/malloc_dump_provider.h", "../../src/base/trace_event/memory_allocator_dump.cc", "../../src/base/trace_event/memory_allocator_dump.h", "../../src/base/trace_event/memory_allocator_dump_guid.cc", "../../src/base/trace_event/memory_allocator_dump_guid.h", "../../src/base/trace_event/memory_dump_manager.cc", "../../src/base/trace_event/memory_dump_manager.h", "../../src/base/trace_event/memory_dump_provider.h", "../../src/base/trace_event/memory_dump_provider_info.cc", "../../src/base/trace_event/memory_dump_provider_info.h", "../../src/base/trace_event/memory_dump_request_args.cc", "../../src/base/trace_event/memory_dump_request_args.h", "../../src/base/trace_event/memory_dump_scheduler.cc", "../../src/base/trace_event/memory_dump_scheduler.h", "../../src/base/trace_event/memory_infra_background_whitelist.cc", "../../src/base/trace_event/memory_infra_background_whitelist.h", "../../src/base/trace_event/memory_usage_estimator.cc", "../../src/base/trace_event/memory_usage_estimator.h", "../../src/base/trace_event/process_memory_dump.cc", "../../src/base/trace_event/process_memory_dump.h", "../../src/base/trace_event/trace_buffer.cc", "../../src/base/trace_event/trace_buffer.h", "../../src/base/trace_event/trace_category.h", "../../src/base/trace_event/trace_config.cc", "../../src/base/trace_event/trace_config.h", "../../src/base/trace_event/trace_config_category_filter.cc", "../../src/base/trace_event/trace_config_category_filter.h", "../../src/base/trace_event/trace_event.h", "../../src/base/trace_event/trace_event_argument.cc", "../../src/base/trace_event/trace_event_argument.h", "../../src/base/trace_event/trace_event_filter.cc", "../../src/base/trace_event/trace_event_filter.h", "../../src/base/trace_event/trace_event_impl.cc", "../../src/base/trace_event/trace_event_impl.h", "../../src/base/trace_event/trace_event_memory_overhead.cc", "../../src/base/trace_event/trace_event_memory_overhead.h", "../../src/base/trace_event/trace_event_system_stats_monitor.cc", "../../src/base/trace_event/trace_event_system_stats_monitor.h", "../../src/base/trace_event/trace_log.cc", "../../src/base/trace_event/trace_log.h", "../../src/base/trace_event/trace_log_constants.cc", "../../src/base/unguessable_token.cc", "../../src/base/unguessable_token.h", "../../src/base/value_iterators.cc", "../../src/base/value_iterators.h", "../../src/base/values.cc", "../../src/base/values.h", "../../src/base/vlog.cc", "../../src/base/vlog.h", "allocator/buildflags.h", "cfi_buildflags.h", "debug/debugging_buildflags.h", "generated_build_date.h", "synchronization/synchronization_buildflags.h", ] if (is_posix) { if (target_cpu == "arm") { cflags_cc = [ "-D_FILE_OFFSET_BITS=64" ] } sources += [ "../../src/base/base_paths_posix.h", "../../src/base/debug/debugger_posix.cc", "../../src/base/debug/stack_trace_posix.cc", "../../src/base/file_descriptor_posix.h", "../../src/base/files/dir_reader_posix.h", "../../src/base/files/file_descriptor_watcher_posix.cc", "../../src/base/files/file_descriptor_watcher_posix.h", "../../src/base/files/file_enumerator_posix.cc", "../../src/base/files/file_posix.cc", "../../src/base/files/file_util_posix.cc", "../../src/base/files/memory_mapped_file_posix.cc", "../../src/base/message_loop/watchable_io_message_pump_posix.cc", "../../src/base/message_loop/watchable_io_message_pump_posix.h", "../../src/base/process/kill_posix.cc", "../../src/base/process/launch_posix.cc", "../../src/base/process/process_handle_posix.cc", "../../src/base/process/process_metrics_posix.cc", "../../src/base/process/process_posix.cc", "../../src/base/rand_util_posix.cc", "../../src/base/strings/string_util_posix.h", "../../src/base/synchronization/condition_variable_posix.cc", "../../src/base/synchronization/lock_impl_posix.cc", "../../src/base/sys_info_posix.cc", "../../src/base/task/task_scheduler/task_tracker_posix.cc", "../../src/base/task/task_scheduler/task_tracker_posix.h", "../../src/base/threading/platform_thread_posix.cc", "../../src/base/time/time_conversion_posix.cc", "../../src/base/time/time_exploded_posix.cc", ] } if (is_linux) { sources += [ "../../src/base/base_paths_posix.cc", "../../src/base/debug/proc_maps_linux.cc", "../../src/base/debug/proc_maps_linux.h", "../../src/base/files/dir_reader_linux.h", "../../src/base/files/file_util_linux.cc", "../../src/base/memory/platform_shared_memory_region_posix.cc", "../../src/base/memory/shared_memory_handle_posix.cc", "../../src/base/memory/shared_memory_posix.cc", "../../src/base/process/internal_linux.cc", "../../src/base/process/internal_linux.h", "../../src/base/process/memory_linux.cc", "../../src/base/process/process_handle_linux.cc", "../../src/base/process/process_info_linux.cc", "../../src/base/process/process_iterator_linux.cc", "../../src/base/process/process_linux.cc", "../../src/base/process/process_metrics_linux.cc", "../../src/base/strings/sys_string_conversions_posix.cc", "../../src/base/synchronization/waitable_event_posix.cc", "../../src/base/sys_info_linux.cc", "../../src/base/threading/platform_thread_internal_posix.cc", "../../src/base/threading/platform_thread_internal_posix.h", "../../src/base/threading/platform_thread_linux.cc", "../../src/base/time/time_now_posix.cc", ] } else if (is_mac) { # Allow more direct string conversions on platforms with native utf8 # strings. defines += [ "SYSTEM_NATIVE_UTF8" ] sources += [ "../../src/base/base_paths_mac.h", "../../src/base/base_paths_mac.mm", "../../src/base/files/file_util_mac.mm", "../../src/base/mac/authorization_util.h", "../../src/base/mac/authorization_util.mm", "../../src/base/mac/bundle_locations.h", "../../src/base/mac/bundle_locations.mm", "../../src/base/mac/call_with_eh_frame.cc", "../../src/base/mac/call_with_eh_frame.h", "../../src/base/mac/call_with_eh_frame_asm.S", "../../src/base/mac/close_nocancel.cc", "../../src/base/mac/dispatch_source_mach.cc", "../../src/base/mac/dispatch_source_mach.h", "../../src/base/mac/foundation_util.h", "../../src/base/mac/foundation_util.mm", "../../src/base/mac/launch_services_util.h", "../../src/base/mac/launch_services_util.mm", "../../src/base/mac/launchd.cc", "../../src/base/mac/launchd.h", "../../src/base/mac/mac_logging.h", "../../src/base/mac/mac_logging.mm", "../../src/base/mac/mac_util.h", "../../src/base/mac/mac_util.mm", "../../src/base/mac/mach_logging.cc", "../../src/base/mac/mach_logging.h", "../../src/base/mac/objc_release_properties.h", "../../src/base/mac/objc_release_properties.mm", "../../src/base/mac/os_crash_dumps.cc", "../../src/base/mac/os_crash_dumps.h", "../../src/base/mac/scoped_aedesc.h", "../../src/base/mac/scoped_authorizationref.h", "../../src/base/mac/scoped_block.h", "../../src/base/mac/scoped_cffiledescriptorref.h", "../../src/base/mac/scoped_cftyperef.h", "../../src/base/mac/scoped_dispatch_object.h", "../../src/base/mac/scoped_ionotificationportref.h", "../../src/base/mac/scoped_ioobject.h", "../../src/base/mac/scoped_ioplugininterface.h", "../../src/base/mac/scoped_launch_data.h", "../../src/base/mac/scoped_mach_port.cc", "../../src/base/mac/scoped_mach_port.h", "../../src/base/mac/scoped_mach_vm.cc", "../../src/base/mac/scoped_mach_vm.h", "../../src/base/mac/scoped_nsautorelease_pool.h", "../../src/base/mac/scoped_nsautorelease_pool.mm", "../../src/base/mac/scoped_nsobject.h", "../../src/base/mac/scoped_nsobject.mm", "../../src/base/mac/scoped_objc_class_swizzler.h", "../../src/base/mac/scoped_objc_class_swizzler.mm", "../../src/base/mac/scoped_sending_event.h", "../../src/base/mac/scoped_sending_event.mm", "../../src/base/mac/scoped_typeref.h", "../../src/base/mac/sdk_forward_declarations.h", "../../src/base/mac/sdk_forward_declarations.mm", "../../src/base/memory/platform_shared_memory_region_mac.cc", "../../src/base/memory/shared_memory_handle_mac.cc", "../../src/base/memory/shared_memory_mac.cc", "../../src/base/message_loop/message_pump_mac.h", "../../src/base/message_loop/message_pump_mac.mm", "../../src/base/process/kill_mac.cc", "../../src/base/process/launch_mac.cc", "../../src/base/process/port_provider_mac.cc", "../../src/base/process/port_provider_mac.h", "../../src/base/process/process_handle_mac.cc", "../../src/base/process/process_info_mac.cc", "../../src/base/process/process_iterator_mac.cc", "../../src/base/process/process_mac.cc", "../../src/base/process/process_metrics_mac.cc", "../../src/base/strings/sys_string_conversions_mac.mm", "../../src/base/synchronization/waitable_event_mac.cc", "../../src/base/sys_info_mac.mm", "../../src/base/threading/platform_thread_mac.mm", "../../src/base/time/time_mac.cc", ] libs = [ "ApplicationServices.framework", "AppKit.framework", "CoreFoundation.framework", "Foundation.framework", "IOKit.framework", "Security.framework", ] } else if (is_posix) { # And !is_linux and !is_mac. sources += [ "../../src/base/memory/platform_shared_memory_region_posix.cc", "../../src/base/memory/shared_memory_handle_posix.cc", "../../src/base/memory/shared_memory_posix.cc", "../../src/base/strings/sys_string_conversions_posix.cc", "../../src/base/synchronization/waitable_event_posix.cc", "../../src/base/threading/platform_thread_internal_posix.cc", "../../src/base/threading/platform_thread_internal_posix.h", "../../src/base/time/time_now_posix.cc", ] } deps = [ ":dmg_fp", ":libevent", "../../src/third_party", ] configs += [ ":base_config" ] } source_set("dmg_fp") { cflags = [ "-Wno-error=attributes" ] defines = [ "FALLTHROUGH=[[fallthrough]]", "INT_MAX=0x7fffffff", ] sources = [ "../../src/base/third_party/dmg_fp/dmg_fp.h", "../../src/base/third_party/dmg_fp/dtoa.cc", "../../src/base/third_party/dmg_fp/g_fmt.cc", ] } source_set("libevent") { cflags_c = [ "-Wno-sign-compare" ] sources = [ "../../src/base/third_party/libevent/event-config.h", "../../src/base/third_party/libevent/event-internal.h", "../../src/base/third_party/libevent/event.c", "../../src/base/third_party/libevent/event.h", "../../src/base/third_party/libevent/evsignal.h", "../../src/base/third_party/libevent/evutil.c", "../../src/base/third_party/libevent/evutil.h", "../../src/base/third_party/libevent/log.c", "../../src/base/third_party/libevent/log.h", "../../src/base/third_party/libevent/min_heap.h", "../../src/base/third_party/libevent/poll.c", "../../src/base/third_party/libevent/select.c", "../../src/base/third_party/libevent/signal.c", ] if (is_linux) { sources += [ "../../src/base/third_party/libevent/epoll.c", "../../src/base/third_party/libevent/linux/config.h", "../../src/base/third_party/libevent/linux/event-config.h", ] } else if (is_mac) { sources += [ "../../src/base/third_party/libevent/kqueue.c", "../../src/base/third_party/libevent/mac/config.h", "../../src/base/third_party/libevent/mac/event-config.h", ] } configs += [ ":base_config" ] include_dirs = [ "third_party/libevent" ] }