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