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