Use AM_PATH_GLIB_2_0 to figure out where glib-compile-resource is.

This commit is contained in:
Dave Davenport 2017-10-31 19:31:58 +01:00
parent 316de7ebeb
commit 3eef3d790a
2 changed files with 7 additions and 2 deletions

View File

@ -28,11 +28,11 @@ BUILT_SOURCES=\
$(top_builddir)/resources/resources.c: $(top_srcdir)/resources/resources.xml
mkdir -p $(top_builddir)/resources/
glib-compile-resources $< --generate-source --target=$@ --sourcedir=$(top_srcdir)
$(GLIB_COMPILE_RESOURCES) $< --generate-source --target=$@ --sourcedir=$(top_srcdir)
$(top_builddir)/resources/resources.h: $(top_srcdir)/resources/resources.xml
mkdir -p $(top_builddir)/resources/
glib-compile-resources $< --generate-header --target=$@ --sourcedir=$(top_srcdir)
$(GLIB_COMPILE_RESOURCES) $< --generate-header --target=$@ --sourcedir=$(top_srcdir)
$(top_builddir)/lexer/theme-lexer.c: $(top_srcdir)/lexer/theme-lexer.l

View File

@ -135,6 +135,11 @@ AS_IF([test "x${enable_check}" != "xno"], [ PKG_CHECK_MODULES([check],[check >=
AM_CONDITIONAL([USE_CHECK], [test "x${enable_check}" != "xno" && test "$HAVE_CHECK" -eq 1])
dnl ---------------------------------------------------------------------
dnl Gets the resource compile tool path.
dnl ---------------------------------------------------------------------
AM_PATH_GLIB_2_0
dnl ---------------------------------------------------------------------
dnl Add extra compiler flags