2019-08-01 21:12:23 +02:00
|
|
|
## Copyright (C) 2008-2019 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
2010-11-02 20:21:32 +01:00
|
|
|
##
|
|
|
|
## This program is free software; you can redistribute it and/or modify
|
|
|
|
## it under the terms of the GNU General Public License as published by
|
2012-08-03 08:47:09 +02:00
|
|
|
## t he Free Software Foundation; either version 3 of the License, or
|
2010-11-02 20:21:32 +01:00
|
|
|
## (at your option) any later version.
|
|
|
|
##
|
|
|
|
## This program is distributed in the hope that it will be useful,
|
|
|
|
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
## GNU General Public License for more details.
|
|
|
|
##
|
|
|
|
## You should have received a copy of the GNU General Public License
|
|
|
|
## along with this program; if not, write to the Free Software Foundation,
|
|
|
|
## Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
|
|
|
|
include $(top_srcdir)/gtest.mk
|
|
|
|
|
|
|
|
# enforce compiling this dir first before decending into tests/
|
|
|
|
SUBDIRS= .
|
|
|
|
|
2017-10-24 08:17:27 +02:00
|
|
|
AM_CPPFLAGS=-I${top_srcdir} -I${top_srcdir}/lib $(GTK_CFLAGS) $(WEBKIT_CFLAGS) \
|
|
|
|
-DICONDIR='"$(icondir)"' -DMUGDIR='"$(abs_srcdir)"' \
|
2013-10-13 14:07:47 +02:00
|
|
|
-DGSEAL_ENABLE
|
|
|
|
|
|
|
|
# remove -DGTK_DISABLE_DEPRECATED for now, since it breaks 3.10+ compilation
|
2010-11-02 20:21:32 +01:00
|
|
|
|
|
|
|
# don't use -Werror, as it might break on other compilers
|
|
|
|
# use -Wno-unused-parameters, because some callbacks may not
|
|
|
|
# really need all the params they get
|
2017-10-24 08:17:27 +02:00
|
|
|
AM_CFLAGS= \
|
|
|
|
$(WARN_CFLAGS) \
|
2020-03-11 09:28:43 +01:00
|
|
|
$(ASAN_CFLAGS) \
|
2017-10-24 08:17:27 +02:00
|
|
|
-Wno-redundant-decls \
|
|
|
|
-Wno-deprecated-declarations \
|
|
|
|
-Wno-switch-enum
|
2010-12-05 11:44:17 +01:00
|
|
|
|
2017-10-24 08:17:27 +02:00
|
|
|
AM_CXXFLAGS=$(WARN_CXXFLAGS)
|
|
|
|
|
2019-08-01 21:12:23 +02:00
|
|
|
#
|
|
|
|
# Distributors: this is a _toy_, not for distribution. the "noinst_" says enough
|
|
|
|
#
|
2017-10-24 08:17:27 +02:00
|
|
|
noinst_PROGRAMS= \
|
2010-11-02 20:21:32 +01:00
|
|
|
mug
|
|
|
|
|
2010-12-05 11:44:17 +01:00
|
|
|
# note, mug.cc is '.cc' only because libmu must explicitly
|
2010-11-02 20:21:32 +01:00
|
|
|
# be linked as c++, not c.
|
2017-10-24 08:17:27 +02:00
|
|
|
mug_SOURCES= \
|
|
|
|
mug.c \
|
|
|
|
mug-msg-list-view.c \
|
|
|
|
mug-msg-list-view.h \
|
|
|
|
mug-msg-view.h \
|
|
|
|
mug-msg-view.c \
|
|
|
|
mug-query-bar.h \
|
|
|
|
mug-query-bar.c \
|
|
|
|
mug-shortcuts.c \
|
|
|
|
mug-shortcuts.h \
|
2011-07-23 17:06:45 +02:00
|
|
|
dummy.cc
|
|
|
|
|
|
|
|
# we need to use dummy.cc to enforce c++ linking...
|
2017-10-24 08:17:27 +02:00
|
|
|
BUILT_SOURCES= \
|
2011-07-23 17:06:45 +02:00
|
|
|
dummy.cc
|
|
|
|
|
|
|
|
dummy.cc:
|
|
|
|
touch dummy.cc
|
|
|
|
|
2017-10-24 08:17:27 +02:00
|
|
|
DISTCLEANFILES= \
|
2011-07-23 17:06:45 +02:00
|
|
|
$(BUILT_SOURCES)
|
|
|
|
|
2017-10-24 08:17:27 +02:00
|
|
|
mug_LDADD= \
|
2020-03-11 09:28:43 +01:00
|
|
|
$(ASAN_LDFLAGS) \
|
2017-10-24 08:17:27 +02:00
|
|
|
${top_builddir}/lib/libmu.la \
|
|
|
|
libmuwidgets.la \
|
2010-11-02 20:21:32 +01:00
|
|
|
${GTK_LIBS}
|
2012-08-03 08:47:09 +02:00
|
|
|
|
2017-10-24 08:17:27 +02:00
|
|
|
noinst_LTLIBRARIES= \
|
2012-08-03 08:47:09 +02:00
|
|
|
libmuwidgets.la
|
|
|
|
|
2017-10-24 08:17:27 +02:00
|
|
|
libmuwidgets_la_SOURCES= \
|
|
|
|
mu-widget-util.h \
|
|
|
|
mu-widget-util.c \
|
|
|
|
mu-msg-attach-view.c \
|
|
|
|
mu-msg-attach-view.h \
|
|
|
|
mu-msg-body-view.c \
|
|
|
|
mu-msg-body-view.h \
|
|
|
|
mu-msg-header-view.c \
|
|
|
|
mu-msg-header-view.h \
|
|
|
|
mu-msg-view.h \
|
2012-08-03 08:47:09 +02:00
|
|
|
mu-msg-view.c
|
|
|
|
|
2017-10-24 08:17:27 +02:00
|
|
|
libmuwidgets_la_LIBADD= \
|
|
|
|
${top_builddir}/lib/libmu.la \
|
|
|
|
${GTK_LIBS} \
|
|
|
|
${WEBKIT_LIBS} \
|
2012-08-03 08:47:09 +02:00
|
|
|
${GIO_LIBS}
|
|
|
|
|
2017-10-24 08:17:27 +02:00
|
|
|
EXTRA_DIST= \
|
2012-08-03 08:47:09 +02:00
|
|
|
mug.svg
|