- makefile snippet must work for builds outside of libt2n
(=> some variables must be set by configure, the snippet must be installed
=> pc file template must be installed, too)
-
-
+- it would really be much nicer if the client lib includes would not depend upon boost serialization
+ a solution would be to provide this optionally by wrapping the corresponding includes in a #ifdef
pkgconfig_DATA = $(CMDGROUPS:=.pc)
# .pc files (one pc file for each command group)
-%.pc : $(LIBT2N_CLIENT_PC_IN) Makefile
+%.pc : $(LIBT2N_CLIENT_PCTEMPLATE) Makefile
sed \
-e 's,@CMDGROUP@,$*,g' \
-e 's,\@prefix\@,$(prefix),g' \
AC_SUBST(XMLPP_CFLAGS)
AC_SUBST(XMLPP_LIBS)
-dnl fake installed libt2n (codegen)
+dnl fake installed libt2n (codegen) for example-codegen
dnl todo: remove codegen include path (codegen-stubhead.hxx will be removed)
LIBT2N_CPPFLAGS="-I\$(top_srcdir)/src @BOOST_CPPFLAGS@ @CPPUNIT_CFLAGS@ -I\$(top_srcdir)/codegen"
LIBT2N_LIBS="\$(top_builddir)/src/libt2n.la @BOOST_SERIALIZATION_LIB@ @BOOST_LDFLAGS@"
LIBT2N_CODEGEN="\$(top_builddir)/codegen/libt2n-codegen"
-LIBT2N_CLIENT_PC_IN = "\$(top_srcdir)/codegen/clientlib.pc.in"
-LIBT2N_CODEGEN_MAKESNIPPET="\$(top_srcdir)/codegen/codegen.make"
+LIBT2N_CLIENT_PCTEMPLATE="\$(top_srcdir)/codegen/clientlib.pc.in"
+LIBT2N_CODEGEN_MAKESNIPPET="include \$(top_srcdir)/codegen/codegen.make"
AC_SUBST(LIBT2N_CPPFLAGS)
AC_SUBST(LIBT2N_LIBS)
AC_SUBST(LIBT2N_CODEGEN)
-AC_SUBST(LIBT2N_CLIENT_PC_IN)
+AC_SUBST(LIBT2N_CLIENT_PCTEMPLATE)
AC_SUBST(LIBT2N_CODEGEN_MAKESNIPPET)
AC_OUTPUT(Makefile doc/Doxyfile doc/Makefile src/Makefile libt2n.pc libt2n.spec test/Makefile examples/Makefile codegen/Makefile example-codegen/Makefile)
-# todo: remove codegen include path (codegen-stubhead.hxx will be removed)
+# if you use codegen you should add the next line
+@LIBT2N_CODEGEN_MAKESNIPPET@
+
INCLUDES = @LIBT2N_CPPFLAGS@
LDADD = @LIBT2N_LIBS@
TESTS = test
EXTRA_DIST = $(TESTS)
-
-include @LIBT2N_CODEGEN_MAKESNIPPET@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
-includedir=@includedir@
+includedir=@includedir@/libt2n
Name: libt2n
Description: talk2neighbor - C++ IPC library
-
# set the include path found by configure
INCLUDES= $(all_includes)
socket_handler.cpp socket_client.cpp command_server.cpp command_client.cpp \
t2n_exception.cpp command.cpp container.cpp
-include_HEADERS = server.hxx socket_server.hxx t2n_exception.hxx client.hxx \
+pkginclude_HEADERS = server.hxx socket_server.hxx t2n_exception.hxx client.hxx \
socket_client.hxx connection.hxx types.hxx socket_handler.hxx command.hxx container.hxx \
command_client.hxx command_server.hxx log.hxx