- fixed library path of glib and ecore examples
- optional build --enable-tests --enable-examples - print summary after configure run
This commit is contained in:
parent
2b8cfc887e
commit
7d050f31f6
6 changed files with 53 additions and 7 deletions
43
configure.ac
43
configure.ac
|
@ -35,6 +35,20 @@ AC_ARG_ENABLE(doxygen-docs,
|
|||
[enable_doxygen_docs=no]
|
||||
)
|
||||
|
||||
AC_ARG_ENABLE(tests,
|
||||
AS_HELP_STRING([--enable-tests],
|
||||
[build tests]),
|
||||
[enable_tests=$enableval],
|
||||
[enable_tests=yes]
|
||||
)
|
||||
|
||||
AC_ARG_ENABLE(examples,
|
||||
AS_HELP_STRING([--enable-examples],
|
||||
[build examples]),
|
||||
[enable_examples=$enableval],
|
||||
[enable_examples=yes]
|
||||
)
|
||||
|
||||
AC_CHECK_FUNCS(clock_gettime, [], [
|
||||
AC_CHECK_LIB(rt, clock_gettime, [
|
||||
AC_DEFINE(HAVE_CLOCK_GETTIME, 1)
|
||||
|
@ -123,6 +137,18 @@ else
|
|||
AM_CONDITIONAL(ENABLE_ECORE, test 0 = 1)
|
||||
fi
|
||||
|
||||
if test "$enable_tests" = "yes" ; then
|
||||
AM_CONDITIONAL(ENABLE_TESTS, test 1 = 1)
|
||||
else
|
||||
AM_CONDITIONAL(ENABLE_TESTS, test 0 = 1)
|
||||
fi
|
||||
|
||||
if test "$enable_examples" = "yes" ; then
|
||||
AM_CONDITIONAL(ENABLE_EXAMPLES, test 1 = 1)
|
||||
else
|
||||
AM_CONDITIONAL(ENABLE_EXAMPLES, test 0 = 1)
|
||||
fi
|
||||
|
||||
AC_CHECK_LIB([expat], XML_ParserCreate_MM,
|
||||
[AC_CHECK_HEADERS(expat.h, have_expat=true, have_expat=false)],
|
||||
have_expat=false)
|
||||
|
@ -215,3 +241,20 @@ AC_OUTPUT(
|
|||
dbus-c++-glib-1-uninstalled.pc
|
||||
libdbus-c++.spec
|
||||
)
|
||||
|
||||
echo
|
||||
echo "Build configuration:"
|
||||
echo "--------------------"
|
||||
echo
|
||||
echo "Mainloop integration support:"
|
||||
echo "ecore ......................... $enable_ecore"
|
||||
echo "glib........................... $enable_glib"
|
||||
echo
|
||||
echo "Optional build items:"
|
||||
echo "build tests.................... $enable_tests"
|
||||
echo "build examples................. $enable_examples"
|
||||
echo "build doxygen documentation.... $enable_doxygen_docs"
|
||||
echo "Cross Compiling activated...... $cross_compiling"
|
||||
echo "PThread support found.......... $acx_pthread_ok"
|
||||
echo
|
||||
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
DIST_SUBDIRS = properties echo hal glib ecore echo_ecore
|
||||
if ENABLE_EXAMPLES
|
||||
SUBDIRS = properties echo hal glib ecore echo_ecore
|
||||
endif
|
||||
|
||||
MAINTAINERCLEANFILES = \
|
||||
Makefile.in
|
||||
|
|
|
@ -8,7 +8,7 @@ noinst_PROGRAMS = echo-server
|
|||
endif
|
||||
|
||||
echo_server_SOURCES = echo-server-glue.h echo-server.h echo-server.cpp
|
||||
echo_server_LDADD = $(top_builddir)/src/libdbus-c++-ecore-1.la \
|
||||
echo_server_LDADD = $(top_builddir)/src/integration/ecore/libdbus-c++-ecore-1.la \
|
||||
$(top_builddir)/src/libdbus-c++-1.la \
|
||||
$(ecore_LIBS)
|
||||
|
||||
|
@ -20,7 +20,7 @@ noinst_PROGRAMS += echo-client-mt
|
|||
endif
|
||||
|
||||
echo_client_mt_SOURCES = echo-client-glue.h echo-client.h echo-client.cpp
|
||||
echo_client_mt_LDADD = $(top_builddir)/src/libdbus-c++-ecore-1.la \
|
||||
echo_client_mt_LDADD = $(top_builddir)/src/integration/ecore/libdbus-c++-ecore-1.la \
|
||||
$(top_builddir)/src/libdbus-c++-1.la $(PTHREAD_LIBS) \
|
||||
$(ecore_LIBS)
|
||||
echo_client_mt_CXXFLAGS = $(PTHREAD_CFLAGS)
|
||||
|
|
|
@ -7,7 +7,7 @@ noinst_PROGRAMS = dbus_ecore
|
|||
endif
|
||||
|
||||
dbus_ecore_SOURCES = dbus_ecore-glue.h dbus_ecore.h dbus_ecore.cpp
|
||||
dbus_ecore_LDADD = $(top_builddir)/src/libdbus-c++-ecore-1.la \
|
||||
dbus_ecore_LDADD = $(top_builddir)/src/integration/ecore/libdbus-c++-ecore-1.la \
|
||||
$(top_builddir)/src/libdbus-c++-1.la $(ecore_LIBS) $(xml_LIBS)
|
||||
|
||||
dbus_ecore-glue.h: $(top_srcdir)/data/org.freedesktop.DBus.xml
|
||||
|
|
|
@ -7,8 +7,8 @@ noinst_PROGRAMS = dbus-browser
|
|||
endif
|
||||
|
||||
dbus_browser_SOURCES = dbus-glue.h dbus-browser.h dbus-browser.cpp $(top_srcdir)/tools/xml.cpp
|
||||
dbus_browser_LDADD = $(top_builddir)/src/libdbus-c++-glib-1.la \
|
||||
$(top_srcdir)/src/libdbus-c++-1.la $(gtkmm_LIBS)
|
||||
dbus_browser_LDADD = $(top_builddir)/src/integration/glib/libdbus-c++-glib-1.la \
|
||||
$(top_builddir)/src/libdbus-c++-1.la $(gtkmm_LIBS)
|
||||
|
||||
dbus-glue.h: $(top_srcdir)/data/org.freedesktop.DBus.xml
|
||||
$(top_builddir)/tools/dbusxx-xml2cpp $^ --proxy=$@
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
|
||||
if ENABLE_TESTS
|
||||
SUBDIRS = \
|
||||
generator\
|
||||
functional
|
||||
endif
|
||||
|
||||
## File created by the gnome-build tools
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue