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