[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:
R4SAS 2023-02-26 10:14:15 +00:00
parent 2e899a8d36
commit 8ed721ca14
No known key found for this signature in database
GPG key ID: 66F6C87B98EBCFE2
12 changed files with 198 additions and 87 deletions

View file

@ -58,12 +58,13 @@ endif
# UPNP Support (miniupnpc 1.5 and higher)
ifeq ($(USE_UPNP),yes)
NEEDED_CXXFLAGS += -DUSE_UPNP
DEFINES += -DUSE_UPNP
endif
ifeq ($(USE_AESNI),yes)
ifneq (, $(findstring i386, $(SYS))$(findstring i686, $(SYS))$(findstring x86_64, $(SYS))) # only x86-based CPU supports that
NEEDED_CXXFLAGS += -D__AES__ -maes
NEEDED_CXXFLAGS += -maes
DEFINES += -D__AES__
endif
endif