aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Makefile.am
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2015-06-23 01:55:37 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2015-06-23 01:55:37 +0200
commiteed939f4c87c7016be8c3e913cdb1f620b29256f (patch)
tree20efc8eef1ad2e76be87833c0d0f4d45b507d43b /src/Makefile.am
parent3fd1a19477d88f572af9b7f9d0a4b73f90012a6b (diff)
downloadsciteco-eed939f4c87c7016be8c3e913cdb1f620b29256f.tar.gz
install PNG icon and use it to set GTK's window icon
* it is installed into the package's data dir. It is always installed, even for Curses builds. This means when packaging for Debian, the icon could be part of the "sciteco-common" package. If there will ever be more GTK-specific files that need to be installed, this will probably change and the icon will be installed for GTK builds only and become part of the "sciteco-gtk" Debian package. * if the icon could not be loaded, we fail silently. * will not work with windows builds. On Windows, we should just use the icon resource linked into the binary rather than loading the image from file.
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 739aefd..384d8f3 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -7,7 +7,11 @@ if CLANG
AM_CXXFLAGS += -Wno-mismatched-tags
endif
-AM_CPPFLAGS = -D'SCITECOLIBDIR="@scitecolibdir@"'
+# These paths can be changed at install-time and
+# should not be written into config.h:
+AM_CPPFLAGS = -D'SCITECODATADIR="$(pkgdatadir)"' \
+ -D'SCITECOLIBDIR="@scitecolibdir@"'
+
if NEED_COMPAT
AM_CPPFLAGS += -I@top_srcdir@/compat
endif