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