| OLD | NEW |
| (Empty) |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 { | |
| 6 'variables': { | |
| 7 'chromium_code': 1, | |
| 8 }, | |
| 9 'includes': [ | |
| 10 '../build/win_precompile.gypi', | |
| 11 'base.gypi', | |
| 12 ], | |
| 13 'targets': [ | |
| 14 { | |
| 15 'target_name': 'base', | |
| 16 'type': '<(component)', | |
| 17 'toolsets': ['host', 'target'], | |
| 18 'variables': { | |
| 19 'base_target': 1, | |
| 20 'enable_wexit_time_destructors': 1, | |
| 21 'optimize': 'max', | |
| 22 }, | |
| 23 'dependencies': [ | |
| 24 'allocator/allocator.gyp:allocator', | |
| 25 'allocator/allocator.gyp:allocator_features#target', | |
| 26 'base_debugging_flags#target', | |
| 27 'base_win_features#target', | |
| 28 'base_static', | |
| 29 'base_build_date#target', | |
| 30 '../testing/gtest.gyp:gtest_prod', | |
| 31 '../third_party/modp_b64/modp_b64.gyp:modp_b64', | |
| 32 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotat
ions', | |
| 33 ], | |
| 34 # TODO(gregoryd): direct_dependent_settings should be shared with the | |
| 35 # 64-bit target, but it doesn't work due to a bug in gyp | |
| 36 'direct_dependent_settings': { | |
| 37 'include_dirs': [ | |
| 38 '..', | |
| 39 ], | |
| 40 }, | |
| 41 'conditions': [ | |
| 42 ['desktop_linux == 1 or chromeos == 1', { | |
| 43 'conditions': [ | |
| 44 ['chromeos==1', { | |
| 45 'sources/': [ ['include', '_chromeos\\.cc$'] ] | |
| 46 }], | |
| 47 ], | |
| 48 'dependencies': [ | |
| 49 'symbolize', | |
| 50 'xdg_mime', | |
| 51 ], | |
| 52 'defines': [ | |
| 53 'USE_SYMBOLIZE', | |
| 54 ], | |
| 55 }, { # desktop_linux == 0 and chromeos == 0 | |
| 56 'sources/': [ | |
| 57 ['exclude', '/xdg_user_dirs/'], | |
| 58 ['exclude', '_nss\\.cc$'], | |
| 59 ], | |
| 60 }], | |
| 61 ['use_glib==1', { | |
| 62 'dependencies': [ | |
| 63 '../build/linux/system.gyp:glib', | |
| 64 ], | |
| 65 'export_dependent_settings': [ | |
| 66 '../build/linux/system.gyp:glib', | |
| 67 ], | |
| 68 }], | |
| 69 ['OS == "android" and _toolset == "host"', { | |
| 70 # Always build base as a static_library for host toolset, even if | |
| 71 # we're doing a component build. Specifically, we only care about the | |
| 72 # target toolset using components since that's what developers are | |
| 73 # focusing on. In theory we should do this more generally for all | |
| 74 # targets when building for host, but getting the gyp magic | |
| 75 # per-toolset for the "component" variable is hard, and we really only | |
| 76 # need base on host. | |
| 77 'type': 'static_library', | |
| 78 # Base for host support is the minimum required to run the | |
| 79 # ssl false start blacklist tool. It requires further changes | |
| 80 # to generically support host builds (and tests). | |
| 81 # Note: when building for host, gyp has OS == "android", | |
| 82 # hence the *_android.cc files are included but the actual code | |
| 83 # doesn't have OS_ANDROID / ANDROID defined. | |
| 84 'conditions': [ | |
| 85 ['host_os == "mac"', { | |
| 86 'sources/': [ | |
| 87 ['exclude', '^native_library_linux\\.cc$'], | |
| 88 ['exclude', '^process_util_linux\\.cc$'], | |
| 89 ['exclude', '^sys_info_linux\\.cc$'], | |
| 90 ['exclude', '^sys_string_conversions_linux\\.cc$'], | |
| 91 ['exclude', '^worker_pool_linux\\.cc$'], | |
| 92 ], | |
| 93 }], | |
| 94 ], | |
| 95 }], | |
| 96 ['OS == "android" and _toolset == "target"', { | |
| 97 'dependencies': [ | |
| 98 'base_java', | |
| 99 'base_jni_headers', | |
| 100 '../build/android/ndk.gyp:cpu_features', | |
| 101 '../third_party/ashmem/ashmem.gyp:ashmem', | |
| 102 ], | |
| 103 'link_settings': { | |
| 104 'libraries': [ | |
| 105 '-llog', | |
| 106 ], | |
| 107 }, | |
| 108 'sources!': [ | |
| 109 'debug/stack_trace_posix.cc', | |
| 110 ], | |
| 111 }], | |
| 112 ['os_bsd==1', { | |
| 113 'include_dirs': [ | |
| 114 '/usr/local/include', | |
| 115 ], | |
| 116 'link_settings': { | |
| 117 'libraries': [ | |
| 118 '-L/usr/local/lib -lexecinfo', | |
| 119 ], | |
| 120 }, | |
| 121 }], | |
| 122 ['OS == "linux"', { | |
| 123 'link_settings': { | |
| 124 'libraries': [ | |
| 125 # We need rt for clock_gettime(). | |
| 126 '-lrt', | |
| 127 # For 'native_library_linux.cc' | |
| 128 '-ldl', | |
| 129 ], | |
| 130 }, | |
| 131 'conditions': [ | |
| 132 ['use_allocator!="tcmalloc"', { | |
| 133 'defines': [ | |
| 134 'NO_TCMALLOC', | |
| 135 ], | |
| 136 'direct_dependent_settings': { | |
| 137 'defines': [ | |
| 138 'NO_TCMALLOC', | |
| 139 ], | |
| 140 }, | |
| 141 }], | |
| 142 ], | |
| 143 }], | |
| 144 ['use_sysroot==0 and (OS == "android" or OS == "linux")', { | |
| 145 'link_settings': { | |
| 146 'libraries': [ | |
| 147 # Needed for <atomic> when building with newer C++ library. | |
| 148 '-latomic', | |
| 149 ], | |
| 150 }, | |
| 151 }], | |
| 152 ['OS == "win"', { | |
| 153 # Specify delayload for base.dll. | |
| 154 'msvs_settings': { | |
| 155 'VCLinkerTool': { | |
| 156 'DelayLoadDLLs': [ | |
| 157 'cfgmgr32.dll', | |
| 158 'powrprof.dll', | |
| 159 'setupapi.dll', | |
| 160 ], | |
| 161 'AdditionalDependencies': [ | |
| 162 'cfgmgr32.lib', | |
| 163 'powrprof.lib', | |
| 164 'setupapi.lib', | |
| 165 'userenv.lib', | |
| 166 'winmm.lib', | |
| 167 ], | |
| 168 }, | |
| 169 }, | |
| 170 # Specify delayload for components that link with base.lib. | |
| 171 'all_dependent_settings': { | |
| 172 'msvs_settings': { | |
| 173 'VCLinkerTool': { | |
| 174 'DelayLoadDLLs': [ | |
| 175 'cfgmgr32.dll', | |
| 176 'powrprof.dll', | |
| 177 'setupapi.dll', | |
| 178 ], | |
| 179 'AdditionalDependencies': [ | |
| 180 'cfgmgr32.lib', | |
| 181 'powrprof.lib', | |
| 182 'setupapi.lib', | |
| 183 'userenv.lib', | |
| 184 'winmm.lib', | |
| 185 ], | |
| 186 }, | |
| 187 }, | |
| 188 }, | |
| 189 'dependencies': [ | |
| 190 'trace_event/etw_manifest/etw_manifest.gyp:etw_manifest', | |
| 191 ], | |
| 192 }], | |
| 193 ['OS == "mac" or (OS == "ios" and _toolset == "host")', { | |
| 194 'link_settings': { | |
| 195 'libraries': [ | |
| 196 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework', | |
| 197 '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framewor
k', | |
| 198 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework', | |
| 199 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework', | |
| 200 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', | |
| 201 '$(SDKROOT)/System/Library/Frameworks/IOKit.framework', | |
| 202 '$(SDKROOT)/System/Library/Frameworks/Security.framework', | |
| 203 '$(SDKROOT)/usr/lib/libbsm.dylib', | |
| 204 ], | |
| 205 }, | |
| 206 }], | |
| 207 ['OS == "ios" and _toolset != "host"', { | |
| 208 'link_settings': { | |
| 209 'libraries': [ | |
| 210 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework', | |
| 211 '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework', | |
| 212 '$(SDKROOT)/System/Library/Frameworks/CoreText.framework', | |
| 213 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', | |
| 214 '$(SDKROOT)/System/Library/Frameworks/UIKit.framework', | |
| 215 ], | |
| 216 }, | |
| 217 }], | |
| 218 ['OS != "win" and (OS != "ios" or _toolset == "host")', { | |
| 219 'dependencies': ['third_party/libevent/libevent.gyp:libevent'], | |
| 220 },], | |
| 221 ['component=="shared_library"', { | |
| 222 'conditions': [ | |
| 223 ['OS=="win"', { | |
| 224 'sources!': [ | |
| 225 'debug/debug_on_start_win.cc', | |
| 226 ], | |
| 227 }], | |
| 228 ], | |
| 229 }], | |
| 230 ['OS=="ios"', { | |
| 231 'sources!': [ | |
| 232 'sync_socket.h', | |
| 233 'sync_socket_posix.cc', | |
| 234 ] | |
| 235 }], | |
| 236 ['use_experimental_allocator_shim==1', { | |
| 237 'dependencies': [ 'allocator/allocator.gyp:unified_allocator_shim'] | |
| 238 }], | |
| 239 ], | |
| 240 'sources': [ | |
| 241 'auto_reset.h', | |
| 242 'linux_util.cc', | |
| 243 'linux_util.h', | |
| 244 'message_loop/message_pump_android.cc', | |
| 245 'message_loop/message_pump_android.h', | |
| 246 'message_loop/message_pump_glib.cc', | |
| 247 'message_loop/message_pump_glib.h', | |
| 248 'message_loop/message_pump_io_ios.cc', | |
| 249 'message_loop/message_pump_io_ios.h', | |
| 250 'message_loop/message_pump_libevent.cc', | |
| 251 'message_loop/message_pump_libevent.h', | |
| 252 'message_loop/message_pump_mac.h', | |
| 253 'message_loop/message_pump_mac.mm', | |
| 254 'metrics/field_trial.cc', | |
| 255 'metrics/field_trial.h', | |
| 256 'posix/file_descriptor_shuffle.cc', | |
| 257 'posix/file_descriptor_shuffle.h', | |
| 258 'sync_socket.h', | |
| 259 'sync_socket_posix.cc', | |
| 260 'sync_socket_win.cc', | |
| 261 'third_party/xdg_user_dirs/xdg_user_dir_lookup.cc', | |
| 262 'third_party/xdg_user_dirs/xdg_user_dir_lookup.h', | |
| 263 ], | |
| 264 'includes': [ | |
| 265 '../build/android/increase_size_for_speed.gypi', | |
| 266 ], | |
| 267 }, | |
| 268 { | |
| 269 'target_name': 'base_i18n', | |
| 270 'type': '<(component)', | |
| 271 'variables': { | |
| 272 'enable_wexit_time_destructors': 1, | |
| 273 'optimize': 'max', | |
| 274 'base_i18n_target': 1, | |
| 275 }, | |
| 276 'dependencies': [ | |
| 277 'base', | |
| 278 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotat
ions', | |
| 279 '../third_party/ced/ced.gyp:ced', | |
| 280 '../third_party/icu/icu.gyp:icui18n', | |
| 281 '../third_party/icu/icu.gyp:icuuc', | |
| 282 ], | |
| 283 'conditions': [ | |
| 284 ['OS == "win"', { | |
| 285 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | |
| 286 'msvs_disabled_warnings': [ | |
| 287 4267, | |
| 288 ], | |
| 289 }], | |
| 290 ['icu_use_data_file_flag==1', { | |
| 291 'defines': ['ICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE'], | |
| 292 }, { # else icu_use_data_file_flag !=1 | |
| 293 'conditions': [ | |
| 294 ['OS=="win"', { | |
| 295 'defines': ['ICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_SHARED'], | |
| 296 }, { | |
| 297 'defines': ['ICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC'], | |
| 298 }], | |
| 299 ], | |
| 300 }], | |
| 301 ['OS == "ios"', { | |
| 302 'toolsets': ['host', 'target'], | |
| 303 }], | |
| 304 ], | |
| 305 'export_dependent_settings': [ | |
| 306 'base', | |
| 307 '../third_party/icu/icu.gyp:icuuc', | |
| 308 '../third_party/icu/icu.gyp:icui18n', | |
| 309 ], | |
| 310 'includes': [ | |
| 311 '../build/android/increase_size_for_speed.gypi', | |
| 312 ], | |
| 313 }, | |
| 314 { | |
| 315 'target_name': 'base_message_loop_tests', | |
| 316 'type': 'static_library', | |
| 317 'dependencies': [ | |
| 318 'base', | |
| 319 '../testing/gtest.gyp:gtest', | |
| 320 ], | |
| 321 'sources': [ | |
| 322 'message_loop/message_loop_test.cc', | |
| 323 'message_loop/message_loop_test.h', | |
| 324 ], | |
| 325 }, | |
| 326 { | |
| 327 # This is the subset of files from base that should not be used with a | |
| 328 # dynamic library. Note that this library cannot depend on base because | |
| 329 # base depends on base_static. | |
| 330 'target_name': 'base_static', | |
| 331 'type': 'static_library', | |
| 332 'variables': { | |
| 333 'enable_wexit_time_destructors': 1, | |
| 334 'optimize': 'max', | |
| 335 }, | |
| 336 'toolsets': ['host', 'target'], | |
| 337 'sources': [ | |
| 338 'base_switches.cc', | |
| 339 'base_switches.h', | |
| 340 'win/pe_image.cc', | |
| 341 'win/pe_image.h', | |
| 342 ], | |
| 343 'include_dirs': [ | |
| 344 '..', | |
| 345 ], | |
| 346 'includes': [ | |
| 347 '../build/android/increase_size_for_speed.gypi', | |
| 348 ], | |
| 349 }, | |
| 350 # Include this target for a main() function that simply instantiates | |
| 351 # and runs a base::TestSuite. | |
| 352 { | |
| 353 'target_name': 'run_all_unittests', | |
| 354 'type': 'static_library', | |
| 355 'dependencies': [ | |
| 356 'test_support_base', | |
| 357 ], | |
| 358 'sources': [ | |
| 359 'test/run_all_unittests.cc', | |
| 360 ], | |
| 361 }, | |
| 362 { | |
| 363 'target_name': 'base_unittests', | |
| 364 'type': '<(gtest_target_type)', | |
| 365 'sources': [ | |
| 366 'allocator/tcmalloc_unittest.cc', | |
| 367 'android/application_status_listener_unittest.cc', | |
| 368 'android/content_uri_utils_unittest.cc', | |
| 369 'android/jni_android_unittest.cc', | |
| 370 'android/jni_array_unittest.cc', | |
| 371 'android/jni_string_unittest.cc', | |
| 372 'android/library_loader/library_prefetcher_unittest.cc', | |
| 373 'android/path_utils_unittest.cc', | |
| 374 'android/scoped_java_ref_unittest.cc', | |
| 375 'android/sys_utils_unittest.cc', | |
| 376 'at_exit_unittest.cc', | |
| 377 'atomicops_unittest.cc', | |
| 378 'barrier_closure_unittest.cc', | |
| 379 'base64_unittest.cc', | |
| 380 'base64url_unittest.cc', | |
| 381 'big_endian_unittest.cc', | |
| 382 'bind_helpers_unittest.cc', | |
| 383 'bind_unittest.cc', | |
| 384 'bind_unittest.nc', | |
| 385 'bit_cast_unittest.cc', | |
| 386 'bits_unittest.cc', | |
| 387 'build_time_unittest.cc', | |
| 388 'callback_helpers_unittest.cc', | |
| 389 'callback_list_unittest.cc', | |
| 390 'callback_list_unittest.nc', | |
| 391 'callback_unittest.cc', | |
| 392 'callback_unittest.nc', | |
| 393 'cancelable_callback_unittest.cc', | |
| 394 'command_line_unittest.cc', | |
| 395 'containers/adapters_unittest.cc', | |
| 396 'containers/hash_tables_unittest.cc', | |
| 397 'containers/linked_list_unittest.cc', | |
| 398 'containers/mru_cache_unittest.cc', | |
| 399 'containers/scoped_ptr_hash_map_unittest.cc', | |
| 400 'containers/small_map_unittest.cc', | |
| 401 'containers/stack_container_unittest.cc', | |
| 402 'cpu_unittest.cc', | |
| 403 'debug/activity_analyzer_unittest.cc', | |
| 404 'debug/activity_tracker_unittest.cc', | |
| 405 'debug/crash_logging_unittest.cc', | |
| 406 'debug/debugger_unittest.cc', | |
| 407 'debug/leak_tracker_unittest.cc', | |
| 408 'debug/proc_maps_linux_unittest.cc', | |
| 409 'debug/stack_trace_unittest.cc', | |
| 410 'debug/task_annotator_unittest.cc', | |
| 411 'deferred_sequenced_task_runner_unittest.cc', | |
| 412 'environment_unittest.cc', | |
| 413 'feature_list_unittest.cc', | |
| 414 'file_version_info_win_unittest.cc', | |
| 415 'files/dir_reader_posix_unittest.cc', | |
| 416 'files/file_locking_unittest.cc', | |
| 417 'files/file_path_unittest.cc', | |
| 418 'files/file_path_watcher_unittest.cc', | |
| 419 'files/file_proxy_unittest.cc', | |
| 420 'files/file_unittest.cc', | |
| 421 'files/file_util_proxy_unittest.cc', | |
| 422 'files/file_util_unittest.cc', | |
| 423 'files/important_file_writer_unittest.cc', | |
| 424 'files/memory_mapped_file_unittest.cc', | |
| 425 'files/scoped_temp_dir_unittest.cc', | |
| 426 'gmock_unittest.cc', | |
| 427 'guid_unittest.cc', | |
| 428 'hash_unittest.cc', | |
| 429 'i18n/break_iterator_unittest.cc', | |
| 430 'i18n/case_conversion_unittest.cc', | |
| 431 'i18n/char_iterator_unittest.cc', | |
| 432 'i18n/file_util_icu_unittest.cc', | |
| 433 'i18n/icu_string_conversions_unittest.cc', | |
| 434 'i18n/message_formatter_unittest.cc', | |
| 435 'i18n/number_formatting_unittest.cc', | |
| 436 'i18n/rtl_unittest.cc', | |
| 437 'i18n/streaming_utf8_validator_unittest.cc', | |
| 438 'i18n/string_search_unittest.cc', | |
| 439 'i18n/time_formatting_unittest.cc', | |
| 440 'i18n/timezone_unittest.cc', | |
| 441 'id_map_unittest.cc', | |
| 442 'ios/crb_protocol_observers_unittest.mm', | |
| 443 'ios/device_util_unittest.mm', | |
| 444 'ios/weak_nsobject_unittest.mm', | |
| 445 'json/json_parser_unittest.cc', | |
| 446 'json/json_reader_unittest.cc', | |
| 447 'json/json_value_converter_unittest.cc', | |
| 448 'json/json_value_serializer_unittest.cc', | |
| 449 'json/json_writer_unittest.cc', | |
| 450 'json/string_escape_unittest.cc', | |
| 451 'lazy_instance_unittest.cc', | |
| 452 'logging_unittest.cc', | |
| 453 'mac/bind_objc_block_unittest.mm', | |
| 454 'mac/call_with_eh_frame_unittest.mm', | |
| 455 'mac/dispatch_source_mach_unittest.cc', | |
| 456 'mac/foundation_util_unittest.mm', | |
| 457 'mac/mac_util_unittest.mm', | |
| 458 'mac/mach_port_broker_unittest.cc', | |
| 459 'mac/objc_property_releaser_unittest.mm', | |
| 460 'mac/scoped_nsobject_unittest.mm', | |
| 461 'mac/scoped_objc_class_swizzler_unittest.mm', | |
| 462 'mac/scoped_sending_event_unittest.mm', | |
| 463 'md5_unittest.cc', | |
| 464 'memory/aligned_memory_unittest.cc', | |
| 465 'memory/discardable_shared_memory_unittest.cc', | |
| 466 'memory/linked_ptr_unittest.cc', | |
| 467 'memory/memory_pressure_listener_unittest.cc', | |
| 468 'memory/memory_pressure_monitor_chromeos_unittest.cc', | |
| 469 'memory/memory_pressure_monitor_mac_unittest.cc', | |
| 470 'memory/memory_pressure_monitor_win_unittest.cc', | |
| 471 'memory/ptr_util_unittest.cc', | |
| 472 'memory/ref_counted_memory_unittest.cc', | |
| 473 'memory/ref_counted_unittest.cc', | |
| 474 'memory/scoped_vector_unittest.cc', | |
| 475 'memory/shared_memory_mac_unittest.cc', | |
| 476 'memory/shared_memory_unittest.cc', | |
| 477 'memory/shared_memory_win_unittest.cc', | |
| 478 'memory/singleton_unittest.cc', | |
| 479 'memory/weak_ptr_unittest.cc', | |
| 480 'memory/weak_ptr_unittest.nc', | |
| 481 'message_loop/message_loop_task_runner_unittest.cc', | |
| 482 'message_loop/message_loop_unittest.cc', | |
| 483 'message_loop/message_pump_glib_unittest.cc', | |
| 484 'message_loop/message_pump_io_ios_unittest.cc', | |
| 485 'message_loop/message_pump_libevent_unittest.cc', | |
| 486 'metrics/bucket_ranges_unittest.cc', | |
| 487 'metrics/field_trial_unittest.cc', | |
| 488 'metrics/histogram_base_unittest.cc', | |
| 489 'metrics/histogram_delta_serialization_unittest.cc', | |
| 490 'metrics/histogram_macros_unittest.cc', | |
| 491 'metrics/histogram_snapshot_manager_unittest.cc', | |
| 492 'metrics/histogram_unittest.cc', | |
| 493 'metrics/metrics_hashes_unittest.cc', | |
| 494 'metrics/persistent_histogram_allocator_unittest.cc', | |
| 495 'metrics/persistent_memory_allocator_unittest.cc', | |
| 496 'metrics/persistent_sample_map_unittest.cc', | |
| 497 'metrics/sample_map_unittest.cc', | |
| 498 'metrics/sample_vector_unittest.cc', | |
| 499 'metrics/sparse_histogram_unittest.cc', | |
| 500 'metrics/statistics_recorder_unittest.cc', | |
| 501 'native_library_unittest.cc', | |
| 502 'numerics/safe_numerics_unittest.cc', | |
| 503 'observer_list_unittest.cc', | |
| 504 'optional_unittest.cc', | |
| 505 'os_compat_android_unittest.cc', | |
| 506 'path_service_unittest.cc', | |
| 507 'pickle_unittest.cc', | |
| 508 'posix/file_descriptor_shuffle_unittest.cc', | |
| 509 'posix/unix_domain_socket_linux_unittest.cc', | |
| 510 'power_monitor/power_monitor_unittest.cc', | |
| 511 'process/memory_unittest.cc', | |
| 512 'process/memory_unittest_mac.h', | |
| 513 'process/memory_unittest_mac.mm', | |
| 514 'process/process_metrics_unittest.cc', | |
| 515 'process/process_metrics_unittest_ios.cc', | |
| 516 'process/process_unittest.cc', | |
| 517 'process/process_util_unittest.cc', | |
| 518 'profiler/stack_sampling_profiler_unittest.cc', | |
| 519 'profiler/tracked_time_unittest.cc', | |
| 520 'rand_util_unittest.cc', | |
| 521 'run_loop_unittest.cc', | |
| 522 'scoped_clear_errno_unittest.cc', | |
| 523 'scoped_generic_unittest.cc', | |
| 524 'scoped_native_library_unittest.cc', | |
| 525 'security_unittest.cc', | |
| 526 'sequence_checker_unittest.cc', | |
| 527 'sequence_token_unittest.cc', | |
| 528 'sequenced_task_runner_unittest.cc', | |
| 529 'sha1_unittest.cc', | |
| 530 'stl_util_unittest.cc', | |
| 531 'strings/nullable_string16_unittest.cc', | |
| 532 'strings/pattern_unittest.cc', | |
| 533 'strings/safe_sprintf_unittest.cc', | |
| 534 'strings/string16_unittest.cc', | |
| 535 'strings/string_number_conversions_unittest.cc', | |
| 536 'strings/string_piece_unittest.cc', | |
| 537 'strings/string_split_unittest.cc', | |
| 538 'strings/string_tokenizer_unittest.cc', | |
| 539 'strings/string_util_unittest.cc', | |
| 540 'strings/stringize_macros_unittest.cc', | |
| 541 'strings/stringprintf_unittest.cc', | |
| 542 'strings/sys_string_conversions_mac_unittest.mm', | |
| 543 'strings/sys_string_conversions_unittest.cc', | |
| 544 'strings/utf_offset_string_conversions_unittest.cc', | |
| 545 'strings/utf_string_conversions_unittest.cc', | |
| 546 'supports_user_data_unittest.cc', | |
| 547 'sync_socket_unittest.cc', | |
| 548 'synchronization/atomic_flag_unittest.cc', | |
| 549 'synchronization/condition_variable_unittest.cc', | |
| 550 'synchronization/lock_unittest.cc', | |
| 551 'synchronization/read_write_lock_unittest.cc', | |
| 552 'synchronization/waitable_event_unittest.cc', | |
| 553 'synchronization/waitable_event_watcher_unittest.cc', | |
| 554 'sys_byteorder_unittest.cc', | |
| 555 'sys_info_unittest.cc', | |
| 556 'system_monitor/system_monitor_unittest.cc', | |
| 557 'task/cancelable_task_tracker_unittest.cc', | |
| 558 'task_runner_util_unittest.cc', | |
| 559 'task_scheduler/delayed_task_manager_unittest.cc', | |
| 560 'task_scheduler/priority_queue_unittest.cc', | |
| 561 'task_scheduler/scheduler_lock_unittest.cc', | |
| 562 'task_scheduler/scheduler_service_thread_unittest.cc', | |
| 563 'task_scheduler/scheduler_worker_pool_impl_unittest.cc', | |
| 564 'task_scheduler/scheduler_worker_stack_unittest.cc', | |
| 565 'task_scheduler/scheduler_worker_unittest.cc', | |
| 566 'task_scheduler/sequence_sort_key_unittest.cc', | |
| 567 'task_scheduler/sequence_unittest.cc', | |
| 568 'task_scheduler/task_scheduler_impl_unittest.cc', | |
| 569 'task_scheduler/task_tracker_unittest.cc', | |
| 570 'task_scheduler/test_task_factory.cc', | |
| 571 'task_scheduler/test_task_factory.h', | |
| 572 'template_util_unittest.cc', | |
| 573 'test/histogram_tester_unittest.cc', | |
| 574 'test/test_pending_task_unittest.cc', | |
| 575 'test/test_reg_util_win_unittest.cc', | |
| 576 'test/trace_event_analyzer_unittest.cc', | |
| 577 'test/user_action_tester_unittest.cc', | |
| 578 'threading/non_thread_safe_unittest.cc', | |
| 579 'threading/platform_thread_unittest.cc', | |
| 580 'threading/post_task_and_reply_impl_unittest.cc', | |
| 581 'threading/sequenced_task_runner_handle_unittest.cc', | |
| 582 'threading/sequenced_worker_pool_unittest.cc', | |
| 583 'threading/simple_thread_unittest.cc', | |
| 584 'threading/thread_checker_unittest.cc', | |
| 585 'threading/thread_collision_warner_unittest.cc', | |
| 586 'threading/thread_id_name_manager_unittest.cc', | |
| 587 'threading/thread_local_storage_unittest.cc', | |
| 588 'threading/thread_local_unittest.cc', | |
| 589 'threading/thread_unittest.cc', | |
| 590 'threading/watchdog_unittest.cc', | |
| 591 'threading/worker_pool_posix_unittest.cc', | |
| 592 'threading/worker_pool_unittest.cc', | |
| 593 'time/pr_time_unittest.cc', | |
| 594 'time/time_unittest.cc', | |
| 595 'time/time_win_unittest.cc', | |
| 596 'timer/hi_res_timer_manager_unittest.cc', | |
| 597 'timer/mock_timer_unittest.cc', | |
| 598 'timer/timer_unittest.cc', | |
| 599 'tools_sanity_unittest.cc', | |
| 600 'tracked_objects_unittest.cc', | |
| 601 'tuple_unittest.cc', | |
| 602 'values_unittest.cc', | |
| 603 'version_unittest.cc', | |
| 604 'vlog_unittest.cc', | |
| 605 'win/dllmain.cc', | |
| 606 'win/enum_variant_unittest.cc', | |
| 607 'win/event_trace_consumer_unittest.cc', | |
| 608 'win/event_trace_controller_unittest.cc', | |
| 609 'win/event_trace_provider_unittest.cc', | |
| 610 'win/i18n_unittest.cc', | |
| 611 'win/iunknown_impl_unittest.cc', | |
| 612 'win/message_window_unittest.cc', | |
| 613 'win/object_watcher_unittest.cc', | |
| 614 'win/pe_image_unittest.cc', | |
| 615 'win/registry_unittest.cc', | |
| 616 'win/scoped_bstr_unittest.cc', | |
| 617 'win/scoped_comptr_unittest.cc', | |
| 618 'win/scoped_handle_unittest.cc', | |
| 619 'win/scoped_process_information_unittest.cc', | |
| 620 'win/scoped_variant_unittest.cc', | |
| 621 'win/shortcut_unittest.cc', | |
| 622 'win/startup_information_unittest.cc', | |
| 623 'win/wait_chain_unittest.cc', | |
| 624 'win/win_util_unittest.cc', | |
| 625 'win/windows_version_unittest.cc', | |
| 626 'win/wrapped_window_proc_unittest.cc', | |
| 627 '<@(trace_event_test_sources)', | |
| 628 ], | |
| 629 'dependencies': [ | |
| 630 'allocator/allocator.gyp:allocator_features#target', | |
| 631 'base', | |
| 632 'base_i18n', | |
| 633 'base_message_loop_tests', | |
| 634 'base_static', | |
| 635 'run_all_unittests', | |
| 636 'test_support_base', | |
| 637 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotat
ions', | |
| 638 '../testing/gmock.gyp:gmock', | |
| 639 '../testing/gtest.gyp:gtest', | |
| 640 '../third_party/ced/ced.gyp:ced', | |
| 641 '../third_party/icu/icu.gyp:icui18n', | |
| 642 '../third_party/icu/icu.gyp:icuuc', | |
| 643 ], | |
| 644 'includes': ['../build/nocompile.gypi'], | |
| 645 'variables': { | |
| 646 # TODO(ajwong): Is there a way to autodetect this? | |
| 647 'module_dir': 'base' | |
| 648 }, | |
| 649 'conditions': [ | |
| 650 ['cfi_vptr==1 and cfi_cast==1', { | |
| 651 'defines': [ | |
| 652 # TODO(krasin): remove CFI_CAST_CHECK, see https://crbug.com/626794
. | |
| 653 'CFI_CAST_CHECK', | |
| 654 ], | |
| 655 }], | |
| 656 ['OS == "ios" or OS == "mac"', { | |
| 657 'dependencies': [ | |
| 658 'base_unittests_arc', | |
| 659 ], | |
| 660 }], | |
| 661 ['OS == "android"', { | |
| 662 'dependencies': [ | |
| 663 'android/jni_generator/jni_generator.gyp:jni_generator_tests', | |
| 664 '../testing/android/native_test.gyp:native_test_native_code', | |
| 665 ], | |
| 666 }], | |
| 667 ['OS == "ios" and _toolset != "host"', { | |
| 668 'sources/': [ | |
| 669 # This test needs multiple processes. | |
| 670 ['exclude', '^files/file_locking_unittest\\.cc$'], | |
| 671 # iOS does not support FilePathWatcher. | |
| 672 ['exclude', '^files/file_path_watcher_unittest\\.cc$'], | |
| 673 # Only test the iOS-meaningful portion of memory and process_utils. | |
| 674 ['exclude', '^memory/discardable_shared_memory_unittest\\.cc$'], | |
| 675 ['exclude', '^memory/shared_memory_unittest\\.cc$'], | |
| 676 ['exclude', '^process/memory_unittest'], | |
| 677 ['exclude', '^process/process_unittest\\.cc$'], | |
| 678 ['exclude', '^process/process_util_unittest\\.cc$'], | |
| 679 ['include', '^process/process_util_unittest_ios\\.cc$'], | |
| 680 # iOS does not use message_pump_libevent. | |
| 681 ['exclude', '^message_loop/message_pump_libevent_unittest\\.cc$'], | |
| 682 ], | |
| 683 'actions': [ | |
| 684 { | |
| 685 'action_name': 'copy_test_data', | |
| 686 'variables': { | |
| 687 'test_data_files': [ | |
| 688 'test/data', | |
| 689 ], | |
| 690 'test_data_prefix': 'base', | |
| 691 }, | |
| 692 'includes': [ '../build/copy_test_data_ios.gypi' ], | |
| 693 }, | |
| 694 ], | |
| 695 }], | |
| 696 ['desktop_linux == 1 or chromeos == 1', { | |
| 697 'defines': [ | |
| 698 'USE_SYMBOLIZE', | |
| 699 ], | |
| 700 'conditions': [ | |
| 701 [ 'desktop_linux==1', { | |
| 702 'sources': [ | |
| 703 'nix/xdg_util_unittest.cc', | |
| 704 ], | |
| 705 }], | |
| 706 ], | |
| 707 }], | |
| 708 ['use_glib == 1', { | |
| 709 'dependencies': [ | |
| 710 '../build/linux/system.gyp:glib', | |
| 711 ], | |
| 712 }, { # use_glib == 0 | |
| 713 'sources!': [ | |
| 714 'message_loop/message_pump_glib_unittest.cc', | |
| 715 ] | |
| 716 }], | |
| 717 ['use_ozone == 1', { | |
| 718 'sources!': [ | |
| 719 'message_loop/message_pump_glib_unittest.cc', | |
| 720 ] | |
| 721 }], | |
| 722 ['OS == "linux"', { | |
| 723 'dependencies': [ | |
| 724 'malloc_wrapper', | |
| 725 ], | |
| 726 }], | |
| 727 [ 'OS == "win" and target_arch == "x64"', { | |
| 728 'sources': [ | |
| 729 'profiler/win32_stack_frame_unwinder_unittest.cc', | |
| 730 ], | |
| 731 'dependencies': [ | |
| 732 'base_profiler_test_support_library', | |
| 733 ], | |
| 734 }], | |
| 735 ['OS == "win"', { | |
| 736 'dependencies': [ | |
| 737 'scoped_handle_test_dll' | |
| 738 ], | |
| 739 'sources!': [ | |
| 740 'file_descriptor_shuffle_unittest.cc', | |
| 741 'files/dir_reader_posix_unittest.cc', | |
| 742 'message_loop/message_pump_libevent_unittest.cc', | |
| 743 'threading/worker_pool_posix_unittest.cc', | |
| 744 ], | |
| 745 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | |
| 746 'msvs_disabled_warnings': [ | |
| 747 4267, | |
| 748 ], | |
| 749 'conditions': [ | |
| 750 ['icu_use_data_file_flag==0', { | |
| 751 # This is needed to trigger the dll copy step on windows. | |
| 752 # TODO(mark): This should not be necessary. | |
| 753 'dependencies': [ | |
| 754 '../third_party/icu/icu.gyp:icudata', | |
| 755 ], | |
| 756 }], | |
| 757 ], | |
| 758 }, { # OS != "win" | |
| 759 'dependencies': [ | |
| 760 'third_party/libevent/libevent.gyp:libevent' | |
| 761 ], | |
| 762 }], | |
| 763 ['use_experimental_allocator_shim==1', { | |
| 764 'sources': [ 'allocator/allocator_shim_unittest.cc'] | |
| 765 }], | |
| 766 ], # conditions | |
| 767 'target_conditions': [ | |
| 768 ['OS == "ios" and _toolset != "host"', { | |
| 769 'sources/': [ | |
| 770 # Pull in specific Mac files for iOS (which have been filtered out | |
| 771 # by file name rules). | |
| 772 ['include', '^mac/bind_objc_block_unittest\\.mm$'], | |
| 773 ['include', '^mac/foundation_util_unittest\\.mm$',], | |
| 774 ['include', '^mac/objc_property_releaser_unittest\\.mm$'], | |
| 775 ['include', '^mac/scoped_nsobject_unittest\\.mm$'], | |
| 776 ['include', '^sys_string_conversions_mac_unittest\\.mm$'], | |
| 777 ], | |
| 778 }], | |
| 779 ['OS == "android"', { | |
| 780 'sources/': [ | |
| 781 ['include', '^debug/proc_maps_linux_unittest\\.cc$'], | |
| 782 ], | |
| 783 }], | |
| 784 # Enable more direct string conversions on platforms with native utf8 | |
| 785 # strings | |
| 786 ['OS=="mac" or OS=="ios" or <(chromeos)==1 or <(chromecast)==1', { | |
| 787 'defines': ['SYSTEM_NATIVE_UTF8'], | |
| 788 }], | |
| 789 # SyncSocket isn't used on iOS | |
| 790 ['OS=="ios"', { | |
| 791 'sources!': [ | |
| 792 'sync_socket_unittest.cc', | |
| 793 ], | |
| 794 }], | |
| 795 ], # target_conditions | |
| 796 }, | |
| 797 { | |
| 798 # GN: //base:base_perftests | |
| 799 'target_name': 'base_perftests', | |
| 800 'type': '<(gtest_target_type)', | |
| 801 'dependencies': [ | |
| 802 'base', | |
| 803 'test_support_base', | |
| 804 '../testing/gtest.gyp:gtest', | |
| 805 ], | |
| 806 'sources': [ | |
| 807 'message_loop/message_pump_perftest.cc', | |
| 808 'test/run_all_unittests.cc', | |
| 809 'threading/thread_perftest.cc', | |
| 810 '../testing/perf/perf_test.cc' | |
| 811 ], | |
| 812 'conditions': [ | |
| 813 ['OS == "android"', { | |
| 814 'dependencies': [ | |
| 815 '../testing/android/native_test.gyp:native_test_native_code', | |
| 816 ], | |
| 817 }], | |
| 818 ], | |
| 819 }, | |
| 820 { | |
| 821 # GN: //base:base_i18n_perftests | |
| 822 'target_name': 'base_i18n_perftests', | |
| 823 'type': '<(gtest_target_type)', | |
| 824 'dependencies': [ | |
| 825 'test_support_base', | |
| 826 'test_support_perf', | |
| 827 '../testing/gtest.gyp:gtest', | |
| 828 'base_i18n', | |
| 829 'base', | |
| 830 ], | |
| 831 'sources': [ | |
| 832 'i18n/streaming_utf8_validator_perftest.cc', | |
| 833 ], | |
| 834 }, | |
| 835 { | |
| 836 # GN: //base/test:test_support | |
| 837 'target_name': 'test_support_base', | |
| 838 'type': 'static_library', | |
| 839 'dependencies': [ | |
| 840 'base', | |
| 841 'base_static', | |
| 842 'base_i18n', | |
| 843 '../testing/gmock.gyp:gmock', | |
| 844 '../testing/gtest.gyp:gtest', | |
| 845 '../third_party/icu/icu.gyp:icuuc', | |
| 846 '../third_party/libxml/libxml.gyp:libxml', | |
| 847 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotat
ions', | |
| 848 ], | |
| 849 'export_dependent_settings': [ | |
| 850 'base', | |
| 851 ], | |
| 852 'conditions': [ | |
| 853 ['os_posix==0', { | |
| 854 'sources!': [ | |
| 855 'test/scoped_locale.cc', | |
| 856 'test/scoped_locale.h', | |
| 857 ], | |
| 858 }], | |
| 859 ['os_bsd==1', { | |
| 860 'sources!': [ | |
| 861 'test/test_file_util_linux.cc', | |
| 862 ], | |
| 863 }], | |
| 864 ['OS == "android"', { | |
| 865 'dependencies': [ | |
| 866 'base_unittests_jni_headers', | |
| 867 'base_java_unittest_support', | |
| 868 ], | |
| 869 }], | |
| 870 ['OS == "ios"', { | |
| 871 'toolsets': ['host', 'target'], | |
| 872 }], | |
| 873 ], | |
| 874 'sources': [ | |
| 875 'test/gtest_util.cc', | |
| 876 'test/gtest_util.h', | |
| 877 'test/gtest_xml_unittest_result_printer.cc', | |
| 878 'test/gtest_xml_unittest_result_printer.h', | |
| 879 'test/gtest_xml_util.cc', | |
| 880 'test/gtest_xml_util.h', | |
| 881 'test/histogram_tester.cc', | |
| 882 'test/histogram_tester.h', | |
| 883 'test/icu_test_util.cc', | |
| 884 'test/icu_test_util.h', | |
| 885 'test/ios/wait_util.h', | |
| 886 'test/ios/wait_util.mm', | |
| 887 'test/launcher/test_launcher.cc', | |
| 888 'test/launcher/test_launcher.h', | |
| 889 'test/launcher/test_launcher_tracer.cc', | |
| 890 'test/launcher/test_launcher_tracer.h', | |
| 891 'test/launcher/test_result.cc', | |
| 892 'test/launcher/test_result.h', | |
| 893 'test/launcher/test_results_tracker.cc', | |
| 894 'test/launcher/test_results_tracker.h', | |
| 895 'test/launcher/unit_test_launcher.cc', | |
| 896 'test/launcher/unit_test_launcher.h', | |
| 897 'test/launcher/unit_test_launcher_ios.cc', | |
| 898 'test/mock_chrome_application_mac.h', | |
| 899 'test/mock_chrome_application_mac.mm', | |
| 900 'test/mock_devices_changed_observer.cc', | |
| 901 'test/mock_devices_changed_observer.h', | |
| 902 'test/mock_entropy_provider.cc', | |
| 903 'test/mock_entropy_provider.h', | |
| 904 'test/mock_log.cc', | |
| 905 'test/mock_log.h', | |
| 906 'test/multiprocess_test.cc', | |
| 907 'test/multiprocess_test.h', | |
| 908 'test/multiprocess_test_android.cc', | |
| 909 'test/null_task_runner.cc', | |
| 910 'test/null_task_runner.h', | |
| 911 'test/opaque_ref_counted.cc', | |
| 912 'test/opaque_ref_counted.h', | |
| 913 'test/perf_log.cc', | |
| 914 'test/perf_log.h', | |
| 915 'test/perf_test_suite.cc', | |
| 916 'test/perf_test_suite.h', | |
| 917 'test/perf_time_logger.cc', | |
| 918 'test/perf_time_logger.h', | |
| 919 'test/power_monitor_test_base.cc', | |
| 920 'test/power_monitor_test_base.h', | |
| 921 'test/scoped_command_line.cc', | |
| 922 'test/scoped_command_line.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_discardable_memory_allocator.cc', | |
| 938 'test/test_discardable_memory_allocator.h', | |
| 939 'test/test_file_util.cc', | |
| 940 'test/test_file_util.h', | |
| 941 'test/test_file_util_android.cc', | |
| 942 'test/test_file_util_linux.cc', | |
| 943 'test/test_file_util_mac.cc', | |
| 944 'test/test_file_util_posix.cc', | |
| 945 'test/test_file_util_win.cc', | |
| 946 'test/test_io_thread.cc', | |
| 947 'test/test_io_thread.h', | |
| 948 'test/test_listener_ios.h', | |
| 949 'test/test_listener_ios.mm', | |
| 950 'test/test_message_loop.cc', | |
| 951 'test/test_message_loop.h', | |
| 952 'test/test_mock_time_task_runner.cc', | |
| 953 'test/test_mock_time_task_runner.h', | |
| 954 'test/test_pending_task.cc', | |
| 955 'test/test_pending_task.h', | |
| 956 'test/test_reg_util_win.cc', | |
| 957 'test/test_reg_util_win.h', | |
| 958 'test/test_shortcut_win.cc', | |
| 959 'test/test_shortcut_win.h', | |
| 960 'test/test_simple_task_runner.cc', | |
| 961 'test/test_simple_task_runner.h', | |
| 962 'test/test_suite.cc', | |
| 963 'test/test_suite.h', | |
| 964 'test/test_support_android.cc', | |
| 965 'test/test_support_android.h', | |
| 966 'test/test_support_ios.h', | |
| 967 'test/test_support_ios.mm', | |
| 968 'test/test_switches.cc', | |
| 969 'test/test_switches.h', | |
| 970 'test/test_timeouts.cc', | |
| 971 'test/test_timeouts.h', | |
| 972 'test/test_ui_thread_android.cc', | |
| 973 'test/test_ui_thread_android.h', | |
| 974 'test/thread_test_helper.cc', | |
| 975 'test/thread_test_helper.h', | |
| 976 'test/trace_event_analyzer.cc', | |
| 977 'test/trace_event_analyzer.h', | |
| 978 'test/trace_to_file.cc', | |
| 979 'test/trace_to_file.h', | |
| 980 'test/user_action_tester.cc', | |
| 981 'test/user_action_tester.h', | |
| 982 'test/values_test_util.cc', | |
| 983 'test/values_test_util.h', | |
| 984 ], | |
| 985 'target_conditions': [ | |
| 986 ['OS == "ios"', { | |
| 987 'sources/': [ | |
| 988 # Pull in specific Mac files for iOS (which have been filtered out | |
| 989 # by file name rules). | |
| 990 ['include', '^test/test_file_util_mac\\.cc$'], | |
| 991 ], | |
| 992 }], | |
| 993 ['OS == "ios" and _toolset == "target"', { | |
| 994 'sources!': [ | |
| 995 # iOS uses its own unit test launcher. | |
| 996 'test/launcher/unit_test_launcher.cc', | |
| 997 ], | |
| 998 }], | |
| 999 ['OS == "ios" and _toolset == "host"', { | |
| 1000 'sources!': [ | |
| 1001 'test/launcher/unit_test_launcher_ios.cc', | |
| 1002 'test/test_support_ios.h', | |
| 1003 'test/test_support_ios.mm', | |
| 1004 ], | |
| 1005 }], | |
| 1006 ], # target_conditions | |
| 1007 }, | |
| 1008 { | |
| 1009 'target_name': 'test_support_perf', | |
| 1010 'type': 'static_library', | |
| 1011 'dependencies': [ | |
| 1012 'base', | |
| 1013 'test_support_base', | |
| 1014 '../testing/gtest.gyp:gtest', | |
| 1015 ], | |
| 1016 'sources': [ | |
| 1017 'test/run_all_perftests.cc', | |
| 1018 ], | |
| 1019 'direct_dependent_settings': { | |
| 1020 'defines': [ | |
| 1021 'PERF_TEST', | |
| 1022 ], | |
| 1023 }, | |
| 1024 }, | |
| 1025 { | |
| 1026 'target_name': 'test_launcher_nacl_nonsfi', | |
| 1027 'conditions': [ | |
| 1028 ['disable_nacl==0 and disable_nacl_untrusted==0 and enable_nacl_nonsfi_t
est==1', { | |
| 1029 'type': 'static_library', | |
| 1030 'sources': [ | |
| 1031 'test/launcher/test_launcher_nacl_nonsfi.cc', | |
| 1032 ], | |
| 1033 'dependencies': [ | |
| 1034 'test_support_base', | |
| 1035 ], | |
| 1036 }, { | |
| 1037 'type': 'none', | |
| 1038 }], | |
| 1039 ], | |
| 1040 }, | |
| 1041 { | |
| 1042 # GN version: //base/debug:debugging_flags | |
| 1043 # Since this generates a file, it must only be referenced in the target | |
| 1044 # toolchain or there will be multiple rules that generate the header. | |
| 1045 # When referenced from a target that might be compiled in the host | |
| 1046 # toolchain, always refer to 'base_debugging_flags#target'. | |
| 1047 'target_name': 'base_debugging_flags', | |
| 1048 'includes': [ '../build/buildflag_header.gypi' ], | |
| 1049 'variables': { | |
| 1050 'buildflag_header_path': 'base/debug/debugging_flags.h', | |
| 1051 'buildflag_flags': [ | |
| 1052 'ENABLE_PROFILING=<(profiling)', | |
| 1053 ], | |
| 1054 }, | |
| 1055 }, | |
| 1056 { | |
| 1057 # GN version: //base/win:base_win_features | |
| 1058 # Since this generates a file, it must only be referenced in the target | |
| 1059 # toolchain or there will be multiple rules that generate the header. | |
| 1060 # When referenced from a target that might be compiled in the host | |
| 1061 # toolchain, always refer to 'base_win_features#target'. | |
| 1062 'target_name': 'base_win_features', | |
| 1063 'conditions': [ | |
| 1064 ['OS=="win"', { | |
| 1065 'includes': [ '../build/buildflag_header.gypi' ], | |
| 1066 'variables': { | |
| 1067 'buildflag_header_path': 'base/win/base_features.h', | |
| 1068 'buildflag_flags': [ | |
| 1069 'SINGLE_MODULE_MODE_HANDLE_VERIFIER=<(single_module_mode_handle_ve
rifier)', | |
| 1070 ], | |
| 1071 }, | |
| 1072 }, { | |
| 1073 'type': 'none', | |
| 1074 }], | |
| 1075 ], | |
| 1076 }, | |
| 1077 { | |
| 1078 'type': 'none', | |
| 1079 'target_name': 'base_build_date', | |
| 1080 'hard_dependency': 1, | |
| 1081 'actions': [{ | |
| 1082 'action_name': 'generate_build_date_headers', | |
| 1083 'inputs': [ | |
| 1084 '<(DEPTH)/build/write_build_date_header.py', | |
| 1085 '<(DEPTH)/build/util/LASTCHANGE' | |
| 1086 ], | |
| 1087 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/base/generated_build_date.h' ], | |
| 1088 'action': [ | |
| 1089 'python', '<(DEPTH)/build/write_build_date_header.py', | |
| 1090 '<(SHARED_INTERMEDIATE_DIR)/base/generated_build_date.h', | |
| 1091 '<(build_type)' | |
| 1092 ] | |
| 1093 }], | |
| 1094 'conditions': [ | |
| 1095 [ 'buildtype == "Official"', { | |
| 1096 'variables': { | |
| 1097 'build_type': 'official' | |
| 1098 } | |
| 1099 }, { | |
| 1100 'variables': { | |
| 1101 'build_type': 'default' | |
| 1102 } | |
| 1103 }], | |
| 1104 ] | |
| 1105 }, | |
| 1106 ], | |
| 1107 'conditions': [ | |
| 1108 ['OS=="ios" and "<(GENERATOR)"=="ninja"', { | |
| 1109 'targets': [ | |
| 1110 { | |
| 1111 'target_name': 'test_launcher', | |
| 1112 'toolsets': ['host'], | |
| 1113 'type': 'executable', | |
| 1114 'dependencies': [ | |
| 1115 'test_support_base', | |
| 1116 ], | |
| 1117 'sources': [ | |
| 1118 'test/launcher/test_launcher_ios.cc', | |
| 1119 ], | |
| 1120 }, | |
| 1121 ], | |
| 1122 }], | |
| 1123 ['OS!="ios"', { | |
| 1124 'targets': [ | |
| 1125 { | |
| 1126 # GN: //base:check_example | |
| 1127 'target_name': 'check_example', | |
| 1128 'type': 'executable', | |
| 1129 'sources': [ | |
| 1130 'check_example.cc', | |
| 1131 ], | |
| 1132 'dependencies': [ | |
| 1133 'base', | |
| 1134 ], | |
| 1135 }, | |
| 1136 { | |
| 1137 'target_name': 'build_utf8_validator_tables', | |
| 1138 'type': 'executable', | |
| 1139 'toolsets': ['host'], | |
| 1140 'dependencies': [ | |
| 1141 'base', | |
| 1142 '../third_party/icu/icu.gyp:icuuc', | |
| 1143 ], | |
| 1144 'sources': [ | |
| 1145 'i18n/build_utf8_validator_tables.cc' | |
| 1146 ], | |
| 1147 }, | |
| 1148 ], | |
| 1149 }], | |
| 1150 ['OS == "win" and target_arch=="ia32"', { | |
| 1151 'targets': [ | |
| 1152 # The base_win64 target here allows us to use base for Win64 targets | |
| 1153 # (the normal build is 32 bits). | |
| 1154 { | |
| 1155 'target_name': 'base_win64', | |
| 1156 'type': '<(component)', | |
| 1157 'variables': { | |
| 1158 'base_target': 1, | |
| 1159 }, | |
| 1160 'dependencies': [ | |
| 1161 'base_build_date', | |
| 1162 'base_debugging_flags#target', | |
| 1163 'base_static_win64', | |
| 1164 '../third_party/modp_b64/modp_b64.gyp:modp_b64_win64', | |
| 1165 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_ann
otations_win64', | |
| 1166 'trace_event/etw_manifest/etw_manifest.gyp:etw_manifest', | |
| 1167 ], | |
| 1168 # TODO(gregoryd): direct_dependent_settings should be shared with the | |
| 1169 # 32-bit target, but it doesn't work due to a bug in gyp | |
| 1170 'direct_dependent_settings': { | |
| 1171 'include_dirs': [ | |
| 1172 '..', | |
| 1173 ], | |
| 1174 }, | |
| 1175 'defines': [ | |
| 1176 'BASE_WIN64', | |
| 1177 '<@(nacl_win64_defines)', | |
| 1178 ], | |
| 1179 'configurations': { | |
| 1180 'Common_Base': { | |
| 1181 'msvs_target_platform': 'x64', | |
| 1182 }, | |
| 1183 }, | |
| 1184 'conditions': [ | |
| 1185 ['component == "shared_library"', { | |
| 1186 'sources!': [ | |
| 1187 'debug/debug_on_start_win.cc', | |
| 1188 ], | |
| 1189 }], | |
| 1190 ], | |
| 1191 # Specify delayload for base_win64.dll. | |
| 1192 'msvs_settings': { | |
| 1193 'VCLinkerTool': { | |
| 1194 'DelayLoadDLLs': [ | |
| 1195 'cfgmgr32.dll', | |
| 1196 'powrprof.dll', | |
| 1197 'setupapi.dll', | |
| 1198 ], | |
| 1199 'AdditionalDependencies': [ | |
| 1200 'cfgmgr32.lib', | |
| 1201 'powrprof.lib', | |
| 1202 'setupapi.lib', | |
| 1203 'userenv.lib', | |
| 1204 'winmm.lib', | |
| 1205 ], | |
| 1206 }, | |
| 1207 }, | |
| 1208 # Specify delayload for components that link with base_win64.lib. | |
| 1209 'all_dependent_settings': { | |
| 1210 'msvs_settings': { | |
| 1211 'VCLinkerTool': { | |
| 1212 'DelayLoadDLLs': [ | |
| 1213 'cfgmgr32.dll', | |
| 1214 'powrprof.dll', | |
| 1215 'setupapi.dll', | |
| 1216 ], | |
| 1217 'AdditionalDependencies': [ | |
| 1218 'cfgmgr32.lib', | |
| 1219 'powrprof.lib', | |
| 1220 'setupapi.lib', | |
| 1221 'userenv.lib', | |
| 1222 'winmm.lib', | |
| 1223 ], | |
| 1224 }, | |
| 1225 }, | |
| 1226 }, | |
| 1227 # TODO(rvargas): Bug 78117. Remove this. | |
| 1228 'msvs_disabled_warnings': [ | |
| 1229 4244, | |
| 1230 4996, | |
| 1231 4267, | |
| 1232 ], | |
| 1233 'sources': [ | |
| 1234 'auto_reset.h', | |
| 1235 'linux_util.cc', | |
| 1236 'linux_util.h', | |
| 1237 'md5.cc', | |
| 1238 'md5.h', | |
| 1239 'message_loop/message_pump_libevent.cc', | |
| 1240 'message_loop/message_pump_libevent.h', | |
| 1241 'metrics/field_trial.cc', | |
| 1242 'metrics/field_trial.h', | |
| 1243 'posix/file_descriptor_shuffle.cc', | |
| 1244 'posix/file_descriptor_shuffle.h', | |
| 1245 'sync_socket.h', | |
| 1246 'sync_socket_posix.cc', | |
| 1247 'sync_socket_win.cc', | |
| 1248 'third_party/xdg_user_dirs/xdg_user_dir_lookup.cc', | |
| 1249 'third_party/xdg_user_dirs/xdg_user_dir_lookup.h', | |
| 1250 ], | |
| 1251 }, | |
| 1252 { | |
| 1253 'target_name': 'base_i18n_nacl_win64', | |
| 1254 'type': '<(component)', | |
| 1255 # TODO(gregoryd): direct_dependent_settings should be shared with the | |
| 1256 # 32-bit target, but it doesn't work due to a bug in gyp | |
| 1257 'direct_dependent_settings': { | |
| 1258 'include_dirs': [ | |
| 1259 '..', | |
| 1260 ], | |
| 1261 }, | |
| 1262 'defines': [ | |
| 1263 '<@(nacl_win64_defines)', | |
| 1264 'BASE_I18N_IMPLEMENTATION', | |
| 1265 ], | |
| 1266 'include_dirs': [ | |
| 1267 '..', | |
| 1268 ], | |
| 1269 'sources': [ | |
| 1270 'i18n/icu_util_nacl_win64.cc', | |
| 1271 ], | |
| 1272 'configurations': { | |
| 1273 'Common_Base': { | |
| 1274 'msvs_target_platform': 'x64', | |
| 1275 }, | |
| 1276 }, | |
| 1277 }, | |
| 1278 { | |
| 1279 # TODO(rvargas): Remove this when gyp finally supports a clean model. | |
| 1280 # See bug 36232. | |
| 1281 'target_name': 'base_static_win64', | |
| 1282 'type': 'static_library', | |
| 1283 'sources': [ | |
| 1284 'base_switches.cc', | |
| 1285 'base_switches.h', | |
| 1286 'win/pe_image.cc', | |
| 1287 'win/pe_image.h', | |
| 1288 ], | |
| 1289 'sources!': [ | |
| 1290 # base64.cc depends on modp_b64. | |
| 1291 'base64.cc', | |
| 1292 ], | |
| 1293 'include_dirs': [ | |
| 1294 '..', | |
| 1295 ], | |
| 1296 'configurations': { | |
| 1297 'Common_Base': { | |
| 1298 'msvs_target_platform': 'x64', | |
| 1299 }, | |
| 1300 }, | |
| 1301 'defines': [ | |
| 1302 '<@(nacl_win64_defines)', | |
| 1303 ], | |
| 1304 # TODO(rvargas): Bug 78117. Remove this. | |
| 1305 'msvs_disabled_warnings': [ | |
| 1306 4244, | |
| 1307 ], | |
| 1308 }, | |
| 1309 ], | |
| 1310 }], | |
| 1311 ['OS == "win" and target_arch=="x64"', { | |
| 1312 'targets': [ | |
| 1313 { | |
| 1314 'target_name': 'base_profiler_test_support_library', | |
| 1315 # Must be a shared library so that it can be unloaded during testing. | |
| 1316 'type': 'shared_library', | |
| 1317 'include_dirs': [ | |
| 1318 '..', | |
| 1319 ], | |
| 1320 'sources': [ | |
| 1321 'profiler/test_support_library.cc', | |
| 1322 ], | |
| 1323 }, | |
| 1324 ] | |
| 1325 }], | |
| 1326 ['os_posix==1 and OS!="mac" and OS!="ios"', { | |
| 1327 'targets': [ | |
| 1328 { | |
| 1329 'target_name': 'symbolize', | |
| 1330 'type': 'static_library', | |
| 1331 'toolsets': ['host', 'target'], | |
| 1332 'variables': { | |
| 1333 'chromium_code': 0, | |
| 1334 }, | |
| 1335 'conditions': [ | |
| 1336 ['OS == "solaris"', { | |
| 1337 'include_dirs': [ | |
| 1338 '/usr/gnu/include', | |
| 1339 '/usr/gnu/include/libelf', | |
| 1340 ], | |
| 1341 },], | |
| 1342 ], | |
| 1343 'cflags': [ | |
| 1344 '-Wno-sign-compare', | |
| 1345 ], | |
| 1346 'cflags!': [ | |
| 1347 '-Wextra', | |
| 1348 ], | |
| 1349 'defines': [ | |
| 1350 'GLOG_BUILD_CONFIG_INCLUDE="build/build_config.h"', | |
| 1351 ], | |
| 1352 'sources': [ | |
| 1353 'third_party/symbolize/config.h', | |
| 1354 'third_party/symbolize/demangle.cc', | |
| 1355 'third_party/symbolize/demangle.h', | |
| 1356 'third_party/symbolize/glog/logging.h', | |
| 1357 'third_party/symbolize/glog/raw_logging.h', | |
| 1358 'third_party/symbolize/symbolize.cc', | |
| 1359 'third_party/symbolize/symbolize.h', | |
| 1360 'third_party/symbolize/utilities.h', | |
| 1361 ], | |
| 1362 'include_dirs': [ | |
| 1363 '..', | |
| 1364 ], | |
| 1365 'includes': [ | |
| 1366 '../build/android/increase_size_for_speed.gypi', | |
| 1367 ], | |
| 1368 }, | |
| 1369 { | |
| 1370 'target_name': 'xdg_mime', | |
| 1371 'type': 'static_library', | |
| 1372 'toolsets': ['host', 'target'], | |
| 1373 'variables': { | |
| 1374 'chromium_code': 0, | |
| 1375 }, | |
| 1376 'cflags!': [ | |
| 1377 '-Wextra', | |
| 1378 ], | |
| 1379 'sources': [ | |
| 1380 'third_party/xdg_mime/xdgmime.c', | |
| 1381 'third_party/xdg_mime/xdgmime.h', | |
| 1382 'third_party/xdg_mime/xdgmimealias.c', | |
| 1383 'third_party/xdg_mime/xdgmimealias.h', | |
| 1384 'third_party/xdg_mime/xdgmimecache.c', | |
| 1385 'third_party/xdg_mime/xdgmimecache.h', | |
| 1386 'third_party/xdg_mime/xdgmimeglob.c', | |
| 1387 'third_party/xdg_mime/xdgmimeglob.h', | |
| 1388 'third_party/xdg_mime/xdgmimeicon.c', | |
| 1389 'third_party/xdg_mime/xdgmimeicon.h', | |
| 1390 'third_party/xdg_mime/xdgmimeint.c', | |
| 1391 'third_party/xdg_mime/xdgmimeint.h', | |
| 1392 'third_party/xdg_mime/xdgmimemagic.c', | |
| 1393 'third_party/xdg_mime/xdgmimemagic.h', | |
| 1394 'third_party/xdg_mime/xdgmimeparent.c', | |
| 1395 'third_party/xdg_mime/xdgmimeparent.h', | |
| 1396 ], | |
| 1397 'includes': [ | |
| 1398 '../build/android/increase_size_for_speed.gypi', | |
| 1399 ], | |
| 1400 }, | |
| 1401 ], | |
| 1402 }], | |
| 1403 ['OS == "linux"', { | |
| 1404 'targets': [ | |
| 1405 { | |
| 1406 'target_name': 'malloc_wrapper', | |
| 1407 'type': 'shared_library', | |
| 1408 'dependencies': [ | |
| 1409 'base', | |
| 1410 ], | |
| 1411 'sources': [ | |
| 1412 'test/malloc_wrapper.cc', | |
| 1413 ], | |
| 1414 } | |
| 1415 ], | |
| 1416 }], | |
| 1417 ['OS == "android"', { | |
| 1418 'targets': [ | |
| 1419 { | |
| 1420 # GN: //base:base_jni_headers | |
| 1421 'target_name': 'base_jni_headers', | |
| 1422 'type': 'none', | |
| 1423 'sources': [ | |
| 1424 'android/java/src/org/chromium/base/ApkAssets.java', | |
| 1425 'android/java/src/org/chromium/base/ApplicationStatus.java', | |
| 1426 'android/java/src/org/chromium/base/AnimationFrameTimeHistogram.java
', | |
| 1427 'android/java/src/org/chromium/base/BuildInfo.java', | |
| 1428 'android/java/src/org/chromium/base/Callback.java', | |
| 1429 'android/java/src/org/chromium/base/CommandLine.java', | |
| 1430 'android/java/src/org/chromium/base/ContentUriUtils.java', | |
| 1431 'android/java/src/org/chromium/base/ContextUtils.java', | |
| 1432 'android/java/src/org/chromium/base/CpuFeatures.java', | |
| 1433 'android/java/src/org/chromium/base/EarlyTraceEvent.java', | |
| 1434 'android/java/src/org/chromium/base/EventLog.java', | |
| 1435 'android/java/src/org/chromium/base/FieldTrialList.java', | |
| 1436 'android/java/src/org/chromium/base/ImportantFileWriterAndroid.java'
, | |
| 1437 'android/java/src/org/chromium/base/JNIUtils.java', | |
| 1438 'android/java/src/org/chromium/base/JavaHandlerThread.java', | |
| 1439 'android/java/src/org/chromium/base/LocaleUtils.java', | |
| 1440 'android/java/src/org/chromium/base/MemoryPressureListener.java', | |
| 1441 'android/java/src/org/chromium/base/PathService.java', | |
| 1442 'android/java/src/org/chromium/base/PathUtils.java', | |
| 1443 'android/java/src/org/chromium/base/PowerMonitor.java', | |
| 1444 'android/java/src/org/chromium/base/SysUtils.java', | |
| 1445 'android/java/src/org/chromium/base/SystemMessageHandler.java', | |
| 1446 'android/java/src/org/chromium/base/ThreadUtils.java', | |
| 1447 'android/java/src/org/chromium/base/TraceEvent.java', | |
| 1448 'android/java/src/org/chromium/base/library_loader/LibraryLoader.jav
a', | |
| 1449 'android/java/src/org/chromium/base/metrics/RecordHistogram.java', | |
| 1450 'android/java/src/org/chromium/base/metrics/RecordUserAction.java', | |
| 1451 ], | |
| 1452 'variables': { | |
| 1453 'jni_gen_package': 'base', | |
| 1454 }, | |
| 1455 'dependencies': [ | |
| 1456 'android_runtime_jni_headers', | |
| 1457 ], | |
| 1458 'includes': [ '../build/jni_generator.gypi' ], | |
| 1459 }, | |
| 1460 { | |
| 1461 # GN: //base:android_runtime_jni_headers | |
| 1462 'target_name': 'android_runtime_jni_headers', | |
| 1463 'type': 'none', | |
| 1464 'variables': { | |
| 1465 'jni_gen_package': 'base', | |
| 1466 'input_java_class': 'java/lang/Runtime.class', | |
| 1467 }, | |
| 1468 'includes': [ '../build/jar_file_jni_generator.gypi' ], | |
| 1469 }, | |
| 1470 { | |
| 1471 # GN: //base:base_unittests_jni_headers | |
| 1472 'target_name': 'base_unittests_jni_headers', | |
| 1473 'type': 'none', | |
| 1474 'sources': [ | |
| 1475 'test/android/java/src/org/chromium/base/ContentUriTestUtils.java', | |
| 1476 'test/android/java/src/org/chromium/base/TestUiThread.java', | |
| 1477 ], | |
| 1478 'variables': { | |
| 1479 'jni_gen_package': 'base', | |
| 1480 }, | |
| 1481 'includes': [ '../build/jni_generator.gypi' ], | |
| 1482 }, | |
| 1483 { | |
| 1484 # GN: //base:base_native_libraries_gen | |
| 1485 'target_name': 'base_native_libraries_gen', | |
| 1486 'type': 'none', | |
| 1487 'sources': [ | |
| 1488 'android/java/templates/NativeLibraries.template', | |
| 1489 ], | |
| 1490 'variables': { | |
| 1491 'package_name': 'org/chromium/base/library_loader', | |
| 1492 'template_deps': [], | |
| 1493 }, | |
| 1494 'includes': [ '../build/android/java_cpp_template.gypi' ], | |
| 1495 }, | |
| 1496 { | |
| 1497 # GN: //base:base_build_config_gen | |
| 1498 'target_name': 'base_build_config_gen', | |
| 1499 'type': 'none', | |
| 1500 'sources': [ | |
| 1501 'android/java/templates/BuildConfig.template', | |
| 1502 ], | |
| 1503 'variables': { | |
| 1504 'package_name': 'org/chromium/base', | |
| 1505 'template_deps': [], | |
| 1506 }, | |
| 1507 'includes': ['../build/android/java_cpp_template.gypi'], | |
| 1508 }, | |
| 1509 { | |
| 1510 # GN: //base:base_android_java_enums_srcjar | |
| 1511 'target_name': 'base_java_library_process_type', | |
| 1512 'type': 'none', | |
| 1513 'variables': { | |
| 1514 'source_file': 'android/library_loader/library_loader_hooks.h', | |
| 1515 }, | |
| 1516 'includes': [ '../build/android/java_cpp_enum.gypi' ], | |
| 1517 }, | |
| 1518 { | |
| 1519 # GN: //base:base_java | |
| 1520 'target_name': 'base_java', | |
| 1521 'type': 'none', | |
| 1522 'variables': { | |
| 1523 'java_in_dir': 'android/java', | |
| 1524 'jar_excluded_classes': [ | |
| 1525 '*/BuildConfig.class', | |
| 1526 '*/NativeLibraries.class', | |
| 1527 ], | |
| 1528 }, | |
| 1529 'dependencies': [ | |
| 1530 'base_java_application_state', | |
| 1531 'base_java_library_load_from_apk_status_codes', | |
| 1532 'base_java_library_process_type', | |
| 1533 'base_java_memory_pressure_level', | |
| 1534 'base_build_config_gen', | |
| 1535 'base_native_libraries_gen', | |
| 1536 '../third_party/android_tools/android_tools.gyp:android_support_anno
tations_javalib', | |
| 1537 '../third_party/android_tools/android_tools.gyp:android_support_mult
idex_javalib', | |
| 1538 '../third_party/jsr-305/jsr-305.gyp:jsr_305_javalib', | |
| 1539 ], | |
| 1540 'all_dependent_settings': { | |
| 1541 'variables': { | |
| 1542 'generate_build_config': 1, | |
| 1543 }, | |
| 1544 }, | |
| 1545 'includes': [ '../build/java.gypi' ], | |
| 1546 }, | |
| 1547 { | |
| 1548 # GN: //base:base_java_unittest_support | |
| 1549 'target_name': 'base_java_unittest_support', | |
| 1550 'type': 'none', | |
| 1551 'dependencies': [ | |
| 1552 'base_java', | |
| 1553 ], | |
| 1554 'variables': { | |
| 1555 'java_in_dir': '../base/test/android/java', | |
| 1556 }, | |
| 1557 'includes': [ '../build/java.gypi' ], | |
| 1558 }, | |
| 1559 { | |
| 1560 # GN: //base:base_android_java_enums_srcjar | |
| 1561 'target_name': 'base_java_application_state', | |
| 1562 'type': 'none', | |
| 1563 'variables': { | |
| 1564 'source_file': 'android/application_status_listener.h', | |
| 1565 }, | |
| 1566 'includes': [ '../build/android/java_cpp_enum.gypi' ], | |
| 1567 }, | |
| 1568 { | |
| 1569 # GN: //base:base_android_java_enums_srcjar | |
| 1570 'target_name': 'base_java_library_load_from_apk_status_codes', | |
| 1571 'type': 'none', | |
| 1572 'variables': { | |
| 1573 'source_file': 'android/library_loader/library_load_from_apk_status_
codes.h' | |
| 1574 }, | |
| 1575 'includes': [ '../build/android/java_cpp_enum.gypi' ], | |
| 1576 }, | |
| 1577 { | |
| 1578 # GN: //base:base_android_java_enums_srcjar | |
| 1579 'target_name': 'base_java_memory_pressure_level', | |
| 1580 'type': 'none', | |
| 1581 'variables': { | |
| 1582 'source_file': 'memory/memory_pressure_listener.h', | |
| 1583 }, | |
| 1584 'includes': [ '../build/android/java_cpp_enum.gypi' ], | |
| 1585 }, | |
| 1586 { | |
| 1587 # GN: //base:base_java_test_support | |
| 1588 'target_name': 'base_java_test_support', | |
| 1589 'type': 'none', | |
| 1590 'dependencies': [ | |
| 1591 'base_java', | |
| 1592 '../testing/android/on_device_instrumentation.gyp:reporter_java', | |
| 1593 ], | |
| 1594 'variables': { | |
| 1595 'java_in_dir': '../base/test/android/javatests', | |
| 1596 }, | |
| 1597 'includes': [ '../build/java.gypi' ], | |
| 1598 }, | |
| 1599 { | |
| 1600 # TODO(jbudorick): Remove this once we roll to robolectric 3.0 and pul
l | |
| 1601 # in the multidex shadow library. crbug.com/522043 | |
| 1602 # GN: //base:base_junit_test_support | |
| 1603 'target_name': 'base_junit_test_support', | |
| 1604 'type': 'none', | |
| 1605 'dependencies': [ | |
| 1606 'base_build_config_gen', | |
| 1607 '../testing/android/junit/junit_test.gyp:junit_test_support', | |
| 1608 '../third_party/android_tools/android_tools.gyp:android_support_mult
idex_javalib', | |
| 1609 ], | |
| 1610 'variables': { | |
| 1611 'src_paths': [ | |
| 1612 '../base/test/android/junit/src/org/chromium/base/test/shadows/Sha
dowMultiDex.java', | |
| 1613 ], | |
| 1614 }, | |
| 1615 'includes': [ '../build/host_jar.gypi' ] | |
| 1616 }, | |
| 1617 { | |
| 1618 # GN: //base:base_junit_tests | |
| 1619 'target_name': 'base_junit_tests', | |
| 1620 'type': 'none', | |
| 1621 'dependencies': [ | |
| 1622 'base_java', | |
| 1623 'base_java_test_support', | |
| 1624 'base_junit_test_support', | |
| 1625 '../testing/android/junit/junit_test.gyp:junit_test_support', | |
| 1626 ], | |
| 1627 'variables': { | |
| 1628 'main_class': 'org.chromium.testing.local.JunitTestMain', | |
| 1629 'src_paths': [ | |
| 1630 '../base/android/junit/', | |
| 1631 '../base/test/android/junit/src/org/chromium/base/test/util/Disabl
eIfTest.java', | |
| 1632 '../base/test/android/junit/src/org/chromium/base/test/util/MinAnd
roidSdkLevelSkipCheckTest.java', | |
| 1633 '../base/test/android/junit/src/org/chromium/base/test/util/Restri
ctionSkipCheckTest.java', | |
| 1634 '../base/test/android/junit/src/org/chromium/base/test/util/SkipCh
eckTest.java', | |
| 1635 ], | |
| 1636 'test_type': 'junit', | |
| 1637 'wrapper_script_name': 'helper/<(_target_name)', | |
| 1638 }, | |
| 1639 'includes': [ | |
| 1640 '../build/android/test_runner.gypi', | |
| 1641 '../build/host_jar.gypi', | |
| 1642 ], | |
| 1643 }, | |
| 1644 { | |
| 1645 # GN: //base:base_javatests | |
| 1646 'target_name': 'base_javatests', | |
| 1647 'type': 'none', | |
| 1648 'dependencies': [ | |
| 1649 'base_java', | |
| 1650 'base_java_test_support', | |
| 1651 ], | |
| 1652 'variables': { | |
| 1653 'java_in_dir': '../base/android/javatests', | |
| 1654 }, | |
| 1655 'includes': [ '../build/java.gypi' ], | |
| 1656 }, | |
| 1657 { | |
| 1658 # GN: //base/android/linker:chromium_android_linker | |
| 1659 'target_name': 'chromium_android_linker', | |
| 1660 'type': 'shared_library', | |
| 1661 'sources': [ | |
| 1662 'android/linker/android_dlext.h', | |
| 1663 'android/linker/legacy_linker_jni.cc', | |
| 1664 'android/linker/legacy_linker_jni.h', | |
| 1665 'android/linker/linker_jni.cc', | |
| 1666 'android/linker/linker_jni.h', | |
| 1667 'android/linker/modern_linker_jni.cc', | |
| 1668 'android/linker/modern_linker_jni.h', | |
| 1669 ], | |
| 1670 # The crazy linker is never instrumented. | |
| 1671 'cflags!': [ | |
| 1672 '-finstrument-functions', | |
| 1673 ], | |
| 1674 'dependencies': [ | |
| 1675 # The NDK contains the crazy_linker here: | |
| 1676 # '<(android_ndk_root)/crazy_linker.gyp:crazy_linker' | |
| 1677 # However, we use our own fork. See bug 384700. | |
| 1678 '../third_party/android_crazy_linker/crazy_linker.gyp:crazy_linker', | |
| 1679 ], | |
| 1680 }, | |
| 1681 { | |
| 1682 # GN: //base:base_perftests_apk | |
| 1683 'target_name': 'base_perftests_apk', | |
| 1684 'type': 'none', | |
| 1685 'dependencies': [ | |
| 1686 'base_perftests', | |
| 1687 ], | |
| 1688 'variables': { | |
| 1689 'test_suite_name': 'base_perftests', | |
| 1690 }, | |
| 1691 'includes': [ '../build/apk_test.gypi' ], | |
| 1692 }, | |
| 1693 { | |
| 1694 # GN: //base:base_unittests_apk | |
| 1695 'target_name': 'base_unittests_apk', | |
| 1696 'type': 'none', | |
| 1697 'dependencies': [ | |
| 1698 'base_java', | |
| 1699 'base_unittests', | |
| 1700 ], | |
| 1701 'variables': { | |
| 1702 'test_suite_name': 'base_unittests', | |
| 1703 'isolate_file': 'base_unittests.isolate', | |
| 1704 }, | |
| 1705 'includes': [ '../build/apk_test.gypi' ], | |
| 1706 }, | |
| 1707 ], | |
| 1708 'conditions': [ | |
| 1709 ['test_isolation_mode != "noop"', | |
| 1710 { | |
| 1711 'targets': [ | |
| 1712 { | |
| 1713 'target_name': 'base_unittests_apk_run', | |
| 1714 'type': 'none', | |
| 1715 'dependencies': [ | |
| 1716 'base_unittests_apk', | |
| 1717 ], | |
| 1718 'includes': [ | |
| 1719 '../build/isolate.gypi', | |
| 1720 ], | |
| 1721 'sources': [ | |
| 1722 'base_unittests_apk.isolate', | |
| 1723 ], | |
| 1724 }, | |
| 1725 ] | |
| 1726 } | |
| 1727 ], | |
| 1728 ], | |
| 1729 }], | |
| 1730 ['OS == "win"', { | |
| 1731 'targets': [ | |
| 1732 { | |
| 1733 # Target to manually rebuild pe_image_test.dll which is checked into | |
| 1734 # base/test/data/pe_image. | |
| 1735 'target_name': 'pe_image_test', | |
| 1736 'type': 'shared_library', | |
| 1737 'sources': [ | |
| 1738 'win/pe_image_test.cc', | |
| 1739 ], | |
| 1740 'msvs_settings': { | |
| 1741 'VCLinkerTool': { | |
| 1742 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS | |
| 1743 'DelayLoadDLLs': [ | |
| 1744 'cfgmgr32.dll', | |
| 1745 'shell32.dll', | |
| 1746 ], | |
| 1747 'AdditionalDependencies': [ | |
| 1748 'cfgmgr32.lib', | |
| 1749 'shell32.lib', | |
| 1750 ], | |
| 1751 }, | |
| 1752 }, | |
| 1753 }, | |
| 1754 { | |
| 1755 'target_name': 'scoped_handle_test_dll', | |
| 1756 'type': 'loadable_module', | |
| 1757 'dependencies': [ | |
| 1758 'base', | |
| 1759 ], | |
| 1760 'sources': [ | |
| 1761 'win/scoped_handle_test_dll.cc', | |
| 1762 ], | |
| 1763 }, | |
| 1764 ], | |
| 1765 }], | |
| 1766 ['test_isolation_mode != "noop"', { | |
| 1767 'targets': [ | |
| 1768 { | |
| 1769 'target_name': 'base_unittests_run', | |
| 1770 'type': 'none', | |
| 1771 'dependencies': [ | |
| 1772 'base_unittests', | |
| 1773 ], | |
| 1774 'includes': [ | |
| 1775 '../build/isolate.gypi', | |
| 1776 ], | |
| 1777 'sources': [ | |
| 1778 'base_unittests.isolate', | |
| 1779 ], | |
| 1780 }, | |
| 1781 ], | |
| 1782 }], | |
| 1783 ['OS == "ios" or OS == "mac"', { | |
| 1784 'targets': [ | |
| 1785 { | |
| 1786 'target_name': 'base_unittests_arc', | |
| 1787 'type': 'static_library', | |
| 1788 'dependencies': [ | |
| 1789 'base', | |
| 1790 '../testing/gtest.gyp:gtest', | |
| 1791 ], | |
| 1792 'sources': [ | |
| 1793 'mac/bind_objc_block_unittest_arc.mm', | |
| 1794 'mac/scoped_nsobject_unittest_arc.mm' | |
| 1795 ], | |
| 1796 'xcode_settings': { | |
| 1797 'CLANG_ENABLE_OBJC_ARC': 'YES', | |
| 1798 }, | |
| 1799 'target_conditions': [ | |
| 1800 ['OS == "ios" and _toolset != "host"', { | |
| 1801 'sources/': [ | |
| 1802 ['include', 'mac/bind_objc_block_unittest_arc\\.mm$'], | |
| 1803 ['include', 'mac/scoped_nsobject_unittest_arc\\.mm$'], | |
| 1804 ], | |
| 1805 }] | |
| 1806 ], | |
| 1807 }, | |
| 1808 ], | |
| 1809 }], | |
| 1810 ], | |
| 1811 } | |
| OLD | NEW |