Adding lmdb storage implementation and necessary build options

This commit is contained in:
hakunamtu 2018-03-05 14:07:00 +03:00
parent 262d22b903
commit ef4e11f00a
3 changed files with 191 additions and 0 deletions

View file

@ -18,6 +18,7 @@ USE_AVX := yes
USE_STATIC := no
USE_MESHNET := no
USE_UPNP := no
USE_LMDB := yes
ifeq ($(WEBSOCKETS),1)
NEEDED_CXXFLAGS += -DWITH_EVENTS
@ -47,6 +48,11 @@ ifeq ($(USE_MESHNET),yes)
NEEDED_CXXFLAGS += -DMESHNET
endif
ifeq ($(USE_LMDB),yes)
NEEDED_CXXFLAGS += -DLMDB
LDLIBS += -llmdb
endif
NEEDED_CXXFLAGS += -I$(LIB_SRC_DIR) -I$(LIB_CLIENT_SRC_DIR)
all: mk_obj_dir $(ARLIB) $(ARLIB_CLIENT) $(I2PD)