Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 465976
Collapse All | Expand All

(-)a/jsonrpc-cpp-0.4/Makefile.am (+11 lines)
Line 0 Link Here
1
ACLOCAL_AMFLAGS=-I m4
2
3
SUBDIRS=src test
4
5
if INSTALL_DOCUMENTATION
6
    SUBDIRS+=doc
7
endif
8
9
if INSTALL_EXAMPLES
10
    SUBDIRS+=examples
11
endif
(-)a/jsonrpc-cpp-0.4/autogen.sh (+5 lines)
Line 0 Link Here
1
#!/bin/sh
2
libtoolize --install --copy --force --automake
3
aclocal -I m4
4
autoconf
5
automake --add-missing --copy
(-)a/jsonrpc-cpp-0.4/cleanup.sh (+10 lines)
Line 0 Link Here
1
#!/bin/sh
2
3
find .  -name Makefile -exec make -f {} distclean ';'
4
find .  -name Makefile -exec rm {} ';'
5
find .  -name Makefile.in -exec rm {} ';'
6
rm -rf m4 autom4te.cache
7
rm -f aclocal.m4 ar-lib config.guess config.sub configure config.log config.status\
8
	depcomp install-sh missing test-driver ltmain.sh libtool\
9
	jsonrpc-cpp*.tar.gz jsonrpc-cpp*.tar.bz2 jsonrpc-cpp*.zip 
10
(-)a/jsonrpc-cpp-0.4/configure.ac (+72 lines)
Line 0 Link Here
1
AC_INIT([jsonrpc-cpp], [0.4], [])
2
AC_CONFIG_MACRO_DIR([m4])
3
AC_CANONICAL_HOST
4
AM_INIT_AUTOMAKE([-Wall -Werror foreign nostdinc subdir-objects dist-bzip2 dist-zip tar-ustar])
5
6
AM_PROG_AR
7
LT_INIT
8
#LT_OUTPUT
9
10
# Check for C++ compiler and use it to compile the tests.
11
#
12
AC_PROG_CXX
13
AC_PROG_INSTALL
14
AC_LANG([C++])
15
AC_CHECK_PROGS([DOXYGEN], [doxygen], [:])
16
17
18
19
# Configure options: --enable-debug[=no].
20
AC_ARG_ENABLE(	[debug],
21
		[AS_HELP_STRING([--enable-debug], [enable additional debug code paths (default is no)])],
22
		[debug="$withval"], [debug='no'])
23
24
AC_ARG_ENABLE(	[examples],
25
		[AS_HELP_STRING([--enable-examples], [install example code (default is yes)])],
26
		[examples="$withval"], [examples='yes'])
27
28
AC_ARG_ENABLE(	[doc],
29
		[AS_HELP_STRING([--enable-doc], [install documentation (default is yes)])],
30
		[doc="$withval"], [doc='yes'])
31
32
33
34
# Configure options: --with-json-cpp-inc-dir
35
AC_ARG_WITH(	[jsoncpp-inc-dir],
36
		[AS_HELP_STRING([--with-jsoncpp-inc-dir], [set jsoncpp include dir (default is /usr/include/jsoncpp)])],
37
		[JSONCPP_INC_DIR="$withval"], 
38
		[JSONCPP_INC_DIR='/usr/include/jsoncpp'])
39
40
41
#AC_CHECK_LIB([jsoncpp], [])
42
# Allow the user to specify the pkgconfig directory.
43
#
44
#PKGCONFIG
45
46
# Check for doxygen program.
47
AM_CONDITIONAL([HAVE_DOXYGEN],[test "${DOXYGEN}" != ':'])
48
AM_CONDITIONAL([ENABLE_DEBUG],[test ${debug} == 'yes'])
49
AM_CONDITIONAL([INSTALL_DOCUMENTATION],[test "${doc}" == 'yes'])
50
AM_CONDITIONAL([INSTALL_EXAMPLES],[test "${examples}" == 'yes'])
51
52
53
# Output.
54
#
55
AC_SUBST([JSONCPP_INC_DIR]) 
56
57
AC_CONFIG_FILES(Makefile src/Makefile test/Makefile examples/Makefile doc/Makefile)
58
AC_OUTPUT
59
60
61
echo "
62
($PACKAGE_NAME) version $PACKAGE_VERSION
63
Prefix.......................:'${prefix}'
64
C++ Compiler.................: ${CXX} ${CXXFLAGS} ${CPPFLAGS}
65
Linker.......................: ${LD} ${LDFLAGS} ${LIBS}
66
JSON-C++ include directory...:'${JSONCPP_INC_DIR}'
67
Debug Build..................: ${debug}
68
Install Examples.............: ${examples}
69
Install Documentation........: ${doc}
70
Doxygen......................: ${DOXYGEN:-NONE}
71
"
72
(-)a/jsonrpc-cpp-0.4/doc/Makefile.am (+25 lines)
Line 0 Link Here
1
dist_doc_DATA=\
2
../AUTHORS\
3
../ChangeLog\
4
../COPYING.GPL\
5
../COPYING.LGPL\
6
../LICENSE\
7
../NEWS\
8
../README\
9
coding_style.txt\
10
netstrings.txt
11
12
13
if HAVE_DOXYGEN
14
15
noinst_HEADERS=$(srcdir)/doxygen-main.h $(top_srcdir)/Doxyfile 
16
17
dist_html_DATA=$(builddir)/html/*
18
19
$(dist_html_DATA): ../Doxyfile doxygen-main.h
20
	sed -e 's:src/:$(top_srcdir)/src/:' -e 's:doc/::' -e 's:doxygen-main.h:$(top_srcdir)/doc/doxygen-main.h:' $< | $(DOXYGEN) $(DOXYFLAGS) -
21
22
clean-local:
23
	-rm -rf html doxywarn.txt doxygen.pyc
24
25
endif
(-)a/jsonrpc-cpp-0.4/examples/Makefile.am (+31 lines)
Line 0 Link Here
1
doc_examplesdir=$(docdir)/examples
2
dist_doc_examples_DATA=\
3
	Makefile.am\
4
	system.cpp\
5
	tcp-client.cpp\
6
	tcp-server.cpp\
7
	test-rpc.cpp\
8
	test-rpc.h\
9
	udp-client.cpp\
10
	udp-server.cpp
11
12
noinst_PROGRAMS=udp-client udp-server tcp-client tcp-server system
13
14
udp_client_SOURCES=udp-client.cpp test-rpc.cpp
15
tcp_client_SOURCES=tcp-client.cpp test-rpc.cpp
16
udp_server_SOURCES=udp-server.cpp test-rpc.cpp
17
tcp_server_SOURCES=tcp-server.cpp test-rpc.cpp
18
system_SOURCES=system.cpp
19
20
21
22
tcp_client_LDADD=$(top_builddir)/src/libjsonrpc-cpp.la -ljsoncpp 
23
tcp_server_LDADD=$(top_builddir)/src/libjsonrpc-cpp.la -ljsoncpp 
24
udp_client_LDADD=$(top_builddir)/src/libjsonrpc-cpp.la -ljsoncpp 
25
udp_server_LDADD=$(top_builddir)/src/libjsonrpc-cpp.la -ljsoncpp
26
system_LDADD=$(top_builddir)/src/libjsonrpc-cpp.la -ljsoncpp 
27
28
AM_CPPFLAGS=-I"@JSONCPP_INC_DIR@" -I"$(top_srcdir)/src"
29
if ENABLE_DEBUG 
30
   AM_CPPFLAGS+='-DDEBUG'
31
endif
(-)a/jsonrpc-cpp-0.4/src/Makefile.am (+39 lines)
Line 0 Link Here
1
lib_LTLIBRARIES = libjsonrpc-cpp.la
2
libjsonrpc_cpp_la_SOURCES = \
3
	jsonrpc_handler.cpp\
4
	jsonrpc_server.cpp\
5
	jsonrpc_client.cpp\
6
	jsonrpc_udpserver.cpp\
7
	jsonrpc_tcpserver.cpp\
8
	jsonrpc_udpclient.cpp\
9
	jsonrpc_tcpclient.cpp\
10
	netstring.cpp\
11
	system.cpp\
12
	networking.cpp
13
14
libjsonrpc_cpp_la_INCLUDES=\
15
	jsonrpc.h\
16
	jsonrpc_handler.h\
17
	jsonrpc_server.h\
18
	jsonrpc_client.h\
19
	jsonrpc_udpserver.h\
20
	jsonrpc_tcpserver.h\
21
	jsonrpc_udpclient.h\
22
	jsonrpc_tcpclient.h\
23
	jsonrpc_common.h\
24
	jsonrpc_httpclient.h\
25
	netstring.h\
26
	system.h\
27
	networking.h
28
29
include_jsonrpc_cppdir=$(includedir)/jsonrpc-cpp
30
include_jsonrpc_cpp_HEADERS=$(libjsonrpc_cpp_la_INCLUDES)
31
32
libjsonrpc_cpp_la_LDFLAGS = -release @PACKAGE_VERSION@ -ljsoncpp -lpthread
33
34
AM_CXXFLAGS=-std=c++98 -Wall -Wextra -pedantic -Wredundant-decls -Wshadow -O2 #-Werror
35
36
AM_CPPFLAGS=-I"@JSONCPP_INC_DIR@"
37
if ENABLE_DEBUG 
38
	AM_CPPFLAGS+='-DDEBUG'
39
endif
(-)a/jsonrpc-cpp-0.4/test/Makefile.am (+15 lines)
Line 0 Link Here
1
check_PROGRAMS = test-runner 
2
TESTS = $(check_PROGRAMS) 
3
4
test_runner_SOURCES = \
5
	test-runner.cpp\
6
	test-core.cpp\
7
	test-system.cpp\
8
	test-netstring.cpp
9
10
test_runner_LDADD=$(top_builddir)/src/libjsonrpc-cpp.la -ljsoncpp -lcppunit
11
12
AM_CPPFLAGS=-I"@JSONCPP_INC_DIR@"
13
if ENABLE_DEBUG 
14
   AM_CPPFLAGS+='-DDEBUG'
15
endif

Return to bug 465976