comparison Makefile.am @ 237:a7d0d543b334

*: make OS X builds succeed new script: deploy_build.sh, creates the app bundle
author Paper <paper@paper.us.eu.org>
date Fri, 19 Jan 2024 11:14:44 -0500
parents 4d461ef7d424
children 06d6c351925c
comparison
equal deleted inserted replaced
236:4d461ef7d424 237:a7d0d543b334
77 files_windres=rc/win32/version.rc 77 files_windres=rc/win32/version.rc
78 endif 78 endif
79 endif 79 endif
80 80
81 if BUILD_OSX 81 if BUILD_OSX
82 files_osx = src/sys/osx/dark_theme.cc src/sys/osx/filesystem.cc 82 files_osx = src/sys/osx/dark_theme.cc src/sys/osx/filesystem.cc src/sys/osx/permissions.cc
83 libs_osx = Foundation AppKit 83 cflags_osx = -mmacosx-version-min=10.15
84 libs_osx = -lobjc
85 ldflags_osx = -framework Foundation -framework AppKit
84 endif 86 endif
85 87
86 minori_SOURCES = \ 88 minori_SOURCES = \
87 src/core/anime_db.cc \ 89 src/core/anime_db.cc \
88 src/core/anime.cc \ 90 src/core/anime.cc \
137 -I$(top_srcdir)/dep/animia/include \ 139 -I$(top_srcdir)/dep/animia/include \
138 -I$(top_srcdir)/dep/pugixml/src \ 140 -I$(top_srcdir)/dep/pugixml/src \
139 -I$(top_srcdir)/dep/anitomy \ 141 -I$(top_srcdir)/dep/anitomy \
140 -I$(top_srcdir)/dep 142 -I$(top_srcdir)/dep
141 143
142 minori_CPPFLAGS = $(minori_includes) @QT_CXXFLAGS@ @LIBCURL_CPPFLAGS@ 144 minori_CPPFLAGS = @LIBCURL_CPPFLAGS@ $(minori_includes)
143 minori_CXXFLAGS = $(cflags_glib) $(cflags_win) $(cflags_osx) 145 minori_CXXFLAGS = @QT_CXXFLAGS@ $(cflags_osx) $(cflags_glib) $(cflags_win) -std=c++17
146 minori_LDFLAGS = $(ldflags_osx)
144 147
145 minori_DEPENDENCIES = dep/pugixml/libpugixml.la dep/animia/libanimia.la dep/anitomy/libanitomy.la 148 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 149 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 150
151 .h_moc.cc: 151 .h_moc.cc:
152 @MKDIR_P@ -- `dirname $@` 152 @MKDIR_P@ -- `dirname $@`
153 @QT_MOC@ -o $@ $(minori_includes) $< 153 @QT_MOC@ -o $@ $(minori_includes) $<
154 154
155 SUFFIXES = .h _moc.cc .qrc _qrc.cc 155 SUFFIXES = .h _moc.cc
156 SUBDIRS = $(subdirs) 156 SUBDIRS = $(subdirs)
157 ACLOCAL_AMFLAGS = -I m4 157 ACLOCAL_AMFLAGS = -I m4