Home | History | Annotate | Download | only in webkit
      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 := webkit_webkit_storage_common_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 
     15 GYP_GENERATED_OUTPUTS :=
     16 
     17 # Make sure our deps and generated files are built first.
     18 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
     19 
     20 LOCAL_CPP_EXTENSION := .cc
     21 LOCAL_GENERATED_SOURCES :=
     22 
     23 GYP_COPIED_SOURCE_ORIGIN_DIRS :=
     24 
     25 LOCAL_SRC_FILES := \
     26 	webkit/common/appcache/appcache_interfaces.cc \
     27 	webkit/common/blob/blob_data.cc \
     28 	webkit/common/blob/scoped_file.cc \
     29 	webkit/common/blob/shareable_file_reference.cc \
     30 	webkit/common/database/database_connections.cc \
     31 	webkit/common/database/database_identifier.cc \
     32 	webkit/common/fileapi/directory_entry.cc \
     33 	webkit/common/fileapi/file_system_info.cc \
     34 	webkit/common/fileapi/file_system_util.cc \
     35 	webkit/common/quota/quota_status_code.cc
     36 
     37 
     38 # Flags passed to both C and C++ files.
     39 MY_CFLAGS_Debug := \
     40 	-fstack-protector \
     41 	--param=ssp-buffer-size=4 \
     42 	 \
     43 	-fno-exceptions \
     44 	-fno-strict-aliasing \
     45 	-Wall \
     46 	-Wno-unused-parameter \
     47 	-Wno-missing-field-initializers \
     48 	-fvisibility=hidden \
     49 	-pipe \
     50 	-fPIC \
     51 	-EL \
     52 	-mhard-float \
     53 	-ffunction-sections \
     54 	-funwind-tables \
     55 	-g \
     56 	-fstack-protector \
     57 	-fno-short-enums \
     58 	-finline-limit=64 \
     59 	-Wa,--noexecstack \
     60 	-U_FORTIFY_SOURCE \
     61 	-Wno-extra \
     62 	-Wno-ignored-qualifiers \
     63 	-Wno-type-limits \
     64 	-Os \
     65 	-g \
     66 	-fomit-frame-pointer \
     67 	-fdata-sections \
     68 	-ffunction-sections
     69 
     70 MY_DEFS_Debug := \
     71 	'-DV8_DEPRECATION_WARNINGS' \
     72 	'-D_FILE_OFFSET_BITS=64' \
     73 	'-DNO_TCMALLOC' \
     74 	'-DDISABLE_NACL' \
     75 	'-DCHROMIUM_BUILD' \
     76 	'-DUSE_LIBJPEG_TURBO=1' \
     77 	'-DUSE_PROPRIETARY_CODECS' \
     78 	'-DENABLE_CONFIGURATION_POLICY' \
     79 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     80 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     81 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
     82 	'-DUSE_OPENSSL=1' \
     83 	'-DENABLE_EGLIMAGE=1' \
     84 	'-DCLD_VERSION=1' \
     85 	'-DENABLE_PRINTING=1' \
     86 	'-DENABLE_MANAGED_USERS=1' \
     87 	'-DWEBKIT_STORAGE_COMMON_IMPLEMENTATION' \
     88 	'-DPOSIX_AVOID_MMAP' \
     89 	'-D__STDC_CONSTANT_MACROS' \
     90 	'-D__STDC_FORMAT_MACROS' \
     91 	'-DANDROID' \
     92 	'-D__GNU_SOURCE=1' \
     93 	'-DUSE_STLPORT=1' \
     94 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
     95 	'-DCHROME_BUILD_ID=""' \
     96 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
     97 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
     98 	'-D_DEBUG'
     99 
    100 
    101 # Include paths placed before CFLAGS/CPPFLAGS
    102 LOCAL_C_INCLUDES_Debug := \
    103 	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
    104 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    105 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    106 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    107 	$(LOCAL_PATH) \
    108 	$(LOCAL_PATH)/skia/config \
    109 	$(PWD)/frameworks/wilhelm/include \
    110 	$(PWD)/bionic \
    111 	$(PWD)/external/stlport/stlport
    112 
    113 
    114 # Flags passed to only C++ (and not C) files.
    115 LOCAL_CPPFLAGS_Debug := \
    116 	-fno-rtti \
    117 	-fno-threadsafe-statics \
    118 	-fvisibility-inlines-hidden \
    119 	-Wsign-compare \
    120 	-Wno-uninitialized \
    121 	-Wno-error=c++0x-compat \
    122 	-Wno-non-virtual-dtor \
    123 	-Wno-sign-promo
    124 
    125 
    126 # Flags passed to both C and C++ files.
    127 MY_CFLAGS_Release := \
    128 	-fstack-protector \
    129 	--param=ssp-buffer-size=4 \
    130 	 \
    131 	-fno-exceptions \
    132 	-fno-strict-aliasing \
    133 	-Wall \
    134 	-Wno-unused-parameter \
    135 	-Wno-missing-field-initializers \
    136 	-fvisibility=hidden \
    137 	-pipe \
    138 	-fPIC \
    139 	-EL \
    140 	-mhard-float \
    141 	-ffunction-sections \
    142 	-funwind-tables \
    143 	-g \
    144 	-fstack-protector \
    145 	-fno-short-enums \
    146 	-finline-limit=64 \
    147 	-Wa,--noexecstack \
    148 	-U_FORTIFY_SOURCE \
    149 	-Wno-extra \
    150 	-Wno-ignored-qualifiers \
    151 	-Wno-type-limits \
    152 	-Os \
    153 	-fno-ident \
    154 	-fdata-sections \
    155 	-ffunction-sections \
    156 	-fomit-frame-pointer
    157 
    158 MY_DEFS_Release := \
    159 	'-DV8_DEPRECATION_WARNINGS' \
    160 	'-D_FILE_OFFSET_BITS=64' \
    161 	'-DNO_TCMALLOC' \
    162 	'-DDISABLE_NACL' \
    163 	'-DCHROMIUM_BUILD' \
    164 	'-DUSE_LIBJPEG_TURBO=1' \
    165 	'-DUSE_PROPRIETARY_CODECS' \
    166 	'-DENABLE_CONFIGURATION_POLICY' \
    167 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    168 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    169 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
    170 	'-DUSE_OPENSSL=1' \
    171 	'-DENABLE_EGLIMAGE=1' \
    172 	'-DCLD_VERSION=1' \
    173 	'-DENABLE_PRINTING=1' \
    174 	'-DENABLE_MANAGED_USERS=1' \
    175 	'-DWEBKIT_STORAGE_COMMON_IMPLEMENTATION' \
    176 	'-DPOSIX_AVOID_MMAP' \
    177 	'-D__STDC_CONSTANT_MACROS' \
    178 	'-D__STDC_FORMAT_MACROS' \
    179 	'-DANDROID' \
    180 	'-D__GNU_SOURCE=1' \
    181 	'-DUSE_STLPORT=1' \
    182 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    183 	'-DCHROME_BUILD_ID=""' \
    184 	'-DNDEBUG' \
    185 	'-DNVALGRIND' \
    186 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    187 	'-D_FORTIFY_SOURCE=2'
    188 
    189 
    190 # Include paths placed before CFLAGS/CPPFLAGS
    191 LOCAL_C_INCLUDES_Release := \
    192 	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
    193 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    194 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    195 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    196 	$(LOCAL_PATH) \
    197 	$(LOCAL_PATH)/skia/config \
    198 	$(PWD)/frameworks/wilhelm/include \
    199 	$(PWD)/bionic \
    200 	$(PWD)/external/stlport/stlport
    201 
    202 
    203 # Flags passed to only C++ (and not C) files.
    204 LOCAL_CPPFLAGS_Release := \
    205 	-fno-rtti \
    206 	-fno-threadsafe-statics \
    207 	-fvisibility-inlines-hidden \
    208 	-Wsign-compare \
    209 	-Wno-uninitialized \
    210 	-Wno-error=c++0x-compat \
    211 	-Wno-non-virtual-dtor \
    212 	-Wno-sign-promo
    213 
    214 
    215 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    216 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    217 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    218 ### Rules for final target.
    219 
    220 LOCAL_LDFLAGS_Debug := \
    221 	-Wl,-z,now \
    222 	-Wl,-z,relro \
    223 	-Wl,-z,noexecstack \
    224 	-fPIC \
    225 	-EL \
    226 	-Wl,--no-keep-memory \
    227 	-nostdlib \
    228 	-Wl,--no-undefined \
    229 	-Wl,--exclude-libs=ALL \
    230 	-Wl,--fatal-warnings \
    231 	-Wl,--gc-sections \
    232 	-Wl,--warn-shared-textrel \
    233 	-Wl,-O1 \
    234 	-Wl,--as-needed
    235 
    236 
    237 LOCAL_LDFLAGS_Release := \
    238 	-Wl,-z,now \
    239 	-Wl,-z,relro \
    240 	-Wl,-z,noexecstack \
    241 	-fPIC \
    242 	-EL \
    243 	-Wl,--no-keep-memory \
    244 	-nostdlib \
    245 	-Wl,--no-undefined \
    246 	-Wl,--exclude-libs=ALL \
    247 	-Wl,-O1 \
    248 	-Wl,--as-needed \
    249 	-Wl,--gc-sections \
    250 	-Wl,--fatal-warnings \
    251 	-Wl,--warn-shared-textrel
    252 
    253 
    254 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    255 
    256 LOCAL_STATIC_LIBRARIES :=
    257 
    258 # Enable grouping to fix circular references
    259 LOCAL_GROUP_STATIC_LIBRARIES := true
    260 
    261 LOCAL_SHARED_LIBRARIES := \
    262 	libstlport \
    263 	libdl
    264 
    265 # Add target alias to "gyp_all_modules" target.
    266 .PHONY: gyp_all_modules
    267 gyp_all_modules: webkit_webkit_storage_common_gyp
    268 
    269 # Alias gyp target name.
    270 .PHONY: webkit_storage_common
    271 webkit_storage_common: webkit_webkit_storage_common_gyp
    272 
    273 include $(BUILD_STATIC_LIBRARY)
    274