mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-06-08 15:16:52 +02:00
modulize client protocols
Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
parent
18cb3912e5
commit
3ab5ac66b6
15 changed files with 184 additions and 72 deletions
19
Makefile
19
Makefile
|
@ -40,6 +40,12 @@ USE_GIT_VERSION := $(or $(USE_GIT_VERSION),no)
|
|||
# for MacOS only, waiting for "1", not "yes"
|
||||
HOMEBREW := $(or $(HOMEBREW),0)
|
||||
|
||||
# Client protocols
|
||||
USE_I2PC := $(or $(USE_I2PC),yes)
|
||||
USE_I2CP := $(or $(USE_I2CP),yes)
|
||||
USE_SAM := $(or $(USE_SAM),yes)
|
||||
USE_BOB := $(or $(USE_BOB),yes)
|
||||
|
||||
ifeq ($(DEBUG),yes)
|
||||
CXX_DEBUG = -g
|
||||
else
|
||||
|
@ -47,6 +53,19 @@ else
|
|||
LD_DEBUG = -s
|
||||
endif
|
||||
|
||||
ifeq ($(USE_I2PC),yes)
|
||||
NEEDED_CXXFLAGS += -DWITH_I2PC
|
||||
endif
|
||||
ifeq ($(USE_I2CP),yes)
|
||||
NEEDED_CXXFLAGS += -DWITH_I2CP
|
||||
endif
|
||||
ifeq ($(USE_SAM),yes)
|
||||
NEEDED_CXXFLAGS += -DWITH_SAM
|
||||
endif
|
||||
ifeq ($(USE_BOB),yes)
|
||||
NEEDED_CXXFLAGS += -DWITH_BOB
|
||||
endif
|
||||
|
||||
ifneq (, $(findstring darwin, $(SYS)))
|
||||
DAEMON_SRC += $(DAEMON_SRC_DIR)/UnixDaemon.cpp
|
||||
ifeq ($(HOMEBREW),1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue