build: more libwmc and libqcdm standalone fixes
Make it pass distcheck.
This commit is contained in:
@@ -30,6 +30,8 @@ AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package])
|
|||||||
IT_PROG_INTLTOOL([0.35.0])
|
IT_PROG_INTLTOOL([0.35.0])
|
||||||
|
|
||||||
PKG_CHECK_MODULES(MM, dbus-glib-1 >= 0.86 glib-2.0 >= 2.18 gmodule-2.0 gobject-2.0)
|
PKG_CHECK_MODULES(MM, dbus-glib-1 >= 0.86 glib-2.0 >= 2.18 gmodule-2.0 gobject-2.0)
|
||||||
|
AC_SUBST(MM_CFLAGS)
|
||||||
|
AC_SUBST(MM_LIBS)
|
||||||
|
|
||||||
PKG_CHECK_MODULES(GUDEV, gudev-1.0)
|
PKG_CHECK_MODULES(GUDEV, gudev-1.0)
|
||||||
AC_SUBST(GUDEV_CFLAGS)
|
AC_SUBST(GUDEV_CFLAGS)
|
||||||
@@ -137,6 +139,10 @@ if ! test x"$ac_distver" = x""; then
|
|||||||
AC_DEFINE_UNQUOTED(MM_DIST_VERSION, "$ac_distver", [Define the distribution version string])
|
AC_DEFINE_UNQUOTED(MM_DIST_VERSION, "$ac_distver", [Define the distribution version string])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Not building protocol libs standalone
|
||||||
|
AM_CONDITIONAL(QCDM_STANDALONE, test "yes" = "no")
|
||||||
|
AM_CONDITIONAL(WMC_STANDALONE, test "yes" = "no")
|
||||||
|
|
||||||
AC_CONFIG_FILES([
|
AC_CONFIG_FILES([
|
||||||
Makefile
|
Makefile
|
||||||
marshallers/Makefile
|
marshallers/Makefile
|
||||||
|
@@ -30,15 +30,14 @@ AC_ARG_WITH(tests, AS_HELP_STRING([--with-tests], [Build libqcdm tests]))
|
|||||||
AM_CONDITIONAL(WITH_TESTS, test "x$with_tests" = "xyes")
|
AM_CONDITIONAL(WITH_TESTS, test "x$with_tests" = "xyes")
|
||||||
case $with_tests in
|
case $with_tests in
|
||||||
yes)
|
yes)
|
||||||
with_tests=yes
|
|
||||||
PKG_CHECK_MODULES(MM, glib-2.0 >= 2.18)
|
PKG_CHECK_MODULES(MM, glib-2.0 >= 2.18)
|
||||||
|
AC_SUBST(MM_CFLAGS)
|
||||||
|
AC_SUBST(MM_LIBS)
|
||||||
;;
|
;;
|
||||||
*)
|
*) ;;
|
||||||
with_tests=no
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
AM_CONDITIONAL(STANDALONE, test "yes" = "yes")
|
AM_CONDITIONAL(QCDM_STANDALONE, test "yes" = "yes")
|
||||||
|
|
||||||
AC_CONFIG_FILES([
|
AC_CONFIG_FILES([
|
||||||
Makefile
|
Makefile
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
if WITH_TESTS
|
||||||
|
|
||||||
INCLUDES = \
|
INCLUDES = \
|
||||||
-I$(top_srcdir)/libqcdm/src \
|
-I$(top_srcdir)/libqcdm/src \
|
||||||
-I$(top_srcdir)/src
|
-I$(top_srcdir)/src
|
||||||
@@ -21,14 +23,12 @@ test_qcdm_CPPFLAGS = $(MM_CFLAGS)
|
|||||||
|
|
||||||
test_qcdm_LDADD = $(MM_LIBS)
|
test_qcdm_LDADD = $(MM_LIBS)
|
||||||
|
|
||||||
if STANDALONE
|
if QCDM_STANDALONE
|
||||||
test_qcdm_LDADD += $(top_builddir)/src/libqcdm.la
|
test_qcdm_LDADD += $(top_builddir)/src/libqcdm.la
|
||||||
else
|
else
|
||||||
test_qcdm_LDADD += $(top_builddir)/libqcdm/src/libqcdm.la
|
test_qcdm_LDADD += $(top_builddir)/libqcdm/src/libqcdm.la
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if WITH_TESTS
|
|
||||||
|
|
||||||
check-local: test-qcdm
|
check-local: test-qcdm
|
||||||
$(abs_builddir)/test-qcdm
|
$(abs_builddir)/test-qcdm
|
||||||
|
|
||||||
|
@@ -26,19 +26,18 @@ AC_PROG_LIBTOOL
|
|||||||
dnl
|
dnl
|
||||||
dnl Tests
|
dnl Tests
|
||||||
dnl
|
dnl
|
||||||
AC_ARG_WITH(tests, AS_HELP_STRING([--with-tests], [Build libqcdm tests]))
|
AC_ARG_WITH(tests, AS_HELP_STRING([--with-tests], [Build libwmc tests]))
|
||||||
AM_CONDITIONAL(WITH_TESTS, test "x$with_tests" = "xyes")
|
AM_CONDITIONAL(WITH_TESTS, test "x$with_tests" = "xyes")
|
||||||
case $with_tests in
|
case $with_tests in
|
||||||
yes)
|
yes)
|
||||||
with_tests=yes
|
|
||||||
PKG_CHECK_MODULES(MM, glib-2.0 >= 2.20)
|
PKG_CHECK_MODULES(MM, glib-2.0 >= 2.20)
|
||||||
|
AC_SUBST(MM_CFLAGS)
|
||||||
|
AC_SUBST(MM_LIBS)
|
||||||
;;
|
;;
|
||||||
*)
|
*) ;;
|
||||||
with_tests=no
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
AM_CONDITIONAL(STANDALONE, test "yes" = "yes")
|
AM_CONDITIONAL(WMC_STANDALONE, test "yes" = "yes")
|
||||||
|
|
||||||
AC_CONFIG_FILES([
|
AC_CONFIG_FILES([
|
||||||
Makefile
|
Makefile
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
if WITH_TESTS
|
||||||
|
|
||||||
INCLUDES = \
|
INCLUDES = \
|
||||||
-I$(top_srcdir)/libwmc/src \
|
-I$(top_srcdir)/libwmc/src \
|
||||||
-I$(top_srcdir)/src
|
-I$(top_srcdir)/src
|
||||||
@@ -20,14 +22,12 @@ test_wmc_CPPFLAGS = \
|
|||||||
|
|
||||||
test_wmc_LDADD = $(MM_LIBS)
|
test_wmc_LDADD = $(MM_LIBS)
|
||||||
|
|
||||||
if STANDALONE
|
if WMC_STANDALONE
|
||||||
test_wmc_LDADD += $(top_builddir)/src/libwmc.la
|
test_wmc_LDADD += $(top_builddir)/src/libwmc.la
|
||||||
else
|
else
|
||||||
test_wmc_LDADD += $(top_builddir)/libwmc/src/libwmc.la
|
test_wmc_LDADD += $(top_builddir)/libwmc/src/libwmc.la
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if WITH_TESTS
|
|
||||||
|
|
||||||
check-local: test-wmc
|
check-local: test-wmc
|
||||||
$(abs_builddir)/test-wmc
|
$(abs_builddir)/test-wmc
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user