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/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 	 \
    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 	-EL \
    262 	-mhard-float \
    263 	-ffunction-sections \
    264 	-funwind-tables \
    265 	-g \
    266 	-fstack-protector \
    267 	-fno-short-enums \
    268 	-finline-limit=64 \
    269 	-Wa,--noexecstack \
    270 	-U_FORTIFY_SOURCE \
    271 	-Wno-extra \
    272 	-Wno-ignored-qualifiers \
    273 	-Wno-type-limits \
    274 	-Os \
    275 	-g \
    276 	-fomit-frame-pointer \
    277 	-fdata-sections \
    278 	-ffunction-sections
    279 
    280 MY_DEFS_Debug := \
    281 	'-DV8_DEPRECATION_WARNINGS' \
    282 	'-D_FILE_OFFSET_BITS=64' \
    283 	'-DNO_TCMALLOC' \
    284 	'-DDISABLE_NACL' \
    285 	'-DCHROMIUM_BUILD' \
    286 	'-DUSE_LIBJPEG_TURBO=1' \
    287 	'-DUSE_PROPRIETARY_CODECS' \
    288 	'-DENABLE_CONFIGURATION_POLICY' \
    289 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    290 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    291 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
    292 	'-DUSE_OPENSSL=1' \
    293 	'-DENABLE_EGLIMAGE=1' \
    294 	'-DCLD_VERSION=1' \
    295 	'-DENABLE_PRINTING=1' \
    296 	'-DENABLE_MANAGED_USERS=1' \
    297 	'-D__STDC_CONSTANT_MACROS' \
    298 	'-D__STDC_FORMAT_MACROS' \
    299 	'-DBASE_IMPLEMENTATION' \
    300 	'-DANDROID_SINCOS_PROVIDED' \
    301 	'-DANDROID' \
    302 	'-D__GNU_SOURCE=1' \
    303 	'-DUSE_STLPORT=1' \
    304 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    305 	'-DCHROME_BUILD_ID=""' \
    306 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    307 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    308 	'-D_DEBUG'
    309 
    310 
    311 # Include paths placed before CFLAGS/CPPFLAGS
    312 LOCAL_C_INCLUDES_Debug := \
    313 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    314 	$(gyp_shared_intermediate_dir)/base \
    315 	$(LOCAL_PATH) \
    316 	$(PWD)/frameworks/wilhelm/include \
    317 	$(PWD)/bionic \
    318 	$(PWD)/external/stlport/stlport
    319 
    320 
    321 # Flags passed to only C++ (and not C) files.
    322 LOCAL_CPPFLAGS_Debug := \
    323 	-fno-rtti \
    324 	-fno-threadsafe-statics \
    325 	-fvisibility-inlines-hidden \
    326 	-Wsign-compare \
    327 	-Wno-uninitialized \
    328 	-Wno-error=c++0x-compat \
    329 	-Wno-non-virtual-dtor \
    330 	-Wno-sign-promo
    331 
    332 
    333 # Flags passed to both C and C++ files.
    334 MY_CFLAGS_Release := \
    335 	-fstack-protector \
    336 	--param=ssp-buffer-size=4 \
    337 	 \
    338 	-fno-exceptions \
    339 	-fno-strict-aliasing \
    340 	-Wall \
    341 	-Wno-unused-parameter \
    342 	-Wno-missing-field-initializers \
    343 	-fvisibility=hidden \
    344 	-pipe \
    345 	-fPIC \
    346 	-EL \
    347 	-mhard-float \
    348 	-ffunction-sections \
    349 	-funwind-tables \
    350 	-g \
    351 	-fstack-protector \
    352 	-fno-short-enums \
    353 	-finline-limit=64 \
    354 	-Wa,--noexecstack \
    355 	-U_FORTIFY_SOURCE \
    356 	-Wno-extra \
    357 	-Wno-ignored-qualifiers \
    358 	-Wno-type-limits \
    359 	-Os \
    360 	-fno-ident \
    361 	-fdata-sections \
    362 	-ffunction-sections \
    363 	-fomit-frame-pointer
    364 
    365 MY_DEFS_Release := \
    366 	'-DV8_DEPRECATION_WARNINGS' \
    367 	'-D_FILE_OFFSET_BITS=64' \
    368 	'-DNO_TCMALLOC' \
    369 	'-DDISABLE_NACL' \
    370 	'-DCHROMIUM_BUILD' \
    371 	'-DUSE_LIBJPEG_TURBO=1' \
    372 	'-DUSE_PROPRIETARY_CODECS' \
    373 	'-DENABLE_CONFIGURATION_POLICY' \
    374 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    375 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    376 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
    377 	'-DUSE_OPENSSL=1' \
    378 	'-DENABLE_EGLIMAGE=1' \
    379 	'-DCLD_VERSION=1' \
    380 	'-DENABLE_PRINTING=1' \
    381 	'-DENABLE_MANAGED_USERS=1' \
    382 	'-D__STDC_CONSTANT_MACROS' \
    383 	'-D__STDC_FORMAT_MACROS' \
    384 	'-DBASE_IMPLEMENTATION' \
    385 	'-DANDROID_SINCOS_PROVIDED' \
    386 	'-DANDROID' \
    387 	'-D__GNU_SOURCE=1' \
    388 	'-DUSE_STLPORT=1' \
    389 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    390 	'-DCHROME_BUILD_ID=""' \
    391 	'-DNDEBUG' \
    392 	'-DNVALGRIND' \
    393 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    394 	'-D_FORTIFY_SOURCE=2'
    395 
    396 
    397 # Include paths placed before CFLAGS/CPPFLAGS
    398 LOCAL_C_INCLUDES_Release := \
    399 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    400 	$(gyp_shared_intermediate_dir)/base \
    401 	$(LOCAL_PATH) \
    402 	$(PWD)/frameworks/wilhelm/include \
    403 	$(PWD)/bionic \
    404 	$(PWD)/external/stlport/stlport
    405 
    406 
    407 # Flags passed to only C++ (and not C) files.
    408 LOCAL_CPPFLAGS_Release := \
    409 	-fno-rtti \
    410 	-fno-threadsafe-statics \
    411 	-fvisibility-inlines-hidden \
    412 	-Wsign-compare \
    413 	-Wno-uninitialized \
    414 	-Wno-error=c++0x-compat \
    415 	-Wno-non-virtual-dtor \
    416 	-Wno-sign-promo
    417 
    418 
    419 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    420 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    421 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    422 ### Rules for final target.
    423 
    424 LOCAL_LDFLAGS_Debug := \
    425 	-Wl,-z,now \
    426 	-Wl,-z,relro \
    427 	-Wl,-z,noexecstack \
    428 	-fPIC \
    429 	-EL \
    430 	-Wl,--no-keep-memory \
    431 	-nostdlib \
    432 	-Wl,--no-undefined \
    433 	-Wl,--exclude-libs=ALL \
    434 	-Wl,--fatal-warnings \
    435 	-Wl,--gc-sections \
    436 	-Wl,--warn-shared-textrel \
    437 	-Wl,-O1 \
    438 	-Wl,--as-needed
    439 
    440 
    441 LOCAL_LDFLAGS_Release := \
    442 	-Wl,-z,now \
    443 	-Wl,-z,relro \
    444 	-Wl,-z,noexecstack \
    445 	-fPIC \
    446 	-EL \
    447 	-Wl,--no-keep-memory \
    448 	-nostdlib \
    449 	-Wl,--no-undefined \
    450 	-Wl,--exclude-libs=ALL \
    451 	-Wl,-O1 \
    452 	-Wl,--as-needed \
    453 	-Wl,--gc-sections \
    454 	-Wl,--fatal-warnings \
    455 	-Wl,--warn-shared-textrel
    456 
    457 
    458 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    459 
    460 LOCAL_STATIC_LIBRARIES := \
    461 	cpufeatures
    462 
    463 # Enable grouping to fix circular references
    464 LOCAL_GROUP_STATIC_LIBRARIES := true
    465 
    466 LOCAL_SHARED_LIBRARIES := \
    467 	libstlport \
    468 	libdl
    469 
    470 # Add target alias to "gyp_all_modules" target.
    471 .PHONY: gyp_all_modules
    472 gyp_all_modules: base_base_gyp
    473 
    474 # Alias gyp target name.
    475 .PHONY: base
    476 base: base_base_gyp
    477 
    478 include $(BUILD_STATIC_LIBRARY)
    479