mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-30 04:37:50 +02:00
[cmake] add windows support for MSYS
Done with Vort's (https://github.com/Vort) cooperation + Updated Makefiles for correct options order Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
parent
2e899a8d36
commit
8ed721ca14
12 changed files with 198 additions and 87 deletions
|
@ -1,6 +1,7 @@
|
|||
CXX = clang++
|
||||
CXXFLAGS := ${CXX_DEBUG} -Wall -std=c++11 -DMAC_OSX
|
||||
CXXFLAGS := ${CXX_DEBUG} -Wall -std=c++11
|
||||
INCFLAGS = -I/usr/local/include
|
||||
DEFINES := -DMAC_OSX
|
||||
LDFLAGS := -Wl,-rpath,/usr/local/lib -L/usr/local/lib
|
||||
LDFLAGS += -Wl,-dead_strip
|
||||
LDFLAGS += -Wl,-dead_strip_dylibs
|
||||
|
@ -14,7 +15,7 @@ endif
|
|||
|
||||
ifeq ($(USE_UPNP),yes)
|
||||
LDFLAGS += -ldl
|
||||
CXXFLAGS += -DUSE_UPNP
|
||||
DEFINES += -DUSE_UPNP
|
||||
ifeq ($(USE_STATIC),yes)
|
||||
LDLIBS += /usr/local/lib/libminiupnpc.a
|
||||
else
|
||||
|
@ -23,7 +24,8 @@ ifeq ($(USE_UPNP),yes)
|
|||
endif
|
||||
|
||||
ifeq ($(USE_AESNI),yes)
|
||||
CXXFLAGS += -D__AES__ -maes
|
||||
CXXFLAGS += -maes
|
||||
DEFINES += -D__AES__
|
||||
else
|
||||
CXXFLAGS += -msse
|
||||
endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue