mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 13:27:17 +01:00
7c78da1336
Some checks failed
Build Debian packages / ${{ matrix.dist }} (bookworm) (push) Has been cancelled
Build Debian packages / ${{ matrix.dist }} (bullseye) (push) Has been cancelled
Build Debian packages / ${{ matrix.dist }} (buster) (push) Has been cancelled
Build on FreeBSD / with UPnP (push) Has been cancelled
Build on OSX / With USE_UPNP=${{ matrix.with_upnp }} (no) (push) Has been cancelled
Build on OSX / With USE_UPNP=${{ matrix.with_upnp }} (yes) (push) Has been cancelled
Build on Windows / ${{ matrix.arch }} (clang-x86_64, x64-clang, clang, CLANG64) (push) Has been cancelled
Build on Windows / ${{ matrix.arch }} (i686, x86, gcc, MINGW32) (push) Has been cancelled
Build on Windows / ${{ matrix.arch }} (ucrt-x86_64, x64-ucrt, gcc, UCRT64) (push) Has been cancelled
Build on Windows / ${{ matrix.arch }} (x86_64, x64, gcc, MINGW64) (push) Has been cancelled
Build on Windows / CMake ${{ matrix.arch }} (clang-x86_64, x64-clang, clang, CLANG64) (push) Has been cancelled
Build on Windows / CMake ${{ matrix.arch }} (i686, x86, gcc, MINGW32) (push) Has been cancelled
Build on Windows / CMake ${{ matrix.arch }} (ucrt-x86_64, x64-ucrt, gcc, UCRT64) (push) Has been cancelled
Build on Windows / CMake ${{ matrix.arch }} (x86_64, x64, gcc, MINGW64) (push) Has been cancelled
Build on Windows / XP (push) Has been cancelled
Build on Ubuntu / Make with USE_UPNP=${{ matrix.with_upnp }} (no) (push) Has been cancelled
Build on Ubuntu / Make with USE_UPNP=${{ matrix.with_upnp }} (yes) (push) Has been cancelled
Build on Ubuntu / CMake with -DWITH_UPNP=${{ matrix.with_upnp }} (OFF) (push) Has been cancelled
Build on Ubuntu / CMake with -DWITH_UPNP=${{ matrix.with_upnp }} (ON) (push) Has been cancelled
Signed-off-by: r4sas <r4sas@i2pmail.org>
57 lines
1.3 KiB
Makefile
57 lines
1.3 KiB
Makefile
# Build application with GUI (tray, main window)
|
|
USE_WIN32_APP := yes
|
|
|
|
WINDRES = windres
|
|
|
|
CXXFLAGS := $(CXX_DEBUG) -fPIC -msse
|
|
INCFLAGS := -I$(DAEMON_SRC_DIR) -IWin32
|
|
LDFLAGS := ${LD_DEBUG} -static -fPIC -msse
|
|
|
|
NEEDED_CXXFLAGS += -std=c++20
|
|
DEFINES += -DWIN32_LEAN_AND_MEAN
|
|
|
|
# UPNP Support
|
|
ifeq ($(USE_UPNP),yes)
|
|
DEFINES += -DUSE_UPNP -DMINIUPNP_STATICLIB
|
|
LDLIBS = -lminiupnpc
|
|
endif
|
|
|
|
ifeq ($(USE_WINXP_FLAGS), yes)
|
|
DEFINES += -DWINVER=0x0501 -D_WIN32_WINNT=0x0501
|
|
endif
|
|
|
|
LDLIBS += \
|
|
$(MINGW_PREFIX)/lib/libboost_filesystem-mt.a \
|
|
$(MINGW_PREFIX)/lib/libboost_program_options-mt.a \
|
|
$(MINGW_PREFIX)/lib/libssl.a \
|
|
$(MINGW_PREFIX)/lib/libcrypto.a \
|
|
$(MINGW_PREFIX)/lib/libz.a \
|
|
-lwsock32 \
|
|
-lws2_32 \
|
|
-liphlpapi \
|
|
-lcrypt32 \
|
|
-lgdi32 \
|
|
-lole32 \
|
|
-luuid \
|
|
-lpthread
|
|
|
|
ifeq ($(USE_WIN32_APP), yes)
|
|
DEFINES += -DWIN32_APP
|
|
LDFLAGS += -mwindows
|
|
DAEMON_RC += Win32/Resource.rc
|
|
DAEMON_OBJS += $(patsubst %.rc,obj/%.o,$(DAEMON_RC))
|
|
endif
|
|
|
|
ifeq ($(USE_AESNI),yes)
|
|
NEEDED_CXXFLAGS += -maes
|
|
LDFLAGS += -maes
|
|
DEFINES += -D__AES__
|
|
endif
|
|
|
|
ifeq ($(USE_ASLR),yes)
|
|
LDFLAGS += -Wl,--nxcompat -Wl,--high-entropy-va -Wl,--dynamicbase,--export-all-symbols
|
|
endif
|
|
|
|
obj/%.o : %.rc | mk_obj_dir
|
|
$(WINDRES) $(DEFINES) $(INCFLAGS) --preprocessor-arg=-MMD --preprocessor-arg=-MP --preprocessor-arg=-MF$@.d -i $< -o $@
|