-SUBDIRS = src tests
+SUBDIRS = glade src tests
ACLOCAL_AMFLAGS = -I m4
AM_GLIB_GNU_GETTEXT
# Checks for libraries.
+PKG_CHECK_EXISTS(gladeui-2.0 >= 3.14.0, [GLADEUI_FOUND=yes], [GLADEUI_FOUND=no])
+
+if test "x$GLADEUI_FOUND" = "xyes"; then
+ GLADE_CATALOG_DIR=`$PKG_CONFIG --variable=catalogdir gladeui-2.0`
+ GLADE_MODULE_DIR=`$PKG_CONFIG --variable=moduledir gladeui-2.0`
+ GLADE_ICONS_DIR=`$PKG_CONFIG --variable=pixmapdir gladeui-2.0`
+ AC_SUBST(GLADE_CATALOG_DIR)
+ AC_SUBST(GLADE_MODULE_DIR)
+ AC_SUBST(GLADE_ICONS_DIR)
+fi
+
+AM_CONDITIONAL(GLADEUI, test $GLADEUI_FOUND = yes)
+
PKG_CHECK_MODULES(ZAKGTKDECODER, [gtk+-3.0])
AC_SUBST(ZAKGTKDECODER_CFLAGS)
src/Makefile
tests/Makefile
])
+
+if test $GLADEUI_FOUND = yes; then
+AC_CONFIG_FILES([
+ glade/Makefile
+ glade/icons/Makefile
+ glade/icons/hicolor/Makefile
+ glade/icons/hicolor/16x16/Makefile
+ glade/icons/hicolor/16x16/actions/Makefile
+ glade/icons/hicolor/22x22/Makefile
+ glade/icons/hicolor/22x22/actions/Makefile
+])
+fi
+
AC_OUTPUT
--- /dev/null
+SUBDIRS = icons
+
+glademodulesdir = $(GLADE_MODULE_DIR)
+
+gladecatalogsdir = $(GLADE_CATALOG_DIR)
+
+gladecatalogs_DATA = zakgtkdecoder.xml
+
+EXTRA_DIST = $(gladecatalogs_DATA)
+
+if PLATFORM_WIN32
+libmodulesext = -0.dll
+libmodulesextglade = .dll
+libmodulesdir = $(bindir)
+else
+libmodulesext = .so
+libmodulesextglade = $(libmodulesext)
+libmodulesdir = $(libdir)
+endif
+
+install-exec-hook:
+ cd $(glademodulesdir) && \
+ ln -s -f $(libmodulesdir)/libzakgtkdecoder$(libmodulesext) libzakgtkdecoder$(libmodulesextglade)
+
+uninstall-hook:
+ rm -f $(glademodulesdir)/libzakgtkdecoder$(libmodulesextglade)
--- /dev/null
+SUBDIRS = hicolor
--- /dev/null
+SUBDIRS = actions
--- /dev/null
+gladeiconsdir = $(GLADE_ICONS_DIR)
+iconsdir = $(gladeiconsdir)/hicolor/16x16/actions
+
+icons_DATA = widget-zakgtkdecoder-decoder.png
+
+EXTRA_DIST = $(icons_DATA)
--- /dev/null
+SUBDIRS = actions
--- /dev/null
+gladeiconsdir = $(GLADE_ICONS_DIR)
+iconsdir = $(gladeiconsdir)/hicolor/22x22/actions
+
+icons_DATA = widget-zakgtkdecoder-decoder.png
+
+EXTRA_DIST = $(icons_DATA)
--- /dev/null
+SUBDIRS = 16x16 22x22
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<glade-catalog name="zakgtkdecoder" library="zakgtkdecoder" depends="gtk+" domain="zakgtkdecoder" book="zakgtkdecoder">
+
+ <glade-widget-classes>
+ <glade-widget-class name="ZakGtkDecoder" generic-name="zakgtkdecoder" title="Decoder">
+ <properties>
+ <property name="Show clean icon" id="show-btn-clean" />
+ <property name="Show new button" id="show-btn-new" />
+ <property name="Show open button" id="show-btn-open" />
+ <property name="Show browse button" id="show-btn-browse" />
+ </properties>
+ </glade-widget-class>
+ </glade-widget-classes>
+
+ <glade-widget-group name="gtk-control-display" title="Control and Display">
+ <glade-widget-class-ref name="ZakGtkDecoder" />
+ </glade-widget-group>
+
+</glade-catalog>