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