Mercurial > minori
comparison Makefile.am @ 236:4d461ef7d424
HUGE UPDATE: convert build system to autotools
why? because cmake sucks :)
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Fri, 19 Jan 2024 00:24:02 -0500 |
parents | |
children | a7d0d543b334 1ae4d8b28a5c |
comparison
equal
deleted
inserted
replaced
235:593108b3d555 | 236:4d461ef7d424 |
---|---|
1 bin_PROGRAMS = minori | |
2 | |
3 minori_qtrc = \ | |
4 $(top_srcdir)/rc/dark.qrc \ | |
5 $(top_srcdir)/rc/icons.qrc \ | |
6 $(top_srcdir)/rc/player_data.qrc | |
7 | |
8 rc/final_qrc.cc: $(minori_qtrc) | |
9 @QT_RCC@ -o $@ $(minori_qtrc) | |
10 | |
11 minori_qtheaders = \ | |
12 include/core/http.h \ | |
13 include/gui/dialog/about.h \ | |
14 include/gui/dialog/information.h \ | |
15 include/gui/dialog/settings.h \ | |
16 include/gui/pages/anime_list.h \ | |
17 include/gui/pages/history.h \ | |
18 include/gui/pages/now_playing.h \ | |
19 include/gui/pages/search.h \ | |
20 include/gui/pages/seasons.h \ | |
21 include/gui/pages/statistics.h \ | |
22 include/gui/pages/torrents.h \ | |
23 include/gui/translate/anilist.h \ | |
24 include/gui/translate/anime.h \ | |
25 include/gui/translate/config.h \ | |
26 include/gui/widgets/anime_info.h \ | |
27 include/gui/widgets/clickable_label.h \ | |
28 include/gui/widgets/graph.h \ | |
29 include/gui/widgets/optional_date.h \ | |
30 include/gui/widgets/poster.h \ | |
31 include/gui/widgets/sidebar.h \ | |
32 include/gui/widgets/text.h \ | |
33 include/gui/locale.h \ | |
34 include/gui/theme.h \ | |
35 include/gui/window.h | |
36 | |
37 noinst_HEADERS = \ | |
38 include/core/anime_db.h \ | |
39 include/core/anime.h \ | |
40 include/core/config.h \ | |
41 include/core/date.h \ | |
42 include/core/filesystem.h \ | |
43 include/core/ini.h \ | |
44 include/core/json.h \ | |
45 include/core/session.h \ | |
46 include/core/strings.h \ | |
47 include/core/time.h \ | |
48 include/core/torrent.h \ | |
49 include/library/library.h \ | |
50 include/services/anilist.h \ | |
51 include/services/services.h \ | |
52 include/sys/glib/dark_theme.h \ | |
53 include/sys/osx/dark_theme.h \ | |
54 include/sys/osx/filesystem.h \ | |
55 include/sys/win32/dark_theme.h \ | |
56 include/track/media.h \ | |
57 $(minori_qtheaders) | |
58 | |
59 minori_moc_sources = $(minori_qtheaders:.h=_moc.cc) | |
60 | |
61 if BUILD_GLIB | |
62 files_glib = src/sys/glib/dark_theme.cc | |
63 cflags_glib = @GIO_CFLAGS@ | |
64 libs_glib = @GIO_LIBS@ | |
65 endif | |
66 | |
67 if BUILD_WIN | |
68 files_win = src/sys/win32/dark_theme.cc | |
69 | |
70 if BUILD_WINDRES | |
71 # Untested... | |
72 wrcflags_version = -DWRC_VERSION=0,`echo '$(PACKAGE_VERSION)' | sed 's/(\d+)\.(\d+)\.(\d+)/\1,\2,\3/'` | |
73 | |
74 WRCFLAGS = --use-temp-file -I. -I$(srcdir) $(wrcflags_version) | |
75 .rc.$(OBJEXT): | |
76 $(WINDRES) $(WRCFLAGS) -i $< -o $@ | |
77 files_windres=rc/win32/version.rc | |
78 endif | |
79 endif | |
80 | |
81 if BUILD_OSX | |
82 files_osx = src/sys/osx/dark_theme.cc src/sys/osx/filesystem.cc | |
83 libs_osx = Foundation AppKit | |
84 endif | |
85 | |
86 minori_SOURCES = \ | |
87 src/core/anime_db.cc \ | |
88 src/core/anime.cc \ | |
89 src/core/config.cc \ | |
90 src/core/date.cc \ | |
91 src/core/filesystem.cc \ | |
92 src/core/http.cc \ | |
93 src/core/json.cc \ | |
94 src/core/strings.cc \ | |
95 src/core/time.cc \ | |
96 src/gui/dialog/settings/application.cc \ | |
97 src/gui/dialog/settings/library.cc \ | |
98 src/gui/dialog/settings/recognition.cc \ | |
99 src/gui/dialog/settings/services.cc \ | |
100 src/gui/dialog/settings/torrents.cc \ | |
101 src/gui/dialog/about.cc \ | |
102 src/gui/dialog/information.cc \ | |
103 src/gui/dialog/settings.cc \ | |
104 src/gui/pages/anime_list.cc \ | |
105 src/gui/pages/history.cc \ | |
106 src/gui/pages/now_playing.cc \ | |
107 src/gui/pages/search.cc \ | |
108 src/gui/pages/seasons.cc \ | |
109 src/gui/pages/statistics.cc \ | |
110 src/gui/pages/torrents.cc \ | |
111 src/gui/translate/anilist.cc \ | |
112 src/gui/translate/anime.cc \ | |
113 src/gui/translate/config.cc \ | |
114 src/gui/widgets/anime_info.cc \ | |
115 src/gui/widgets/clickable_label.cc \ | |
116 src/gui/widgets/optional_date.cc \ | |
117 src/gui/widgets/poster.cc \ | |
118 src/gui/widgets/sidebar.cc \ | |
119 src/gui/widgets/text.cc \ | |
120 src/gui/locale.cc \ | |
121 src/gui/theme.cc \ | |
122 src/gui/window.cc \ | |
123 src/library/library.cc \ | |
124 src/services/anilist.cc \ | |
125 src/services/services.cc \ | |
126 src/track/media.cc \ | |
127 src/main.cc \ | |
128 $(files_osx) \ | |
129 $(files_glib) \ | |
130 $(files_win) \ | |
131 $(minori_moc_sources) \ | |
132 rc/final_qrc.cc \ | |
133 $(files_windres) | |
134 | |
135 minori_includes = \ | |
136 -I$(top_srcdir)/include \ | |
137 -I$(top_srcdir)/dep/animia/include \ | |
138 -I$(top_srcdir)/dep/pugixml/src \ | |
139 -I$(top_srcdir)/dep/anitomy \ | |
140 -I$(top_srcdir)/dep | |
141 | |
142 minori_CPPFLAGS = $(minori_includes) @QT_CXXFLAGS@ @LIBCURL_CPPFLAGS@ | |
143 minori_CXXFLAGS = $(cflags_glib) $(cflags_win) $(cflags_osx) | |
144 | |
145 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 | |
147 | |
148 .qrc_qrc.cc: | |
149 | |
150 | |
151 .h_moc.cc: | |
152 @MKDIR_P@ -- `dirname $@` | |
153 @QT_MOC@ -o $@ $(minori_includes) $< | |
154 | |
155 SUFFIXES = .h _moc.cc .qrc _qrc.cc | |
156 SUBDIRS = $(subdirs) | |
157 ACLOCAL_AMFLAGS = -I m4 |