Mercurial > minori
comparison Makefile.am @ 249:6b2441c776dd
*: merge
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Wed, 24 Jan 2024 20:18:59 -0500 |
| parents | 1ae4d8b28a5c ed5ab3896666 |
| children | c130f47f6f48 |
comparison
equal
deleted
inserted
replaced
| 248:cf47a8f687c0 | 249:6b2441c776dd |
|---|---|
| 1 bin_PROGRAMS = minori | 1 bin_PROGRAMS = minori |
| 2 | 2 |
| 3 minori_locale_ts = \ | |
| 4 rc/locale/en_GB.ts \ | |
| 5 rc/locale/es.ts | |
| 6 | |
| 7 .ts.qm: | |
| 8 @MKDIR_P@ `dirname $@`; \ | |
| 9 @QT_LRELEASE@ $< -qm $@ | |
| 10 | |
| 11 minori_locale_qm = $(minori_locale_ts:.ts=.qm) | |
| 12 | |
| 13 # this has to be in the root build folder | |
| 14 translations.qrc: $(minori_locale_qm) | |
| 15 printf "<!DOCTYPE rcc><RCC version=\"1.0\">\n\t<qresource prefix=\"locale/\">\n" > $@; \ | |
| 16 for q in $(minori_locale_qm); do \ | |
| 17 printf "\t\t<file alias=\"%s\">%s</file>\n" "`basename $$q`" "$$q" >> $@; \ | |
| 18 done; \ | |
| 19 printf "\t</qresource>\n</RCC>\n" >> $@; | |
| 20 | |
| 3 minori_qtrc = \ | 21 minori_qtrc = \ |
| 4 $(top_srcdir)/rc/dark.qrc \ | 22 $(top_srcdir)/rc/icons/icons.qrc \ |
| 5 $(top_srcdir)/rc/icons.qrc \ | 23 $(top_srcdir)/rc/player_data.qrc \ |
| 6 $(top_srcdir)/rc/player_data.qrc | 24 translations.qrc |
| 25 | |
| 26 if BUILD_WIN | |
| 27 | |
| 28 minori_qtrc += $(top_srcdir)/rc/win32/dark/dark.qrc | |
| 29 | |
| 30 endif | |
| 7 | 31 |
| 8 rc/final_qrc.cc: $(minori_qtrc) | 32 rc/final_qrc.cc: $(minori_qtrc) |
| 9 @QT_RCC@ -o $@ $(minori_qtrc) | 33 @QT_RCC@ -o $@ $(minori_qtrc) |
| 10 | 34 |
| 11 minori_qtheaders = \ | 35 minori_qtheaders = \ |
| 64 libs_glib = @GIO_LIBS@ | 88 libs_glib = @GIO_LIBS@ |
| 65 endif | 89 endif |
| 66 | 90 |
| 67 if BUILD_WIN | 91 if BUILD_WIN |
| 68 files_win = src/sys/win32/dark_theme.cc | 92 files_win = src/sys/win32/dark_theme.cc |
| 93 libs_win = -lole32 -luuid | |
| 94 ldflags_win = -mwindows | |
| 69 | 95 |
| 70 if BUILD_WINDRES | 96 if BUILD_WINDRES |
| 71 # Untested... | |
| 72 wrcflags_version = -DWRC_VERSION=0,`echo '$(PACKAGE_VERSION)' | @SED@ 's/(\d+)\.(\d+)\.(\d+)/\1,\2,\3/'` | |
| 73 | 97 |
| 74 WRCFLAGS = --use-temp-file -I. -I$(srcdir) $(wrcflags_version) | 98 wrcflags_version = -DWRC_VERSION=0,`echo $(PACKAGE_VERSION) | @SED@ 's/\([0-9]\{1,\}\)\.\([0-9]\{1,\}\)\.\([0-9]\{1,\}\).*/\1,\2,\3/'` |
| 99 | |
| 100 WRCFLAGS = --use-temp-file -I. -I$(srcdir) $(wrcflags_version) $(CPPFLAGS) | |
| 75 .rc.$(OBJEXT): | 101 .rc.$(OBJEXT): |
| 76 $(WINDRES) $(WRCFLAGS) -i $< -o $@ | 102 $(WINDRES) $(WRCFLAGS) -i $< -o $@ |
| 77 files_windres=rc/win32/version.rc | 103 files_windres=rc/win32/version.rc rc/win32/resource.rc |
| 78 endif | 104 endif |
| 79 endif | 105 endif |
| 80 | 106 |
| 81 if BUILD_OSX | 107 if BUILD_OSX |
| 82 files_osx = src/sys/osx/dark_theme.cc src/sys/osx/filesystem.cc | 108 files_osx = src/sys/osx/dark_theme.cc src/sys/osx/filesystem.cc src/sys/osx/permissions.cc |
| 83 libs_osx = Foundation AppKit | 109 cflags_osx = -mmacosx-version-min=10.15 |
| 110 libs_osx = -lobjc | |
| 111 ldflags_osx = -framework Foundation -framework AppKit | |
| 84 endif | 112 endif |
| 85 | 113 |
| 86 minori_SOURCES = \ | 114 minori_SOURCES = \ |
| 87 src/core/anime_db.cc \ | 115 src/core/anime_db.cc \ |
| 88 src/core/anime.cc \ | 116 src/core/anime.cc \ |
| 137 -I$(top_srcdir)/dep/animia/include \ | 165 -I$(top_srcdir)/dep/animia/include \ |
| 138 -I$(top_srcdir)/dep/pugixml/src \ | 166 -I$(top_srcdir)/dep/pugixml/src \ |
| 139 -I$(top_srcdir)/dep/anitomy \ | 167 -I$(top_srcdir)/dep/anitomy \ |
| 140 -I$(top_srcdir)/dep | 168 -I$(top_srcdir)/dep |
| 141 | 169 |
| 142 minori_CPPFLAGS = $(minori_includes) @QT_CXXFLAGS@ @LIBCURL_CPPFLAGS@ | 170 minori_CPPFLAGS = @LIBCURL_CPPFLAGS@ $(minori_includes) |
| 143 minori_CXXFLAGS = $(cflags_glib) $(cflags_win) $(cflags_osx) | 171 minori_CXXFLAGS = @QT_CXXFLAGS@ $(cflags_osx) $(cflags_glib) $(cflags_win) -std=c++17 |
| 172 minori_LDFLAGS = $(ldflags_osx) $(ldflags_win) | |
| 144 | 173 |
| 145 minori_DEPENDENCIES = dep/pugixml/libpugixml.la dep/animia/libanimia.la dep/anitomy/libanitomy.la | 174 minori_DEPENDENCIES = dep/pugixml/libpugixml.la dep/animia/libanimia.la dep/anitomy/libanitomy.la |
| 146 minori_LDADD = $(libs_glib) $(libs_osx) @LIBCURL@ @QT_LIBS@ dep/pugixml/libpugixml.la dep/animia/libanimia.la dep/anitomy/libanitomy.la | 175 minori_LDADD = $(libs_glib) $(libs_osx) $(libs_win) @LIBCURL@ @QT_LIBS@ dep/pugixml/libpugixml.la dep/animia/libanimia.la dep/anitomy/libanitomy.la |
| 147 | |
| 148 .qrc_qrc.cc: | |
| 149 | |
| 150 | 176 |
| 151 .h_moc.cc: | 177 .h_moc.cc: |
| 152 @MKDIR_P@ -- `dirname $@` | 178 @MKDIR_P@ -- `dirname $@` |
| 153 @QT_MOC@ -o $@ $(minori_includes) $< | 179 @QT_MOC@ -o $@ $(minori_includes) $< |
| 154 | 180 |
| 155 SUFFIXES = .h _moc.cc .qrc _qrc.cc | 181 SUFFIXES = .h _moc.cc .ts .qm |
| 156 SUBDIRS = $(subdirs) | 182 SUBDIRS = $(subdirs) |
| 157 ACLOCAL_AMFLAGS = -I m4 | 183 ACLOCAL_AMFLAGS = -I m4 |
