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