comparison Makefile.am @ 250:c130f47f6f48

*: many many changes e.g. the search page is actually implemented now!
author Paper <paper@paper.us.eu.org>
date Sun, 04 Feb 2024 21:17:17 -0500
parents 6b2441c776dd
children a0eeb2cc7e6d
comparison
equal deleted inserted replaced
249:6b2441c776dd 250:c130f47f6f48
3 minori_locale_ts = \ 3 minori_locale_ts = \
4 rc/locale/en_GB.ts \ 4 rc/locale/en_GB.ts \
5 rc/locale/es.ts 5 rc/locale/es.ts
6 6
7 .ts.qm: 7 .ts.qm:
8 @MKDIR_P@ `dirname $@`; \ 8 $(MKDIR_P) `dirname $@`; \
9 @QT_LRELEASE@ $< -qm $@ 9 $(LRELEASE) $< -qm $@
10 10
11 minori_locale_qm = $(minori_locale_ts:.ts=.qm) 11 minori_locale_qm = $(minori_locale_ts:.ts=.qm)
12 12
13 # this has to be in the root build folder 13 # this has to be in the root build folder
14 translations.qrc: $(minori_locale_qm) 14 rc/locale/translations.qrc: $(minori_locale_qm)
15 printf "<!DOCTYPE rcc><RCC version=\"1.0\">\n\t<qresource prefix=\"locale/\">\n" > $@; \ 15 printf "<!DOCTYPE rcc><RCC version=\"1.0\">\n\t<qresource prefix=\"locale/\">\n" > $@; \
16 for q in $(minori_locale_qm); do \ 16 for q in $(minori_locale_qm); do \
17 printf "\t\t<file alias=\"%s\">%s</file>\n" "`basename $$q`" "$$q" >> $@; \ 17 printf "\t\t<file>%s</file>\n" "`basename $$q`" >> $@; \
18 done; \ 18 done;
19 printf "\t</qresource>\n</RCC>\n" >> $@; 19 printf "\t</qresource>\n</RCC>\n" >> $@;
20 20
21 minori_qtrc = \ 21 minori_qtrc = \
22 $(top_srcdir)/rc/icons/icons.qrc \ 22 $(top_srcdir)/rc/icons/icons.qrc \
23 $(top_srcdir)/rc/player_data.qrc \ 23 $(top_srcdir)/rc/player_data.qrc \
24 translations.qrc 24 rc/locale/translations.qrc
25 25
26 if BUILD_WIN 26 if BUILD_WIN
27 27
28 minori_qtrc += $(top_srcdir)/rc/win32/dark/dark.qrc 28 minori_qtrc += $(top_srcdir)/rc/win32/dark/dark.qrc
29 29
30 endif 30 endif
31 31
32 rc/final_qrc.cc: $(minori_qtrc) 32 rc/final_qrc.cc: $(minori_qtrc)
33 @QT_RCC@ -o $@ $(minori_qtrc) 33 $(RCC) -o $@ $(minori_qtrc)
34 34
35 minori_qtheaders = \ 35 minori_qtheaders = \
36 include/core/http.h \ 36 include/core/http.h \
37 include/gui/dialog/about.h \ 37 include/gui/dialog/about.h \
38 include/gui/dialog/information.h \ 38 include/gui/dialog/information.h \
82 82
83 minori_moc_sources = $(minori_qtheaders:.h=_moc.cc) 83 minori_moc_sources = $(minori_qtheaders:.h=_moc.cc)
84 84
85 if BUILD_GLIB 85 if BUILD_GLIB
86 files_glib = src/sys/glib/dark_theme.cc 86 files_glib = src/sys/glib/dark_theme.cc
87 cflags_glib = @GIO_CFLAGS@ 87 cflags_glib = $(GLIB_CFLAGS)
88 libs_glib = @GIO_LIBS@ 88 libs_glib = $(GLIB_LIBS)
89 endif 89 endif
90 90
91 if BUILD_WIN 91 if BUILD_WIN
92 files_win = src/sys/win32/dark_theme.cc 92 files_win = src/sys/win32/dark_theme.cc
93 libs_win = -lole32 -luuid 93 libs_win = -lole32 -luuid
99 99
100 WRCFLAGS = --use-temp-file -I. -I$(srcdir) $(wrcflags_version) $(CPPFLAGS) 100 WRCFLAGS = --use-temp-file -I. -I$(srcdir) $(wrcflags_version) $(CPPFLAGS)
101 .rc.$(OBJEXT): 101 .rc.$(OBJEXT):
102 $(WINDRES) $(WRCFLAGS) -i $< -o $@ 102 $(WINDRES) $(WRCFLAGS) -i $< -o $@
103 files_windres=rc/win32/version.rc rc/win32/resource.rc 103 files_windres=rc/win32/version.rc rc/win32/resource.rc
104 endif 104 endif # BUILD_WINDRES
105 endif 105
106 endif # BUILD_WIN
106 107
107 if BUILD_OSX 108 if BUILD_OSX
108 files_osx = src/sys/osx/dark_theme.cc src/sys/osx/filesystem.cc src/sys/osx/permissions.cc 109 files_osx = src/sys/osx/dark_theme.cc src/sys/osx/filesystem.cc src/sys/osx/permissions.cc
109 cflags_osx = -mmacosx-version-min=10.15 110 cflags_osx = -mmacosx-version-min=10.15
110 libs_osx = -lobjc 111 libs_osx = -lobjc
154 src/track/media.cc \ 155 src/track/media.cc \
155 src/main.cc \ 156 src/main.cc \
156 $(files_osx) \ 157 $(files_osx) \
157 $(files_glib) \ 158 $(files_glib) \
158 $(files_win) \ 159 $(files_win) \
160 $(files_windres)
161
162 nodist_minori_SOURCES = \
159 $(minori_moc_sources) \ 163 $(minori_moc_sources) \
160 rc/final_qrc.cc \ 164 rc/final_qrc.cc
161 $(files_windres)
162 165
163 minori_includes = \ 166 minori_includes = \
164 -I$(top_srcdir)/include \ 167 -I$(top_srcdir)/include \
165 -I$(top_srcdir)/dep/animia/include \ 168 -I$(top_srcdir)/dep/animia/include \
166 -I$(top_srcdir)/dep/pugixml/src \ 169 -I$(top_srcdir)/dep/pugixml/src \
167 -I$(top_srcdir)/dep/anitomy \ 170 -I$(top_srcdir)/dep/anitomy \
168 -I$(top_srcdir)/dep 171 -I$(top_srcdir)/dep
169 172
170 minori_CPPFLAGS = @LIBCURL_CPPFLAGS@ $(minori_includes) 173 minori_CPPFLAGS = $(QT_CPPFLAGS) $(LIBCURL_CPPFLAGS) $(minori_includes)
171 minori_CXXFLAGS = @QT_CXXFLAGS@ $(cflags_osx) $(cflags_glib) $(cflags_win) -std=c++17 174 minori_CXXFLAGS = $(cflags_osx) $(cflags_glib) $(cflags_win)
172 minori_LDFLAGS = $(ldflags_osx) $(ldflags_win) 175 minori_LDFLAGS = $(QT_LDFLAGS) $(ldflags_osx) $(ldflags_win)
173 176
174 minori_DEPENDENCIES = dep/pugixml/libpugixml.la dep/animia/libanimia.la dep/anitomy/libanitomy.la 177 minori_DEPENDENCIES = 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 178 minori_LDADD = $(libs_glib) $(LIBCURL) $(QT_LIBS) $(libs_osx) $(libs_win) $(minori_DEPENDENCIES)
176 179
177 .h_moc.cc: 180 .h_moc.cc:
178 @MKDIR_P@ -- `dirname $@` 181 $(MKDIR_P) -- `dirname $@`
179 @QT_MOC@ -o $@ $(minori_includes) $< 182 $(MOC) -o $@ $(minori_includes) $<
180 183
181 SUFFIXES = .h _moc.cc .ts .qm 184 SUFFIXES = .h _moc.cc .ts .qm
182 SUBDIRS = $(subdirs) 185 SUBDIRS = $(subdirs)
183 ACLOCAL_AMFLAGS = -I m4 186 ACLOCAL_AMFLAGS = -I m4