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/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/java_handler_thread.cc \
     57 	base/android/path_service_android.cc \
     58 	base/android/path_utils.cc \
     59 	base/android/sys_utils.cc \
     60 	base/at_exit.cc \
     61 	base/base_paths.cc \
     62 	base/base_paths_android.cc \
     63 	base/base64.cc \
     64 	base/bind_helpers.cc \
     65 	base/build_time.cc \
     66 	base/callback_internal.cc \
     67 	base/command_line.cc \
     68 	base/cpu.cc \
     69 	base/debug/alias.cc \
     70 	base/debug/crash_logging.cc \
     71 	base/debug/debugger.cc \
     72 	base/debug/debugger_posix.cc \
     73 	base/debug/proc_maps_linux.cc \
     74 	base/debug/profiler.cc \
     75 	base/debug/stack_trace.cc \
     76 	base/debug/stack_trace_android.cc \
     77 	base/debug/trace_event_android.cc \
     78 	base/debug/trace_event_impl.cc \
     79 	base/debug/trace_event_impl_constants.cc \
     80 	base/debug/trace_event_memory.cc \
     81 	base/deferred_sequenced_task_runner.cc \
     82 	base/environment.cc \
     83 	base/file_util.cc \
     84 	base/file_util_android.cc \
     85 	base/file_util_posix.cc \
     86 	base/files/file_enumerator.cc \
     87 	base/files/file_enumerator_posix.cc \
     88 	base/files/file_path.cc \
     89 	base/files/file_path_constants.cc \
     90 	base/files/file_path_watcher.cc \
     91 	base/files/file_path_watcher_linux.cc \
     92 	base/files/file_util_proxy.cc \
     93 	base/files/important_file_writer.cc \
     94 	base/files/memory_mapped_file.cc \
     95 	base/files/memory_mapped_file_posix.cc \
     96 	base/files/scoped_platform_file_closer.cc \
     97 	base/files/scoped_temp_dir.cc \
     98 	base/guid.cc \
     99 	base/guid_posix.cc \
    100 	base/hash.cc \
    101 	base/ini_parser.cc \
    102 	base/json/json_file_value_serializer.cc \
    103 	base/json/json_parser.cc \
    104 	base/json/json_reader.cc \
    105 	base/json/json_string_value_serializer.cc \
    106 	base/json/json_writer.cc \
    107 	base/json/string_escape.cc \
    108 	base/lazy_instance.cc \
    109 	base/location.cc \
    110 	base/logging.cc \
    111 	base/memory/aligned_memory.cc \
    112 	base/memory/discardable_memory.cc \
    113 	base/memory/discardable_memory_android.cc \
    114 	base/memory/memory_pressure_listener.cc \
    115 	base/memory/ref_counted.cc \
    116 	base/memory/ref_counted_memory.cc \
    117 	base/memory/shared_memory_android.cc \
    118 	base/memory/shared_memory_posix.cc \
    119 	base/memory/singleton.cc \
    120 	base/memory/weak_ptr.cc \
    121 	base/message_loop/incoming_task_queue.cc \
    122 	base/message_loop/message_loop.cc \
    123 	base/message_loop/message_loop_proxy.cc \
    124 	base/message_loop/message_loop_proxy_impl.cc \
    125 	base/message_loop/message_pump.cc \
    126 	base/message_loop/message_pump_default.cc \
    127 	base/metrics/sample_map.cc \
    128 	base/metrics/sample_vector.cc \
    129 	base/metrics/bucket_ranges.cc \
    130 	base/metrics/histogram.cc \
    131 	base/metrics/histogram_base.cc \
    132 	base/metrics/histogram_samples.cc \
    133 	base/metrics/histogram_snapshot_manager.cc \
    134 	base/metrics/sparse_histogram.cc \
    135 	base/metrics/statistics_recorder.cc \
    136 	base/metrics/stats_counters.cc \
    137 	base/metrics/stats_table.cc \
    138 	base/native_library_posix.cc \
    139 	base/os_compat_android.cc \
    140 	base/path_service.cc \
    141 	base/pending_task.cc \
    142 	base/pickle.cc \
    143 	base/platform_file.cc \
    144 	base/platform_file_posix.cc \
    145 	base/posix/global_descriptors.cc \
    146 	base/posix/unix_domain_socket_linux.cc \
    147 	base/power_monitor/power_monitor.cc \
    148 	base/power_monitor/power_monitor_device_source_android.cc \
    149 	base/power_monitor/power_monitor_device_source.cc \
    150 	base/power_monitor/power_monitor_source.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.
    234 MY_CFLAGS_Debug := \
    235 	-fstack-protector \
    236 	--param=ssp-buffer-size=4 \
    237 	 \
    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 	-EL \
    247 	-mhard-float \
    248 	-ffunction-sections \
    249 	-funwind-tables \
    250 	-g \
    251 	-fstack-protector \
    252 	-fno-short-enums \
    253 	-finline-limit=64 \
    254 	-Wa,--noexecstack \
    255 	-U_FORTIFY_SOURCE \
    256 	-Wno-extra \
    257 	-Wno-ignored-qualifiers \
    258 	-Wno-type-limits \
    259 	-Os \
    260 	-g \
    261 	-fomit-frame-pointer \
    262 	-fdata-sections \
    263 	-ffunction-sections
    264 
    265 MY_DEFS_Debug := \
    266 	'-DANGLE_DX11' \
    267 	'-D_FILE_OFFSET_BITS=64' \
    268 	'-DNO_TCMALLOC' \
    269 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    270 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    271 	'-DDISABLE_NACL' \
    272 	'-DCHROMIUM_BUILD' \
    273 	'-DUSE_LIBJPEG_TURBO=1' \
    274 	'-DUSE_PROPRIETARY_CODECS' \
    275 	'-DENABLE_CONFIGURATION_POLICY' \
    276 	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
    277 	'-DTRACING_IS_OFFICIAL_BUILD=1' \
    278 	'-DENABLE_GPU=1' \
    279 	'-DUSE_OPENSSL=1' \
    280 	'-DENABLE_EGLIMAGE=1' \
    281 	'-DENABLE_PRINTING=1' \
    282 	'-D__STDC_CONSTANT_MACROS' \
    283 	'-D__STDC_FORMAT_MACROS' \
    284 	'-DBASE_IMPLEMENTATION' \
    285 	'-DANDROID_SINCOS_PROVIDED' \
    286 	'-DANDROID' \
    287 	'-D__GNU_SOURCE=1' \
    288 	'-DUSE_STLPORT=1' \
    289 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    290 	'-DCHROME_BUILD_ID=""' \
    291 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    292 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    293 	'-D_DEBUG'
    294 
    295 
    296 # Include paths placed before CFLAGS/CPPFLAGS
    297 LOCAL_C_INCLUDES_Debug := \
    298 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    299 	$(gyp_shared_intermediate_dir)/base \
    300 	$(LOCAL_PATH) \
    301 	$(PWD)/frameworks/wilhelm/include \
    302 	$(PWD)/bionic \
    303 	$(PWD)/external/stlport/stlport
    304 
    305 
    306 # Flags passed to only C++ (and not C) files.
    307 LOCAL_CPPFLAGS_Debug := \
    308 	-fno-rtti \
    309 	-fno-threadsafe-statics \
    310 	-fvisibility-inlines-hidden \
    311 	-Wsign-compare \
    312 	-Wno-uninitialized \
    313 	-Wno-error=c++0x-compat \
    314 	-Wno-non-virtual-dtor \
    315 	-Wno-sign-promo
    316 
    317 
    318 # Flags passed to both C and C++ files.
    319 MY_CFLAGS_Release := \
    320 	-fstack-protector \
    321 	--param=ssp-buffer-size=4 \
    322 	 \
    323 	-fno-exceptions \
    324 	-fno-strict-aliasing \
    325 	-Wall \
    326 	-Wno-unused-parameter \
    327 	-Wno-missing-field-initializers \
    328 	-fvisibility=hidden \
    329 	-pipe \
    330 	-fPIC \
    331 	-EL \
    332 	-mhard-float \
    333 	-ffunction-sections \
    334 	-funwind-tables \
    335 	-g \
    336 	-fstack-protector \
    337 	-fno-short-enums \
    338 	-finline-limit=64 \
    339 	-Wa,--noexecstack \
    340 	-U_FORTIFY_SOURCE \
    341 	-Wno-extra \
    342 	-Wno-ignored-qualifiers \
    343 	-Wno-type-limits \
    344 	-Os \
    345 	-fno-ident \
    346 	-fdata-sections \
    347 	-ffunction-sections \
    348 	-fomit-frame-pointer
    349 
    350 MY_DEFS_Release := \
    351 	'-DANGLE_DX11' \
    352 	'-D_FILE_OFFSET_BITS=64' \
    353 	'-DNO_TCMALLOC' \
    354 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    355 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    356 	'-DDISABLE_NACL' \
    357 	'-DCHROMIUM_BUILD' \
    358 	'-DUSE_LIBJPEG_TURBO=1' \
    359 	'-DUSE_PROPRIETARY_CODECS' \
    360 	'-DENABLE_CONFIGURATION_POLICY' \
    361 	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
    362 	'-DTRACING_IS_OFFICIAL_BUILD=1' \
    363 	'-DENABLE_GPU=1' \
    364 	'-DUSE_OPENSSL=1' \
    365 	'-DENABLE_EGLIMAGE=1' \
    366 	'-DENABLE_PRINTING=1' \
    367 	'-D__STDC_CONSTANT_MACROS' \
    368 	'-D__STDC_FORMAT_MACROS' \
    369 	'-DBASE_IMPLEMENTATION' \
    370 	'-DANDROID_SINCOS_PROVIDED' \
    371 	'-DANDROID' \
    372 	'-D__GNU_SOURCE=1' \
    373 	'-DUSE_STLPORT=1' \
    374 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    375 	'-DCHROME_BUILD_ID=""' \
    376 	'-DNDEBUG' \
    377 	'-DNVALGRIND' \
    378 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    379 	'-D_FORTIFY_SOURCE=2'
    380 
    381 
    382 # Include paths placed before CFLAGS/CPPFLAGS
    383 LOCAL_C_INCLUDES_Release := \
    384 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    385 	$(gyp_shared_intermediate_dir)/base \
    386 	$(LOCAL_PATH) \
    387 	$(PWD)/frameworks/wilhelm/include \
    388 	$(PWD)/bionic \
    389 	$(PWD)/external/stlport/stlport
    390 
    391 
    392 # Flags passed to only C++ (and not C) files.
    393 LOCAL_CPPFLAGS_Release := \
    394 	-fno-rtti \
    395 	-fno-threadsafe-statics \
    396 	-fvisibility-inlines-hidden \
    397 	-Wsign-compare \
    398 	-Wno-uninitialized \
    399 	-Wno-error=c++0x-compat \
    400 	-Wno-non-virtual-dtor \
    401 	-Wno-sign-promo
    402 
    403 
    404 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    405 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    406 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    407 ### Rules for final target.
    408 
    409 LOCAL_LDFLAGS_Debug := \
    410 	-Wl,-z,now \
    411 	-Wl,-z,relro \
    412 	-Wl,-z,noexecstack \
    413 	-fPIC \
    414 	-EL \
    415 	-Wl,--no-keep-memory \
    416 	-nostdlib \
    417 	-Wl,--no-undefined \
    418 	-Wl,--exclude-libs=ALL \
    419 	-Wl,--fatal-warnings \
    420 	-Wl,--gc-sections \
    421 	-Wl,--warn-shared-textrel \
    422 	-Wl,-O1 \
    423 	-Wl,--as-needed
    424 
    425 
    426 LOCAL_LDFLAGS_Release := \
    427 	-Wl,-z,now \
    428 	-Wl,-z,relro \
    429 	-Wl,-z,noexecstack \
    430 	-fPIC \
    431 	-EL \
    432 	-Wl,--no-keep-memory \
    433 	-nostdlib \
    434 	-Wl,--no-undefined \
    435 	-Wl,--exclude-libs=ALL \
    436 	-Wl,-O1 \
    437 	-Wl,--as-needed \
    438 	-Wl,--gc-sections \
    439 	-Wl,--fatal-warnings \
    440 	-Wl,--warn-shared-textrel
    441 
    442 
    443 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    444 
    445 LOCAL_STATIC_LIBRARIES := \
    446 	cpufeatures
    447 
    448 # Enable grouping to fix circular references
    449 LOCAL_GROUP_STATIC_LIBRARIES := true
    450 
    451 LOCAL_SHARED_LIBRARIES := \
    452 	libstlport \
    453 	libdl
    454 
    455 # Add target alias to "gyp_all_modules" target.
    456 .PHONY: gyp_all_modules
    457 gyp_all_modules: base_base_gyp
    458 
    459 # Alias gyp target name.
    460 .PHONY: base
    461 base: base_base_gyp
    462 
    463 include $(BUILD_STATIC_LIBRARY)
    464