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 := third_party_leveldatabase_leveldatabase_gyp 7 LOCAL_MODULE_SUFFIX := .a 8 LOCAL_MODULE_TAGS := optional 9 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 10 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 11 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 12 13 # Make sure our deps are built first. 14 GYP_TARGET_DEPENDENCIES := 15 16 GYP_GENERATED_OUTPUTS := 17 18 # Make sure our deps and generated files are built first. 19 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 20 21 LOCAL_CPP_EXTENSION := .cc 22 LOCAL_GENERATED_SOURCES := 23 24 GYP_COPIED_SOURCE_ORIGIN_DIRS := 25 26 LOCAL_SRC_FILES := \ 27 third_party/leveldatabase/env_chromium.cc \ 28 third_party/leveldatabase/env_chromium_stdio.cc \ 29 third_party/leveldatabase/port/port_chromium.cc \ 30 third_party/leveldatabase/src/db/builder.cc \ 31 third_party/leveldatabase/src/db/db_impl.cc \ 32 third_party/leveldatabase/src/db/db_iter.cc \ 33 third_party/leveldatabase/src/db/filename.cc \ 34 third_party/leveldatabase/src/db/dbformat.cc \ 35 third_party/leveldatabase/src/db/log_reader.cc \ 36 third_party/leveldatabase/src/db/log_writer.cc \ 37 third_party/leveldatabase/src/db/memtable.cc \ 38 third_party/leveldatabase/src/db/repair.cc \ 39 third_party/leveldatabase/src/db/table_cache.cc \ 40 third_party/leveldatabase/src/db/version_edit.cc \ 41 third_party/leveldatabase/src/db/version_set.cc \ 42 third_party/leveldatabase/src/db/write_batch.cc \ 43 third_party/leveldatabase/src/helpers/memenv/memenv.cc \ 44 third_party/leveldatabase/src/table/block.cc \ 45 third_party/leveldatabase/src/table/block_builder.cc \ 46 third_party/leveldatabase/src/table/filter_block.cc \ 47 third_party/leveldatabase/src/table/format.cc \ 48 third_party/leveldatabase/src/table/iterator.cc \ 49 third_party/leveldatabase/src/table/merger.cc \ 50 third_party/leveldatabase/src/table/table.cc \ 51 third_party/leveldatabase/src/table/table_builder.cc \ 52 third_party/leveldatabase/src/table/two_level_iterator.cc \ 53 third_party/leveldatabase/src/util/arena.cc \ 54 third_party/leveldatabase/src/util/bloom.cc \ 55 third_party/leveldatabase/src/util/cache.cc \ 56 third_party/leveldatabase/src/util/coding.cc \ 57 third_party/leveldatabase/src/util/comparator.cc \ 58 third_party/leveldatabase/src/util/crc32c.cc \ 59 third_party/leveldatabase/src/util/env.cc \ 60 third_party/leveldatabase/src/util/filter_policy.cc \ 61 third_party/leveldatabase/src/util/hash.cc \ 62 third_party/leveldatabase/src/util/logging.cc \ 63 third_party/leveldatabase/src/util/options.cc \ 64 third_party/leveldatabase/src/util/status.cc 65 66 67 # Flags passed to both C and C++ files. 68 MY_CFLAGS_Debug := \ 69 --param=ssp-buffer-size=4 \ 70 -fno-exceptions \ 71 -fno-strict-aliasing \ 72 -Wno-unused-parameter \ 73 -Wno-missing-field-initializers \ 74 -fvisibility=hidden \ 75 -pipe \ 76 -fPIC \ 77 -Wno-unused-local-typedefs \ 78 -Wno-format \ 79 -ffunction-sections \ 80 -funwind-tables \ 81 -g \ 82 -fno-short-enums \ 83 -finline-limit=64 \ 84 -Wa,--noexecstack \ 85 -U_FORTIFY_SOURCE \ 86 -Wno-extra \ 87 -Wno-ignored-qualifiers \ 88 -Wno-type-limits \ 89 -Wno-unused-but-set-variable \ 90 -Wno-address \ 91 -Wno-format-security \ 92 -Wno-return-type \ 93 -Wno-sequence-point \ 94 -Os \ 95 -g \ 96 -fdata-sections \ 97 -ffunction-sections \ 98 -funwind-tables 99 100 MY_DEFS_Debug := \ 101 '-DLEVELDB_PLATFORM_CHROMIUM=1' \ 102 '-DV8_DEPRECATION_WARNINGS' \ 103 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 104 '-D_FILE_OFFSET_BITS=64' \ 105 '-DNO_TCMALLOC' \ 106 '-DDISABLE_NACL' \ 107 '-DCHROMIUM_BUILD' \ 108 '-DUSE_LIBJPEG_TURBO=1' \ 109 '-DENABLE_WEBRTC=1' \ 110 '-DUSE_PROPRIETARY_CODECS' \ 111 '-DENABLE_BROWSER_CDMS' \ 112 '-DENABLE_CONFIGURATION_POLICY' \ 113 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 114 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 115 '-DENABLE_EGLIMAGE=1' \ 116 '-DCLD_VERSION=1' \ 117 '-DENABLE_PRINTING=1' \ 118 '-DENABLE_MANAGED_USERS=1' \ 119 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 120 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 121 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 122 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 123 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 124 '-DVIDEO_HOLE=1' \ 125 '-DUSE_OPENSSL=1' \ 126 '-DUSE_OPENSSL_CERTS=1' \ 127 '-DANDROID' \ 128 '-D__GNU_SOURCE=1' \ 129 '-DUSE_STLPORT=1' \ 130 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 131 '-DCHROME_BUILD_ID=""' \ 132 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 133 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 134 '-D_DEBUG' 135 136 137 # Include paths placed before CFLAGS/CPPFLAGS 138 LOCAL_C_INCLUDES_Debug := \ 139 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 140 $(LOCAL_PATH)/third_party/leveldatabase \ 141 $(LOCAL_PATH)/third_party/leveldatabase/src \ 142 $(LOCAL_PATH)/third_party/leveldatabase/src/include \ 143 $(gyp_shared_intermediate_dir) \ 144 $(LOCAL_PATH)/third_party/re2 \ 145 $(LOCAL_PATH) \ 146 $(PWD)/frameworks/wilhelm/include \ 147 $(PWD)/bionic \ 148 $(PWD)/external/stlport/stlport 149 150 151 # Flags passed to only C++ (and not C) files. 152 LOCAL_CPPFLAGS_Debug := \ 153 -fno-rtti \ 154 -fno-threadsafe-statics \ 155 -fvisibility-inlines-hidden \ 156 -Wno-deprecated \ 157 -Wno-non-virtual-dtor \ 158 -Wno-sign-promo \ 159 -Wno-non-virtual-dtor 160 161 162 LOCAL_FDO_SUPPORT_Debug := false 163 164 # Flags passed to both C and C++ files. 165 MY_CFLAGS_Release := \ 166 --param=ssp-buffer-size=4 \ 167 -fno-exceptions \ 168 -fno-strict-aliasing \ 169 -Wno-unused-parameter \ 170 -Wno-missing-field-initializers \ 171 -fvisibility=hidden \ 172 -pipe \ 173 -fPIC \ 174 -Wno-unused-local-typedefs \ 175 -Wno-format \ 176 -ffunction-sections \ 177 -funwind-tables \ 178 -g \ 179 -fno-short-enums \ 180 -finline-limit=64 \ 181 -Wa,--noexecstack \ 182 -U_FORTIFY_SOURCE \ 183 -Wno-extra \ 184 -Wno-ignored-qualifiers \ 185 -Wno-type-limits \ 186 -Wno-unused-but-set-variable \ 187 -Wno-address \ 188 -Wno-format-security \ 189 -Wno-return-type \ 190 -Wno-sequence-point \ 191 -Os \ 192 -fno-ident \ 193 -fdata-sections \ 194 -ffunction-sections \ 195 -funwind-tables 196 197 MY_DEFS_Release := \ 198 '-DLEVELDB_PLATFORM_CHROMIUM=1' \ 199 '-DV8_DEPRECATION_WARNINGS' \ 200 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 201 '-D_FILE_OFFSET_BITS=64' \ 202 '-DNO_TCMALLOC' \ 203 '-DDISABLE_NACL' \ 204 '-DCHROMIUM_BUILD' \ 205 '-DUSE_LIBJPEG_TURBO=1' \ 206 '-DENABLE_WEBRTC=1' \ 207 '-DUSE_PROPRIETARY_CODECS' \ 208 '-DENABLE_BROWSER_CDMS' \ 209 '-DENABLE_CONFIGURATION_POLICY' \ 210 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 211 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 212 '-DENABLE_EGLIMAGE=1' \ 213 '-DCLD_VERSION=1' \ 214 '-DENABLE_PRINTING=1' \ 215 '-DENABLE_MANAGED_USERS=1' \ 216 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 217 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 218 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 219 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 220 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 221 '-DVIDEO_HOLE=1' \ 222 '-DUSE_OPENSSL=1' \ 223 '-DUSE_OPENSSL_CERTS=1' \ 224 '-DANDROID' \ 225 '-D__GNU_SOURCE=1' \ 226 '-DUSE_STLPORT=1' \ 227 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 228 '-DCHROME_BUILD_ID=""' \ 229 '-DNDEBUG' \ 230 '-DNVALGRIND' \ 231 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 232 233 234 # Include paths placed before CFLAGS/CPPFLAGS 235 LOCAL_C_INCLUDES_Release := \ 236 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 237 $(LOCAL_PATH)/third_party/leveldatabase \ 238 $(LOCAL_PATH)/third_party/leveldatabase/src \ 239 $(LOCAL_PATH)/third_party/leveldatabase/src/include \ 240 $(gyp_shared_intermediate_dir) \ 241 $(LOCAL_PATH)/third_party/re2 \ 242 $(LOCAL_PATH) \ 243 $(PWD)/frameworks/wilhelm/include \ 244 $(PWD)/bionic \ 245 $(PWD)/external/stlport/stlport 246 247 248 # Flags passed to only C++ (and not C) files. 249 LOCAL_CPPFLAGS_Release := \ 250 -fno-rtti \ 251 -fno-threadsafe-statics \ 252 -fvisibility-inlines-hidden \ 253 -Wno-deprecated \ 254 -Wno-non-virtual-dtor \ 255 -Wno-sign-promo \ 256 -Wno-non-virtual-dtor 257 258 259 LOCAL_FDO_SUPPORT_Release := false 260 261 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 262 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 263 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 264 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 265 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 266 ### Rules for final target. 267 268 LOCAL_LDFLAGS_Debug := \ 269 -Wl,-z,now \ 270 -Wl,-z,relro \ 271 -Wl,--fatal-warnings \ 272 -Wl,-z,noexecstack \ 273 -fPIC \ 274 -nostdlib \ 275 -Wl,--no-undefined \ 276 -Wl,--exclude-libs=ALL \ 277 -Wl,--warn-shared-textrel \ 278 -Wl,-O1 \ 279 -Wl,--as-needed 280 281 282 LOCAL_LDFLAGS_Release := \ 283 -Wl,-z,now \ 284 -Wl,-z,relro \ 285 -Wl,--fatal-warnings \ 286 -Wl,-z,noexecstack \ 287 -fPIC \ 288 -nostdlib \ 289 -Wl,--no-undefined \ 290 -Wl,--exclude-libs=ALL \ 291 -Wl,-O1 \ 292 -Wl,--as-needed \ 293 -Wl,--gc-sections \ 294 -Wl,--warn-shared-textrel 295 296 297 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 298 299 LOCAL_STATIC_LIBRARIES := 300 301 # Enable grouping to fix circular references 302 LOCAL_GROUP_STATIC_LIBRARIES := true 303 304 LOCAL_SHARED_LIBRARIES := \ 305 libstlport \ 306 libdl 307 308 # Add target alias to "gyp_all_modules" target. 309 .PHONY: gyp_all_modules 310 gyp_all_modules: third_party_leveldatabase_leveldatabase_gyp 311 312 # Alias gyp target name. 313 .PHONY: leveldatabase 314 leveldatabase: third_party_leveldatabase_leveldatabase_gyp 315 316 include $(BUILD_STATIC_LIBRARY) 317