| OLD | NEW |
| (Empty) |
| 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 import("//build/config/ui.gni") | |
| 6 import("//testing/test.gni") | |
| 7 | |
| 8 if (is_android) { | |
| 9 import("//build/config/android/rules.gni") | |
| 10 } | |
| 11 | |
| 12 config("base_implementation") { | |
| 13 defines = [ "BASE_IMPLEMENTATION" ] | |
| 14 | |
| 15 if (is_ios) { | |
| 16 # base uses routines deprecated in iOS 8 | |
| 17 cflags = [ "-Wno-deprecated-declarations" ] | |
| 18 } | |
| 19 } | |
| 20 | |
| 21 if (is_win) { | |
| 22 # This is in a separate config so the flags can be applied to dependents. | |
| 23 # ldflags in GN aren't automatically inherited. | |
| 24 config("base_win_linker_flags") { | |
| 25 ldflags = [ | |
| 26 "/DELAYLOAD:cfgmgr32.dll", | |
| 27 "/DELAYLOAD:powrprof.dll", | |
| 28 "/DELAYLOAD:setupapi.dll", | |
| 29 ] | |
| 30 } | |
| 31 } | |
| 32 | |
| 33 source_set("base_paths") { | |
| 34 sources = [ | |
| 35 "base_paths.cc", | |
| 36 "base_paths.h", | |
| 37 "base_paths_android.cc", | |
| 38 "base_paths_android.h", | |
| 39 "base_paths_mac.h", | |
| 40 "base_paths_mac.mm", | |
| 41 "base_paths_posix.cc", | |
| 42 "base_paths_posix.h", | |
| 43 "base_paths_win.cc", | |
| 44 "base_paths_win.h", | |
| 45 ] | |
| 46 | |
| 47 if (is_android || is_mac || is_ios) { | |
| 48 sources -= [ "base_paths_posix.cc" ] | |
| 49 } | |
| 50 | |
| 51 if (is_nacl) { | |
| 52 sources -= [ | |
| 53 "base_paths.cc", | |
| 54 "base_paths_posix.cc", | |
| 55 ] | |
| 56 } | |
| 57 | |
| 58 configs += [ ":base_implementation" ] | |
| 59 | |
| 60 deps = [ | |
| 61 "//base/memory", | |
| 62 "//base/process", | |
| 63 ] | |
| 64 | |
| 65 visibility = [ ":base" ] | |
| 66 } | |
| 67 | |
| 68 component("base") { | |
| 69 sources = [ | |
| 70 "allocator/allocator_extension.cc", | |
| 71 "allocator/allocator_extension.h", | |
| 72 "allocator/type_profiler_control.cc", | |
| 73 "allocator/type_profiler_control.h", | |
| 74 "android/animation_frame_time_histogram.cc", | |
| 75 "android/animation_frame_time_histogram.h", | |
| 76 "android/apk_assets.cc", | |
| 77 "android/apk_assets.h", | |
| 78 "android/application_status_listener.cc", | |
| 79 "android/application_status_listener.h", | |
| 80 "android/base_jni_onload.cc", | |
| 81 "android/base_jni_onload.h", | |
| 82 "android/base_jni_registrar.cc", | |
| 83 "android/base_jni_registrar.h", | |
| 84 "android/build_info.cc", | |
| 85 "android/build_info.h", | |
| 86 "android/command_line_android.cc", | |
| 87 "android/command_line_android.h", | |
| 88 "android/content_uri_utils.cc", | |
| 89 "android/content_uri_utils.h", | |
| 90 "android/cpu_features.cc", | |
| 91 "android/cxa_demangle_stub.cc", | |
| 92 "android/event_log.cc", | |
| 93 "android/event_log.h", | |
| 94 "android/field_trial_list.cc", | |
| 95 "android/field_trial_list.h", | |
| 96 "android/fifo_utils.cc", | |
| 97 "android/fifo_utils.h", | |
| 98 "android/important_file_writer_android.cc", | |
| 99 "android/important_file_writer_android.h", | |
| 100 "android/java_handler_thread.cc", | |
| 101 "android/java_handler_thread.h", | |
| 102 "android/java_runtime.cc", | |
| 103 "android/java_runtime.h", | |
| 104 "android/jni_android.cc", | |
| 105 "android/jni_android.h", | |
| 106 "android/jni_array.cc", | |
| 107 "android/jni_array.h", | |
| 108 "android/jni_registrar.cc", | |
| 109 "android/jni_registrar.h", | |
| 110 "android/jni_string.cc", | |
| 111 "android/jni_string.h", | |
| 112 "android/jni_utils.cc", | |
| 113 "android/jni_utils.h", | |
| 114 "android/jni_weak_ref.cc", | |
| 115 "android/jni_weak_ref.h", | |
| 116 "android/library_loader/library_load_from_apk_status_codes.h", | |
| 117 "android/library_loader/library_loader_hooks.cc", | |
| 118 "android/library_loader/library_loader_hooks.h", | |
| 119 "android/library_loader/library_prefetcher.cc", | |
| 120 "android/library_loader/library_prefetcher.h", | |
| 121 "android/locale_utils.cc", | |
| 122 "android/locale_utils.h", | |
| 123 "android/memory_pressure_listener_android.cc", | |
| 124 "android/memory_pressure_listener_android.h", | |
| 125 "android/path_service_android.cc", | |
| 126 "android/path_service_android.h", | |
| 127 "android/path_utils.cc", | |
| 128 "android/path_utils.h", | |
| 129 "android/record_histogram.cc", | |
| 130 "android/record_histogram.h", | |
| 131 "android/record_user_action.cc", | |
| 132 "android/record_user_action.h", | |
| 133 "android/scoped_java_ref.cc", | |
| 134 "android/scoped_java_ref.h", | |
| 135 "android/sys_utils.cc", | |
| 136 "android/sys_utils.h", | |
| 137 "android/thread_utils.h", | |
| 138 "android/trace_event_binding.cc", | |
| 139 "android/trace_event_binding.h", | |
| 140 "async_socket_io_handler.h", | |
| 141 "async_socket_io_handler_posix.cc", | |
| 142 "async_socket_io_handler_win.cc", | |
| 143 "at_exit.cc", | |
| 144 "at_exit.h", | |
| 145 "atomic_ref_count.h", | |
| 146 "atomic_sequence_num.h", | |
| 147 "atomicops.h", | |
| 148 "atomicops_internals_mac.h", | |
| 149 "atomicops_internals_portable.h", | |
| 150 "atomicops_internals_x86_msvc.h", | |
| 151 "auto_reset.h", | |
| 152 "barrier_closure.cc", | |
| 153 "barrier_closure.h", | |
| 154 "base64.cc", | |
| 155 "base64.h", | |
| 156 "base_export.h", | |
| 157 "base_switches.h", | |
| 158 "basictypes.h", | |
| 159 "big_endian.cc", | |
| 160 "big_endian.h", | |
| 161 "bind.h", | |
| 162 "bind_helpers.cc", | |
| 163 "bind_helpers.h", | |
| 164 "bind_internal.h", | |
| 165 "bind_internal_win.h", | |
| 166 "bits.h", | |
| 167 "build_time.cc", | |
| 168 "build_time.h", | |
| 169 "callback.h", | |
| 170 "callback_helpers.cc", | |
| 171 "callback_helpers.h", | |
| 172 "callback_internal.cc", | |
| 173 "callback_internal.h", | |
| 174 "cancelable_callback.h", | |
| 175 "command_line.cc", | |
| 176 "command_line.h", | |
| 177 "compiler_specific.h", | |
| 178 "containers/adapters.h", | |
| 179 "containers/hash_tables.h", | |
| 180 "containers/linked_list.h", | |
| 181 "containers/mru_cache.h", | |
| 182 "containers/scoped_ptr_hash_map.h", | |
| 183 "containers/scoped_ptr_map.h", | |
| 184 "containers/small_map.h", | |
| 185 "containers/stack_container.h", | |
| 186 "cpu.cc", | |
| 187 "cpu.h", | |
| 188 "critical_closure.h", | |
| 189 "critical_closure_internal_ios.mm", | |
| 190 "deferred_sequenced_task_runner.cc", | |
| 191 "deferred_sequenced_task_runner.h", | |
| 192 "environment.cc", | |
| 193 "environment.h", | |
| 194 "file_descriptor_posix.h", | |
| 195 "file_version_info.h", | |
| 196 "file_version_info_mac.h", | |
| 197 "file_version_info_mac.mm", | |
| 198 "file_version_info_win.cc", | |
| 199 "file_version_info_win.h", | |
| 200 "files/dir_reader_fallback.h", | |
| 201 "files/dir_reader_linux.h", | |
| 202 "files/dir_reader_posix.h", | |
| 203 "files/file.cc", | |
| 204 "files/file_enumerator.cc", | |
| 205 "files/file_enumerator.h", | |
| 206 "files/file_enumerator_posix.cc", | |
| 207 "files/file_enumerator_win.cc", | |
| 208 "files/file_path.cc", | |
| 209 "files/file_path.h", | |
| 210 "files/file_path_constants.cc", | |
| 211 "files/file_path_watcher.cc", | |
| 212 "files/file_path_watcher.h", | |
| 213 "files/file_path_watcher_fsevents.cc", | |
| 214 "files/file_path_watcher_fsevents.h", | |
| 215 "files/file_path_watcher_kqueue.cc", | |
| 216 "files/file_path_watcher_kqueue.h", | |
| 217 "files/file_path_watcher_linux.cc", | |
| 218 "files/file_path_watcher_mac.cc", | |
| 219 "files/file_path_watcher_win.cc", | |
| 220 "files/file_posix.cc", | |
| 221 "files/file_proxy.cc", | |
| 222 "files/file_proxy.h", | |
| 223 "files/file_tracing.cc", | |
| 224 "files/file_tracing.h", | |
| 225 "files/file_util.cc", | |
| 226 "files/file_util.h", | |
| 227 "files/file_util_android.cc", | |
| 228 "files/file_util_linux.cc", | |
| 229 "files/file_util_mac.mm", | |
| 230 "files/file_util_posix.cc", | |
| 231 "files/file_util_proxy.cc", | |
| 232 "files/file_util_proxy.h", | |
| 233 "files/file_util_win.cc", | |
| 234 "files/file_win.cc", | |
| 235 "files/important_file_writer.cc", | |
| 236 "files/important_file_writer.h", | |
| 237 "files/memory_mapped_file.cc", | |
| 238 "files/memory_mapped_file.h", | |
| 239 "files/memory_mapped_file_posix.cc", | |
| 240 "files/memory_mapped_file_win.cc", | |
| 241 "files/scoped_file.cc", | |
| 242 "files/scoped_file.h", | |
| 243 "files/scoped_temp_dir.cc", | |
| 244 "files/scoped_temp_dir.h", | |
| 245 "format_macros.h", | |
| 246 "gtest_prod_util.h", | |
| 247 "guid.cc", | |
| 248 "guid.h", | |
| 249 "guid_posix.cc", | |
| 250 "guid_win.cc", | |
| 251 "hash.cc", | |
| 252 "hash.h", | |
| 253 "id_map.h", | |
| 254 "ios/device_util.h", | |
| 255 "ios/device_util.mm", | |
| 256 "ios/ios_util.h", | |
| 257 "ios/ios_util.mm", | |
| 258 "ios/scoped_critical_action.h", | |
| 259 "ios/scoped_critical_action.mm", | |
| 260 "ios/weak_nsobject.h", | |
| 261 "ios/weak_nsobject.mm", | |
| 262 "lazy_instance.cc", | |
| 263 "lazy_instance.h", | |
| 264 "linux_util.cc", | |
| 265 "linux_util.h", | |
| 266 "location.cc", | |
| 267 "location.h", | |
| 268 "logging.cc", | |
| 269 "logging.h", | |
| 270 "logging_win.cc", | |
| 271 "logging_win.h", | |
| 272 "mac/authorization_util.h", | |
| 273 "mac/authorization_util.mm", | |
| 274 "mac/bind_objc_block.h", | |
| 275 "mac/bundle_locations.h", | |
| 276 "mac/bundle_locations.mm", | |
| 277 "mac/call_with_eh_frame.cc", | |
| 278 "mac/call_with_eh_frame.h", | |
| 279 "mac/call_with_eh_frame_asm.S", | |
| 280 "mac/cocoa_protocols.h", | |
| 281 "mac/dispatch_source_mach.cc", | |
| 282 "mac/dispatch_source_mach.h", | |
| 283 "mac/foundation_util.h", | |
| 284 "mac/foundation_util.mm", | |
| 285 "mac/launch_services_util.cc", | |
| 286 "mac/launch_services_util.h", | |
| 287 "mac/launchd.cc", | |
| 288 "mac/launchd.h", | |
| 289 "mac/libdispatch_task_runner.cc", | |
| 290 "mac/libdispatch_task_runner.h", | |
| 291 "mac/mac_logging.cc", | |
| 292 "mac/mac_logging.h", | |
| 293 "mac/mac_util.h", | |
| 294 "mac/mac_util.mm", | |
| 295 "mac/mach_logging.cc", | |
| 296 "mac/mach_logging.h", | |
| 297 "mac/objc_property_releaser.h", | |
| 298 "mac/objc_property_releaser.mm", | |
| 299 "mac/os_crash_dumps.cc", | |
| 300 "mac/os_crash_dumps.h", | |
| 301 "mac/scoped_aedesc.h", | |
| 302 "mac/scoped_authorizationref.h", | |
| 303 "mac/scoped_block.h", | |
| 304 "mac/scoped_cftyperef.h", | |
| 305 "mac/scoped_ioobject.h", | |
| 306 "mac/scoped_ioplugininterface.h", | |
| 307 "mac/scoped_launch_data.h", | |
| 308 "mac/scoped_mach_port.cc", | |
| 309 "mac/scoped_mach_port.h", | |
| 310 "mac/scoped_mach_vm.cc", | |
| 311 "mac/scoped_mach_vm.h", | |
| 312 "mac/scoped_nsautorelease_pool.h", | |
| 313 "mac/scoped_nsautorelease_pool.mm", | |
| 314 "mac/scoped_nsexception_enabler.h", | |
| 315 "mac/scoped_nsexception_enabler.mm", | |
| 316 "mac/scoped_nsobject.h", | |
| 317 "mac/scoped_objc_class_swizzler.h", | |
| 318 "mac/scoped_objc_class_swizzler.mm", | |
| 319 "mac/scoped_sending_event.h", | |
| 320 "mac/scoped_sending_event.mm", | |
| 321 "mac/sdk_forward_declarations.h", | |
| 322 "mac/sdk_forward_declarations.mm", | |
| 323 "macros.h", | |
| 324 "md5.cc", | |
| 325 "md5.h", | |
| 326 "message_loop/incoming_task_queue.cc", | |
| 327 "message_loop/incoming_task_queue.h", | |
| 328 "message_loop/message_loop.cc", | |
| 329 "message_loop/message_loop.h", | |
| 330 "message_loop/message_loop_task_runner.cc", | |
| 331 "message_loop/message_loop_task_runner.h", | |
| 332 "message_loop/message_pump.cc", | |
| 333 "message_loop/message_pump.h", | |
| 334 "message_loop/message_pump_android.cc", | |
| 335 "message_loop/message_pump_android.h", | |
| 336 "message_loop/message_pump_default.cc", | |
| 337 "message_loop/message_pump_default.h", | |
| 338 "message_loop/message_pump_io_ios.cc", | |
| 339 "message_loop/message_pump_io_ios.h", | |
| 340 "message_loop/message_pump_libevent.cc", | |
| 341 "message_loop/message_pump_libevent.h", | |
| 342 "message_loop/message_pump_mac.h", | |
| 343 "message_loop/message_pump_mac.mm", | |
| 344 "message_loop/message_pump_win.cc", | |
| 345 "message_loop/message_pump_win.h", | |
| 346 "move.h", | |
| 347 "native_library.h", | |
| 348 "native_library_ios.mm", | |
| 349 "native_library_mac.mm", | |
| 350 "native_library_posix.cc", | |
| 351 "native_library_win.cc", | |
| 352 "nix/mime_util_xdg.cc", | |
| 353 "nix/mime_util_xdg.h", | |
| 354 "nix/xdg_util.cc", | |
| 355 "nix/xdg_util.h", | |
| 356 "numerics/safe_conversions.h", | |
| 357 "numerics/safe_conversions_impl.h", | |
| 358 "numerics/safe_math.h", | |
| 359 "numerics/safe_math_impl.h", | |
| 360 "observer_list.h", | |
| 361 "observer_list_threadsafe.h", | |
| 362 "os_compat_android.cc", | |
| 363 "os_compat_android.h", | |
| 364 "os_compat_nacl.cc", | |
| 365 "os_compat_nacl.h", | |
| 366 "path_service.cc", | |
| 367 "path_service.h", | |
| 368 "pending_task.cc", | |
| 369 "pending_task.h", | |
| 370 "pickle.cc", | |
| 371 "pickle.h", | |
| 372 "posix/eintr_wrapper.h", | |
| 373 "posix/file_descriptor_shuffle.cc", | |
| 374 "posix/global_descriptors.cc", | |
| 375 "posix/global_descriptors.h", | |
| 376 "posix/safe_strerror.cc", | |
| 377 "posix/safe_strerror.h", | |
| 378 "posix/unix_domain_socket_linux.cc", | |
| 379 "posix/unix_domain_socket_linux.h", | |
| 380 "power_monitor/power_monitor.cc", | |
| 381 "power_monitor/power_monitor.h", | |
| 382 "power_monitor/power_monitor_device_source.cc", | |
| 383 "power_monitor/power_monitor_device_source.h", | |
| 384 "power_monitor/power_monitor_device_source_android.cc", | |
| 385 "power_monitor/power_monitor_device_source_android.h", | |
| 386 "power_monitor/power_monitor_device_source_chromeos.cc", | |
| 387 "power_monitor/power_monitor_device_source_ios.mm", | |
| 388 "power_monitor/power_monitor_device_source_mac.mm", | |
| 389 "power_monitor/power_monitor_device_source_posix.cc", | |
| 390 "power_monitor/power_monitor_device_source_win.cc", | |
| 391 "power_monitor/power_monitor_source.cc", | |
| 392 "power_monitor/power_monitor_source.h", | |
| 393 "power_monitor/power_observer.h", | |
| 394 "profiler/alternate_timer.cc", | |
| 395 "profiler/alternate_timer.h", | |
| 396 "profiler/native_stack_sampler.cc", | |
| 397 "profiler/native_stack_sampler.h", | |
| 398 "profiler/scoped_profile.cc", | |
| 399 "profiler/scoped_profile.h", | |
| 400 "profiler/scoped_tracker.cc", | |
| 401 "profiler/scoped_tracker.h", | |
| 402 "profiler/stack_sampling_profiler.cc", | |
| 403 "profiler/stack_sampling_profiler.h", | |
| 404 "profiler/stack_sampling_profiler_posix.cc", | |
| 405 "profiler/stack_sampling_profiler_win.cc", | |
| 406 "profiler/tracked_time.cc", | |
| 407 "profiler/tracked_time.h", | |
| 408 "rand_util.cc", | |
| 409 "rand_util.h", | |
| 410 "rand_util_nacl.cc", | |
| 411 "rand_util_posix.cc", | |
| 412 "rand_util_win.cc", | |
| 413 "run_loop.cc", | |
| 414 "run_loop.h", | |
| 415 "scoped_generic.h", | |
| 416 "scoped_native_library.cc", | |
| 417 "scoped_native_library.h", | |
| 418 "scoped_observer.h", | |
| 419 "sequence_checker.h", | |
| 420 "sequence_checker_impl.cc", | |
| 421 "sequence_checker_impl.h", | |
| 422 "sequenced_task_runner.cc", | |
| 423 "sequenced_task_runner.h", | |
| 424 "sequenced_task_runner_helpers.h", | |
| 425 "sha1.h", | |
| 426 "sha1_portable.cc", | |
| 427 "sha1_win.cc", | |
| 428 "single_thread_task_runner.h", | |
| 429 "stl_util.h", | |
| 430 "strings/latin1_string_conversions.cc", | |
| 431 "strings/latin1_string_conversions.h", | |
| 432 "strings/nullable_string16.cc", | |
| 433 "strings/nullable_string16.h", | |
| 434 "strings/pattern.cc", | |
| 435 "strings/pattern.h", | |
| 436 "strings/safe_sprintf.cc", | |
| 437 "strings/safe_sprintf.h", | |
| 438 "strings/string16.cc", | |
| 439 "strings/string16.h", | |
| 440 "strings/string_number_conversions.cc", | |
| 441 "strings/string_number_conversions.h", | |
| 442 "strings/string_piece.cc", | |
| 443 "strings/string_piece.h", | |
| 444 "strings/string_split.cc", | |
| 445 "strings/string_split.h", | |
| 446 "strings/string_tokenizer.h", | |
| 447 "strings/string_util.cc", | |
| 448 "strings/string_util.h", | |
| 449 "strings/string_util_constants.cc", | |
| 450 "strings/string_util_posix.h", | |
| 451 "strings/string_util_win.h", | |
| 452 "strings/stringize_macros.h", | |
| 453 "strings/stringprintf.cc", | |
| 454 "strings/stringprintf.h", | |
| 455 "strings/sys_string_conversions.h", | |
| 456 "strings/sys_string_conversions_mac.mm", | |
| 457 "strings/sys_string_conversions_posix.cc", | |
| 458 "strings/sys_string_conversions_win.cc", | |
| 459 "strings/utf_offset_string_conversions.cc", | |
| 460 "strings/utf_offset_string_conversions.h", | |
| 461 "strings/utf_string_conversion_utils.cc", | |
| 462 "strings/utf_string_conversion_utils.h", | |
| 463 "strings/utf_string_conversions.cc", | |
| 464 "strings/utf_string_conversions.h", | |
| 465 "supports_user_data.cc", | |
| 466 "supports_user_data.h", | |
| 467 "sync_socket.h", | |
| 468 "sync_socket_posix.cc", | |
| 469 "sync_socket_win.cc", | |
| 470 "synchronization/cancellation_flag.cc", | |
| 471 "synchronization/cancellation_flag.h", | |
| 472 "synchronization/condition_variable.h", | |
| 473 "synchronization/condition_variable_posix.cc", | |
| 474 "synchronization/condition_variable_win.cc", | |
| 475 "synchronization/lock.cc", | |
| 476 "synchronization/lock.h", | |
| 477 "synchronization/lock_impl.h", | |
| 478 "synchronization/lock_impl_posix.cc", | |
| 479 "synchronization/lock_impl_win.cc", | |
| 480 "synchronization/spin_wait.h", | |
| 481 "synchronization/waitable_event.h", | |
| 482 "synchronization/waitable_event_posix.cc", | |
| 483 "synchronization/waitable_event_watcher.h", | |
| 484 "synchronization/waitable_event_watcher_posix.cc", | |
| 485 "synchronization/waitable_event_watcher_win.cc", | |
| 486 "synchronization/waitable_event_win.cc", | |
| 487 "sys_byteorder.h", | |
| 488 "sys_info.cc", | |
| 489 "sys_info.h", | |
| 490 "sys_info_android.cc", | |
| 491 "sys_info_chromeos.cc", | |
| 492 "sys_info_freebsd.cc", | |
| 493 "sys_info_ios.mm", | |
| 494 "sys_info_linux.cc", | |
| 495 "sys_info_mac.cc", | |
| 496 "sys_info_openbsd.cc", | |
| 497 "sys_info_posix.cc", | |
| 498 "sys_info_win.cc", | |
| 499 "system_monitor/system_monitor.cc", | |
| 500 "system_monitor/system_monitor.h", | |
| 501 "task/cancelable_task_tracker.cc", | |
| 502 "task/cancelable_task_tracker.h", | |
| 503 "task_runner.cc", | |
| 504 "task_runner.h", | |
| 505 "task_runner_util.h", | |
| 506 "template_util.h", | |
| 507 "third_party/dmg_fp/dmg_fp.h", | |
| 508 "third_party/dmg_fp/dtoa_wrapper.cc", | |
| 509 "third_party/dmg_fp/g_fmt.cc", | |
| 510 "third_party/icu/icu_utf.cc", | |
| 511 "third_party/icu/icu_utf.h", | |
| 512 "third_party/nspr/prtime.cc", | |
| 513 "third_party/nspr/prtime.h", | |
| 514 "third_party/superfasthash/superfasthash.c", | |
| 515 "thread_task_runner_handle.cc", | |
| 516 "thread_task_runner_handle.h", | |
| 517 "threading/non_thread_safe.h", | |
| 518 "threading/non_thread_safe_impl.cc", | |
| 519 "threading/non_thread_safe_impl.h", | |
| 520 "threading/platform_thread.h", | |
| 521 "threading/platform_thread_android.cc", | |
| 522 "threading/platform_thread_internal_posix.cc", | |
| 523 "threading/platform_thread_internal_posix.h", | |
| 524 "threading/platform_thread_linux.cc", | |
| 525 "threading/platform_thread_mac.mm", | |
| 526 "threading/platform_thread_posix.cc", | |
| 527 "threading/platform_thread_win.cc", | |
| 528 "threading/post_task_and_reply_impl.cc", | |
| 529 "threading/post_task_and_reply_impl.h", | |
| 530 "threading/sequenced_worker_pool.cc", | |
| 531 "threading/sequenced_worker_pool.h", | |
| 532 "threading/simple_thread.cc", | |
| 533 "threading/simple_thread.h", | |
| 534 "threading/thread.cc", | |
| 535 "threading/thread.h", | |
| 536 "threading/thread_checker.h", | |
| 537 "threading/thread_checker_impl.cc", | |
| 538 "threading/thread_checker_impl.h", | |
| 539 "threading/thread_collision_warner.cc", | |
| 540 "threading/thread_collision_warner.h", | |
| 541 "threading/thread_id_name_manager.cc", | |
| 542 "threading/thread_id_name_manager.h", | |
| 543 "threading/thread_local.h", | |
| 544 "threading/thread_local_android.cc", | |
| 545 "threading/thread_local_posix.cc", | |
| 546 "threading/thread_local_storage.cc", | |
| 547 "threading/thread_local_storage.h", | |
| 548 "threading/thread_local_storage_posix.cc", | |
| 549 "threading/thread_local_storage_win.cc", | |
| 550 "threading/thread_local_win.cc", | |
| 551 "threading/thread_restrictions.cc", | |
| 552 "threading/thread_restrictions.h", | |
| 553 "threading/watchdog.cc", | |
| 554 "threading/watchdog.h", | |
| 555 "threading/worker_pool.cc", | |
| 556 "threading/worker_pool.h", | |
| 557 "threading/worker_pool_posix.cc", | |
| 558 "threading/worker_pool_posix.h", | |
| 559 "threading/worker_pool_win.cc", | |
| 560 "time/clock.cc", | |
| 561 "time/clock.h", | |
| 562 "time/default_clock.cc", | |
| 563 "time/default_clock.h", | |
| 564 "time/default_tick_clock.cc", | |
| 565 "time/default_tick_clock.h", | |
| 566 "time/tick_clock.cc", | |
| 567 "time/tick_clock.h", | |
| 568 "time/time.cc", | |
| 569 "time/time.h", | |
| 570 "time/time_mac.cc", | |
| 571 "time/time_posix.cc", | |
| 572 "time/time_win.cc", | |
| 573 "timer/elapsed_timer.cc", | |
| 574 "timer/elapsed_timer.h", | |
| 575 "timer/hi_res_timer_manager.h", | |
| 576 "timer/hi_res_timer_manager_posix.cc", | |
| 577 "timer/hi_res_timer_manager_win.cc", | |
| 578 "timer/mock_timer.cc", | |
| 579 "timer/mock_timer.h", | |
| 580 "timer/timer.cc", | |
| 581 "timer/timer.h", | |
| 582 "tracked_objects.cc", | |
| 583 "tracked_objects.h", | |
| 584 "tracking_info.cc", | |
| 585 "tracking_info.h", | |
| 586 "tuple.h", | |
| 587 "value_conversions.cc", | |
| 588 "value_conversions.h", | |
| 589 "values.cc", | |
| 590 "values.h", | |
| 591 "version.cc", | |
| 592 "version.h", | |
| 593 "vlog.cc", | |
| 594 "vlog.h", | |
| 595 "win/enum_variant.cc", | |
| 596 "win/enum_variant.h", | |
| 597 "win/event_trace_consumer.h", | |
| 598 "win/event_trace_controller.cc", | |
| 599 "win/event_trace_controller.h", | |
| 600 "win/event_trace_provider.cc", | |
| 601 "win/event_trace_provider.h", | |
| 602 "win/i18n.cc", | |
| 603 "win/i18n.h", | |
| 604 "win/iat_patch_function.cc", | |
| 605 "win/iat_patch_function.h", | |
| 606 "win/iunknown_impl.cc", | |
| 607 "win/iunknown_impl.h", | |
| 608 "win/message_window.cc", | |
| 609 "win/message_window.h", | |
| 610 "win/metro.cc", | |
| 611 "win/metro.h", | |
| 612 "win/object_watcher.cc", | |
| 613 "win/object_watcher.h", | |
| 614 "win/registry.cc", | |
| 615 "win/registry.h", | |
| 616 "win/resource_util.cc", | |
| 617 "win/resource_util.h", | |
| 618 "win/scoped_bstr.cc", | |
| 619 "win/scoped_bstr.h", | |
| 620 "win/scoped_co_mem.h", | |
| 621 "win/scoped_com_initializer.h", | |
| 622 "win/scoped_comptr.h", | |
| 623 "win/scoped_gdi_object.h", | |
| 624 "win/scoped_handle.cc", | |
| 625 "win/scoped_handle.h", | |
| 626 "win/scoped_hdc.h", | |
| 627 "win/scoped_hglobal.h", | |
| 628 "win/scoped_process_information.cc", | |
| 629 "win/scoped_process_information.h", | |
| 630 "win/scoped_propvariant.h", | |
| 631 "win/scoped_select_object.h", | |
| 632 "win/scoped_variant.cc", | |
| 633 "win/scoped_variant.h", | |
| 634 "win/shortcut.cc", | |
| 635 "win/shortcut.h", | |
| 636 "win/startup_information.cc", | |
| 637 "win/startup_information.h", | |
| 638 "win/win_util.cc", | |
| 639 "win/win_util.h", | |
| 640 "win/windows_version.cc", | |
| 641 "win/windows_version.h", | |
| 642 "win/wrapped_window_proc.cc", | |
| 643 "win/wrapped_window_proc.h", | |
| 644 ] | |
| 645 | |
| 646 sources -= [ | |
| 647 "sys_info_freebsd.cc", | |
| 648 "sys_info_openbsd.cc", | |
| 649 ] | |
| 650 | |
| 651 data = [] | |
| 652 | |
| 653 configs += [ ":base_implementation" ] | |
| 654 | |
| 655 deps = [ | |
| 656 ":base_static", | |
| 657 "//base/allocator:allocator_extension_thunks", | |
| 658 "//base/third_party/dynamic_annotations", | |
| 659 "//third_party/modp_b64", | |
| 660 ] | |
| 661 | |
| 662 public_deps = [ | |
| 663 ":base_paths", | |
| 664 "//base/debug", | |
| 665 "//base/json", | |
| 666 "//base/memory", | |
| 667 "//base/metrics", | |
| 668 "//base/process", | |
| 669 "//base/trace_event", | |
| 670 ] | |
| 671 | |
| 672 # Allow more direct string conversions on platforms with native utf8 | |
| 673 # strings | |
| 674 if (is_mac || is_ios) { | |
| 675 defines = [ "SYSTEM_NATIVE_UTF8" ] | |
| 676 } | |
| 677 | |
| 678 if (is_android) { | |
| 679 sources -= [ "power_monitor/power_monitor_device_source_posix.cc" ] | |
| 680 | |
| 681 # Android uses some Linux sources, put those back. | |
| 682 set_sources_assignment_filter([]) | |
| 683 sources += [ | |
| 684 "files/file_path_watcher_linux.cc", | |
| 685 "posix/unix_domain_socket_linux.cc", | |
| 686 "sys_info_linux.cc", | |
| 687 ] | |
| 688 set_sources_assignment_filter(sources_assignment_filter) | |
| 689 | |
| 690 deps += [ | |
| 691 ":base_jni_headers", | |
| 692 "//third_party/android_tools:cpu_features", | |
| 693 "//third_party/ashmem", | |
| 694 ] | |
| 695 | |
| 696 defines = [ "ANDROID_LOG_TAG=$android_log_tag" ] | |
| 697 | |
| 698 # logging.cc uses the Android logging library. | |
| 699 libs = [ "log" ] | |
| 700 } | |
| 701 | |
| 702 if (is_nacl) { | |
| 703 # We reset sources_assignment_filter in order to explicitly include | |
| 704 # the linux file (which would otherwise be filtered out). | |
| 705 set_sources_assignment_filter([]) | |
| 706 sources += [ | |
| 707 "files/file_path_watcher_stub.cc", | |
| 708 "sync_socket_nacl.cc", | |
| 709 "threading/platform_thread_linux.cc", | |
| 710 ] | |
| 711 set_sources_assignment_filter(sources_assignment_filter) | |
| 712 | |
| 713 sources -= [ | |
| 714 "allocator/type_profiler_control.cc", | |
| 715 "allocator/type_profiler_control.h", | |
| 716 "async_socket_io_handler_posix.cc", | |
| 717 "cpu.cc", | |
| 718 "files/file_enumerator_posix.cc", | |
| 719 "files/file_proxy.cc", | |
| 720 "files/file_util.cc", | |
| 721 "files/file_util_posix.cc", | |
| 722 "files/file_util_proxy.cc", | |
| 723 "files/important_file_writer.cc", | |
| 724 "files/important_file_writer.h", | |
| 725 "files/scoped_temp_dir.cc", | |
| 726 "message_loop/message_pump_libevent.cc", | |
| 727 "native_library_posix.cc", | |
| 728 "path_service.cc", | |
| 729 "rand_util_posix.cc", | |
| 730 "scoped_native_library.cc", | |
| 731 "sync_socket_posix.cc", | |
| 732 "sys_info.cc", | |
| 733 "sys_info_posix.cc", | |
| 734 ] | |
| 735 | |
| 736 # We build with a 10.9 min sdk version but lots of code in this directory is | |
| 737 # written to target a 10.6 min sdk version and thus depends on declarations | |
| 738 # marked as deprecated on 10.9+. Suppress these warnings for now. | |
| 739 cflags = [ "-Wno-deprecated-declarations" ] | |
| 740 } else { | |
| 741 # Remove NaCl stuff. | |
| 742 sources -= [ | |
| 743 "os_compat_nacl.cc", | |
| 744 "os_compat_nacl.h", | |
| 745 "rand_util_nacl.cc", | |
| 746 ] | |
| 747 } | |
| 748 | |
| 749 # Windows. | |
| 750 if (is_win) { | |
| 751 sources -= [ | |
| 752 "message_loop/message_pump_libevent.cc", | |
| 753 "strings/string16.cc", | |
| 754 | |
| 755 # Not using sha1_win.cc because it may have caused a | |
| 756 # regression to page cycler moz. | |
| 757 "sha1_win.cc", | |
| 758 ] | |
| 759 | |
| 760 # Required for base/stack_trace_win.cc to symbolize correctly. | |
| 761 data += [ "$root_build_dir/dbghelp.dll" ] | |
| 762 | |
| 763 if (is_component_build) { | |
| 764 # Copy the VS runtime DLLs into the isolate so that they don't have to be | |
| 765 # preinstalled on the target machine. The debug runtimes have a "d" at | |
| 766 # the end. | |
| 767 if (is_debug) { | |
| 768 vcrt_suffix = "d" | |
| 769 } else { | |
| 770 vcrt_suffix = "" | |
| 771 } | |
| 772 | |
| 773 # These runtime files are copied to the output directory by the | |
| 774 # vs_toolchain script that runs as part of toolchain configuration. | |
| 775 data += [ | |
| 776 "$root_out_dir/msvcp120${vcrt_suffix}.dll", | |
| 777 "$root_out_dir/msvcr120${vcrt_suffix}.dll", | |
| 778 ] | |
| 779 if (is_asan) { | |
| 780 data += [ "//third_party/llvm-build/Release+Asserts/lib/clang/3.7.0/lib/
windows/clang_rt.asan_dynamic-i386.dll" ] | |
| 781 } | |
| 782 } | |
| 783 | |
| 784 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | |
| 785 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | |
| 786 | |
| 787 libs = [ | |
| 788 "cfgmgr32.lib", | |
| 789 "netapi32.lib", | |
| 790 "powrprof.lib", | |
| 791 "setupapi.lib", | |
| 792 ] | |
| 793 all_dependent_configs = [ ":base_win_linker_flags" ] | |
| 794 } else if (!is_nacl) { | |
| 795 # Non-Windows. | |
| 796 deps += [ "//third_party/libevent" ] | |
| 797 } | |
| 798 | |
| 799 # Mac. | |
| 800 if (is_mac || is_ios) { | |
| 801 # Common Desktop / iOS excludes | |
| 802 sources -= [ | |
| 803 "native_library_posix.cc", | |
| 804 "strings/sys_string_conversions_posix.cc", | |
| 805 "threading/platform_thread_internal_posix.cc", | |
| 806 ] | |
| 807 | |
| 808 if (is_asan) { | |
| 809 # TODO(GYP) hook up asan on Mac. GYP has this extra dylib: | |
| 810 #data += [ "$root_out_dir/libclang_rt.asan_osx_dynamic.dylib" ] | |
| 811 } | |
| 812 | |
| 813 if (is_ios) { | |
| 814 sources -= [ | |
| 815 "files/file_path_watcher_fsevents.cc", | |
| 816 "files/file_path_watcher_fsevents.h", | |
| 817 ] | |
| 818 } | |
| 819 } else { | |
| 820 # Non-Mac. | |
| 821 sources -= [ | |
| 822 "files/file_path_watcher_fsevents.cc", | |
| 823 "files/file_path_watcher_fsevents.h", | |
| 824 "files/file_path_watcher_kqueue.cc", | |
| 825 "files/file_path_watcher_kqueue.h", | |
| 826 ] | |
| 827 } | |
| 828 | |
| 829 # Linux. | |
| 830 if (is_linux) { | |
| 831 if (is_asan || is_lsan || is_msan || is_tsan) { | |
| 832 # For llvm-sanitizer. | |
| 833 data += [ "//third_party/llvm-build/Release+Asserts/lib/libstdc++.so.6" ] | |
| 834 } | |
| 835 | |
| 836 # TODO(brettw) this will need to be parameterized at some point. | |
| 837 linux_configs = [] | |
| 838 | |
| 839 configs += linux_configs | |
| 840 all_dependent_configs = linux_configs | |
| 841 | |
| 842 # These dependencies are not required on Android, and in the case | |
| 843 # of xdg_mime must be excluded due to licensing restrictions. | |
| 844 deps += [ | |
| 845 "//base/third_party/xdg_mime", | |
| 846 "//base/third_party/xdg_user_dirs", | |
| 847 ] | |
| 848 } else { | |
| 849 # Non-Linux. | |
| 850 sources -= [ | |
| 851 "nix/mime_util_xdg.cc", | |
| 852 "nix/mime_util_xdg.h", | |
| 853 "nix/xdg_util.cc", | |
| 854 "nix/xdg_util.h", | |
| 855 ] | |
| 856 | |
| 857 if (!is_android) { | |
| 858 sources -= [ | |
| 859 "linux_util.cc", | |
| 860 "linux_util.h", | |
| 861 ] | |
| 862 } | |
| 863 } | |
| 864 | |
| 865 # iOS | |
| 866 if (is_ios) { | |
| 867 set_sources_assignment_filter([]) | |
| 868 | |
| 869 sources += [ | |
| 870 "atomicops_internals_mac.h", | |
| 871 "base_paths_mac.h", | |
| 872 "base_paths_mac.mm", | |
| 873 "file_version_info_mac.h", | |
| 874 "file_version_info_mac.mm", | |
| 875 "files/file_util_mac.mm", | |
| 876 "mac/bundle_locations.h", | |
| 877 "mac/bundle_locations.mm", | |
| 878 "mac/call_with_eh_frame.cc", | |
| 879 "mac/call_with_eh_frame.h", | |
| 880 "mac/foundation_util.h", | |
| 881 "mac/foundation_util.mm", | |
| 882 "mac/mac_logging.cc", | |
| 883 "mac/mac_logging.h", | |
| 884 "mac/mach_logging.cc", | |
| 885 "mac/mach_logging.h", | |
| 886 "mac/objc_property_releaser.h", | |
| 887 "mac/objc_property_releaser.mm", | |
| 888 "mac/scoped_mach_port.cc", | |
| 889 "mac/scoped_mach_port.h", | |
| 890 "mac/scoped_mach_vm.cc", | |
| 891 "mac/scoped_mach_vm.h", | |
| 892 "mac/scoped_nsautorelease_pool.h", | |
| 893 "mac/scoped_nsautorelease_pool.mm", | |
| 894 "mac/scoped_nsobject.h", | |
| 895 "mac/scoped_objc_class_swizzler.h", | |
| 896 "mac/scoped_objc_class_swizzler.mm", | |
| 897 "message_loop/message_pump_mac.h", | |
| 898 "message_loop/message_pump_mac.mm", | |
| 899 "strings/sys_string_conversions_mac.mm", | |
| 900 "threading/platform_thread_mac.mm", | |
| 901 "time/time_mac.cc", | |
| 902 ] | |
| 903 | |
| 904 set_sources_assignment_filter(sources_assignment_filter) | |
| 905 } | |
| 906 | |
| 907 if (is_asan || is_lsan || is_msan || is_tsan) { | |
| 908 data += [ "//tools/valgrind/asan/" ] | |
| 909 if (is_win) { | |
| 910 data += | |
| 911 [ "//third_party/llvm-build/Release+Asserts/bin/llvm-symbolizer.exe" ] | |
| 912 } else { | |
| 913 data += [ "//third_party/llvm-build/Release+Asserts/bin/llvm-symbolizer" ] | |
| 914 } | |
| 915 } | |
| 916 | |
| 917 configs += [ "//build/config/compiler:wexit_time_destructors" ] | |
| 918 if (!is_debug) { | |
| 919 configs -= [ "//build/config/compiler:optimize" ] | |
| 920 configs += [ "//build/config/compiler:optimize_max" ] | |
| 921 } | |
| 922 | |
| 923 allow_circular_includes_from = public_deps | |
| 924 } | |
| 925 | |
| 926 # This is the subset of files from base that should not be used with a dynamic | |
| 927 # library. Note that this library cannot depend on base because base depends on | |
| 928 # base_static. | |
| 929 source_set("base_static") { | |
| 930 sources = [ | |
| 931 "base_switches.cc", | |
| 932 "base_switches.h", | |
| 933 "win/pe_image.cc", | |
| 934 "win/pe_image.h", | |
| 935 ] | |
| 936 | |
| 937 if (!is_debug) { | |
| 938 configs -= [ "//build/config/compiler:optimize" ] | |
| 939 configs += [ "//build/config/compiler:optimize_max" ] | |
| 940 } | |
| 941 } | |
| 942 | |
| 943 component("i18n") { | |
| 944 output_name = "base_i18n" | |
| 945 sources = [ | |
| 946 "i18n/base_i18n_export.h", | |
| 947 "i18n/bidi_line_iterator.cc", | |
| 948 "i18n/bidi_line_iterator.h", | |
| 949 "i18n/break_iterator.cc", | |
| 950 "i18n/break_iterator.h", | |
| 951 "i18n/case_conversion.cc", | |
| 952 "i18n/case_conversion.h", | |
| 953 "i18n/char_iterator.cc", | |
| 954 "i18n/char_iterator.h", | |
| 955 "i18n/file_util_icu.cc", | |
| 956 "i18n/file_util_icu.h", | |
| 957 "i18n/i18n_constants.cc", | |
| 958 "i18n/i18n_constants.h", | |
| 959 "i18n/icu_encoding_detection.cc", | |
| 960 "i18n/icu_encoding_detection.h", | |
| 961 "i18n/icu_string_conversions.cc", | |
| 962 "i18n/icu_string_conversions.h", | |
| 963 "i18n/icu_util.cc", | |
| 964 "i18n/icu_util.h", | |
| 965 "i18n/number_formatting.cc", | |
| 966 "i18n/number_formatting.h", | |
| 967 "i18n/rtl.cc", | |
| 968 "i18n/rtl.h", | |
| 969 "i18n/streaming_utf8_validator.cc", | |
| 970 "i18n/streaming_utf8_validator.h", | |
| 971 "i18n/string_compare.cc", | |
| 972 "i18n/string_compare.h", | |
| 973 "i18n/string_search.cc", | |
| 974 "i18n/string_search.h", | |
| 975 "i18n/time_formatting.cc", | |
| 976 "i18n/time_formatting.h", | |
| 977 "i18n/timezone.cc", | |
| 978 "i18n/timezone.h", | |
| 979 "i18n/utf8_validator_tables.cc", | |
| 980 "i18n/utf8_validator_tables.h", | |
| 981 ] | |
| 982 defines = [ "BASE_I18N_IMPLEMENTATION" ] | |
| 983 configs += [ "//build/config/compiler:wexit_time_destructors" ] | |
| 984 deps = [ | |
| 985 ":base", | |
| 986 "//base/third_party/dynamic_annotations", | |
| 987 "//third_party/icu", | |
| 988 ] | |
| 989 | |
| 990 if (!is_debug) { | |
| 991 configs -= [ "//build/config/compiler:optimize" ] | |
| 992 configs += [ "//build/config/compiler:optimize_max" ] | |
| 993 } | |
| 994 | |
| 995 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | |
| 996 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | |
| 997 } | |
| 998 | |
| 999 if (is_win || is_linux) { | |
| 1000 # TODO(GYP): Figure out which of these work and are needed on other platforms. | |
| 1001 test("base_perftests") { | |
| 1002 sources = [ | |
| 1003 "message_loop/message_pump_perftest.cc", | |
| 1004 | |
| 1005 # "test/run_all_unittests.cc", | |
| 1006 "threading/thread_perftest.cc", | |
| 1007 ] | |
| 1008 deps = [ | |
| 1009 ":base", | |
| 1010 "//base/test:test_support", | |
| 1011 "//base/test:test_support_perf", | |
| 1012 "//testing/gtest", | |
| 1013 "//testing/perf", | |
| 1014 ] | |
| 1015 | |
| 1016 if (is_android) { | |
| 1017 deps += [ "//testing/android/native_test:native_test_native_code" ] | |
| 1018 } | |
| 1019 } | |
| 1020 | |
| 1021 test("base_i18n_perftests") { | |
| 1022 sources = [ | |
| 1023 "i18n/streaming_utf8_validator_perftest.cc", | |
| 1024 ] | |
| 1025 deps = [ | |
| 1026 ":base", | |
| 1027 ":i18n", | |
| 1028 "//base/test:test_support", | |
| 1029 "//base/test:test_support_perf", | |
| 1030 "//testing/gtest", | |
| 1031 ] | |
| 1032 } | |
| 1033 | |
| 1034 if (!is_ios) { | |
| 1035 executable("build_utf8_validator_tables") { | |
| 1036 sources = [ | |
| 1037 "i18n/build_utf8_validator_tables.cc", | |
| 1038 ] | |
| 1039 deps = [ | |
| 1040 ":base", | |
| 1041 "//third_party/icu:icuuc", | |
| 1042 ] | |
| 1043 } | |
| 1044 | |
| 1045 executable("check_example") { | |
| 1046 sources = [ | |
| 1047 "check_example.cc", | |
| 1048 ] | |
| 1049 deps = [ | |
| 1050 ":base", | |
| 1051 ] | |
| 1052 } | |
| 1053 } | |
| 1054 } | |
| 1055 | |
| 1056 component("prefs") { | |
| 1057 sources = [ | |
| 1058 "prefs/base_prefs_export.h", | |
| 1059 "prefs/default_pref_store.cc", | |
| 1060 "prefs/default_pref_store.h", | |
| 1061 "prefs/json_pref_store.cc", | |
| 1062 "prefs/json_pref_store.h", | |
| 1063 "prefs/overlay_user_pref_store.cc", | |
| 1064 "prefs/overlay_user_pref_store.h", | |
| 1065 "prefs/persistent_pref_store.h", | |
| 1066 "prefs/pref_change_registrar.cc", | |
| 1067 "prefs/pref_change_registrar.h", | |
| 1068 "prefs/pref_filter.h", | |
| 1069 "prefs/pref_member.cc", | |
| 1070 "prefs/pref_member.h", | |
| 1071 "prefs/pref_notifier.h", | |
| 1072 "prefs/pref_notifier_impl.cc", | |
| 1073 "prefs/pref_notifier_impl.h", | |
| 1074 "prefs/pref_observer.h", | |
| 1075 "prefs/pref_registry.cc", | |
| 1076 "prefs/pref_registry.h", | |
| 1077 "prefs/pref_registry_simple.cc", | |
| 1078 "prefs/pref_registry_simple.h", | |
| 1079 "prefs/pref_service.cc", | |
| 1080 "prefs/pref_service.h", | |
| 1081 "prefs/pref_service_factory.cc", | |
| 1082 "prefs/pref_service_factory.h", | |
| 1083 "prefs/pref_store.cc", | |
| 1084 "prefs/pref_store.h", | |
| 1085 "prefs/pref_value_map.cc", | |
| 1086 "prefs/pref_value_map.h", | |
| 1087 "prefs/pref_value_store.cc", | |
| 1088 "prefs/pref_value_store.h", | |
| 1089 "prefs/scoped_user_pref_update.cc", | |
| 1090 "prefs/scoped_user_pref_update.h", | |
| 1091 "prefs/value_map_pref_store.cc", | |
| 1092 "prefs/value_map_pref_store.h", | |
| 1093 "prefs/writeable_pref_store.h", | |
| 1094 ] | |
| 1095 | |
| 1096 defines = [ "BASE_PREFS_IMPLEMENTATION" ] | |
| 1097 | |
| 1098 deps = [ | |
| 1099 ":base", | |
| 1100 ] | |
| 1101 | |
| 1102 if (!is_debug) { | |
| 1103 configs -= [ "//build/config/compiler:optimize" ] | |
| 1104 configs += [ "//build/config/compiler:optimize_max" ] | |
| 1105 } | |
| 1106 } | |
| 1107 | |
| 1108 source_set("prefs_test_support") { | |
| 1109 testonly = true | |
| 1110 sources = [ | |
| 1111 "prefs/mock_pref_change_callback.cc", | |
| 1112 "prefs/mock_pref_change_callback.h", | |
| 1113 "prefs/pref_store_observer_mock.cc", | |
| 1114 "prefs/pref_store_observer_mock.h", | |
| 1115 "prefs/testing_pref_service.cc", | |
| 1116 "prefs/testing_pref_service.h", | |
| 1117 "prefs/testing_pref_store.cc", | |
| 1118 "prefs/testing_pref_store.h", | |
| 1119 ] | |
| 1120 | |
| 1121 public_deps = [ | |
| 1122 ":prefs", | |
| 1123 ] | |
| 1124 deps = [ | |
| 1125 ":base", | |
| 1126 "//testing/gmock", | |
| 1127 "//testing/gtest", | |
| 1128 ] | |
| 1129 } | |
| 1130 | |
| 1131 source_set("message_loop_tests") { | |
| 1132 testonly = true | |
| 1133 sources = [ | |
| 1134 "message_loop/message_loop_test.cc", | |
| 1135 "message_loop/message_loop_test.h", | |
| 1136 ] | |
| 1137 | |
| 1138 deps = [ | |
| 1139 ":base", | |
| 1140 "//testing/gtest", | |
| 1141 ] | |
| 1142 } | |
| 1143 | |
| 1144 if (is_win) { | |
| 1145 # Target to manually rebuild pe_image_test.dll which is checked into | |
| 1146 # base/test/data/pe_image. | |
| 1147 shared_library("pe_image_test") { | |
| 1148 sources = [ | |
| 1149 "win/pe_image_test.cc", | |
| 1150 ] | |
| 1151 ldflags = [ | |
| 1152 "/DELAYLOAD:cfgmgr32.dll", | |
| 1153 "/DELAYLOAD:shell32.dll", | |
| 1154 "/SUBSYSTEM:WINDOWS", | |
| 1155 ] | |
| 1156 libs = [ | |
| 1157 "cfgmgr32.lib", | |
| 1158 "shell32.lib", | |
| 1159 ] | |
| 1160 } | |
| 1161 } | |
| 1162 | |
| 1163 # TODO(GYP): Delete this after we've converted everything to GN. | |
| 1164 # The _run targets exist only for compatibility w/ GYP. | |
| 1165 group("base_unittests_run") { | |
| 1166 testonly = true | |
| 1167 deps = [ | |
| 1168 ":base_unittests", | |
| 1169 ] | |
| 1170 } | |
| 1171 | |
| 1172 test("base_unittests") { | |
| 1173 sources = [ | |
| 1174 "android/application_status_listener_unittest.cc", | |
| 1175 "android/content_uri_utils_unittest.cc", | |
| 1176 "android/jni_android_unittest.cc", | |
| 1177 "android/jni_array_unittest.cc", | |
| 1178 "android/jni_string_unittest.cc", | |
| 1179 "android/library_loader/library_prefetcher_unittest.cc", | |
| 1180 "android/path_utils_unittest.cc", | |
| 1181 "android/scoped_java_ref_unittest.cc", | |
| 1182 "android/sys_utils_unittest.cc", | |
| 1183 "async_socket_io_handler_unittest.cc", | |
| 1184 "at_exit_unittest.cc", | |
| 1185 "atomicops_unittest.cc", | |
| 1186 "barrier_closure_unittest.cc", | |
| 1187 "base64_unittest.cc", | |
| 1188 "big_endian_unittest.cc", | |
| 1189 "bind_unittest.cc", | |
| 1190 "bind_unittest.nc", | |
| 1191 "bits_unittest.cc", | |
| 1192 "build_time_unittest.cc", | |
| 1193 "callback_helpers_unittest.cc", | |
| 1194 "callback_list_unittest.cc", | |
| 1195 "callback_list_unittest.nc", | |
| 1196 "callback_unittest.cc", | |
| 1197 "callback_unittest.nc", | |
| 1198 "cancelable_callback_unittest.cc", | |
| 1199 "command_line_unittest.cc", | |
| 1200 "containers/adapters_unittest.cc", | |
| 1201 "containers/hash_tables_unittest.cc", | |
| 1202 "containers/linked_list_unittest.cc", | |
| 1203 "containers/mru_cache_unittest.cc", | |
| 1204 "containers/scoped_ptr_hash_map_unittest.cc", | |
| 1205 "containers/scoped_ptr_map_unittest.cc", | |
| 1206 "containers/small_map_unittest.cc", | |
| 1207 "containers/stack_container_unittest.cc", | |
| 1208 "cpu_unittest.cc", | |
| 1209 "debug/crash_logging_unittest.cc", | |
| 1210 "debug/debugger_unittest.cc", | |
| 1211 "debug/leak_tracker_unittest.cc", | |
| 1212 "debug/proc_maps_linux_unittest.cc", | |
| 1213 "debug/stack_trace_unittest.cc", | |
| 1214 "debug/task_annotator_unittest.cc", | |
| 1215 "deferred_sequenced_task_runner_unittest.cc", | |
| 1216 "environment_unittest.cc", | |
| 1217 "file_version_info_unittest.cc", | |
| 1218 "files/dir_reader_posix_unittest.cc", | |
| 1219 "files/file_path_unittest.cc", | |
| 1220 "files/file_path_watcher_unittest.cc", | |
| 1221 "files/file_proxy_unittest.cc", | |
| 1222 "files/file_unittest.cc", | |
| 1223 "files/file_util_proxy_unittest.cc", | |
| 1224 "files/file_util_unittest.cc", | |
| 1225 "files/important_file_writer_unittest.cc", | |
| 1226 "files/scoped_temp_dir_unittest.cc", | |
| 1227 "gmock_unittest.cc", | |
| 1228 "guid_unittest.cc", | |
| 1229 "hash_unittest.cc", | |
| 1230 "i18n/break_iterator_unittest.cc", | |
| 1231 "i18n/case_conversion_unittest.cc", | |
| 1232 "i18n/char_iterator_unittest.cc", | |
| 1233 "i18n/file_util_icu_unittest.cc", | |
| 1234 "i18n/icu_string_conversions_unittest.cc", | |
| 1235 "i18n/number_formatting_unittest.cc", | |
| 1236 "i18n/rtl_unittest.cc", | |
| 1237 "i18n/streaming_utf8_validator_unittest.cc", | |
| 1238 "i18n/string_search_unittest.cc", | |
| 1239 "i18n/time_formatting_unittest.cc", | |
| 1240 "i18n/timezone_unittest.cc", | |
| 1241 "id_map_unittest.cc", | |
| 1242 "ios/device_util_unittest.mm", | |
| 1243 "ios/weak_nsobject_unittest.mm", | |
| 1244 "json/json_parser_unittest.cc", | |
| 1245 "json/json_reader_unittest.cc", | |
| 1246 "json/json_value_converter_unittest.cc", | |
| 1247 "json/json_value_serializer_unittest.cc", | |
| 1248 "json/json_writer_unittest.cc", | |
| 1249 "json/string_escape_unittest.cc", | |
| 1250 "lazy_instance_unittest.cc", | |
| 1251 "logging_unittest.cc", | |
| 1252 "mac/bind_objc_block_unittest.mm", | |
| 1253 "mac/call_with_eh_frame_unittest.mm", | |
| 1254 "mac/dispatch_source_mach_unittest.cc", | |
| 1255 "mac/foundation_util_unittest.mm", | |
| 1256 "mac/libdispatch_task_runner_unittest.cc", | |
| 1257 "mac/mac_util_unittest.mm", | |
| 1258 "mac/objc_property_releaser_unittest.mm", | |
| 1259 "mac/scoped_nsobject_unittest.mm", | |
| 1260 "mac/scoped_objc_class_swizzler_unittest.mm", | |
| 1261 "mac/scoped_sending_event_unittest.mm", | |
| 1262 "md5_unittest.cc", | |
| 1263 "memory/aligned_memory_unittest.cc", | |
| 1264 "memory/discardable_shared_memory_unittest.cc", | |
| 1265 "memory/linked_ptr_unittest.cc", | |
| 1266 "memory/memory_pressure_monitor_chromeos_unittest.cc", | |
| 1267 "memory/memory_pressure_monitor_win_unittest.cc", | |
| 1268 "memory/ref_counted_memory_unittest.cc", | |
| 1269 "memory/ref_counted_unittest.cc", | |
| 1270 "memory/scoped_ptr_unittest.cc", | |
| 1271 "memory/scoped_ptr_unittest.nc", | |
| 1272 "memory/scoped_vector_unittest.cc", | |
| 1273 "memory/shared_memory_unittest.cc", | |
| 1274 "memory/singleton_unittest.cc", | |
| 1275 "memory/weak_ptr_unittest.cc", | |
| 1276 "memory/weak_ptr_unittest.nc", | |
| 1277 "message_loop/message_loop_task_runner_unittest.cc", | |
| 1278 "message_loop/message_loop_unittest.cc", | |
| 1279 "message_loop/message_pump_io_ios_unittest.cc", | |
| 1280 "metrics/bucket_ranges_unittest.cc", | |
| 1281 "metrics/field_trial_unittest.cc", | |
| 1282 "metrics/histogram_base_unittest.cc", | |
| 1283 "metrics/histogram_delta_serialization_unittest.cc", | |
| 1284 "metrics/histogram_snapshot_manager_unittest.cc", | |
| 1285 "metrics/histogram_unittest.cc", | |
| 1286 "metrics/sample_map_unittest.cc", | |
| 1287 "metrics/sample_vector_unittest.cc", | |
| 1288 "metrics/sparse_histogram_unittest.cc", | |
| 1289 "metrics/statistics_recorder_unittest.cc", | |
| 1290 "move_unittest.cc", | |
| 1291 "numerics/safe_numerics_unittest.cc", | |
| 1292 "observer_list_unittest.cc", | |
| 1293 "os_compat_android_unittest.cc", | |
| 1294 "path_service_unittest.cc", | |
| 1295 "pickle_unittest.cc", | |
| 1296 "posix/file_descriptor_shuffle_unittest.cc", | |
| 1297 "posix/unix_domain_socket_linux_unittest.cc", | |
| 1298 "power_monitor/power_monitor_unittest.cc", | |
| 1299 "prefs/default_pref_store_unittest.cc", | |
| 1300 "prefs/json_pref_store_unittest.cc", | |
| 1301 "prefs/overlay_user_pref_store_unittest.cc", | |
| 1302 "prefs/pref_change_registrar_unittest.cc", | |
| 1303 "prefs/pref_member_unittest.cc", | |
| 1304 "prefs/pref_notifier_impl_unittest.cc", | |
| 1305 "prefs/pref_service_unittest.cc", | |
| 1306 "prefs/pref_value_map_unittest.cc", | |
| 1307 "prefs/pref_value_store_unittest.cc", | |
| 1308 "prefs/scoped_user_pref_update_unittest.cc", | |
| 1309 "process/memory_unittest.cc", | |
| 1310 "process/memory_unittest_mac.h", | |
| 1311 "process/memory_unittest_mac.mm", | |
| 1312 "process/process_metrics_unittest.cc", | |
| 1313 "process/process_metrics_unittest_ios.cc", | |
| 1314 "process/process_unittest.cc", | |
| 1315 "process/process_util_unittest.cc", | |
| 1316 "process/process_util_unittest_ios.cc", | |
| 1317 "profiler/stack_sampling_profiler_unittest.cc", | |
| 1318 "profiler/tracked_time_unittest.cc", | |
| 1319 "rand_util_unittest.cc", | |
| 1320 "scoped_clear_errno_unittest.cc", | |
| 1321 "scoped_generic_unittest.cc", | |
| 1322 "scoped_native_library_unittest.cc", | |
| 1323 "security_unittest.cc", | |
| 1324 "sequence_checker_unittest.cc", | |
| 1325 "sha1_unittest.cc", | |
| 1326 "stl_util_unittest.cc", | |
| 1327 "strings/nullable_string16_unittest.cc", | |
| 1328 "strings/pattern_unittest.cc", | |
| 1329 "strings/safe_sprintf_unittest.cc", | |
| 1330 "strings/string16_unittest.cc", | |
| 1331 "strings/string_number_conversions_unittest.cc", | |
| 1332 "strings/string_piece_unittest.cc", | |
| 1333 "strings/string_split_unittest.cc", | |
| 1334 "strings/string_tokenizer_unittest.cc", | |
| 1335 "strings/string_util_unittest.cc", | |
| 1336 "strings/stringize_macros_unittest.cc", | |
| 1337 "strings/stringprintf_unittest.cc", | |
| 1338 "strings/sys_string_conversions_mac_unittest.mm", | |
| 1339 "strings/sys_string_conversions_unittest.cc", | |
| 1340 "strings/utf_offset_string_conversions_unittest.cc", | |
| 1341 "strings/utf_string_conversions_unittest.cc", | |
| 1342 "supports_user_data_unittest.cc", | |
| 1343 "sync_socket_unittest.cc", | |
| 1344 "synchronization/cancellation_flag_unittest.cc", | |
| 1345 "synchronization/condition_variable_unittest.cc", | |
| 1346 "synchronization/lock_unittest.cc", | |
| 1347 "synchronization/waitable_event_unittest.cc", | |
| 1348 "synchronization/waitable_event_watcher_unittest.cc", | |
| 1349 "sys_info_unittest.cc", | |
| 1350 "system_monitor/system_monitor_unittest.cc", | |
| 1351 "task/cancelable_task_tracker_unittest.cc", | |
| 1352 "task_runner_util_unittest.cc", | |
| 1353 "template_util_unittest.cc", | |
| 1354 "test/expectations/expectation_unittest.cc", | |
| 1355 "test/expectations/parser_unittest.cc", | |
| 1356 "test/histogram_tester_unittest.cc", | |
| 1357 "test/icu_test_util.cc", | |
| 1358 "test/icu_test_util.h", | |
| 1359 "test/test_reg_util_win_unittest.cc", | |
| 1360 "test/trace_event_analyzer_unittest.cc", | |
| 1361 "test/user_action_tester_unittest.cc", | |
| 1362 "threading/non_thread_safe_unittest.cc", | |
| 1363 "threading/platform_thread_unittest.cc", | |
| 1364 "threading/sequenced_worker_pool_unittest.cc", | |
| 1365 "threading/simple_thread_unittest.cc", | |
| 1366 "threading/thread_checker_unittest.cc", | |
| 1367 "threading/thread_collision_warner_unittest.cc", | |
| 1368 "threading/thread_id_name_manager_unittest.cc", | |
| 1369 "threading/thread_local_storage_unittest.cc", | |
| 1370 "threading/thread_local_unittest.cc", | |
| 1371 "threading/thread_unittest.cc", | |
| 1372 "threading/watchdog_unittest.cc", | |
| 1373 "threading/worker_pool_posix_unittest.cc", | |
| 1374 "threading/worker_pool_unittest.cc", | |
| 1375 "time/pr_time_unittest.cc", | |
| 1376 "time/time_unittest.cc", | |
| 1377 "time/time_win_unittest.cc", | |
| 1378 "timer/hi_res_timer_manager_unittest.cc", | |
| 1379 "timer/mock_timer_unittest.cc", | |
| 1380 "timer/timer_unittest.cc", | |
| 1381 "tools_sanity_unittest.cc", | |
| 1382 "tracked_objects_unittest.cc", | |
| 1383 "tuple_unittest.cc", | |
| 1384 "values_unittest.cc", | |
| 1385 "version_unittest.cc", | |
| 1386 "vlog_unittest.cc", | |
| 1387 "win/dllmain.cc", | |
| 1388 "win/enum_variant_unittest.cc", | |
| 1389 "win/event_trace_consumer_unittest.cc", | |
| 1390 "win/event_trace_controller_unittest.cc", | |
| 1391 "win/event_trace_provider_unittest.cc", | |
| 1392 "win/i18n_unittest.cc", | |
| 1393 "win/iunknown_impl_unittest.cc", | |
| 1394 "win/message_window_unittest.cc", | |
| 1395 "win/object_watcher_unittest.cc", | |
| 1396 "win/pe_image_unittest.cc", | |
| 1397 "win/registry_unittest.cc", | |
| 1398 "win/scoped_bstr_unittest.cc", | |
| 1399 "win/scoped_comptr_unittest.cc", | |
| 1400 "win/scoped_process_information_unittest.cc", | |
| 1401 "win/scoped_variant_unittest.cc", | |
| 1402 "win/shortcut_unittest.cc", | |
| 1403 "win/startup_information_unittest.cc", | |
| 1404 "win/win_util_unittest.cc", | |
| 1405 "win/wrapped_window_proc_unittest.cc", | |
| 1406 ] | |
| 1407 | |
| 1408 deps = [ | |
| 1409 ":base", | |
| 1410 ":i18n", | |
| 1411 ":message_loop_tests", | |
| 1412 ":prefs", | |
| 1413 ":prefs_test_support", | |
| 1414 "//base/allocator", | |
| 1415 "//base/test:run_all_unittests", | |
| 1416 "//base/test:test_support", | |
| 1417 "//base/third_party/dynamic_annotations", | |
| 1418 "//base/trace_event:trace_event_unittests", | |
| 1419 "//testing/gmock", | |
| 1420 "//testing/gtest", | |
| 1421 "//third_party/icu", | |
| 1422 ] | |
| 1423 | |
| 1424 data = [ | |
| 1425 "test/data/", | |
| 1426 ] | |
| 1427 | |
| 1428 # Allow more direct string conversions on platforms with native utf8 | |
| 1429 # strings | |
| 1430 if (is_mac || is_ios) { | |
| 1431 defines = [ "SYSTEM_NATIVE_UTF8" ] | |
| 1432 } | |
| 1433 | |
| 1434 if (is_android) { | |
| 1435 apk_deps = [ | |
| 1436 ":base_java", | |
| 1437 ":base_java_unittest_support", | |
| 1438 ] | |
| 1439 | |
| 1440 # TODO(brettw) I think this should not be here, we should not be using | |
| 1441 # isolate files. | |
| 1442 isolate_file = "base_unittests.isolate" | |
| 1443 } | |
| 1444 | |
| 1445 if (is_ios) { | |
| 1446 sources -= [ | |
| 1447 "process/memory_unittest.cc", | |
| 1448 "process/process_unittest.cc", | |
| 1449 "process/process_util_unittest.cc", | |
| 1450 ] | |
| 1451 | |
| 1452 # Pull in specific Mac files for iOS (which have been filtered out by file | |
| 1453 # name rules). | |
| 1454 set_sources_assignment_filter([]) | |
| 1455 sources += [ | |
| 1456 "mac/bind_objc_block_unittest.mm", | |
| 1457 "mac/foundation_util_unittest.mm", | |
| 1458 "mac/objc_property_releaser_unittest.mm", | |
| 1459 "mac/scoped_nsobject_unittest.mm", | |
| 1460 "sys_string_conversions_mac_unittest.mm", | |
| 1461 ] | |
| 1462 set_sources_assignment_filter(sources_assignment_filter) | |
| 1463 | |
| 1464 # TODO(GYP): dep on copy_test_data_ios action. | |
| 1465 } | |
| 1466 | |
| 1467 if (is_linux) { | |
| 1468 sources -= [ "file_version_info_unittest.cc" ] | |
| 1469 sources += [ "nix/xdg_util_unittest.cc" ] | |
| 1470 deps += [ "//base/test:malloc_wrapper" ] | |
| 1471 } | |
| 1472 | |
| 1473 if (is_posix || is_ios) { | |
| 1474 sources += [ "message_loop/message_pump_libevent_unittest.cc" ] | |
| 1475 deps += [ "//third_party/libevent" ] | |
| 1476 } | |
| 1477 | |
| 1478 if (is_android) { | |
| 1479 deps += [ "//testing/android/native_test:native_test_native_code" ] | |
| 1480 set_sources_assignment_filter([]) | |
| 1481 sources += [ "debug/proc_maps_linux_unittest.cc" ] | |
| 1482 set_sources_assignment_filter(sources_assignment_filter) | |
| 1483 } | |
| 1484 | |
| 1485 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | |
| 1486 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | |
| 1487 | |
| 1488 # Symbols for crashes when running tests on swarming. | |
| 1489 if (symbol_level > 0) { | |
| 1490 if (is_win) { | |
| 1491 data += [ "$root_out_dir/base_unittests.exe.pdb" ] | |
| 1492 } else if (is_mac) { | |
| 1493 data += [ "$root_out_dir/base_unittests.dSYM/" ] | |
| 1494 } | |
| 1495 } | |
| 1496 } | |
| 1497 | |
| 1498 if (is_android) { | |
| 1499 # GYP: //base.gyp:base_jni_headers | |
| 1500 generate_jni("base_jni_headers") { | |
| 1501 sources = [ | |
| 1502 "android/java/src/org/chromium/base/AnimationFrameTimeHistogram.java", | |
| 1503 "android/java/src/org/chromium/base/ApkAssets.java", | |
| 1504 "android/java/src/org/chromium/base/ApplicationStatus.java", | |
| 1505 "android/java/src/org/chromium/base/BuildInfo.java", | |
| 1506 "android/java/src/org/chromium/base/CommandLine.java", | |
| 1507 "android/java/src/org/chromium/base/ContentUriUtils.java", | |
| 1508 "android/java/src/org/chromium/base/CpuFeatures.java", | |
| 1509 "android/java/src/org/chromium/base/EventLog.java", | |
| 1510 "android/java/src/org/chromium/base/FieldTrialList.java", | |
| 1511 "android/java/src/org/chromium/base/ImportantFileWriterAndroid.java", | |
| 1512 "android/java/src/org/chromium/base/JNIUtils.java", | |
| 1513 "android/java/src/org/chromium/base/JavaHandlerThread.java", | |
| 1514 "android/java/src/org/chromium/base/LocaleUtils.java", | |
| 1515 "android/java/src/org/chromium/base/MemoryPressureListener.java", | |
| 1516 "android/java/src/org/chromium/base/PathService.java", | |
| 1517 "android/java/src/org/chromium/base/PathUtils.java", | |
| 1518 "android/java/src/org/chromium/base/PowerMonitor.java", | |
| 1519 "android/java/src/org/chromium/base/SysUtils.java", | |
| 1520 "android/java/src/org/chromium/base/SystemMessageHandler.java", | |
| 1521 "android/java/src/org/chromium/base/ThreadUtils.java", | |
| 1522 "android/java/src/org/chromium/base/TraceEvent.java", | |
| 1523 "android/java/src/org/chromium/base/library_loader/LibraryLoader.java", | |
| 1524 "android/java/src/org/chromium/base/metrics/RecordHistogram.java", | |
| 1525 "android/java/src/org/chromium/base/metrics/RecordUserAction.java", | |
| 1526 ] | |
| 1527 | |
| 1528 public_deps = [ | |
| 1529 ":android_runtime_jni_headers", | |
| 1530 ] | |
| 1531 | |
| 1532 jni_package = "base" | |
| 1533 } | |
| 1534 | |
| 1535 # GYP: //base.gyp:android_runtime_jni_headers | |
| 1536 generate_jar_jni("android_runtime_jni_headers") { | |
| 1537 jni_package = "base" | |
| 1538 classes = [ "java/lang/Runtime.class" ] | |
| 1539 } | |
| 1540 | |
| 1541 # GYP: //base.gyp:base_java | |
| 1542 android_library("base_java") { | |
| 1543 srcjar_deps = [ | |
| 1544 ":base_android_java_enums_srcjar", | |
| 1545 ":base_native_libraries_gen", | |
| 1546 ] | |
| 1547 | |
| 1548 deps = [ | |
| 1549 "//third_party/jsr-305:jsr_305_javalib", | |
| 1550 ] | |
| 1551 | |
| 1552 DEPRECATED_java_in_dir = "android/java/src" | |
| 1553 | |
| 1554 # A new version of NativeLibraries.java (with the actual correct values) | |
| 1555 # will be created when creating an apk. | |
| 1556 jar_excluded_patterns = [ | |
| 1557 "*/NativeLibraries.class", | |
| 1558 "*/NativeLibraries##*.class", | |
| 1559 ] | |
| 1560 } | |
| 1561 | |
| 1562 # GYP: //base.gyp:base_javatests | |
| 1563 android_library("base_javatests") { | |
| 1564 deps = [ | |
| 1565 ":base_java", | |
| 1566 ":base_java_test_support", | |
| 1567 ] | |
| 1568 DEPRECATED_java_in_dir = "android/javatests/src" | |
| 1569 } | |
| 1570 | |
| 1571 # GYP: //base.gyp:base_java_test_support | |
| 1572 android_library("base_java_test_support") { | |
| 1573 deps = [ | |
| 1574 ":base_java", | |
| 1575 "//testing/android/reporter:reporter_java", | |
| 1576 ] | |
| 1577 DEPRECATED_java_in_dir = "test/android/javatests/src" | |
| 1578 } | |
| 1579 | |
| 1580 # GYP: //base.gyp:base_junit_tests | |
| 1581 junit_binary("base_junit_tests") { | |
| 1582 java_files = [ "android/junit/src/org/chromium/base/LogTest.java" ] | |
| 1583 deps = [ | |
| 1584 ":base_java", | |
| 1585 ":base_java_test_support", | |
| 1586 ] | |
| 1587 } | |
| 1588 | |
| 1589 # GYP: //base.gyp:base_java_application_state | |
| 1590 # GYP: //base.gyp:base_java_library_load_from_apk_status_codes | |
| 1591 # GYP: //base.gyp:base_java_library_process_type | |
| 1592 # GYP: //base.gyp:base_java_memory_pressure_level | |
| 1593 java_cpp_enum("base_android_java_enums_srcjar") { | |
| 1594 sources = [ | |
| 1595 "android/application_status_listener.h", | |
| 1596 "android/library_loader/library_load_from_apk_status_codes.h", | |
| 1597 "android/library_loader/library_loader_hooks.h", | |
| 1598 "memory/memory_pressure_listener.h", | |
| 1599 ] | |
| 1600 outputs = [ | |
| 1601 "org/chromium/base/ApplicationState.java", | |
| 1602 "org/chromium/base/library_loader/LibraryLoadFromApkStatusCodes.java", | |
| 1603 "org/chromium/base/library_loader/LibraryProcessType.java", | |
| 1604 "org/chromium/base/MemoryPressureLevel.java", | |
| 1605 ] | |
| 1606 } | |
| 1607 | |
| 1608 # GYP: //base/base.gyp:base_native_libraries_gen | |
| 1609 java_cpp_template("base_native_libraries_gen") { | |
| 1610 sources = [ | |
| 1611 "android/java/templates/NativeLibraries.template", | |
| 1612 ] | |
| 1613 package_name = "org/chromium/base/library_loader" | |
| 1614 } | |
| 1615 | |
| 1616 # GYP: //base.gyp:base_java_unittest_support | |
| 1617 android_library("base_java_unittest_support") { | |
| 1618 deps = [ | |
| 1619 ":base_java", | |
| 1620 ] | |
| 1621 java_files = | |
| 1622 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] | |
| 1623 } | |
| 1624 } | |
| OLD | NEW |