diff Makefile.am @ 243:ed5ab3896666

autotools: add `-mwindows` and windows deploy script
author Paper <paper@paper.us.eu.org>
date Mon, 22 Jan 2024 19:54:41 -0800
parents 82470f83f0c2
children 6b2441c776dd
line wrap: on
line diff
--- a/Makefile.am	Mon Jan 22 19:06:23 2024 -0800
+++ b/Makefile.am	Mon Jan 22 19:54:41 2024 -0800
@@ -91,6 +91,7 @@
 if BUILD_WIN
 files_win = src/sys/win32/dark_theme.cc
 libs_win = -lole32 -luuid
+ldflags_win = -mwindows
 
 if BUILD_WINDRES
 # Untested...
@@ -169,7 +170,7 @@
 
 minori_CPPFLAGS = @LIBCURL_CPPFLAGS@ $(minori_includes)
 minori_CXXFLAGS = @QT_CXXFLAGS@ $(cflags_osx) $(cflags_glib) $(cflags_win) -std=c++17
-minori_LDFLAGS = $(ldflags_osx)
+minori_LDFLAGS = $(ldflags_osx) $(ldflags_win)
 
 minori_DEPENDENCIES = dep/pugixml/libpugixml.la dep/animia/libanimia.la dep/anitomy/libanitomy.la
 minori_LDADD = $(libs_glib) $(libs_osx) $(libs_win) @LIBCURL@ @QT_LIBS@ dep/pugixml/libpugixml.la dep/animia/libanimia.la dep/anitomy/libanitomy.la