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