Home | History | Annotate | Download | only in leveldatabase
      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 	 \
     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 	-fstack-protector \
     83 	-fno-short-enums \
     84 	-finline-limit=64 \
     85 	-Wa,--noexecstack \
     86 	-U_FORTIFY_SOURCE \
     87 	-Wno-extra \
     88 	-Wno-ignored-qualifiers \
     89 	-Wno-type-limits \
     90 	-Wno-unused-but-set-variable \
     91 	-Wno-address \
     92 	-Wno-format-security \
     93 	-Wno-return-type \
     94 	-Wno-sequence-point \
     95 	-Os \
     96 	-g \
     97 	-gdwarf-4 \
     98 	-fdata-sections \
     99 	-ffunction-sections \
    100 	-fomit-frame-pointer \
    101 	-funwind-tables
    102 
    103 MY_DEFS_Debug := \
    104 	'-DLEVELDB_PLATFORM_CHROMIUM=1' \
    105 	'-DV8_DEPRECATION_WARNINGS' \
    106 	'-D_FILE_OFFSET_BITS=64' \
    107 	'-DNO_TCMALLOC' \
    108 	'-DDISABLE_NACL' \
    109 	'-DCHROMIUM_BUILD' \
    110 	'-DUSE_LIBJPEG_TURBO=1' \
    111 	'-DENABLE_WEBRTC=1' \
    112 	'-DUSE_PROPRIETARY_CODECS' \
    113 	'-DENABLE_BROWSER_CDMS' \
    114 	'-DENABLE_CONFIGURATION_POLICY' \
    115 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    116 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    117 	'-DENABLE_EGLIMAGE=1' \
    118 	'-DCLD_VERSION=1' \
    119 	'-DENABLE_PRINTING=1' \
    120 	'-DENABLE_MANAGED_USERS=1' \
    121 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    122 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    123 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    124 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    125 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    126 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    127 	'-DVIDEO_HOLE=1' \
    128 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    129 	'-DUSE_OPENSSL=1' \
    130 	'-DUSE_OPENSSL_CERTS=1' \
    131 	'-DANDROID' \
    132 	'-D__GNU_SOURCE=1' \
    133 	'-DUSE_STLPORT=1' \
    134 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    135 	'-DCHROME_BUILD_ID=""' \
    136 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    137 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    138 	'-D_DEBUG'
    139 
    140 
    141 # Include paths placed before CFLAGS/CPPFLAGS
    142 LOCAL_C_INCLUDES_Debug := \
    143 	$(LOCAL_PATH)/third_party/leveldatabase \
    144 	$(LOCAL_PATH)/third_party/leveldatabase/src \
    145 	$(LOCAL_PATH)/third_party/leveldatabase/src/include \
    146 	$(gyp_shared_intermediate_dir) \
    147 	$(LOCAL_PATH)/third_party/re2 \
    148 	$(LOCAL_PATH) \
    149 	$(PWD)/frameworks/wilhelm/include \
    150 	$(PWD)/bionic \
    151 	$(PWD)/external/stlport/stlport
    152 
    153 
    154 # Flags passed to only C++ (and not C) files.
    155 LOCAL_CPPFLAGS_Debug := \
    156 	-fno-exceptions \
    157 	-fno-rtti \
    158 	-fno-threadsafe-statics \
    159 	-fvisibility-inlines-hidden \
    160 	-Wno-deprecated \
    161 	-Wno-uninitialized \
    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 	 \
    175 	-fno-strict-aliasing \
    176 	-Wno-unused-parameter \
    177 	-Wno-missing-field-initializers \
    178 	-fvisibility=hidden \
    179 	-pipe \
    180 	-fPIC \
    181 	-Wno-unused-local-typedefs \
    182 	-Wno-format \
    183 	-ffunction-sections \
    184 	-funwind-tables \
    185 	-g \
    186 	-fstack-protector \
    187 	-fno-short-enums \
    188 	-finline-limit=64 \
    189 	-Wa,--noexecstack \
    190 	-U_FORTIFY_SOURCE \
    191 	-Wno-extra \
    192 	-Wno-ignored-qualifiers \
    193 	-Wno-type-limits \
    194 	-Wno-unused-but-set-variable \
    195 	-Wno-address \
    196 	-Wno-format-security \
    197 	-Wno-return-type \
    198 	-Wno-sequence-point \
    199 	-Os \
    200 	-fno-ident \
    201 	-fdata-sections \
    202 	-ffunction-sections \
    203 	-fomit-frame-pointer \
    204 	-funwind-tables
    205 
    206 MY_DEFS_Release := \
    207 	'-DLEVELDB_PLATFORM_CHROMIUM=1' \
    208 	'-DV8_DEPRECATION_WARNINGS' \
    209 	'-D_FILE_OFFSET_BITS=64' \
    210 	'-DNO_TCMALLOC' \
    211 	'-DDISABLE_NACL' \
    212 	'-DCHROMIUM_BUILD' \
    213 	'-DUSE_LIBJPEG_TURBO=1' \
    214 	'-DENABLE_WEBRTC=1' \
    215 	'-DUSE_PROPRIETARY_CODECS' \
    216 	'-DENABLE_BROWSER_CDMS' \
    217 	'-DENABLE_CONFIGURATION_POLICY' \
    218 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    219 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    220 	'-DENABLE_EGLIMAGE=1' \
    221 	'-DCLD_VERSION=1' \
    222 	'-DENABLE_PRINTING=1' \
    223 	'-DENABLE_MANAGED_USERS=1' \
    224 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    225 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    226 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    227 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    228 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    229 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    230 	'-DVIDEO_HOLE=1' \
    231 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    232 	'-DUSE_OPENSSL=1' \
    233 	'-DUSE_OPENSSL_CERTS=1' \
    234 	'-DANDROID' \
    235 	'-D__GNU_SOURCE=1' \
    236 	'-DUSE_STLPORT=1' \
    237 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    238 	'-DCHROME_BUILD_ID=""' \
    239 	'-DNDEBUG' \
    240 	'-DNVALGRIND' \
    241 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    242 
    243 
    244 # Include paths placed before CFLAGS/CPPFLAGS
    245 LOCAL_C_INCLUDES_Release := \
    246 	$(LOCAL_PATH)/third_party/leveldatabase \
    247 	$(LOCAL_PATH)/third_party/leveldatabase/src \
    248 	$(LOCAL_PATH)/third_party/leveldatabase/src/include \
    249 	$(gyp_shared_intermediate_dir) \
    250 	$(LOCAL_PATH)/third_party/re2 \
    251 	$(LOCAL_PATH) \
    252 	$(PWD)/frameworks/wilhelm/include \
    253 	$(PWD)/bionic \
    254 	$(PWD)/external/stlport/stlport
    255 
    256 
    257 # Flags passed to only C++ (and not C) files.
    258 LOCAL_CPPFLAGS_Release := \
    259 	-fno-exceptions \
    260 	-fno-rtti \
    261 	-fno-threadsafe-statics \
    262 	-fvisibility-inlines-hidden \
    263 	-Wno-deprecated \
    264 	-Wno-uninitialized \
    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