|
|
80dda4 |
From 0fa42d185e8770a49df5c0820159a25cb402a0b8 Mon Sep 17 00:00:00 2001
|
|
|
80dda4 |
From: Igor Gnatenko <i.gnatenko.brain@gmail.com>
|
|
|
80dda4 |
Date: Sun, 18 Dec 2016 10:24:31 +0100
|
|
|
80dda4 |
Subject: [PATCH 1/2] add meson buildsystem definitions
|
|
|
80dda4 |
|
|
|
80dda4 |
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
|
|
|
80dda4 |
---
|
|
|
80dda4 |
include/meson.build | 3 +
|
|
|
80dda4 |
include/xmlrpc-c/config.h.in | 41 +++++++
|
|
|
80dda4 |
include/xmlrpc-c/lnsfr.sh | 9 ++
|
|
|
80dda4 |
include/xmlrpc-c/meson.build | 87 ++++++++++++++
|
|
|
80dda4 |
lib/abyss++/meson.build | 43 +++++++
|
|
|
80dda4 |
lib/abyss/meson.build | 1 +
|
|
|
80dda4 |
lib/abyss/src/meson.build | 66 +++++++++++
|
|
|
80dda4 |
lib/curl_transport/meson.build | 16 +++
|
|
|
80dda4 |
lib/expat/gennmtab/meson.build | 4 +
|
|
|
80dda4 |
lib/expat/meson.build | 15 +++
|
|
|
80dda4 |
lib/expat/xmlparse/meson.build | 21 ++++
|
|
|
80dda4 |
lib/expat/xmltok/meson.build | 32 ++++++
|
|
|
80dda4 |
lib/libutil++/meson.build | 28 +++++
|
|
|
80dda4 |
lib/libutil/meson.build | 41 +++++++
|
|
|
80dda4 |
lib/meson.build | 27 +++++
|
|
|
80dda4 |
lib/openssl/meson.build | 27 +++++
|
|
|
80dda4 |
lib/util/meson.build | 20 ++++
|
|
|
80dda4 |
meson.build | 209 +++++++++++++++++++++++++++++++++
|
|
|
80dda4 |
meson_options.txt | 13 +++
|
|
|
80dda4 |
src/cpp/meson.build | 223 ++++++++++++++++++++++++++++++++++++
|
|
|
80dda4 |
src/meson.build | 190 ++++++++++++++++++++++++++++++
|
|
|
80dda4 |
tools/lib/meson.build | 5 +
|
|
|
80dda4 |
tools/meson.build | 17 +++
|
|
|
80dda4 |
tools/xml-rpc-api2cpp/meson.build | 21 ++++
|
|
|
80dda4 |
tools/xml-rpc-api2txt/meson.build | 2 +
|
|
|
80dda4 |
tools/xml/meson.build | 15 +++
|
|
|
80dda4 |
tools/xmlrpc/meson.build | 20 ++++
|
|
|
80dda4 |
tools/xmlrpc_cpp_proxy/meson.build | 19 +++
|
|
|
80dda4 |
tools/xmlrpc_dumpserver/meson.build | 23 ++++
|
|
|
80dda4 |
tools/xmlrpc_pstream/meson.build | 21 ++++
|
|
|
80dda4 |
tools/xmlrpc_transport/meson.build | 18 +++
|
|
|
80dda4 |
transport_config.h.in | 4 +
|
|
|
80dda4 |
xmlrpc-c-config | 114 ++++++++++++++++++
|
|
|
80dda4 |
33 files changed, 1395 insertions(+)
|
|
|
80dda4 |
create mode 100644 include/meson.build
|
|
|
80dda4 |
create mode 100644 include/xmlrpc-c/config.h.in
|
|
|
80dda4 |
create mode 100755 include/xmlrpc-c/lnsfr.sh
|
|
|
80dda4 |
create mode 100644 include/xmlrpc-c/meson.build
|
|
|
80dda4 |
create mode 100644 lib/abyss++/meson.build
|
|
|
80dda4 |
create mode 100644 lib/abyss/meson.build
|
|
|
80dda4 |
create mode 100644 lib/abyss/src/meson.build
|
|
|
80dda4 |
create mode 100644 lib/curl_transport/meson.build
|
|
|
80dda4 |
create mode 100644 lib/expat/gennmtab/meson.build
|
|
|
80dda4 |
create mode 100644 lib/expat/meson.build
|
|
|
80dda4 |
create mode 100644 lib/expat/xmlparse/meson.build
|
|
|
80dda4 |
create mode 100644 lib/expat/xmltok/meson.build
|
|
|
80dda4 |
create mode 100644 lib/libutil++/meson.build
|
|
|
80dda4 |
create mode 100644 lib/libutil/meson.build
|
|
|
80dda4 |
create mode 100644 lib/meson.build
|
|
|
80dda4 |
create mode 100644 lib/openssl/meson.build
|
|
|
80dda4 |
create mode 100644 lib/util/meson.build
|
|
|
80dda4 |
create mode 100644 meson.build
|
|
|
80dda4 |
create mode 100644 meson_options.txt
|
|
|
80dda4 |
create mode 100644 src/cpp/meson.build
|
|
|
80dda4 |
create mode 100644 src/meson.build
|
|
|
80dda4 |
create mode 100644 tools/lib/meson.build
|
|
|
80dda4 |
create mode 100644 tools/meson.build
|
|
|
80dda4 |
create mode 100644 tools/xml-rpc-api2cpp/meson.build
|
|
|
80dda4 |
create mode 100644 tools/xml-rpc-api2txt/meson.build
|
|
|
80dda4 |
create mode 100644 tools/xml/meson.build
|
|
|
80dda4 |
create mode 100644 tools/xmlrpc/meson.build
|
|
|
80dda4 |
create mode 100644 tools/xmlrpc_cpp_proxy/meson.build
|
|
|
80dda4 |
create mode 100644 tools/xmlrpc_dumpserver/meson.build
|
|
|
80dda4 |
create mode 100644 tools/xmlrpc_pstream/meson.build
|
|
|
80dda4 |
create mode 100644 tools/xmlrpc_transport/meson.build
|
|
|
80dda4 |
create mode 100644 transport_config.h.in
|
|
|
80dda4 |
create mode 100755 xmlrpc-c-config
|
|
|
80dda4 |
|
|
|
80dda4 |
diff --git a/include/meson.build b/include/meson.build
|
|
|
80dda4 |
new file mode 100644
|
|
|
80dda4 |
index 00000000..ec0964c0
|
|
|
80dda4 |
--- /dev/null
|
|
|
80dda4 |
+++ b/include/meson.build
|
|
|
80dda4 |
@@ -0,0 +1,3 @@
|
|
|
80dda4 |
+hdr_incdir = include_directories('.')
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+subdir('xmlrpc-c')
|
|
|
80dda4 |
diff --git a/include/xmlrpc-c/config.h.in b/include/xmlrpc-c/config.h.in
|
|
|
80dda4 |
new file mode 100644
|
|
|
80dda4 |
index 00000000..e8a633e7
|
|
|
80dda4 |
--- /dev/null
|
|
|
80dda4 |
+++ b/include/xmlrpc-c/config.h.in
|
|
|
80dda4 |
@@ -0,0 +1,41 @@
|
|
|
80dda4 |
+#ifndef XMLRPC_C_CONFIG_H_INCULDED
|
|
|
80dda4 |
+#define XMLRPC_C_CONFIG_H_INCLUDED
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+/* This file, part of XML-RPC For C/C++, is meant to
|
|
|
80dda4 |
+ define characteristics of this particular installation
|
|
|
80dda4 |
+ that the other <xmlrpc-c/...> header files need in
|
|
|
80dda4 |
+ order to compile correctly when #included in Xmlrpc-c
|
|
|
80dda4 |
+ user code.
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+ Those header files #include this one.
|
|
|
80dda4 |
+*/
|
|
|
80dda4 |
+#define XMLRPC_HAVE_WCHAR @HAVE_WCHAR_H_DEFINE@
|
|
|
80dda4 |
+#ifdef _WIN32
|
|
|
80dda4 |
+ /* SOCKET is a type defined by <winsock.h>. Anyone who
|
|
|
80dda4 |
+ uses XMLRPC_SOCKET on a WIN32 system must #include
|
|
|
80dda4 |
+ <winsock.h>
|
|
|
80dda4 |
+ */
|
|
|
80dda4 |
+ #define XMLRPC_SOCKET SOCKET
|
|
|
80dda4 |
+ #define XMLRPC_HAVE_TIMEVAL 0
|
|
|
80dda4 |
+ #define XMLRPC_HAVE_TIMESPEC 0
|
|
|
80dda4 |
+ #define XMLRPC_HAVE_PTHREAD 0
|
|
|
80dda4 |
+ #define XMLRPC_HAVE_WINTHREAD 1
|
|
|
80dda4 |
+#else
|
|
|
80dda4 |
+ #define XMLRPC_SOCKET int
|
|
|
80dda4 |
+ #define XMLRPC_HAVE_TIMEVAL 1
|
|
|
80dda4 |
+ #define XMLRPC_HAVE_TIMESPEC 1
|
|
|
80dda4 |
+ #define XMLRPC_HAVE_PTHREAD 1
|
|
|
80dda4 |
+ #define XMLRPC_HAVE_WINTHREAD 0
|
|
|
80dda4 |
+#endif
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+#if defined(_MSC_VER)
|
|
|
80dda4 |
+ /* Newer MSVC has long long, but MSVC 6 does not */
|
|
|
80dda4 |
+ #define XMLRPC_INT64 __int64
|
|
|
80dda4 |
+ #define XMLRPC_PRId64 "I64"
|
|
|
80dda4 |
+ #define XMLRPC_INT32 __int32
|
|
|
80dda4 |
+#else
|
|
|
80dda4 |
+ #define XMLRPC_INT64 long long
|
|
|
80dda4 |
+ #define XMLRPC_PRId64 "lld"
|
|
|
80dda4 |
+ #define XMLRPC_INT32 int
|
|
|
80dda4 |
+#endif
|
|
|
80dda4 |
+#endif
|
|
|
80dda4 |
diff --git a/include/xmlrpc-c/lnsfr.sh b/include/xmlrpc-c/lnsfr.sh
|
|
|
80dda4 |
new file mode 100755
|
|
|
80dda4 |
index 00000000..83f231b7
|
|
|
80dda4 |
--- /dev/null
|
|
|
80dda4 |
+++ b/include/xmlrpc-c/lnsfr.sh
|
|
|
80dda4 |
@@ -0,0 +1,9 @@
|
|
|
80dda4 |
+#!/bin/sh -efu
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+if [ "$#" != 2 ]; then
|
|
|
80dda4 |
+ exit 1
|
|
|
80dda4 |
+fi
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+tgt="$1"; shift
|
|
|
80dda4 |
+src="$1"; shift
|
|
|
80dda4 |
+ln -sfr "${DESTDIR}${tgt}" "${DESTDIR}${src}"
|
|
|
80dda4 |
diff --git a/include/xmlrpc-c/meson.build b/include/xmlrpc-c/meson.build
|
|
|
80dda4 |
new file mode 100644
|
|
|
80dda4 |
index 00000000..761acfd4
|
|
|
80dda4 |
--- /dev/null
|
|
|
80dda4 |
+++ b/include/xmlrpc-c/meson.build
|
|
|
80dda4 |
@@ -0,0 +1,87 @@
|
|
|
80dda4 |
+config_h = configure_file(input : 'config.h.in',
|
|
|
80dda4 |
+ output : 'config.h',
|
|
|
80dda4 |
+ configuration : conf)
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+compat_links = [
|
|
|
80dda4 |
+ [ 'oldxmlrpc.h', 'xmlrpc.h' ],
|
|
|
80dda4 |
+ [ 'server.h', 'xmlrpc_server.h' ],
|
|
|
80dda4 |
+ [ 'server_abyss.h', 'xmlrpc_abyss.h' ],
|
|
|
80dda4 |
+ [ 'server_w32httpsys.h', 'xmlrpc_server_w32httpsys.h' ],
|
|
|
80dda4 |
+]
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+hdrs = [
|
|
|
80dda4 |
+ join_paths(meson.current_build_dir(), 'config.h'), # config_h,
|
|
|
80dda4 |
+ 'inttypes.h',
|
|
|
80dda4 |
+ 'c_util.h',
|
|
|
80dda4 |
+ 'util.h',
|
|
|
80dda4 |
+ 'base.h',
|
|
|
80dda4 |
+ 'json.h',
|
|
|
80dda4 |
+ 'abyss.h',
|
|
|
80dda4 |
+ 'abyss_unixsock.h',
|
|
|
80dda4 |
+ 'abyss_winsock.h',
|
|
|
80dda4 |
+ 'server.h',
|
|
|
80dda4 |
+ 'server_abyss.h',
|
|
|
80dda4 |
+ 'server_w32httpsys.h',
|
|
|
80dda4 |
+ 'oldxmlrpc.h',
|
|
|
80dda4 |
+]
|
|
|
80dda4 |
+if get_option('cplusplus')
|
|
|
80dda4 |
+ hdrs += [
|
|
|
80dda4 |
+ 'oldcppwrapper.hpp',
|
|
|
80dda4 |
+ 'girerr.hpp',
|
|
|
80dda4 |
+ 'girmem.hpp',
|
|
|
80dda4 |
+ 'base.hpp',
|
|
|
80dda4 |
+ 'base64.hpp',
|
|
|
80dda4 |
+ 'timeout.hpp',
|
|
|
80dda4 |
+ 'xml.hpp',
|
|
|
80dda4 |
+ 'registry.hpp',
|
|
|
80dda4 |
+ 'server_abyss.hpp',
|
|
|
80dda4 |
+ 'packetsocket.hpp',
|
|
|
80dda4 |
+ 'server_pstream.hpp',
|
|
|
80dda4 |
+ 'AbyssEnvironment.hpp',
|
|
|
80dda4 |
+ 'AbyssServer.hpp',
|
|
|
80dda4 |
+ 'abyss_reqhandler_xmlrpc.hpp',
|
|
|
80dda4 |
+ 'AbyssChanSwitch.hpp',
|
|
|
80dda4 |
+ 'AbyssChanSwitchUnix.hpp',
|
|
|
80dda4 |
+ ]
|
|
|
80dda4 |
+ compat_links += [
|
|
|
80dda4 |
+ ['oldcppwrapper.hpp', 'XmlRpcCpp.h'],
|
|
|
80dda4 |
+ ]
|
|
|
80dda4 |
+endif
|
|
|
80dda4 |
+if build_client
|
|
|
80dda4 |
+ hdrs += [
|
|
|
80dda4 |
+ 'client.h',
|
|
|
80dda4 |
+ 'transport.h',
|
|
|
80dda4 |
+ 'client_global.h',
|
|
|
80dda4 |
+ ]
|
|
|
80dda4 |
+ compat_links += [
|
|
|
80dda4 |
+ ['client.h', 'xmlrpc_client.h'],
|
|
|
80dda4 |
+ ]
|
|
|
80dda4 |
+ if get_option('cplusplus')
|
|
|
80dda4 |
+ hdrs += [
|
|
|
80dda4 |
+ 'client.hpp',
|
|
|
80dda4 |
+ 'client_transport.hpp',
|
|
|
80dda4 |
+ 'client_simple.hpp',
|
|
|
80dda4 |
+ ]
|
|
|
80dda4 |
+ endif
|
|
|
80dda4 |
+endif
|
|
|
80dda4 |
+if get_option('cgi-server')
|
|
|
80dda4 |
+ hdrs += [
|
|
|
80dda4 |
+ 'server_cgi.h',
|
|
|
80dda4 |
+ ]
|
|
|
80dda4 |
+ compat_links += [
|
|
|
80dda4 |
+ ['server_cgi.h', 'xmlrpc_cgi.h'],
|
|
|
80dda4 |
+ ]
|
|
|
80dda4 |
+endif
|
|
|
80dda4 |
+if get_option('abyss-openssl')
|
|
|
80dda4 |
+ hdrs += [
|
|
|
80dda4 |
+ 'openssl_thread.h',
|
|
|
80dda4 |
+ ]
|
|
|
80dda4 |
+endif
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+install_headers(hdrs, subdir : meson.project_name())
|
|
|
80dda4 |
+# Install old names of header files for backward compatibility
|
|
|
80dda4 |
+foreach compat_link : compat_links
|
|
|
80dda4 |
+ tgt = join_paths(get_option('prefix'), get_option('includedir'), meson.project_name(), compat_link[0])
|
|
|
80dda4 |
+ src = join_paths(get_option('prefix'), get_option('includedir'), compat_link[1])
|
|
|
80dda4 |
+ meson.add_install_script('lnsfr.sh', tgt, src)
|
|
|
80dda4 |
+endforeach
|
|
|
80dda4 |
diff --git a/lib/abyss++/meson.build b/lib/abyss++/meson.build
|
|
|
80dda4 |
new file mode 100644
|
|
|
80dda4 |
index 00000000..19f04cc3
|
|
|
80dda4 |
--- /dev/null
|
|
|
80dda4 |
+++ b/lib/abyss++/meson.build
|
|
|
80dda4 |
@@ -0,0 +1,43 @@
|
|
|
80dda4 |
+if host_machine.system() == 'windows'
|
|
|
80dda4 |
+ abysspp_chan_switch = 'AbyssChanSwitchWin.cpp'
|
|
|
80dda4 |
+else
|
|
|
80dda4 |
+ abysspp_chan_switch = ['AbyssChanSwitchUnix.cpp']
|
|
|
80dda4 |
+ if get_option('abyss-openssl')
|
|
|
80dda4 |
+ abysspp_chan_switch += ['AbyssChanSwitchOpenSsl.cpp']
|
|
|
80dda4 |
+ endif
|
|
|
80dda4 |
+endif
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+libxmlrpc_abysspp = library(
|
|
|
80dda4 |
+ 'xmlrpc_abyss++',
|
|
|
80dda4 |
+ sources : [
|
|
|
80dda4 |
+ 'AbyssServer.cpp',
|
|
|
80dda4 |
+ 'AbyssChanSwitch.cpp',
|
|
|
80dda4 |
+ 'AbyssEnvironment.cpp',
|
|
|
80dda4 |
+ abysspp_chan_switch,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ include_directories : [
|
|
|
80dda4 |
+ top_incdir,
|
|
|
80dda4 |
+ hdr_incdir,
|
|
|
80dda4 |
+ util_incdir,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ link_with : [
|
|
|
80dda4 |
+ libxmlrpc_abyss,
|
|
|
80dda4 |
+ libxmlrpc_util,
|
|
|
80dda4 |
+ libxmlrpc_utilpp,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ dependencies : [
|
|
|
80dda4 |
+ socket,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ soversion : 8,
|
|
|
80dda4 |
+ version : '8.@0@'.format(version_minor),
|
|
|
80dda4 |
+ install : true,
|
|
|
80dda4 |
+)
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+pkgg.generate(
|
|
|
80dda4 |
+ name : 'xmlrpc_abyss++',
|
|
|
80dda4 |
+ description : 'Xmlrpc-c Abyss HTTP C++ library',
|
|
|
80dda4 |
+ version : meson.project_version(),
|
|
|
80dda4 |
+ requires_private : ['xmlrpc_abyss', 'xmlrpc_util', 'xmlrpc_util++'],
|
|
|
80dda4 |
+ libraries : libxmlrpc_abysspp,
|
|
|
80dda4 |
+ install : true,
|
|
|
80dda4 |
+)
|
|
|
80dda4 |
diff --git a/lib/abyss/meson.build b/lib/abyss/meson.build
|
|
|
80dda4 |
new file mode 100644
|
|
|
80dda4 |
index 00000000..9537275d
|
|
|
80dda4 |
--- /dev/null
|
|
|
80dda4 |
+++ b/lib/abyss/meson.build
|
|
|
80dda4 |
@@ -0,0 +1 @@
|
|
|
80dda4 |
+subdir('src')
|
|
|
80dda4 |
diff --git a/lib/abyss/src/meson.build b/lib/abyss/src/meson.build
|
|
|
80dda4 |
new file mode 100644
|
|
|
80dda4 |
index 00000000..daa91fce
|
|
|
80dda4 |
--- /dev/null
|
|
|
80dda4 |
+++ b/lib/abyss/src/meson.build
|
|
|
80dda4 |
@@ -0,0 +1,66 @@
|
|
|
80dda4 |
+abyss_deps = [socket]
|
|
|
80dda4 |
+if host_machine.system() == 'windows'
|
|
|
80dda4 |
+ abyss_socket = 'socket_win.c'
|
|
|
80dda4 |
+ abyss_thread = 'thread_windows.c'
|
|
|
80dda4 |
+ abyss_deps += [threads]
|
|
|
80dda4 |
+else
|
|
|
80dda4 |
+ abyss_socket = ['socket_unix.c']
|
|
|
80dda4 |
+ if get_option('abyss-openssl')
|
|
|
80dda4 |
+ abyss_socket += ['socket_openssl.c']
|
|
|
80dda4 |
+ abyss_deps += [openssl]
|
|
|
80dda4 |
+ endif
|
|
|
80dda4 |
+ abyss_socket += ['sockutil.c']
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+ if get_option('abyss-threads')
|
|
|
80dda4 |
+ abyss_thread = 'thread_pthread.c'
|
|
|
80dda4 |
+ abyss_deps += [threads]
|
|
|
80dda4 |
+ else
|
|
|
80dda4 |
+ abyss_thread = 'thread_fork.c'
|
|
|
80dda4 |
+ endif
|
|
|
80dda4 |
+endif
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+libxmlrpc_abyss = library(
|
|
|
80dda4 |
+ 'xmlrpc_abyss',
|
|
|
80dda4 |
+ sources : [
|
|
|
80dda4 |
+ 'channel.c',
|
|
|
80dda4 |
+ 'chanswitch.c',
|
|
|
80dda4 |
+ 'conf.c',
|
|
|
80dda4 |
+ 'conn.c',
|
|
|
80dda4 |
+ 'data.c',
|
|
|
80dda4 |
+ 'date.c',
|
|
|
80dda4 |
+ 'file.c',
|
|
|
80dda4 |
+ 'handler.c',
|
|
|
80dda4 |
+ 'http.c',
|
|
|
80dda4 |
+ 'init.c',
|
|
|
80dda4 |
+ 'response.c',
|
|
|
80dda4 |
+ 'server.c',
|
|
|
80dda4 |
+ 'session.c',
|
|
|
80dda4 |
+ 'sessionReadRequest.c',
|
|
|
80dda4 |
+ 'socket.c',
|
|
|
80dda4 |
+ abyss_socket,
|
|
|
80dda4 |
+ 'token.c',
|
|
|
80dda4 |
+ abyss_thread,
|
|
|
80dda4 |
+ 'trace.c',
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ include_directories : [
|
|
|
80dda4 |
+ top_incdir,
|
|
|
80dda4 |
+ hdr_incdir,
|
|
|
80dda4 |
+ util_incdir,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ link_with : [
|
|
|
80dda4 |
+ libxmlrpc_util,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ dependencies : abyss_deps,
|
|
|
80dda4 |
+ soversion : 3,
|
|
|
80dda4 |
+ version : '3.@0@'.format(version_minor),
|
|
|
80dda4 |
+ install : true,
|
|
|
80dda4 |
+)
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+pkgg.generate(
|
|
|
80dda4 |
+ name : 'xmlrpc_abyss',
|
|
|
80dda4 |
+ description : 'Xmlrpc-c Abyss HTTP C library',
|
|
|
80dda4 |
+ version : meson.project_version(),
|
|
|
80dda4 |
+ libraries : libxmlrpc_abyss,
|
|
|
80dda4 |
+ requires_private : 'xmlrpc_util',
|
|
|
80dda4 |
+ install : true,
|
|
|
80dda4 |
+)
|
|
|
80dda4 |
diff --git a/lib/curl_transport/meson.build b/lib/curl_transport/meson.build
|
|
|
80dda4 |
new file mode 100644
|
|
|
80dda4 |
index 00000000..f5ff3040
|
|
|
80dda4 |
--- /dev/null
|
|
|
80dda4 |
+++ b/lib/curl_transport/meson.build
|
|
|
80dda4 |
@@ -0,0 +1,16 @@
|
|
|
80dda4 |
+libcurl = dependency('libcurl')
|
|
|
80dda4 |
+if libcurl.version().version_compare('<7.16.0')
|
|
|
80dda4 |
+ xmlrpc_curl_cargs = ['-DNEED_CURL_TYPES_H']
|
|
|
80dda4 |
+else
|
|
|
80dda4 |
+ xmlrpc_curl_cargs = []
|
|
|
80dda4 |
+endif
|
|
|
80dda4 |
+xmlrpc_curl_transport = declare_dependency(
|
|
|
80dda4 |
+ include_directories : include_directories('.'),
|
|
|
80dda4 |
+ sources : [
|
|
|
80dda4 |
+ 'xmlrpc_curl_transport.c',
|
|
|
80dda4 |
+ 'curltransaction.c',
|
|
|
80dda4 |
+ 'curlmulti.c',
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ compile_args : xmlrpc_curl_cargs,
|
|
|
80dda4 |
+ dependencies : libcurl,
|
|
|
80dda4 |
+)
|
|
|
80dda4 |
diff --git a/lib/expat/gennmtab/meson.build b/lib/expat/gennmtab/meson.build
|
|
|
80dda4 |
new file mode 100644
|
|
|
80dda4 |
index 00000000..94764c22
|
|
|
80dda4 |
--- /dev/null
|
|
|
80dda4 |
+++ b/lib/expat/gennmtab/meson.build
|
|
|
80dda4 |
@@ -0,0 +1,4 @@
|
|
|
80dda4 |
+gennmtab = executable(
|
|
|
80dda4 |
+ 'gennmtab', 'gennmtab.c',
|
|
|
80dda4 |
+ include_directories : top_incdir,
|
|
|
80dda4 |
+)
|
|
|
80dda4 |
diff --git a/lib/expat/meson.build b/lib/expat/meson.build
|
|
|
80dda4 |
new file mode 100644
|
|
|
80dda4 |
index 00000000..df9ca84c
|
|
|
80dda4 |
--- /dev/null
|
|
|
80dda4 |
+++ b/lib/expat/meson.build
|
|
|
80dda4 |
@@ -0,0 +1,15 @@
|
|
|
80dda4 |
+subdir('gennmtab')
|
|
|
80dda4 |
+subdir('xmltok')
|
|
|
80dda4 |
+subdir('xmlparse')
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+pkgg.generate(
|
|
|
80dda4 |
+ name : 'xmlrpc_expat',
|
|
|
80dda4 |
+ description : 'Xmlrpc-c XML parsing library',
|
|
|
80dda4 |
+ version : meson.project_version(),
|
|
|
80dda4 |
+ requires_private: 'xmlrpc_util',
|
|
|
80dda4 |
+ libraries : [
|
|
|
80dda4 |
+ libxmlrpc_xmlparse,
|
|
|
80dda4 |
+ libxmlrpc_xmltok,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ install : true,
|
|
|
80dda4 |
+)
|
|
|
80dda4 |
diff --git a/lib/expat/xmlparse/meson.build b/lib/expat/xmlparse/meson.build
|
|
|
80dda4 |
new file mode 100644
|
|
|
80dda4 |
index 00000000..39c0bf26
|
|
|
80dda4 |
--- /dev/null
|
|
|
80dda4 |
+++ b/lib/expat/xmlparse/meson.build
|
|
|
80dda4 |
@@ -0,0 +1,21 @@
|
|
|
80dda4 |
+xmlparse_incdir = include_directories('.')
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+libxmlrpc_xmlparse = library(
|
|
|
80dda4 |
+ 'xmlrpc_xmlparse',
|
|
|
80dda4 |
+ sources : [
|
|
|
80dda4 |
+ 'xmlparse.c',
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ include_directories : [
|
|
|
80dda4 |
+ top_incdir,
|
|
|
80dda4 |
+ hdr_incdir,
|
|
|
80dda4 |
+ util_incdir,
|
|
|
80dda4 |
+ xmltok_incdir,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ link_with : [
|
|
|
80dda4 |
+ libxmlrpc_util,
|
|
|
80dda4 |
+ libxmlrpc_xmltok,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ soversion : '3',
|
|
|
80dda4 |
+ version : '3.@0@'.format(version_minor),
|
|
|
80dda4 |
+ install : true,
|
|
|
80dda4 |
+)
|
|
|
80dda4 |
diff --git a/lib/expat/xmltok/meson.build b/lib/expat/xmltok/meson.build
|
|
|
80dda4 |
new file mode 100644
|
|
|
80dda4 |
index 00000000..6629719c
|
|
|
80dda4 |
--- /dev/null
|
|
|
80dda4 |
+++ b/lib/expat/xmltok/meson.build
|
|
|
80dda4 |
@@ -0,0 +1,32 @@
|
|
|
80dda4 |
+nametab = custom_target(
|
|
|
80dda4 |
+ 'nametab.h',
|
|
|
80dda4 |
+ output : 'nametab.h',
|
|
|
80dda4 |
+ command : gennmtab,
|
|
|
80dda4 |
+ capture : true,
|
|
|
80dda4 |
+)
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+if host_machine.endian() == 'big'
|
|
|
80dda4 |
+ xmltok_endian_flag = '-DXML_BYTE_ORDER=21'
|
|
|
80dda4 |
+else
|
|
|
80dda4 |
+ xmltok_endian_flag = '-DXML_BYTE_ORDER=12'
|
|
|
80dda4 |
+endif
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+libxmlrpc_xmltok = library(
|
|
|
80dda4 |
+ 'xmlrpc_xmltok',
|
|
|
80dda4 |
+ sources : [
|
|
|
80dda4 |
+ 'xmltok.c',
|
|
|
80dda4 |
+ 'xmlrole.c',
|
|
|
80dda4 |
+ nametab,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ include_directories : [
|
|
|
80dda4 |
+ top_incdir,
|
|
|
80dda4 |
+ hdr_incdir,
|
|
|
80dda4 |
+ util_incdir,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ c_args : [xmltok_endian_flag],
|
|
|
80dda4 |
+ soversion : '3',
|
|
|
80dda4 |
+ version : '3.@0@'.format(version_minor),
|
|
|
80dda4 |
+ install : true,
|
|
|
80dda4 |
+)
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+xmltok_incdir = include_directories('.')
|
|
|
80dda4 |
diff --git a/lib/libutil++/meson.build b/lib/libutil++/meson.build
|
|
|
80dda4 |
new file mode 100644
|
|
|
80dda4 |
index 00000000..9764c08d
|
|
|
80dda4 |
--- /dev/null
|
|
|
80dda4 |
+++ b/lib/libutil++/meson.build
|
|
|
80dda4 |
@@ -0,0 +1,28 @@
|
|
|
80dda4 |
+libxmlrpc_utilpp = library(
|
|
|
80dda4 |
+ 'xmlrpc_util++',
|
|
|
80dda4 |
+ sources : [
|
|
|
80dda4 |
+ 'Lock.cpp',
|
|
|
80dda4 |
+ 'base64.cpp',
|
|
|
80dda4 |
+ 'env_wrap.cpp',
|
|
|
80dda4 |
+ 'girerr.cpp',
|
|
|
80dda4 |
+ 'girmem.cpp',
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ include_directories : [
|
|
|
80dda4 |
+ top_incdir,
|
|
|
80dda4 |
+ hdr_incdir,
|
|
|
80dda4 |
+ util_incdir,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ link_with : libxmlrpc_util,
|
|
|
80dda4 |
+ soversion : '8',
|
|
|
80dda4 |
+ version : '8.@0@'.format(version_minor),
|
|
|
80dda4 |
+ install : true,
|
|
|
80dda4 |
+)
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+pkgg.generate(
|
|
|
80dda4 |
+ name : 'xmlrpc_util++',
|
|
|
80dda4 |
+ description : 'Xmlrpc-c C++ utility functions library',
|
|
|
80dda4 |
+ version : meson.project_version(),
|
|
|
80dda4 |
+ requires_private : 'xmlrpc_util',
|
|
|
80dda4 |
+ libraries : libxmlrpc_utilpp,
|
|
|
80dda4 |
+ install : true,
|
|
|
80dda4 |
+)
|
|
|
80dda4 |
diff --git a/lib/libutil/meson.build b/lib/libutil/meson.build
|
|
|
80dda4 |
new file mode 100644
|
|
|
80dda4 |
index 00000000..bb1cc67d
|
|
|
80dda4 |
--- /dev/null
|
|
|
80dda4 |
+++ b/lib/libutil/meson.build
|
|
|
80dda4 |
@@ -0,0 +1,41 @@
|
|
|
80dda4 |
+# FIXME: it's default already to 1 in xmlrpc_config.h
|
|
|
80dda4 |
+util_lock_pthread = ['lock_pthread.c']
|
|
|
80dda4 |
+# TODO: handle mscvrt.dll properly
|
|
|
80dda4 |
+util_lock_windows = [] # lock_windows.c
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+libxmlrpc_util = library(
|
|
|
80dda4 |
+ 'xmlrpc_util',
|
|
|
80dda4 |
+ sources : [
|
|
|
80dda4 |
+ 'asprintf.c',
|
|
|
80dda4 |
+ 'base64.c',
|
|
|
80dda4 |
+ 'error.c',
|
|
|
80dda4 |
+ 'lock_platform.c',
|
|
|
80dda4 |
+ util_lock_pthread,
|
|
|
80dda4 |
+ util_lock_windows,
|
|
|
80dda4 |
+ 'lock_none.c',
|
|
|
80dda4 |
+ 'make_printable.c',
|
|
|
80dda4 |
+ 'memblock.c',
|
|
|
80dda4 |
+ 'mempool.c',
|
|
|
80dda4 |
+ 'select.c',
|
|
|
80dda4 |
+ 'sleep.c',
|
|
|
80dda4 |
+ 'string_number.c',
|
|
|
80dda4 |
+ 'time.c',
|
|
|
80dda4 |
+ 'utf8.c',
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ include_directories : [
|
|
|
80dda4 |
+ top_incdir,
|
|
|
80dda4 |
+ hdr_incdir,
|
|
|
80dda4 |
+ util_incdir,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ soversion : 4,
|
|
|
80dda4 |
+ version : '4.@0@'.format(version_minor),
|
|
|
80dda4 |
+ install : true,
|
|
|
80dda4 |
+)
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+pkgg.generate(
|
|
|
80dda4 |
+ name : 'xmlrpc_util',
|
|
|
80dda4 |
+ description : 'Xmlrpc-c utility functions library',
|
|
|
80dda4 |
+ version : meson.project_version(),
|
|
|
80dda4 |
+ libraries : libxmlrpc_util,
|
|
|
80dda4 |
+ install : true,
|
|
|
80dda4 |
+)
|
|
|
80dda4 |
diff --git a/lib/meson.build b/lib/meson.build
|
|
|
80dda4 |
new file mode 100644
|
|
|
80dda4 |
index 00000000..e78c1f83
|
|
|
80dda4 |
--- /dev/null
|
|
|
80dda4 |
+++ b/lib/meson.build
|
|
|
80dda4 |
@@ -0,0 +1,27 @@
|
|
|
80dda4 |
+subdir('util')
|
|
|
80dda4 |
+subdir('libutil')
|
|
|
80dda4 |
+if get_option('cplusplus')
|
|
|
80dda4 |
+ subdir('libutil++')
|
|
|
80dda4 |
+endif
|
|
|
80dda4 |
+if get_option('abyss-server')
|
|
|
80dda4 |
+ subdir('abyss')
|
|
|
80dda4 |
+ if get_option('cplusplus')
|
|
|
80dda4 |
+ subdir('abyss++')
|
|
|
80dda4 |
+ endif
|
|
|
80dda4 |
+endif
|
|
|
80dda4 |
+if get_option('wininet-client')
|
|
|
80dda4 |
+ subdir('wininet_transport')
|
|
|
80dda4 |
+endif
|
|
|
80dda4 |
+if get_option('curl-client')
|
|
|
80dda4 |
+ subdir('curl_transport')
|
|
|
80dda4 |
+endif
|
|
|
80dda4 |
+if get_option('libwww-client')
|
|
|
80dda4 |
+ subdir('libwww_transport')
|
|
|
80dda4 |
+endif
|
|
|
80dda4 |
+if not get_option('libxml2-backend')
|
|
|
80dda4 |
+ subdir('expat')
|
|
|
80dda4 |
+endif
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+if openssl.found()
|
|
|
80dda4 |
+ subdir('openssl')
|
|
|
80dda4 |
+endif
|
|
|
80dda4 |
diff --git a/lib/openssl/meson.build b/lib/openssl/meson.build
|
|
|
80dda4 |
new file mode 100644
|
|
|
80dda4 |
index 00000000..f65a4dc1
|
|
|
80dda4 |
--- /dev/null
|
|
|
80dda4 |
+++ b/lib/openssl/meson.build
|
|
|
80dda4 |
@@ -0,0 +1,27 @@
|
|
|
80dda4 |
+libxmlrpc_openssl = library(
|
|
|
80dda4 |
+ 'xmlrpc_openssl',
|
|
|
80dda4 |
+ sources : [
|
|
|
80dda4 |
+ 'xmlrpc_openssl_thread.c',
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ include_directories : [
|
|
|
80dda4 |
+ top_incdir,
|
|
|
80dda4 |
+ hdr_incdir,
|
|
|
80dda4 |
+ util_incdir,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ link_with : [
|
|
|
80dda4 |
+ libxmlrpc_util,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ dependencies : openssl,
|
|
|
80dda4 |
+ soversion : '1',
|
|
|
80dda4 |
+ version : '1.@0@'.format(version_minor),
|
|
|
80dda4 |
+ install : true,
|
|
|
80dda4 |
+)
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+pkgg.generate(
|
|
|
80dda4 |
+ name : 'xmlrpc_openssl',
|
|
|
80dda4 |
+ description : 'Openssl convenience function from Xmlrpc-c package',
|
|
|
80dda4 |
+ version : meson.project_version(),
|
|
|
80dda4 |
+ requires_private : 'xmlrpc_util',
|
|
|
80dda4 |
+ libraries : libxmlrpc_openssl,
|
|
|
80dda4 |
+ install : true,
|
|
|
80dda4 |
+)
|
|
|
80dda4 |
diff --git a/lib/util/meson.build b/lib/util/meson.build
|
|
|
80dda4 |
new file mode 100644
|
|
|
80dda4 |
index 00000000..4cae4926
|
|
|
80dda4 |
--- /dev/null
|
|
|
80dda4 |
+++ b/lib/util/meson.build
|
|
|
80dda4 |
@@ -0,0 +1,20 @@
|
|
|
80dda4 |
+util_incdir = include_directories('include')
|
|
|
80dda4 |
+util_casprintf_dep = declare_dependency(
|
|
|
80dda4 |
+ include_directories : util_incdir,
|
|
|
80dda4 |
+ sources : 'casprintf.c',
|
|
|
80dda4 |
+)
|
|
|
80dda4 |
+util_dep = declare_dependency(
|
|
|
80dda4 |
+ dependencies : util_casprintf_dep,
|
|
|
80dda4 |
+ sources : [
|
|
|
80dda4 |
+ 'cmdline_parser.c',
|
|
|
80dda4 |
+ 'getoptx.c',
|
|
|
80dda4 |
+ 'string_parser.c',
|
|
|
80dda4 |
+ 'stripcaseeq.c',
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+)
|
|
|
80dda4 |
+if get_option('cplusplus')
|
|
|
80dda4 |
+ util_cpp_dep = declare_dependency(
|
|
|
80dda4 |
+ dependencies : util_dep,
|
|
|
80dda4 |
+ sources : 'cmdline_parser_cpp.cpp',
|
|
|
80dda4 |
+ )
|
|
|
80dda4 |
+endif
|
|
|
80dda4 |
diff --git a/meson.build b/meson.build
|
|
|
80dda4 |
new file mode 100644
|
|
|
80dda4 |
index 00000000..52a0f0eb
|
|
|
80dda4 |
--- /dev/null
|
|
|
80dda4 |
+++ b/meson.build
|
|
|
80dda4 |
@@ -0,0 +1,209 @@
|
|
|
80dda4 |
+project('xmlrpc-c', 'c',
|
|
|
80dda4 |
+ version : '1.51.0',
|
|
|
80dda4 |
+ default_options : [
|
|
|
80dda4 |
+ 'b_asneeded=true',
|
|
|
80dda4 |
+ 'b_lundef=true',
|
|
|
80dda4 |
+ 'warning_level=1',
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ meson_version : '>=0.36.0')
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+version_array = meson.project_version().split('.')
|
|
|
80dda4 |
+version_major = version_array[0].to_int()
|
|
|
80dda4 |
+version_minor = version_array[1].to_int()
|
|
|
80dda4 |
+version_point = version_array[2].to_int()
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+# version.h
|
|
|
80dda4 |
+version_conf = configuration_data()
|
|
|
80dda4 |
+version_conf.set_quoted('XMLRPC_C_VERSION', meson.project_version())
|
|
|
80dda4 |
+version_conf.set('XMLRPC_VERSION_MAJOR', version_major)
|
|
|
80dda4 |
+version_conf.set('XMLRPC_VERSION_MINOR', version_minor)
|
|
|
80dda4 |
+version_conf.set('XMLRPC_VERSION_POINT', version_point)
|
|
|
80dda4 |
+configure_file(output : 'version.h', configuration : version_conf)
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+if get_option('wininet-client') or get_option('libwww-client')
|
|
|
80dda4 |
+ error('only curl-client is implemented yet')
|
|
|
80dda4 |
+endif
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+if get_option('cplusplus')
|
|
|
80dda4 |
+ add_languages('cpp')
|
|
|
80dda4 |
+endif
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+cc = meson.get_compiler('c')
|
|
|
80dda4 |
+cxx = meson.get_compiler('cpp')
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+optflags = [
|
|
|
80dda4 |
+ '-Wno-uninitialized',
|
|
|
80dda4 |
+ '-Wundef',
|
|
|
80dda4 |
+ '-Wno-unknown-pragmas',
|
|
|
80dda4 |
+]
|
|
|
80dda4 |
+cflags = [
|
|
|
80dda4 |
+ '-Wmissing-declarations',
|
|
|
80dda4 |
+ '-Wstrict-prototypes',
|
|
|
80dda4 |
+ '-Wmissing-prototypes',
|
|
|
80dda4 |
+ '-Wimplicit',
|
|
|
80dda4 |
+] + optflags
|
|
|
80dda4 |
+cxxflags = [
|
|
|
80dda4 |
+ '-Wsynth',
|
|
|
80dda4 |
+] + optflags
|
|
|
80dda4 |
+foreach cflag : cflags
|
|
|
80dda4 |
+ if cc.has_argument(cflag)
|
|
|
80dda4 |
+ add_project_arguments(cflag, language : 'c')
|
|
|
80dda4 |
+ endif
|
|
|
80dda4 |
+endforeach
|
|
|
80dda4 |
+foreach cxxflag : cxxflags
|
|
|
80dda4 |
+ if cxx.has_argument(cxxflag)
|
|
|
80dda4 |
+ add_project_arguments(cxxflag, language : 'cpp')
|
|
|
80dda4 |
+ endif
|
|
|
80dda4 |
+endforeach
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+pkgg = import('pkgconfig')
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+if not cc.has_function('vsnprintf')
|
|
|
80dda4 |
+ error('your C library does not provide vsnprintf')
|
|
|
80dda4 |
+endif
|
|
|
80dda4 |
+if not cc.has_header('stdarg.h')
|
|
|
80dda4 |
+ error('stdarg.h is required to build this library')
|
|
|
80dda4 |
+endif
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+conf = configuration_data()
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+check_headers = [
|
|
|
80dda4 |
+ 'wchar.h',
|
|
|
80dda4 |
+ 'sys/filio.h', # Needed by Abyss on Solaris
|
|
|
80dda4 |
+ 'sys/ioctl.h', # Needed by Abyss on Solaris
|
|
|
80dda4 |
+ 'sys/select.h',
|
|
|
80dda4 |
+]
|
|
|
80dda4 |
+check_functions = [
|
|
|
80dda4 |
+ 'wcsncmp', # Unicode function needed by test suites
|
|
|
80dda4 |
+ 'setgroups', # CygWin doesn't provide setgroups
|
|
|
80dda4 |
+ 'asprintf',
|
|
|
80dda4 |
+ 'setenv',
|
|
|
80dda4 |
+ 'strtoll',
|
|
|
80dda4 |
+ 'strtoull',
|
|
|
80dda4 |
+ 'strtoq',
|
|
|
80dda4 |
+ 'strtouq',
|
|
|
80dda4 |
+ '__strtoll',
|
|
|
80dda4 |
+ '__strtoull',
|
|
|
80dda4 |
+ '_strtoui64',
|
|
|
80dda4 |
+ 'pselect', # uclib doesn't have pselect
|
|
|
80dda4 |
+ 'gettimeofday', # Windows doesn't have gettimeofday
|
|
|
80dda4 |
+ 'localtime_r', # Windows doesn't have localtime_r
|
|
|
80dda4 |
+ 'gmtime_r', # Windows doesn't have gmtime_r
|
|
|
80dda4 |
+ 'strcasecmp', # Windows doesn't have strcasecmp
|
|
|
80dda4 |
+ 'stricmp',
|
|
|
80dda4 |
+ '_stricmp',
|
|
|
80dda4 |
+]
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+foreach hdr : check_headers
|
|
|
80dda4 |
+ if cc.has_header(hdr)
|
|
|
80dda4 |
+ conf.set('HAVE_@0@_DEFINE'.format(hdr.to_upper().underscorify()), 1)
|
|
|
80dda4 |
+ else
|
|
|
80dda4 |
+ conf.set('HAVE_@0@_DEFINE'.format(hdr.to_upper().underscorify()), 0)
|
|
|
80dda4 |
+ endif
|
|
|
80dda4 |
+endforeach
|
|
|
80dda4 |
+foreach func : check_functions
|
|
|
80dda4 |
+ if cc.has_function(func)
|
|
|
80dda4 |
+ conf.set('HAVE_@0@_DEFINE'.format(func.to_upper()), 1)
|
|
|
80dda4 |
+ else
|
|
|
80dda4 |
+ conf.set('HAVE_@0@_DEFINE'.format(func.to_upper()), 0)
|
|
|
80dda4 |
+ endif
|
|
|
80dda4 |
+endforeach
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+if not cc.compiles('''
|
|
|
80dda4 |
+#include <stdarg.h>
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+int
|
|
|
80dda4 |
+main ()
|
|
|
80dda4 |
+{
|
|
|
80dda4 |
+ va_list list1, list2;
|
|
|
80dda4 |
+ list1 = list2;
|
|
|
80dda4 |
+ return 0;
|
|
|
80dda4 |
+}
|
|
|
80dda4 |
+ ''')
|
|
|
80dda4 |
+ conf.set('VA_LIST_IS_ARRAY_DEFINE', 1)
|
|
|
80dda4 |
+else
|
|
|
80dda4 |
+ conf.set('VA_LIST_IS_ARRAY_DEFINE', 0)
|
|
|
80dda4 |
+endif
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+if cc.compiles('int x __attribute__((__unused__));')
|
|
|
80dda4 |
+ conf.set('ATTR_UNUSED', '__attribute__((__unused__))')
|
|
|
80dda4 |
+else
|
|
|
80dda4 |
+ conf.set('ATTR_UNUSED', '')
|
|
|
80dda4 |
+endif
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+if host_machine.system() == 'windows'
|
|
|
80dda4 |
+ conf.set('DIRECTORY_SEPARATOR', '\\')
|
|
|
80dda4 |
+else
|
|
|
80dda4 |
+ conf.set('DIRECTORY_SEPARATOR', '/')
|
|
|
80dda4 |
+endif
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+openssl = dependency('openssl', required : get_option('abyss-openssl'))
|
|
|
80dda4 |
+if get_option('abyss-openssl')
|
|
|
80dda4 |
+ conf.set('HAVE_ABYSS_OPENSSL_DEFINE', 1)
|
|
|
80dda4 |
+else
|
|
|
80dda4 |
+ conf.set('HAVE_ABYSS_OPENSSL_DEFINE', 0)
|
|
|
80dda4 |
+endif
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+if get_option('libwww-ssl')
|
|
|
80dda4 |
+ conf.set('HAVE_LIBWWW_SSL_DEFINE', 1)
|
|
|
80dda4 |
+else
|
|
|
80dda4 |
+ conf.set('HAVE_LIBWWW_SSL_DEFINE', 0)
|
|
|
80dda4 |
+endif
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+configure_file(input : 'xmlrpc_config.h.in', output : 'xmlrpc_config.h', configuration : conf)
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+ncurses = cc.find_library('ncurses', required : false)
|
|
|
80dda4 |
+readline = cc.find_library('readline', required : false)
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+build_xmlrpc_pstream = false
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+if not get_option('wininet-client') and not get_option('curl-client') and not get_option('libwww-client')
|
|
|
80dda4 |
+ build_client = false
|
|
|
80dda4 |
+ build_tools = false
|
|
|
80dda4 |
+ message('We are not building any client XML transport, therefore WE WILL NOT BUILD THE CLIENT LIBRARY')
|
|
|
80dda4 |
+else
|
|
|
80dda4 |
+ build_client = true
|
|
|
80dda4 |
+ if ncurses.found() and readline.found()
|
|
|
80dda4 |
+ build_xmlrpc_pstream = true
|
|
|
80dda4 |
+ endif
|
|
|
80dda4 |
+ build_tools = true
|
|
|
80dda4 |
+ # transport_config.h
|
|
|
80dda4 |
+ transport_conf = configuration_data()
|
|
|
80dda4 |
+ if get_option('wininet-client')
|
|
|
80dda4 |
+ transport_conf.set('MUST_BUILD_WININET_CLIENT', 1)
|
|
|
80dda4 |
+ transport_conf.set_quoted('XMLRPC_DEFAULT_TRANSPORT', 'wininet')
|
|
|
80dda4 |
+ else
|
|
|
80dda4 |
+ transport_conf.set('MUST_BUILD_WININET_CLIENT', 0)
|
|
|
80dda4 |
+ endif
|
|
|
80dda4 |
+ if get_option('curl-client')
|
|
|
80dda4 |
+ transport_conf.set('MUST_BUILD_CURL_CLIENT', 1)
|
|
|
80dda4 |
+ transport_conf.set_quoted('XMLRPC_DEFAULT_TRANSPORT', 'curl')
|
|
|
80dda4 |
+ else
|
|
|
80dda4 |
+ transport_conf.set('MUST_BUILD_CURL_CLIENT', 0)
|
|
|
80dda4 |
+ endif
|
|
|
80dda4 |
+ if get_option('libwww-client')
|
|
|
80dda4 |
+ transport_conf.set('MUST_BUILD_LIBWWW_CLIENT', 1)
|
|
|
80dda4 |
+ transport_conf.set_quoted('XMLRPC_DEFAULT_TRANSPORT', 'libwww')
|
|
|
80dda4 |
+ else
|
|
|
80dda4 |
+ transport_conf.set('MUST_BUILD_LIBWWW_CLIENT', 0)
|
|
|
80dda4 |
+ endif
|
|
|
80dda4 |
+ configure_file(input : 'transport_config.h.in', output : 'transport_config.h', configuration : transport_conf)
|
|
|
80dda4 |
+endif
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+threads = dependency('threads')
|
|
|
80dda4 |
+socket = cc.find_library('socket', required : false)
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+if get_option('libxml2-backend')
|
|
|
80dda4 |
+ libxml2 = dependency('libxml-2.0')
|
|
|
80dda4 |
+endif
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+top_incdir = include_directories('.')
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+subdir('include')
|
|
|
80dda4 |
+subdir('lib')
|
|
|
80dda4 |
+subdir('src')
|
|
|
80dda4 |
+if build_tools
|
|
|
80dda4 |
+ subdir('tools')
|
|
|
80dda4 |
+endif
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+install_data('xmlrpc-c-config', install_dir : get_option('bindir'))
|
|
|
80dda4 |
diff --git a/meson_options.txt b/meson_options.txt
|
|
|
80dda4 |
new file mode 100644
|
|
|
80dda4 |
index 00000000..4e2c1607
|
|
|
80dda4 |
--- /dev/null
|
|
|
80dda4 |
+++ b/meson_options.txt
|
|
|
80dda4 |
@@ -0,0 +1,13 @@
|
|
|
80dda4 |
+option('wininet-client', type : 'boolean', value : false, description : 'Build the Wininet client XML transport')
|
|
|
80dda4 |
+option('curl-client', type : 'boolean', value : true, description : 'Build the Curl client XML transport')
|
|
|
80dda4 |
+option('libwww-client', type : 'boolean', value : false, description : 'Build the Libwww client XML transport')
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+option('abyss-server', type : 'boolean', value : true, description : 'Build the Abyss server module')
|
|
|
80dda4 |
+option('abyss-threads', type: 'boolean', value : true, description : 'Use fork in Abyss instead of pthreads')
|
|
|
80dda4 |
+option('abyss-openssl', type: 'boolean', value : true, description : 'Build Abyss Openssl channel function')
|
|
|
80dda4 |
+option('cgi-server', type : 'boolean', value : true, description : 'Build the CGI server module')
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+option('cplusplus', type : 'boolean', value : true, description : 'Build the C++ wrapper classes or tools')
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+option('libwww-ssl', type : 'boolean', value : false, description : 'Use SSL with libwww')
|
|
|
80dda4 |
+option('libxml2-backend', type : 'boolean', value : false, description : 'Use libxml2 instead of built-in expat')
|
|
|
80dda4 |
diff --git a/src/cpp/meson.build b/src/cpp/meson.build
|
|
|
80dda4 |
new file mode 100644
|
|
|
80dda4 |
index 00000000..f0fd74f6
|
|
|
80dda4 |
--- /dev/null
|
|
|
80dda4 |
+++ b/src/cpp/meson.build
|
|
|
80dda4 |
@@ -0,0 +1,223 @@
|
|
|
80dda4 |
+libxmlrpc_cpp = library(
|
|
|
80dda4 |
+ 'xmlrpc_cpp',
|
|
|
80dda4 |
+ sources : [
|
|
|
80dda4 |
+ 'XmlRpcCpp.cpp',
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ include_directories : [
|
|
|
80dda4 |
+ hdr_incdir,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ link_with : [
|
|
|
80dda4 |
+ libxmlrpc,
|
|
|
80dda4 |
+ libxmlrpc_util,
|
|
|
80dda4 |
+ libxmlrpc_server,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ soversion : 8,
|
|
|
80dda4 |
+ version : '8.@0@'.format(version_minor),
|
|
|
80dda4 |
+ install : true,
|
|
|
80dda4 |
+)
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+libxmlrpcpp = library(
|
|
|
80dda4 |
+ 'xmlrpc++',
|
|
|
80dda4 |
+ sources : [
|
|
|
80dda4 |
+ 'fault.cpp',
|
|
|
80dda4 |
+ 'global.cpp',
|
|
|
80dda4 |
+ 'outcome.cpp',
|
|
|
80dda4 |
+ 'param_list.cpp',
|
|
|
80dda4 |
+ 'value.cpp',
|
|
|
80dda4 |
+ 'xml.cpp',
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ include_directories : [
|
|
|
80dda4 |
+ top_incdir,
|
|
|
80dda4 |
+ hdr_incdir,
|
|
|
80dda4 |
+ util_incdir,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ link_with : [
|
|
|
80dda4 |
+ libxmlrpc,
|
|
|
80dda4 |
+ libxmlrpc_util,
|
|
|
80dda4 |
+ libxmlrpc_utilpp,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ soversion : 8,
|
|
|
80dda4 |
+ version : '8.@0@'.format(version_minor),
|
|
|
80dda4 |
+ install : true,
|
|
|
80dda4 |
+)
|
|
|
80dda4 |
+pkgg.generate(
|
|
|
80dda4 |
+ name : 'xmlrpc++',
|
|
|
80dda4 |
+ description : 'Xmlrpc-c basic XML-RPC C++ library',
|
|
|
80dda4 |
+ version : meson.project_version(),
|
|
|
80dda4 |
+ requires_private : ['xmlrpc', 'xmlrpc_util', 'xmlrpc_util++'],
|
|
|
80dda4 |
+ libraries : libxmlrpcpp,
|
|
|
80dda4 |
+ install : true,
|
|
|
80dda4 |
+)
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+libxmlrpc_serverpp = library(
|
|
|
80dda4 |
+ 'xmlrpc_server++',
|
|
|
80dda4 |
+ sources : [
|
|
|
80dda4 |
+ 'registry.cpp',
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ include_directories : [
|
|
|
80dda4 |
+ hdr_incdir,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ link_with : [
|
|
|
80dda4 |
+ libxmlrpc,
|
|
|
80dda4 |
+ libxmlrpcpp,
|
|
|
80dda4 |
+ libxmlrpc_server,
|
|
|
80dda4 |
+ libxmlrpc_util,
|
|
|
80dda4 |
+ libxmlrpc_utilpp,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ soversion : 8,
|
|
|
80dda4 |
+ version : '8.@0@'.format(version_minor),
|
|
|
80dda4 |
+ install : true,
|
|
|
80dda4 |
+)
|
|
|
80dda4 |
+pkgg.generate(
|
|
|
80dda4 |
+ name : 'xmlrpc_server++',
|
|
|
80dda4 |
+ description : 'Xmlrpc-c XML-RPC server C++ library',
|
|
|
80dda4 |
+ version : meson.project_version(),
|
|
|
80dda4 |
+ requires_private : ['xmlrpc', 'xmlrpc++', 'xmlrpc_server', 'xmlrpc_util', 'xmlrpc_util++'],
|
|
|
80dda4 |
+ libraries : libxmlrpc_serverpp,
|
|
|
80dda4 |
+ install : true,
|
|
|
80dda4 |
+)
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+if get_option('abyss-server')
|
|
|
80dda4 |
+ libxmlrpc_server_abysspp = library(
|
|
|
80dda4 |
+ 'xmlrpc_server_abyss++',
|
|
|
80dda4 |
+ sources : [
|
|
|
80dda4 |
+ 'server_abyss.cpp',
|
|
|
80dda4 |
+ 'abyss_reqhandler_xmlrpc.cpp',
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ include_directories : [
|
|
|
80dda4 |
+ top_incdir,
|
|
|
80dda4 |
+ hdr_incdir,
|
|
|
80dda4 |
+ util_incdir,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ link_with : [
|
|
|
80dda4 |
+ libxmlrpc_abyss,
|
|
|
80dda4 |
+ libxmlrpc_abysspp,
|
|
|
80dda4 |
+ libxmlrpc_serverpp,
|
|
|
80dda4 |
+ libxmlrpc_server_abyss,
|
|
|
80dda4 |
+ libxmlrpc_util,
|
|
|
80dda4 |
+ libxmlrpc_utilpp,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ soversion : 8,
|
|
|
80dda4 |
+ version : '8.@0@'.format(version_minor),
|
|
|
80dda4 |
+ install : true,
|
|
|
80dda4 |
+ )
|
|
|
80dda4 |
+ pkgg.generate(
|
|
|
80dda4 |
+ name : 'xmlrpc_server_abyss++',
|
|
|
80dda4 |
+ description : 'Xmlrpc-c Abyss XML-RPC server C++ library',
|
|
|
80dda4 |
+ version : meson.project_version(),
|
|
|
80dda4 |
+ requires_private : ['xmlrpc_abyss', 'xmlrpc_abyss++', 'xmlrpc_server++', 'xmlrpc_server_abyss', 'xmlrpc_util', 'xmlrpc_util++'],
|
|
|
80dda4 |
+ libraries : libxmlrpc_server_abysspp,
|
|
|
80dda4 |
+ install : true,
|
|
|
80dda4 |
+ )
|
|
|
80dda4 |
+endif
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+if get_option('cgi-server')
|
|
|
80dda4 |
+ libxmlrpc_server_cgipp = library(
|
|
|
80dda4 |
+ 'xmlrpc_server_cgi++',
|
|
|
80dda4 |
+ sources : [
|
|
|
80dda4 |
+ 'server_cgi.cpp',
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ include_directories : [
|
|
|
80dda4 |
+ top_incdir,
|
|
|
80dda4 |
+ hdr_incdir,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ link_with : [
|
|
|
80dda4 |
+ libxmlrpc,
|
|
|
80dda4 |
+ libxmlrpcpp,
|
|
|
80dda4 |
+ libxmlrpc_serverpp,
|
|
|
80dda4 |
+ libxmlrpc_utilpp,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ soversion : 8,
|
|
|
80dda4 |
+ version : '8.@0@'.format(version_minor),
|
|
|
80dda4 |
+ install : true,
|
|
|
80dda4 |
+ )
|
|
|
80dda4 |
+endif
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+libxmlrpc_packetsocket = library(
|
|
|
80dda4 |
+ 'xmlrpc_packetsocket',
|
|
|
80dda4 |
+ sources : [
|
|
|
80dda4 |
+ 'packetsocket.cpp',
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ include_directories : [
|
|
|
80dda4 |
+ top_incdir,
|
|
|
80dda4 |
+ hdr_incdir,
|
|
|
80dda4 |
+ util_incdir,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ link_with : [
|
|
|
80dda4 |
+ libxmlrpcpp,
|
|
|
80dda4 |
+ libxmlrpc_utilpp,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ soversion : 8,
|
|
|
80dda4 |
+ version : '8.@0@'.format(version_minor),
|
|
|
80dda4 |
+ install : true,
|
|
|
80dda4 |
+)
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+if build_xmlrpc_pstream
|
|
|
80dda4 |
+ libxmlrpc_server_pstreampp = library(
|
|
|
80dda4 |
+ 'xmlrpc_server_pstream++',
|
|
|
80dda4 |
+ sources : [
|
|
|
80dda4 |
+ 'server_pstream_conn.cpp',
|
|
|
80dda4 |
+ 'server_pstream.cpp',
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ include_directories : [
|
|
|
80dda4 |
+ top_incdir,
|
|
|
80dda4 |
+ hdr_incdir,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ link_with : [
|
|
|
80dda4 |
+ libxmlrpcpp,
|
|
|
80dda4 |
+ libxmlrpc_serverpp,
|
|
|
80dda4 |
+ libxmlrpc_packetsocket,
|
|
|
80dda4 |
+ libxmlrpc_utilpp,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ soversion : 8,
|
|
|
80dda4 |
+ version : '8.@0@'.format(version_minor),
|
|
|
80dda4 |
+ install : true,
|
|
|
80dda4 |
+ )
|
|
|
80dda4 |
+ pkgg.generate(
|
|
|
80dda4 |
+ name : 'xmlrpc_server_pstream',
|
|
|
80dda4 |
+ description : 'Xmlrpc-c packet-stream XML-RPC server library',
|
|
|
80dda4 |
+ version : meson.project_version(),
|
|
|
80dda4 |
+ requires_private : ['xmlrpc++', 'xmlrpc_server++', 'xmlrpc_util++'],
|
|
|
80dda4 |
+ libraries : [libxmlrpc_server_pstreampp, libxmlrpc_packetsocket],
|
|
|
80dda4 |
+ install : true,
|
|
|
80dda4 |
+ )
|
|
|
80dda4 |
+endif
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+if build_client
|
|
|
80dda4 |
+ libxmlrpc_clientpp = library(
|
|
|
80dda4 |
+ 'xmlrpc_client++',
|
|
|
80dda4 |
+ sources : [
|
|
|
80dda4 |
+ 'client.cpp',
|
|
|
80dda4 |
+ 'client_simple.cpp',
|
|
|
80dda4 |
+ 'curl.cpp',
|
|
|
80dda4 |
+ 'libwww.cpp',
|
|
|
80dda4 |
+ 'wininet.cpp',
|
|
|
80dda4 |
+ 'pstream.cpp',
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ include_directories : [
|
|
|
80dda4 |
+ top_incdir,
|
|
|
80dda4 |
+ hdr_incdir,
|
|
|
80dda4 |
+ util_incdir,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ link_with : [
|
|
|
80dda4 |
+ libxmlrpc,
|
|
|
80dda4 |
+ libxmlrpcpp,
|
|
|
80dda4 |
+ libxmlrpc_client,
|
|
|
80dda4 |
+ libxmlrpc_packetsocket,
|
|
|
80dda4 |
+ libxmlrpc_util,
|
|
|
80dda4 |
+ libxmlrpc_utilpp,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ soversion : 8,
|
|
|
80dda4 |
+ version : '8.@0@'.format(version_minor),
|
|
|
80dda4 |
+ install : true,
|
|
|
80dda4 |
+ )
|
|
|
80dda4 |
+ pkgg.generate(
|
|
|
80dda4 |
+ name : 'xmlrpc_client++',
|
|
|
80dda4 |
+ description : 'Xmlrpc-c XML-RPC client C++ library',
|
|
|
80dda4 |
+ version : meson.project_version(),
|
|
|
80dda4 |
+ requires_private : ['xmlrpc', 'xmlrpc++', 'xmlrpc_client', 'xmlrpc_util', 'xmlrpc_util++'],
|
|
|
80dda4 |
+ libraries : libxmlrpc_clientpp,
|
|
|
80dda4 |
+ libraries_private : libxmlrpc_packetsocket,
|
|
|
80dda4 |
+ install : true,
|
|
|
80dda4 |
+ )
|
|
|
80dda4 |
+endif
|
|
|
80dda4 |
diff --git a/src/meson.build b/src/meson.build
|
|
|
80dda4 |
new file mode 100644
|
|
|
80dda4 |
index 00000000..8dd22486
|
|
|
80dda4 |
--- /dev/null
|
|
|
80dda4 |
+++ b/src/meson.build
|
|
|
80dda4 |
@@ -0,0 +1,190 @@
|
|
|
80dda4 |
+xmlrpc_deps = []
|
|
|
80dda4 |
+xmlrpc_incs = []
|
|
|
80dda4 |
+xmlrpc_libs = [libxmlrpc_util]
|
|
|
80dda4 |
+xmlrpc_pkgconfig_req = ['xmlrpc_util']
|
|
|
80dda4 |
+# TODO: handle clients
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+if get_option('libxml2-backend')
|
|
|
80dda4 |
+ xmlrpc_xml_parser = 'xmlrpc_libxml2.c'
|
|
|
80dda4 |
+ xmlrpc_deps += [libxml2]
|
|
|
80dda4 |
+ xmlrpc_pkgconfig_req += ['libxml-2.0']
|
|
|
80dda4 |
+else
|
|
|
80dda4 |
+ xmlrpc_xml_parser = 'xmlrpc_expat.c'
|
|
|
80dda4 |
+ xmlrpc_incs += [xmlparse_incdir]
|
|
|
80dda4 |
+ xmlrpc_libs += [libxmlrpc_xmlparse]
|
|
|
80dda4 |
+ xmlrpc_pkgconfig_req += ['xmlrpc_expat']
|
|
|
80dda4 |
+endif
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+libxmlrpc = library(
|
|
|
80dda4 |
+ 'xmlrpc',
|
|
|
80dda4 |
+ sources : [
|
|
|
80dda4 |
+ 'base_global.c',
|
|
|
80dda4 |
+ 'double.c',
|
|
|
80dda4 |
+ 'json.c',
|
|
|
80dda4 |
+ 'parse_datetime.c',
|
|
|
80dda4 |
+ 'parse_value.c',
|
|
|
80dda4 |
+ 'resource.c',
|
|
|
80dda4 |
+ 'trace.c',
|
|
|
80dda4 |
+ 'version.c',
|
|
|
80dda4 |
+ 'xmlrpc_data.c',
|
|
|
80dda4 |
+ 'xmlrpc_datetime.c',
|
|
|
80dda4 |
+ 'xmlrpc_string.c',
|
|
|
80dda4 |
+ 'xmlrpc_array.c',
|
|
|
80dda4 |
+ 'xmlrpc_struct.c',
|
|
|
80dda4 |
+ 'xmlrpc_build.c',
|
|
|
80dda4 |
+ 'xmlrpc_decompose.c',
|
|
|
80dda4 |
+ xmlrpc_xml_parser,
|
|
|
80dda4 |
+ 'xmlrpc_parse.c',
|
|
|
80dda4 |
+ 'xmlrpc_serialize.c',
|
|
|
80dda4 |
+ 'xmlrpc_authcookie.c',
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ include_directories : [
|
|
|
80dda4 |
+ top_incdir,
|
|
|
80dda4 |
+ hdr_incdir,
|
|
|
80dda4 |
+ util_incdir,
|
|
|
80dda4 |
+ ] + xmlrpc_incs,
|
|
|
80dda4 |
+ link_with : xmlrpc_libs,
|
|
|
80dda4 |
+ dependencies : xmlrpc_deps,
|
|
|
80dda4 |
+ soversion : 3,
|
|
|
80dda4 |
+ version : '3.@0@'.format(version_minor),
|
|
|
80dda4 |
+ install : true,
|
|
|
80dda4 |
+)
|
|
|
80dda4 |
+pkgg.generate(
|
|
|
80dda4 |
+ name : 'xmlrpc',
|
|
|
80dda4 |
+ description : 'Xmlrpc-c basic XML-RPC library',
|
|
|
80dda4 |
+ version : meson.project_version(),
|
|
|
80dda4 |
+ requires_private : xmlrpc_pkgconfig_req,
|
|
|
80dda4 |
+ libraries : libxmlrpc,
|
|
|
80dda4 |
+ install : true,
|
|
|
80dda4 |
+)
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+libxmlrpc_server = library(
|
|
|
80dda4 |
+ 'xmlrpc_server',
|
|
|
80dda4 |
+ sources : [
|
|
|
80dda4 |
+ 'registry.c',
|
|
|
80dda4 |
+ 'method.c',
|
|
|
80dda4 |
+ 'system_method.c',
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ include_directories : [
|
|
|
80dda4 |
+ top_incdir,
|
|
|
80dda4 |
+ hdr_incdir,
|
|
|
80dda4 |
+ util_incdir,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ link_with : [
|
|
|
80dda4 |
+ libxmlrpc,
|
|
|
80dda4 |
+ libxmlrpc_util,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ soversion : 3,
|
|
|
80dda4 |
+ version : '3.@0@'.format(version_minor),
|
|
|
80dda4 |
+ install : true,
|
|
|
80dda4 |
+)
|
|
|
80dda4 |
+pkgg.generate(
|
|
|
80dda4 |
+ name : 'xmlrpc_server',
|
|
|
80dda4 |
+ description : 'Xmlrpc-c XML-RPC server library',
|
|
|
80dda4 |
+ version : meson.project_version(),
|
|
|
80dda4 |
+ requires_private : ['xmlrpc', 'xmlrpc_util'],
|
|
|
80dda4 |
+ libraries : libxmlrpc_server,
|
|
|
80dda4 |
+ install : true,
|
|
|
80dda4 |
+)
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+if get_option('abyss-server')
|
|
|
80dda4 |
+ libxmlrpc_server_abyss = library(
|
|
|
80dda4 |
+ 'xmlrpc_server_abyss',
|
|
|
80dda4 |
+ sources : [
|
|
|
80dda4 |
+ 'xmlrpc_server_abyss.c',
|
|
|
80dda4 |
+ 'abyss_handler.c',
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ include_directories : [
|
|
|
80dda4 |
+ top_incdir,
|
|
|
80dda4 |
+ hdr_incdir,
|
|
|
80dda4 |
+ util_incdir,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ link_with : [
|
|
|
80dda4 |
+ libxmlrpc,
|
|
|
80dda4 |
+ libxmlrpc_server,
|
|
|
80dda4 |
+ libxmlrpc_abyss,
|
|
|
80dda4 |
+ libxmlrpc_util,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ soversion : 3,
|
|
|
80dda4 |
+ version : '3.@0@'.format(version_minor),
|
|
|
80dda4 |
+ install : true,
|
|
|
80dda4 |
+ )
|
|
|
80dda4 |
+ pkgg.generate(
|
|
|
80dda4 |
+ name : 'xmlrpc_server_abyss',
|
|
|
80dda4 |
+ description : 'Xmlrpc-c Abyss XML-RPC server library',
|
|
|
80dda4 |
+ version : meson.project_version(),
|
|
|
80dda4 |
+ requires_private : ['xmlrpc', 'xmlrpc_server', 'xmlrpc_abyss', 'xmlrpc_util'],
|
|
|
80dda4 |
+ libraries : libxmlrpc_server_abyss,
|
|
|
80dda4 |
+ install : true,
|
|
|
80dda4 |
+ )
|
|
|
80dda4 |
+endif
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+if get_option('cgi-server')
|
|
|
80dda4 |
+ libxmlrpc_server_cgi = library(
|
|
|
80dda4 |
+ 'xmlrpc_server_cgi',
|
|
|
80dda4 |
+ sources : [
|
|
|
80dda4 |
+ 'xmlrpc_server_cgi.c',
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ include_directories : [
|
|
|
80dda4 |
+ top_incdir,
|
|
|
80dda4 |
+ hdr_incdir,
|
|
|
80dda4 |
+ util_incdir,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ link_with : [
|
|
|
80dda4 |
+ libxmlrpc,
|
|
|
80dda4 |
+ libxmlrpc_server,
|
|
|
80dda4 |
+ libxmlrpc_util,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ soversion : 3,
|
|
|
80dda4 |
+ version : '3.@0@'.format(version_minor),
|
|
|
80dda4 |
+ install : true,
|
|
|
80dda4 |
+ )
|
|
|
80dda4 |
+ pkgg.generate(
|
|
|
80dda4 |
+ name : 'xmlrpc_server_cgi',
|
|
|
80dda4 |
+ description : 'Xmlrpc-c CGI XML-RPC server library',
|
|
|
80dda4 |
+ version : meson.project_version(),
|
|
|
80dda4 |
+ requires_private : ['xmlrpc', 'xmlrpc_server', 'xmlrpc_util'],
|
|
|
80dda4 |
+ libraries : libxmlrpc_server_cgi,
|
|
|
80dda4 |
+ install : true,
|
|
|
80dda4 |
+ )
|
|
|
80dda4 |
+endif
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+if build_client
|
|
|
80dda4 |
+ xmlrpc_client_transports = []
|
|
|
80dda4 |
+ if get_option('curl-client')
|
|
|
80dda4 |
+ xmlrpc_client_transports += [xmlrpc_curl_transport]
|
|
|
80dda4 |
+ endif
|
|
|
80dda4 |
+ libxmlrpc_client = library(
|
|
|
80dda4 |
+ 'xmlrpc_client',
|
|
|
80dda4 |
+ sources : [
|
|
|
80dda4 |
+ 'xmlrpc_client.c',
|
|
|
80dda4 |
+ 'xmlrpc_client_global.c',
|
|
|
80dda4 |
+ 'xmlrpc_server_info.c',
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ include_directories : [
|
|
|
80dda4 |
+ top_incdir,
|
|
|
80dda4 |
+ hdr_incdir,
|
|
|
80dda4 |
+ util_incdir,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ link_with : [
|
|
|
80dda4 |
+ libxmlrpc,
|
|
|
80dda4 |
+ libxmlrpc_util,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ dependencies : xmlrpc_client_transports,
|
|
|
80dda4 |
+ soversion : 3,
|
|
|
80dda4 |
+ version : '3.@0@'.format(version_minor),
|
|
|
80dda4 |
+ install : true,
|
|
|
80dda4 |
+ )
|
|
|
80dda4 |
+ pkgg.generate(
|
|
|
80dda4 |
+ name : 'xmlrpc_client',
|
|
|
80dda4 |
+ description : 'Xmlrpc-c XML-RPC client library',
|
|
|
80dda4 |
+ version : meson.project_version(),
|
|
|
80dda4 |
+ requires_private : ['xmlrpc', 'xmlrpc_util'],
|
|
|
80dda4 |
+ libraries : libxmlrpc_client,
|
|
|
80dda4 |
+ install : true,
|
|
|
80dda4 |
+ )
|
|
|
80dda4 |
+endif
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+if get_option('cplusplus')
|
|
|
80dda4 |
+ subdir('cpp')
|
|
|
80dda4 |
+endif
|
|
|
80dda4 |
diff --git a/tools/lib/meson.build b/tools/lib/meson.build
|
|
|
80dda4 |
new file mode 100644
|
|
|
80dda4 |
index 00000000..fc6929b8
|
|
|
80dda4 |
--- /dev/null
|
|
|
80dda4 |
+++ b/tools/lib/meson.build
|
|
|
80dda4 |
@@ -0,0 +1,5 @@
|
|
|
80dda4 |
+dumpvalue = declare_dependency(
|
|
|
80dda4 |
+ include_directories : include_directories('include'),
|
|
|
80dda4 |
+ sources : 'dumpvalue.c',
|
|
|
80dda4 |
+ link_with : [libxmlrpc_util, libxmlrpc],
|
|
|
80dda4 |
+)
|
|
|
80dda4 |
diff --git a/tools/meson.build b/tools/meson.build
|
|
|
80dda4 |
new file mode 100644
|
|
|
80dda4 |
index 00000000..f48a28f9
|
|
|
80dda4 |
--- /dev/null
|
|
|
80dda4 |
+++ b/tools/meson.build
|
|
|
80dda4 |
@@ -0,0 +1,17 @@
|
|
|
80dda4 |
+subdir('lib')
|
|
|
80dda4 |
+subdir('xml')
|
|
|
80dda4 |
+if build_client
|
|
|
80dda4 |
+ subdir('xmlrpc')
|
|
|
80dda4 |
+ subdir('xmlrpc_transport')
|
|
|
80dda4 |
+ if get_option('cplusplus')
|
|
|
80dda4 |
+ subdir('xml-rpc-api2cpp')
|
|
|
80dda4 |
+ subdir('xml-rpc-api2txt')
|
|
|
80dda4 |
+ subdir('xmlrpc_cpp_proxy')
|
|
|
80dda4 |
+ if build_xmlrpc_pstream
|
|
|
80dda4 |
+ subdir('xmlrpc_pstream')
|
|
|
80dda4 |
+ endif
|
|
|
80dda4 |
+ endif
|
|
|
80dda4 |
+endif
|
|
|
80dda4 |
+if get_option('cplusplus')
|
|
|
80dda4 |
+ subdir('xmlrpc_dumpserver')
|
|
|
80dda4 |
+endif
|
|
|
80dda4 |
diff --git a/tools/xml-rpc-api2cpp/meson.build b/tools/xml-rpc-api2cpp/meson.build
|
|
|
80dda4 |
new file mode 100644
|
|
|
80dda4 |
index 00000000..ec01212f
|
|
|
80dda4 |
--- /dev/null
|
|
|
80dda4 |
+++ b/tools/xml-rpc-api2cpp/meson.build
|
|
|
80dda4 |
@@ -0,0 +1,21 @@
|
|
|
80dda4 |
+executable(
|
|
|
80dda4 |
+ 'xml-rpc-api2cpp',
|
|
|
80dda4 |
+ sources : [
|
|
|
80dda4 |
+ 'xml-rpc-api2cpp.cpp',
|
|
|
80dda4 |
+ 'DataType.cpp',
|
|
|
80dda4 |
+ 'XmlRpcFunction.cpp',
|
|
|
80dda4 |
+ 'XmlRpcClass.cpp',
|
|
|
80dda4 |
+ 'SystemProxy.cpp',
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ include_directories : [
|
|
|
80dda4 |
+ hdr_incdir,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ link_with : [
|
|
|
80dda4 |
+ libxmlrpc,
|
|
|
80dda4 |
+ libxmlrpc_client,
|
|
|
80dda4 |
+ libxmlrpc_cpp,
|
|
|
80dda4 |
+ libxmlrpc_util,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ install : true,
|
|
|
80dda4 |
+)
|
|
|
80dda4 |
+install_man('xml-rpc-api2cpp.1')
|
|
|
80dda4 |
diff --git a/tools/xml-rpc-api2txt/meson.build b/tools/xml-rpc-api2txt/meson.build
|
|
|
80dda4 |
new file mode 100644
|
|
|
80dda4 |
index 00000000..2a0a61e8
|
|
|
80dda4 |
--- /dev/null
|
|
|
80dda4 |
+++ b/tools/xml-rpc-api2txt/meson.build
|
|
|
80dda4 |
@@ -0,0 +1,2 @@
|
|
|
80dda4 |
+install_data('xml-rpc-api2txt', install_dir : get_option('bindir'))
|
|
|
80dda4 |
+install_man('xml-rpc-api2txt.1')
|
|
|
80dda4 |
diff --git a/tools/xml/meson.build b/tools/xml/meson.build
|
|
|
80dda4 |
new file mode 100644
|
|
|
80dda4 |
index 00000000..2d856c60
|
|
|
80dda4 |
--- /dev/null
|
|
|
80dda4 |
+++ b/tools/xml/meson.build
|
|
|
80dda4 |
@@ -0,0 +1,15 @@
|
|
|
80dda4 |
+executable(
|
|
|
80dda4 |
+ 'xmlrpc_parsecall',
|
|
|
80dda4 |
+ sources : [
|
|
|
80dda4 |
+ 'xmlrpc_parsecall.c',
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ dependencies : [
|
|
|
80dda4 |
+ util_casprintf_dep,
|
|
|
80dda4 |
+ dumpvalue,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ include_directories : [
|
|
|
80dda4 |
+ top_incdir,
|
|
|
80dda4 |
+ hdr_incdir,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ install : true,
|
|
|
80dda4 |
+)
|
|
|
80dda4 |
diff --git a/tools/xmlrpc/meson.build b/tools/xmlrpc/meson.build
|
|
|
80dda4 |
new file mode 100644
|
|
|
80dda4 |
index 00000000..e1e8d552
|
|
|
80dda4 |
--- /dev/null
|
|
|
80dda4 |
+++ b/tools/xmlrpc/meson.build
|
|
|
80dda4 |
@@ -0,0 +1,20 @@
|
|
|
80dda4 |
+executable(
|
|
|
80dda4 |
+ 'xmlrpc',
|
|
|
80dda4 |
+ sources : [
|
|
|
80dda4 |
+ 'xmlrpc.c',
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ dependencies : [
|
|
|
80dda4 |
+ dumpvalue,
|
|
|
80dda4 |
+ util_dep,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ include_directories : [
|
|
|
80dda4 |
+ top_incdir,
|
|
|
80dda4 |
+ hdr_incdir,
|
|
|
80dda4 |
+ util_incdir,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ link_with : [
|
|
|
80dda4 |
+ libxmlrpc,
|
|
|
80dda4 |
+ libxmlrpc_client,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ install : true,
|
|
|
80dda4 |
+)
|
|
|
80dda4 |
diff --git a/tools/xmlrpc_cpp_proxy/meson.build b/tools/xmlrpc_cpp_proxy/meson.build
|
|
|
80dda4 |
new file mode 100644
|
|
|
80dda4 |
index 00000000..f3fc9988
|
|
|
80dda4 |
--- /dev/null
|
|
|
80dda4 |
+++ b/tools/xmlrpc_cpp_proxy/meson.build
|
|
|
80dda4 |
@@ -0,0 +1,19 @@
|
|
|
80dda4 |
+executable(
|
|
|
80dda4 |
+ 'xmlrpc_cpp_proxy',
|
|
|
80dda4 |
+ sources : [
|
|
|
80dda4 |
+ 'xmlrpc_cpp_proxy.cpp',
|
|
|
80dda4 |
+ 'xmlrpcMethod.cpp',
|
|
|
80dda4 |
+ 'xmlrpcType.cpp',
|
|
|
80dda4 |
+ 'proxyClass.cpp',
|
|
|
80dda4 |
+ 'systemProxy.cpp',
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ include_directories : [
|
|
|
80dda4 |
+ hdr_incdir,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ link_with : [
|
|
|
80dda4 |
+ libxmlrpcpp,
|
|
|
80dda4 |
+ libxmlrpc_clientpp,
|
|
|
80dda4 |
+ libxmlrpc_utilpp,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ install : true,
|
|
|
80dda4 |
+)
|
|
|
80dda4 |
diff --git a/tools/xmlrpc_dumpserver/meson.build b/tools/xmlrpc_dumpserver/meson.build
|
|
|
80dda4 |
new file mode 100644
|
|
|
80dda4 |
index 00000000..b7aa7cfc
|
|
|
80dda4 |
--- /dev/null
|
|
|
80dda4 |
+++ b/tools/xmlrpc_dumpserver/meson.build
|
|
|
80dda4 |
@@ -0,0 +1,23 @@
|
|
|
80dda4 |
+executable(
|
|
|
80dda4 |
+ 'xmlrpc_dumpserver',
|
|
|
80dda4 |
+ sources : [
|
|
|
80dda4 |
+ 'xmlrpc_dumpserver.c',
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ include_directories : [
|
|
|
80dda4 |
+ top_incdir,
|
|
|
80dda4 |
+ hdr_incdir,
|
|
|
80dda4 |
+ util_incdir,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ link_with : [
|
|
|
80dda4 |
+ libxmlrpc,
|
|
|
80dda4 |
+ libxmlrpc_server,
|
|
|
80dda4 |
+ libxmlrpc_server_abyss,
|
|
|
80dda4 |
+ libxmlrpc_util,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ dependencies : [
|
|
|
80dda4 |
+ util_dep,
|
|
|
80dda4 |
+ util_casprintf_dep,
|
|
|
80dda4 |
+ dumpvalue,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ install : true,
|
|
|
80dda4 |
+)
|
|
|
80dda4 |
diff --git a/tools/xmlrpc_pstream/meson.build b/tools/xmlrpc_pstream/meson.build
|
|
|
80dda4 |
new file mode 100644
|
|
|
80dda4 |
index 00000000..9cd3eb85
|
|
|
80dda4 |
--- /dev/null
|
|
|
80dda4 |
+++ b/tools/xmlrpc_pstream/meson.build
|
|
|
80dda4 |
@@ -0,0 +1,21 @@
|
|
|
80dda4 |
+executable(
|
|
|
80dda4 |
+ 'xmlrpc_pstream',
|
|
|
80dda4 |
+ sources : [
|
|
|
80dda4 |
+ 'xmlrpc_pstream.cpp',
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ dependencies : [
|
|
|
80dda4 |
+ dumpvalue,
|
|
|
80dda4 |
+ util_cpp_dep,
|
|
|
80dda4 |
+ readline,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ include_directories : [
|
|
|
80dda4 |
+ top_incdir,
|
|
|
80dda4 |
+ hdr_incdir,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ link_with : [
|
|
|
80dda4 |
+ libxmlrpcpp,
|
|
|
80dda4 |
+ libxmlrpc_clientpp,
|
|
|
80dda4 |
+ libxmlrpc_utilpp,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ install : true,
|
|
|
80dda4 |
+)
|
|
|
80dda4 |
diff --git a/tools/xmlrpc_transport/meson.build b/tools/xmlrpc_transport/meson.build
|
|
|
80dda4 |
new file mode 100644
|
|
|
80dda4 |
index 00000000..cbb6f835
|
|
|
80dda4 |
--- /dev/null
|
|
|
80dda4 |
+++ b/tools/xmlrpc_transport/meson.build
|
|
|
80dda4 |
@@ -0,0 +1,18 @@
|
|
|
80dda4 |
+executable(
|
|
|
80dda4 |
+ 'xmlrpc_transport',
|
|
|
80dda4 |
+ sources : [
|
|
|
80dda4 |
+ 'xmlrpc_transport.c',
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ dependencies : [
|
|
|
80dda4 |
+ util_dep,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ include_directories : [
|
|
|
80dda4 |
+ top_incdir,
|
|
|
80dda4 |
+ hdr_incdir,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ link_with : [
|
|
|
80dda4 |
+ libxmlrpc_client,
|
|
|
80dda4 |
+ libxmlrpc_util,
|
|
|
80dda4 |
+ ],
|
|
|
80dda4 |
+ install : true,
|
|
|
80dda4 |
+)
|
|
|
80dda4 |
diff --git a/transport_config.h.in b/transport_config.h.in
|
|
|
80dda4 |
new file mode 100644
|
|
|
80dda4 |
index 00000000..687fdaf2
|
|
|
80dda4 |
--- /dev/null
|
|
|
80dda4 |
+++ b/transport_config.h.in
|
|
|
80dda4 |
@@ -0,0 +1,4 @@
|
|
|
80dda4 |
+#define MUST_BUILD_WININET_CLIENT @MUST_BUILD_WININET_CLIENT@
|
|
|
80dda4 |
+#define MUST_BUILD_CURL_CLIENT @MUST_BUILD_CURL_CLIENT@
|
|
|
80dda4 |
+#define MUST_BUILD_LIBWWW_CLIENT @MUST_BUILD_LIBWWW_CLIENT@
|
|
|
80dda4 |
+static const char * const XMLRPC_DEFAULT_TRANSPORT = @XMLRPC_DEFAULT_TRANSPORT@;
|
|
|
80dda4 |
diff --git a/xmlrpc-c-config b/xmlrpc-c-config
|
|
|
80dda4 |
new file mode 100755
|
|
|
80dda4 |
index 00000000..25f95194
|
|
|
80dda4 |
--- /dev/null
|
|
|
80dda4 |
+++ b/xmlrpc-c-config
|
|
|
80dda4 |
@@ -0,0 +1,114 @@
|
|
|
80dda4 |
+#!/bin/sh
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+comp=
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+need_cxx=
|
|
|
80dda4 |
+need_client=
|
|
|
80dda4 |
+need_server=
|
|
|
80dda4 |
+need_abyss_server=
|
|
|
80dda4 |
+need_pstream=
|
|
|
80dda4 |
+need_packetsocket=
|
|
|
80dda4 |
+need_cgi=
|
|
|
80dda4 |
+need_abyss=
|
|
|
80dda4 |
+need_openssl=
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+show_help() {
|
|
|
80dda4 |
+ cat <
|
|
|
80dda4 |
+Usage: xmlrpc-c-config <feature> ... <option> ...
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+The features are:
|
|
|
80dda4 |
+ c++ legacy C++ wrapper API
|
|
|
80dda4 |
+ c++2 modern C++ API
|
|
|
80dda4 |
+ client client functions
|
|
|
80dda4 |
+ cgi-server CGI-based server functions
|
|
|
80dda4 |
+ abyss-server ABYSS-based server functions
|
|
|
80dda4 |
+ pstream-server pstream-based server functions
|
|
|
80dda4 |
+ server-util basic server functions (implied by *-server)
|
|
|
80dda4 |
+ abyss Abyss HTTP server (not necessary with abyss-server)
|
|
|
80dda4 |
+ openssl Openssl convenience functions
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+Options are:
|
|
|
80dda4 |
+ --version The version number of the package
|
|
|
80dda4 |
+ --features List all features (aka modules) currently installed
|
|
|
80dda4 |
+ --cflags C compiler flags to use when '#include'ing package headers
|
|
|
80dda4 |
+ --libs Libraries and flags to use when linking programs normally
|
|
|
80dda4 |
+ --ldadd Libraries to use with automake
|
|
|
80dda4 |
+ --ldflags Flags to use with automake & libtool
|
|
|
80dda4 |
+ --prefix The prefix under which the package was installed
|
|
|
80dda4 |
+EOF
|
|
|
80dda4 |
+ exit $1
|
|
|
80dda4 |
+}
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+test $# -ne 0 || show_help 1 >&2
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+while test $# -gt 0; do
|
|
|
80dda4 |
+ case $1 in
|
|
|
80dda4 |
+ (c++) comp="$comp xmlrpc_cpp";;
|
|
|
80dda4 |
+ (server-util) need_server=1;;
|
|
|
80dda4 |
+ (cgi-server) need_cgi=1;;
|
|
|
80dda4 |
+ (c++2) need_cxx=1;;
|
|
|
80dda4 |
+ (abyss-server) need_abyss_server=1;;
|
|
|
80dda4 |
+ (pstream-server) need_pstream=1;;
|
|
|
80dda4 |
+ (packetsocket) need_packetsocket=1;;
|
|
|
80dda4 |
+ (client|libwww-client) need_client=1;;
|
|
|
80dda4 |
+ (abyss) need_abyss=1;;
|
|
|
80dda4 |
+ (openssl) need_openssl=1;;
|
|
|
80dda4 |
+ (--help) show_help 0;;
|
|
|
80dda4 |
+ (--) shift; break;;
|
|
|
80dda4 |
+ (--*) break;;
|
|
|
80dda4 |
+ (*)
|
|
|
80dda4 |
+ echo "Unrecognized token '$1'"
|
|
|
80dda4 |
+ exit 1
|
|
|
80dda4 |
+ ;;
|
|
|
80dda4 |
+ esac
|
|
|
80dda4 |
+ shift
|
|
|
80dda4 |
+done
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+if test -z "$need_cxx"; then
|
|
|
80dda4 |
+ test -z "$need_client" || comp="$comp xmlrpc_client"
|
|
|
80dda4 |
+ test -z "$need_abyss_server" || comp="$comp xmlrpc_server_abyss"
|
|
|
80dda4 |
+ test -z "$need_abyss" || comp="$comp xmlrpc_abyss"
|
|
|
80dda4 |
+ test -z "$need_server" || comp="$comp xmlrpc_server"
|
|
|
80dda4 |
+ test -z "$need_cgi" || comp="$comp xmlrpc_server_cgi"
|
|
|
80dda4 |
+else
|
|
|
80dda4 |
+ test -z "$need_client" || comp="$comp xmlrpc_client++"
|
|
|
80dda4 |
+ test -z "$need_abyss_server" || comp="$comp xmlrpc_server_abyss++"
|
|
|
80dda4 |
+ test -z "$need_abyss" || comp="$comp xmlrpc_abyss++"
|
|
|
80dda4 |
+ test -z "$need_server" || comp="$comp xmlrpc_server++"
|
|
|
80dda4 |
+ test -z "$need_cgi" || comp="$comp xmlrpc_server_cgi++"
|
|
|
80dda4 |
+fi
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+test -z "$need_packetsocket" || comp="$comp xmlrpc_packetsocket"
|
|
|
80dda4 |
+test -z "$need_pstream" || comp="$comp xmlrpc_server_pstream++"
|
|
|
80dda4 |
+test -z "$need_openssl" || comp="$comp xmlrpc_openssl"
|
|
|
80dda4 |
+test -n "$comp" || comp="xmlrpc xmlrpc_util"
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+case $1 in
|
|
|
80dda4 |
+ (--features|--modules)
|
|
|
80dda4 |
+ echo "c++ abyss-server curl-client"
|
|
|
80dda4 |
+ exit 0
|
|
|
80dda4 |
+ ;;
|
|
|
80dda4 |
+ (--version)
|
|
|
80dda4 |
+ comp=xmlrpc
|
|
|
80dda4 |
+ set -- --modversion
|
|
|
80dda4 |
+ ;;
|
|
|
80dda4 |
+ (--exec-prefix)
|
|
|
80dda4 |
+ comp=xmlrpc
|
|
|
80dda4 |
+ set -- --variable=prefix
|
|
|
80dda4 |
+ ;;
|
|
|
80dda4 |
+ (--*dir|--prefix)
|
|
|
80dda4 |
+ comp=xmlrpc
|
|
|
80dda4 |
+ set -- --variable=${1##--}
|
|
|
80dda4 |
+ ;;
|
|
|
80dda4 |
+ (--ldflags)
|
|
|
80dda4 |
+ set -- --libs-only-L
|
|
|
80dda4 |
+ ;;
|
|
|
80dda4 |
+ (--ldadd)
|
|
|
80dda4 |
+ set -- --libs-only-l
|
|
|
80dda4 |
+ ;;
|
|
|
80dda4 |
+ (--cflags)
|
|
|
80dda4 |
+ set -- "$1"
|
|
|
80dda4 |
+ ;;
|
|
|
80dda4 |
+esac
|
|
|
80dda4 |
+
|
|
|
80dda4 |
+exec pkg-config "$@" $comp
|