1 # This file is generated by gyp; do not edit. 2 3 include $(CLEAR_VARS) 4 5 LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6 LOCAL_MODULE := base_base_gyp 7 LOCAL_MODULE_SUFFIX := .a 8 LOCAL_MODULE_TAGS := optional 9 gyp_intermediate_dir := $(call local-intermediates-dir) 10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) 11 12 # Make sure our deps are built first. 13 GYP_TARGET_DEPENDENCIES := \ 14 $(call intermediates-dir-for,GYP,testing_gtest_prod_gyp)/gtest_prod.stamp \ 15 $(call intermediates-dir-for,GYP,base_base_jni_headers_gyp)/base_jni_headers.stamp \ 16 $(call intermediates-dir-for,GYP,third_party_ashmem_ashmem_gyp)/ashmem.stamp 17 18 GYP_GENERATED_OUTPUTS := 19 20 # Make sure our deps and generated files are built first. 21 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 22 23 LOCAL_CPP_EXTENSION := .cc 24 LOCAL_GENERATED_SOURCES := 25 26 GYP_COPIED_SOURCE_ORIGIN_DIRS := 27 28 LOCAL_SRC_FILES := \ 29 base/async_socket_io_handler_posix.cc \ 30 base/event_recorder_stubs.cc \ 31 base/linux_util.cc \ 32 base/md5.cc \ 33 base/message_loop/message_pump_android.cc \ 34 base/message_loop/message_pump_libevent.cc \ 35 base/metrics/field_trial.cc \ 36 base/posix/file_descriptor_shuffle.cc \ 37 base/sync_socket_posix.cc \ 38 base/third_party/dmg_fp/g_fmt.cc \ 39 base/third_party/dmg_fp/dtoa_wrapper.cc \ 40 base/third_party/icu/icu_utf.cc \ 41 base/third_party/nspr/prtime.cc \ 42 base/allocator/allocator_extension.cc \ 43 base/allocator/type_profiler_control.cc \ 44 base/android/activity_status.cc \ 45 base/android/base_jni_registrar.cc \ 46 base/android/build_info.cc \ 47 base/android/command_line_android.cc \ 48 base/android/content_uri_utils.cc \ 49 base/android/cpu_features.cc \ 50 base/android/fifo_utils.cc \ 51 base/android/important_file_writer_android.cc \ 52 base/android/scoped_java_ref.cc \ 53 base/android/jni_android.cc \ 54 base/android/jni_array.cc \ 55 base/android/jni_helper.cc \ 56 base/android/jni_registrar.cc \ 57 base/android/jni_string.cc \ 58 base/android/memory_pressure_listener_android.cc \ 59 base/android/java_handler_thread.cc \ 60 base/android/path_service_android.cc \ 61 base/android/path_utils.cc \ 62 base/android/sys_utils.cc \ 63 base/at_exit.cc \ 64 base/barrier_closure.cc \ 65 base/base_paths.cc \ 66 base/base_paths_android.cc \ 67 base/base64.cc \ 68 base/bind_helpers.cc \ 69 base/build_time.cc \ 70 base/callback_helpers.cc \ 71 base/callback_internal.cc \ 72 base/command_line.cc \ 73 base/cpu.cc \ 74 base/debug/alias.cc \ 75 base/debug/crash_logging.cc \ 76 base/debug/debugger.cc \ 77 base/debug/debugger_posix.cc \ 78 base/debug/proc_maps_linux.cc \ 79 base/debug/profiler.cc \ 80 base/debug/stack_trace.cc \ 81 base/debug/stack_trace_android.cc \ 82 base/debug/trace_event_android.cc \ 83 base/debug/trace_event_impl.cc \ 84 base/debug/trace_event_impl_constants.cc \ 85 base/debug/trace_event_system_stats_monitor.cc \ 86 base/debug/trace_event_memory.cc \ 87 base/deferred_sequenced_task_runner.cc \ 88 base/environment.cc \ 89 base/file_util.cc \ 90 base/file_util_android.cc \ 91 base/file_util_posix.cc \ 92 base/files/file.cc \ 93 base/files/file_enumerator.cc \ 94 base/files/file_enumerator_posix.cc \ 95 base/files/file_path.cc \ 96 base/files/file_path_constants.cc \ 97 base/files/file_path_watcher.cc \ 98 base/files/file_path_watcher_linux.cc \ 99 base/files/file_posix.cc \ 100 base/files/file_util_proxy.cc \ 101 base/files/important_file_writer.cc \ 102 base/files/memory_mapped_file.cc \ 103 base/files/memory_mapped_file_posix.cc \ 104 base/files/scoped_platform_file_closer.cc \ 105 base/files/scoped_temp_dir.cc \ 106 base/guid.cc \ 107 base/guid_posix.cc \ 108 base/hash.cc \ 109 base/ini_parser.cc \ 110 base/json/json_file_value_serializer.cc \ 111 base/json/json_parser.cc \ 112 base/json/json_reader.cc \ 113 base/json/json_string_value_serializer.cc \ 114 base/json/json_writer.cc \ 115 base/json/string_escape.cc \ 116 base/lazy_instance.cc \ 117 base/location.cc \ 118 base/logging.cc \ 119 base/memory/aligned_memory.cc \ 120 base/memory/discardable_memory_allocator_android.cc \ 121 base/memory/discardable_memory_android.cc \ 122 base/memory/discardable_memory_emulated.cc \ 123 base/memory/discardable_memory_provider.cc \ 124 base/memory/memory_pressure_listener.cc \ 125 base/memory/ref_counted.cc \ 126 base/memory/ref_counted_memory.cc \ 127 base/memory/shared_memory_android.cc \ 128 base/memory/shared_memory_posix.cc \ 129 base/memory/singleton.cc \ 130 base/memory/weak_ptr.cc \ 131 base/message_loop/incoming_task_queue.cc \ 132 base/message_loop/message_loop.cc \ 133 base/message_loop/message_loop_proxy.cc \ 134 base/message_loop/message_loop_proxy_impl.cc \ 135 base/message_loop/message_pump.cc \ 136 base/message_loop/message_pump_default.cc \ 137 base/metrics/sample_map.cc \ 138 base/metrics/sample_vector.cc \ 139 base/metrics/bucket_ranges.cc \ 140 base/metrics/histogram.cc \ 141 base/metrics/histogram_base.cc \ 142 base/metrics/histogram_delta_serialization.cc \ 143 base/metrics/histogram_samples.cc \ 144 base/metrics/histogram_snapshot_manager.cc \ 145 base/metrics/sparse_histogram.cc \ 146 base/metrics/statistics_recorder.cc \ 147 base/metrics/stats_counters.cc \ 148 base/metrics/stats_table.cc \ 149 base/native_library_posix.cc \ 150 base/os_compat_android.cc \ 151 base/path_service.cc \ 152 base/pending_task.cc \ 153 base/pickle.cc \ 154 base/platform_file.cc \ 155 base/platform_file_posix.cc \ 156 base/posix/global_descriptors.cc \ 157 base/posix/unix_domain_socket_linux.cc \ 158 base/power_monitor/power_monitor.cc \ 159 base/power_monitor/power_monitor_device_source_android.cc \ 160 base/power_monitor/power_monitor_device_source.cc \ 161 base/power_monitor/power_monitor_source.cc \ 162 base/process/internal_linux.cc \ 163 base/process/kill.cc \ 164 base/process/kill_posix.cc \ 165 base/process/launch.cc \ 166 base/process/launch_posix.cc \ 167 base/process/memory_linux.cc \ 168 base/process/process_handle_linux.cc \ 169 base/process/process_handle_posix.cc \ 170 base/process/process_iterator.cc \ 171 base/process/process_iterator_linux.cc \ 172 base/process/process_metrics.cc \ 173 base/process/process_metrics_linux.cc \ 174 base/process/process_metrics_posix.cc \ 175 base/process/process_posix.cc \ 176 base/profiler/scoped_profile.cc \ 177 base/profiler/alternate_timer.cc \ 178 base/profiler/tracked_time.cc \ 179 base/rand_util.cc \ 180 base/rand_util_posix.cc \ 181 base/run_loop.cc \ 182 base/safe_strerror_posix.cc \ 183 base/scoped_native_library.cc \ 184 base/sequence_checker_impl.cc \ 185 base/sequenced_task_runner.cc \ 186 base/sha1_portable.cc \ 187 base/strings/latin1_string_conversions.cc \ 188 base/strings/nullable_string16.cc \ 189 base/strings/safe_sprintf.cc \ 190 base/strings/string16.cc \ 191 base/strings/string_number_conversions.cc \ 192 base/strings/string_split.cc \ 193 base/strings/string_piece.cc \ 194 base/strings/string_util.cc \ 195 base/strings/string_util_constants.cc \ 196 base/strings/stringprintf.cc \ 197 base/strings/sys_string_conversions_posix.cc \ 198 base/strings/utf_offset_string_conversions.cc \ 199 base/strings/utf_string_conversion_utils.cc \ 200 base/strings/utf_string_conversions.cc \ 201 base/supports_user_data.cc \ 202 base/synchronization/cancellation_flag.cc \ 203 base/synchronization/condition_variable_posix.cc \ 204 base/synchronization/lock.cc \ 205 base/synchronization/lock_impl_posix.cc \ 206 base/synchronization/waitable_event_posix.cc \ 207 base/synchronization/waitable_event_watcher_posix.cc \ 208 base/system_monitor/system_monitor.cc \ 209 base/sys_info.cc \ 210 base/sys_info_android.cc \ 211 base/sys_info_linux.cc \ 212 base/sys_info_posix.cc \ 213 base/task_runner.cc \ 214 base/thread_task_runner_handle.cc \ 215 base/threading/non_thread_safe_impl.cc \ 216 base/threading/platform_thread_android.cc \ 217 base/threading/platform_thread_posix.cc \ 218 base/threading/post_task_and_reply_impl.cc \ 219 base/threading/sequenced_worker_pool.cc \ 220 base/threading/simple_thread.cc \ 221 base/threading/thread.cc \ 222 base/threading/thread_checker_impl.cc \ 223 base/threading/thread_collision_warner.cc \ 224 base/threading/thread_id_name_manager.cc \ 225 base/threading/thread_local_posix.cc \ 226 base/threading/thread_local_storage_posix.cc \ 227 base/threading/thread_restrictions.cc \ 228 base/threading/watchdog.cc \ 229 base/threading/worker_pool.cc \ 230 base/threading/worker_pool_posix.cc \ 231 base/time/clock.cc \ 232 base/time/default_clock.cc \ 233 base/time/default_tick_clock.cc \ 234 base/time/tick_clock.cc \ 235 base/time/time.cc \ 236 base/time/time_posix.cc \ 237 base/timer/elapsed_timer.cc \ 238 base/timer/hi_res_timer_manager_posix.cc \ 239 base/timer/timer.cc \ 240 base/tracked_objects.cc \ 241 base/tracking_info.cc \ 242 base/values.cc \ 243 base/value_conversions.cc \ 244 base/version.cc \ 245 base/vlog.cc 246 247 248 # Flags passed to both C and C++ files. 249 MY_CFLAGS_Debug := \ 250 -fstack-protector \ 251 --param=ssp-buffer-size=4 \ 252 -Werror \ 253 -fno-exceptions \ 254 -fno-strict-aliasing \ 255 -Wall \ 256 -Wno-unused-parameter \ 257 -Wno-missing-field-initializers \ 258 -fvisibility=hidden \ 259 -pipe \ 260 -fPIC \ 261 -fno-tree-sra \ 262 -fuse-ld=gold \ 263 -Wno-psabi \ 264 -ffunction-sections \ 265 -funwind-tables \ 266 -g \ 267 -fstack-protector \ 268 -fno-short-enums \ 269 -finline-limit=64 \ 270 -Wa,--noexecstack \ 271 -U_FORTIFY_SOURCE \ 272 -Wno-extra \ 273 -Wno-ignored-qualifiers \ 274 -Wno-type-limits \ 275 -Os \ 276 -g \ 277 -fomit-frame-pointer \ 278 -fdata-sections \ 279 -ffunction-sections 280 281 MY_DEFS_Debug := \ 282 '-DV8_DEPRECATION_WARNINGS' \ 283 '-D_FILE_OFFSET_BITS=64' \ 284 '-DNO_TCMALLOC' \ 285 '-DDISABLE_NACL' \ 286 '-DCHROMIUM_BUILD' \ 287 '-DUSE_LIBJPEG_TURBO=1' \ 288 '-DUSE_PROPRIETARY_CODECS' \ 289 '-DENABLE_CONFIGURATION_POLICY' \ 290 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 291 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 292 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 293 '-DUSE_OPENSSL=1' \ 294 '-DENABLE_EGLIMAGE=1' \ 295 '-DCLD_VERSION=1' \ 296 '-DENABLE_PRINTING=1' \ 297 '-DENABLE_MANAGED_USERS=1' \ 298 '-D__STDC_CONSTANT_MACROS' \ 299 '-D__STDC_FORMAT_MACROS' \ 300 '-DBASE_IMPLEMENTATION' \ 301 '-DANDROID_SINCOS_PROVIDED' \ 302 '-DANDROID' \ 303 '-D__GNU_SOURCE=1' \ 304 '-DUSE_STLPORT=1' \ 305 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 306 '-DCHROME_BUILD_ID=""' \ 307 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 308 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 309 '-D_DEBUG' 310 311 312 # Include paths placed before CFLAGS/CPPFLAGS 313 LOCAL_C_INCLUDES_Debug := \ 314 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 315 $(gyp_shared_intermediate_dir)/base \ 316 $(LOCAL_PATH) \ 317 $(PWD)/frameworks/wilhelm/include \ 318 $(PWD)/bionic \ 319 $(PWD)/external/stlport/stlport 320 321 322 # Flags passed to only C++ (and not C) files. 323 LOCAL_CPPFLAGS_Debug := \ 324 -fno-rtti \ 325 -fno-threadsafe-statics \ 326 -fvisibility-inlines-hidden \ 327 -Wsign-compare \ 328 -Wno-abi \ 329 -Wno-error=c++0x-compat \ 330 -Wno-non-virtual-dtor \ 331 -Wno-sign-promo 332 333 334 # Flags passed to both C and C++ files. 335 MY_CFLAGS_Release := \ 336 -fstack-protector \ 337 --param=ssp-buffer-size=4 \ 338 -Werror \ 339 -fno-exceptions \ 340 -fno-strict-aliasing \ 341 -Wall \ 342 -Wno-unused-parameter \ 343 -Wno-missing-field-initializers \ 344 -fvisibility=hidden \ 345 -pipe \ 346 -fPIC \ 347 -fno-tree-sra \ 348 -fuse-ld=gold \ 349 -Wno-psabi \ 350 -ffunction-sections \ 351 -funwind-tables \ 352 -g \ 353 -fstack-protector \ 354 -fno-short-enums \ 355 -finline-limit=64 \ 356 -Wa,--noexecstack \ 357 -U_FORTIFY_SOURCE \ 358 -Wno-extra \ 359 -Wno-ignored-qualifiers \ 360 -Wno-type-limits \ 361 -Os \ 362 -fno-ident \ 363 -fdata-sections \ 364 -ffunction-sections \ 365 -fomit-frame-pointer 366 367 MY_DEFS_Release := \ 368 '-DV8_DEPRECATION_WARNINGS' \ 369 '-D_FILE_OFFSET_BITS=64' \ 370 '-DNO_TCMALLOC' \ 371 '-DDISABLE_NACL' \ 372 '-DCHROMIUM_BUILD' \ 373 '-DUSE_LIBJPEG_TURBO=1' \ 374 '-DUSE_PROPRIETARY_CODECS' \ 375 '-DENABLE_CONFIGURATION_POLICY' \ 376 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 377 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 378 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 379 '-DUSE_OPENSSL=1' \ 380 '-DENABLE_EGLIMAGE=1' \ 381 '-DCLD_VERSION=1' \ 382 '-DENABLE_PRINTING=1' \ 383 '-DENABLE_MANAGED_USERS=1' \ 384 '-D__STDC_CONSTANT_MACROS' \ 385 '-D__STDC_FORMAT_MACROS' \ 386 '-DBASE_IMPLEMENTATION' \ 387 '-DANDROID_SINCOS_PROVIDED' \ 388 '-DANDROID' \ 389 '-D__GNU_SOURCE=1' \ 390 '-DUSE_STLPORT=1' \ 391 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 392 '-DCHROME_BUILD_ID=""' \ 393 '-DNDEBUG' \ 394 '-DNVALGRIND' \ 395 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 396 '-D_FORTIFY_SOURCE=2' 397 398 399 # Include paths placed before CFLAGS/CPPFLAGS 400 LOCAL_C_INCLUDES_Release := \ 401 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 402 $(gyp_shared_intermediate_dir)/base \ 403 $(LOCAL_PATH) \ 404 $(PWD)/frameworks/wilhelm/include \ 405 $(PWD)/bionic \ 406 $(PWD)/external/stlport/stlport 407 408 409 # Flags passed to only C++ (and not C) files. 410 LOCAL_CPPFLAGS_Release := \ 411 -fno-rtti \ 412 -fno-threadsafe-statics \ 413 -fvisibility-inlines-hidden \ 414 -Wsign-compare \ 415 -Wno-abi \ 416 -Wno-error=c++0x-compat \ 417 -Wno-non-virtual-dtor \ 418 -Wno-sign-promo 419 420 421 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 422 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 423 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 424 ### Rules for final target. 425 426 LOCAL_LDFLAGS_Debug := \ 427 -Wl,-z,now \ 428 -Wl,-z,relro \ 429 -Wl,-z,noexecstack \ 430 -fPIC \ 431 -Wl,-z,relro \ 432 -Wl,-z,now \ 433 -fuse-ld=gold \ 434 -nostdlib \ 435 -Wl,--no-undefined \ 436 -Wl,--exclude-libs=ALL \ 437 -Wl,--icf=safe \ 438 -Wl,--fatal-warnings \ 439 -Wl,--gc-sections \ 440 -Wl,--warn-shared-textrel \ 441 -Wl,-O1 \ 442 -Wl,--as-needed 443 444 445 LOCAL_LDFLAGS_Release := \ 446 -Wl,-z,now \ 447 -Wl,-z,relro \ 448 -Wl,-z,noexecstack \ 449 -fPIC \ 450 -Wl,-z,relro \ 451 -Wl,-z,now \ 452 -fuse-ld=gold \ 453 -nostdlib \ 454 -Wl,--no-undefined \ 455 -Wl,--exclude-libs=ALL \ 456 -Wl,--icf=safe \ 457 -Wl,-O1 \ 458 -Wl,--as-needed \ 459 -Wl,--gc-sections \ 460 -Wl,--fatal-warnings \ 461 -Wl,--warn-shared-textrel 462 463 464 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 465 466 LOCAL_STATIC_LIBRARIES := \ 467 cpufeatures 468 469 # Enable grouping to fix circular references 470 LOCAL_GROUP_STATIC_LIBRARIES := true 471 472 LOCAL_SHARED_LIBRARIES := \ 473 libstlport \ 474 libdl 475 476 # Add target alias to "gyp_all_modules" target. 477 .PHONY: gyp_all_modules 478 gyp_all_modules: base_base_gyp 479 480 # Alias gyp target name. 481 .PHONY: base 482 base: base_base_gyp 483 484 include $(BUILD_STATIC_LIBRARY) 485