2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-22 01:49:48 +00:00

[#3443] Additions to the initial meson Proof of Concept

This commit is contained in:
Andrei Pavel 2025-01-29 13:23:29 +02:00
parent e04a37a762
commit a846e64be4
No known key found for this signature in database
GPG Key ID: D4E804481939CB21
70 changed files with 1998 additions and 1793 deletions

View File

@ -0,0 +1,8 @@
#include <chrono>
#include <type_traits>
int main() {
static_assert(std::is_same<std::chrono::system_clock::duration,
std::chrono::steady_clock::duration>::value,
"");
}

View File

@ -0,0 +1,5 @@
#include <boost/asio/ssl.hpp>
int main() {
auto _(boost::asio::ssl::context::tls);
}

View File

@ -0,0 +1,7 @@
#include <sys/types.h>
#include <sys/socket.h>
int main() {
struct sockaddr sa;
sa.sa_len = 0;
}

View File

@ -1712,7 +1712,6 @@ AC_CONFIG_FILES([src/lib/log/tests/logger_lock_test.sh],
[chmod +x src/lib/log/tests/logger_lock_test.sh]) [chmod +x src/lib/log/tests/logger_lock_test.sh])
AC_CONFIG_FILES([src/lib/log/tests/severity_test.sh], AC_CONFIG_FILES([src/lib/log/tests/severity_test.sh],
[chmod +x src/lib/log/tests/severity_test.sh]) [chmod +x src/lib/log/tests/severity_test.sh])
AC_CONFIG_FILES([src/lib/log/tests/tempdir.h])
AC_CONFIG_FILES([src/lib/mysql/Makefile]) AC_CONFIG_FILES([src/lib/mysql/Makefile])
AC_CONFIG_FILES([src/lib/mysql/testutils/Makefile]) AC_CONFIG_FILES([src/lib/mysql/testutils/Makefile])
AC_CONFIG_FILES([src/lib/mysql/tests/Makefile]) AC_CONFIG_FILES([src/lib/mysql/tests/Makefile])

View File

@ -1,3 +1,3 @@
#mesondefine EXTENDED_VERSION #define EXTENDED_VERSION "@KEA_SRCID@"
#mesondefine PACKAGE_VERSION_TYPE #define PREMIUM_EXTENDED_VERSION "@PREMIUM@"
#mesondefine PREMIUM_EXTENDED_VERSION #define PACKAGE_VERSION_TYPE "@PACKAGE_VERSION_TYPE@"

View File

@ -71,7 +71,7 @@
#mesondefine HAVE_BOTAN_BUILD_H #mesondefine HAVE_BOTAN_BUILD_H
/* Whether getsockopt(IPV6_USE_MIN_MTU) does not work */ /* Whether getsockopt(IPV6_USE_MIN_MTU) does not work */
#mesondefine HAVE_BROKEN_GET_IPV #mesondefine HAVE_BROKEN_GET_IPV6_USE_MIN_MTU
/* Whether gtest defines edit_distance::CreateUnifiedDiff */ /* Whether gtest defines edit_distance::CreateUnifiedDiff */
#mesondefine HAVE_CREATE_UNIFIED_DIFF #mesondefine HAVE_CREATE_UNIFIED_DIFF
@ -104,7 +104,7 @@
#mesondefine HAVE_GSSAPI_GSSAPI_H #mesondefine HAVE_GSSAPI_GSSAPI_H
/* Whether you have the <gssapi/gssapi_krb5.h> header file. */ /* Whether you have the <gssapi/gssapi_krb5.h> header file. */
#mesondefine HAVE_GSSAPI_GSSAPI_KRB #mesondefine HAVE_GSSAPI_GSSAPI_KRB5_H
/* gss_str_to_oid is available */ /* gss_str_to_oid is available */
#mesondefine HAVE_GSS_STR_TO_OID #mesondefine HAVE_GSS_STR_TO_OID
@ -116,13 +116,13 @@
#mesondefine HAVE_IS_BASE_OF #mesondefine HAVE_IS_BASE_OF
/* Whether you have the <krb5.h> header file. */ /* Whether you have the <krb5.h> header file. */
#mesondefine HAVE_KRB #mesondefine HAVE_KRB5_H
/* Whether you have the <krb5/krb5.h> header file. */ /* Whether you have the <krb5/krb5.h> header file. */
#mesondefine HAVE_KRB #mesondefine HAVE_KRB5_KRB5_H
/* Whether you have the <log4cplus/logger.h> header file. */ /* Whether you have the <log4cplus/logger.h> header file. */
#mesondefine HAVE_LOG #mesondefine HAVE_LOG4CPLUS_LOGGER_H
/* MySQL is present */ /* MySQL is present */
#mesondefine HAVE_MYSQL #mesondefine HAVE_MYSQL
@ -191,7 +191,7 @@
#mesondefine HAVE_SYS_TYPES_H #mesondefine HAVE_SYS_TYPES_H
/* Whether boost::asio::ssl::context::tlsv12 is available */ /* Whether boost::asio::ssl::context::tlsv12 is available */
#mesondefine HAVE_TLS_ #mesondefine HAVE_TLS_1_2_METHOD
/* Whether you have the <unistd.h> header file. */ /* Whether you have the <unistd.h> header file. */
#mesondefine HAVE_UNISTD_H #mesondefine HAVE_UNISTD_H
@ -212,7 +212,7 @@
#mesondefine LIBC_MUSL #mesondefine LIBC_MUSL
/* Explicit initialization of log4cplus possible */ /* Explicit initialization of log4cplus possible */
#mesondefine LOG #mesondefine LOG4CPLUS_INITIALIZER_H
/* Define to the sub-directory where libtool stores uninstalled libraries. */ /* Define to the sub-directory where libtool stores uninstalled libraries. */
#mesondefine LT_OBJDIR #mesondefine LT_OBJDIR

3
meson-kea_version.h.in Normal file
View File

@ -0,0 +1,3 @@
#mesondefine EXTENDED_VERSION
#mesondefine PACKAGE_VERSION_TYPE
#mesondefine PREMIUM_EXTENDED_VERSION

View File

@ -1,242 +1,345 @@
project('kea', 'cpp', version: '2.7.6-git', default_options : ['default_library=shared']) project(
'kea',
'cpp',
version: '2.7.7-git',
default_options: ['default_library=shared'],
)
cpp = meson.get_compiler('cpp') cpp = meson.get_compiler('cpp')
project_version = meson.project_version()
#### Imports
fs = import('fs') fs = import('fs')
conf_data = configuration_data({ #### Variables
# 'CHRONO_SAME_DURATION': true,
# 'CONFIG_H_WAS_INCLUDED': true, TOP_BUILD_DIR = meson.current_build_dir()
# 'ENABLE_DEBUG': false, TOP_SOURCE_DIR = meson.current_source_dir()
# 'ENABLE_LOGGER_CHECKS': false, KEA_ADMIN = f'@TOP_BUILD_DIR@/src/bin/admin/kea-admin'
'EXTENDED_VERSION': '"@0@"'.format(meson.project_version()), KEA_LFC = f'@TOP_BUILD_DIR@/src/bin/lfc/kea-lfc'
# 'FUZZING': false,
# 'FUZZING_IN_CI': false, #### Configuration Data
# 'HAS_UNDEFINED_PTHREAD_BEHAVIOR': false,
# 'HAVE_AFL': false, conf_data = configuration_data(
# 'HAVE_BOOST_ASIO_COROUTINE_HPP': false, {
# 'HAVE_BOOST_ASIO_HPP': false, # 'CONFIG_H_WAS_INCLUDED': true,
# 'HAVE_BOOST_ASIO_IP_ADDRESS_HPP': false, # 'ENABLE_DEBUG': false,
# 'HAVE_BOOST_ASIO_SIGNAL_SET_HPP': false, # 'ENABLE_LOGGER_CHECKS': false,
# 'HAVE_BOOST_ASIO_SSL_HPP': false, 'EXTENDED_VERSION': f'"@project_version@"',
# 'HAVE_BOOST_ATOMIC_HPP': false, # 'FUZZING': false,
# 'HAVE_BOOST_CIRCULAR_BUFFER_HPP': false, # 'FUZZING_IN_CI': false,
# 'HAVE_BOOST_DATE_TIME_POSIX_TIME_POSIX_TIME_TYPES_HPP': false, # 'HAS_UNDEFINED_PTHREAD_BEHAVIOR': false,
# 'HAVE_BOOST_FOREACH_HPP': false, # 'HAVE_AFL': false,
# 'HAVE_BOOST_FUNCTIONAL_HASH_HPP': false, # 'HAVE_BOOST_ASIO_COROUTINE_HPP': false,
# 'HAVE_BOOST_INTEGER_COMMON_FACTOR_HPP': false, # 'HAVE_BOOST_ASIO_HPP': false,
# 'HAVE_BOOST_INTERPROCESS_SYNC_INTERPROCESS_UPGRADABLE_MUTEX_HPP': false, # 'HAVE_BOOST_ASIO_IP_ADDRESS_HPP': false,
# 'HAVE_BOOST_SHARED_PTR_HPP': false, # 'HAVE_BOOST_ASIO_SIGNAL_SET_HPP': false,
# 'HAVE_BOOST_SYSTEM_ERROR_CODE_HPP': false, # 'HAVE_BOOST_ASIO_SSL_HPP': false,
# 'HAVE_BOTAN_ASIO_STREAM_H': false, # 'HAVE_BOOST_ATOMIC_HPP': false,
# 'HAVE_BOTAN_BUILD_H': false, # 'HAVE_BOOST_CIRCULAR_BUFFER_HPP': false,
# 'HAVE_BROKEN_GET_IPV': false, # 'HAVE_BOOST_DATE_TIME_POSIX_TIME_POSIX_TIME_TYPES_HPP': false,
# 'HAVE_CREATE_UNIFIED_DIFF': false, # 'HAVE_BOOST_FOREACH_HPP': false,
# 'HAVE_DLFCN_H': false, # 'HAVE_BOOST_FUNCTIONAL_HASH_HPP': false,
# 'HAVE_EVP_MD_CTX_CREATE': false, # 'HAVE_BOOST_INTEGER_COMMON_FACTOR_HPP': false,
# 'HAVE_EVP_MD_CTX_DESTROY': false, # 'HAVE_BOOST_INTERPROCESS_SYNC_INTERPROCESS_UPGRADABLE_MUTEX_HPP': false,
# 'HAVE_EVP_MD_CTX_FREE': false, # 'HAVE_BOOST_SHARED_PTR_HPP': false,
# 'HAVE_EVP_MD_CTX_NEW': false, # 'HAVE_BOOST_SYSTEM_ERROR_CODE_HPP': false,
# 'HAVE_EVP_PKEY_NEW_MAC_KEY': false, # 'HAVE_BOTAN_ASIO_STREAM_H': false,
# 'HAVE_EVP_PKEY_NEW_RAW_PRIVATE_KEY': false, # 'HAVE_BOTAN_BUILD_H': false,
'HAVE_GENERIC_TLS_METHOD': true, # 'HAVE_BROKEN_GET_IPV': false,
# 'HAVE_GSSAPI_GSSAPI_H': false, # 'HAVE_CREATE_UNIFIED_DIFF': false,
# 'HAVE_GSSAPI_GSSAPI_KRB': false, # 'HAVE_DLFCN_H': false,
# 'HAVE_GSS_STR_TO_OID': false, # 'HAVE_EVP_MD_CTX_CREATE': false,
# 'HAVE_INTTYPES_H': false, # 'HAVE_EVP_MD_CTX_DESTROY': false,
# 'HAVE_IS_BASE_OF': false, # 'HAVE_EVP_MD_CTX_FREE': false,
# 'HAVE_KRB': false, # 'HAVE_EVP_MD_CTX_NEW': false,
# 'HAVE_LOG': false, # 'HAVE_EVP_PKEY_NEW_MAC_KEY': false,
# 'HAVE_MYSQL': false, # 'HAVE_EVP_PKEY_NEW_RAW_PRIVATE_KEY': false,
# 'HAVE_MYSQL_GET_OPTION': false, # 'HAVE_GSSAPI_GSSAPI_H': false,
# 'HAVE_MYSQL_MY_BOOL': false, # 'HAVE_GSSAPI_GSSAPI_KRB': false,
# 'HAVE_MYSQL_OPT_RECONNECT': false, # 'HAVE_GSS_STR_TO_OID': false,
# 'HAVE_NETCONF': false, # 'HAVE_INTTYPES_H': false,
# 'HAVE_OPTRESET': false, # 'HAVE_IS_BASE_OF': false,
# 'HAVE_PGSQL': false, # 'HAVE_KRB': false,
# 'HAVE_PGSQL_SSL': false, # 'HAVE_LOG': false,
# 'HAVE_PGSQL_TCP_USER_TIMEOUT': false, # 'HAVE_MYSQL_GET_OPTION': false,
# 'HAVE_PSELECT': false, # 'HAVE_MYSQL_OPT_RECONNECT': false,
# 'HAVE_SA_LEN': false, # 'HAVE_NETCONF': false,
# 'HAVE_STDBOOL_H': false, # 'HAVE_OPTRESET': false,
# 'HAVE_STDINT_H': false, # 'HAVE_PGSQL_SSL': false,
# 'HAVE_STDIO_H': false, # 'HAVE_PGSQL_TCP_USER_TIMEOUT': false,
# 'HAVE_STDLIB_H': false, # 'HAVE_PSELECT': false,
# 'HAVE_STREAM_TRUNCATED_ERROR': false, # 'HAVE_STDBOOL_H': false,
# 'HAVE_STRINGS_H': false, # 'HAVE_STDINT_H': false,
# 'HAVE_STRING_H': false, # 'HAVE_STDIO_H': false,
# 'HAVE_SYS_DEVPOLL_H': false, # 'HAVE_STDLIB_H': false,
# 'HAVE_SYS_FILIO_H': false, # 'HAVE_STRINGS_H': false,
# 'HAVE_SYS_STAT_H': false, # 'HAVE_STRING_H': false,
# 'HAVE_SYS_TYPES_H': false, # 'HAVE_SYS_DEVPOLL_H': false,
# 'HAVE_TLS_': false, # 'HAVE_SYS_FILIO_H': false,
# 'HAVE_UNISTD_H': false, # 'HAVE_SYS_STAT_H': false,
# 'HAVE_UTILS_ERRCODES_H': false, # 'HAVE_SYS_TYPES_H': false,
# 'HAVE_VALGRIND_HEADERS': false, # 'HAVE_TLS_': false,
# 'HAVE_VALGRIND_VALGRIND_H': false, # 'HAVE_UNISTD_H': false,
# 'HAVE__BOOL': false, # 'HAVE_UTILS_ERRCODES_H': false,
# 'LIBC_MUSL': false, # 'HAVE_VALGRIND_HEADERS': false,
# 'LOG': false, # 'HAVE_VALGRIND_VALGRIND_H': false,
# 'LT_OBJDIR': false, # 'HAVE__BOOL': false,
# 'OS_BSD': false, # 'LIBC_MUSL': false,
# 'OS_FREEBSD': false, # 'LOG': false,
# 'OS_LINUX': false, # 'LT_OBJDIR': false,
# 'OS_NETBSD': false, # 'PACKAGE': 'kea',
# 'OS_OPENBSD': false, # 'PACKAGE_BUGREPORT': 'kea-dev@lists.isc.org',
# 'OS_OSX': false, # 'PACKAGE_NAME': 'kea',
# 'OS_SOLARIS': false, # 'PACKAGE_STRING': f'kea "@project_version@"',
# 'PACKAGE': 'kea', # 'PACKAGE_TARNAME': 'kea',
# 'PACKAGE_BUGREPORT': 'kea-dev@lists.isc.org', # 'PACKAGE_URL': '',
# 'PACKAGE_NAME': 'kea', # 'PACKAGE_VERSION': meson.project_version(),
# 'PACKAGE_STRING': 'kea @0@'.format(meson.project_version()), 'PACKAGE_VERSION_TYPE': '"tarball"',
# 'PACKAGE_TARNAME': 'kea', # 'PREMIUM': false,
# 'PACKAGE_URL': '', 'PREMIUM_EXTENDED_VERSION': f'"@project_version@"',
# 'PACKAGE_VERSION': meson.project_version(), # 'STDC_HEADERS': false,
'PACKAGE_VERSION_TYPE': '"tarball"', # 'TOP_BUILDDIR': false,
# 'PREMIUM': false, # 'USE_STATIC_LINK': false,
'PREMIUM_EXTENDED_VERSION': '"@0@"'.format(meson.project_version()), 'VERSION': f'"@project_version@"',
# 'STDC_HEADERS': false, # 'WITH_HEIMDAL': false,
# 'TOP_BUILDDIR': false, # 'YYTEXT_POINTER': false,
# 'USE_STATIC_LINK': false, # 'SIZE_T': 'size_t',
'VERSION': '"@0@"'.format(meson.project_version()), # 'SSIZE_T': 'ssize_t',
# 'WITH_BOTAN': false, },
# 'WITH_HEIMDAL': false, )
# 'WITH_OPENSSL': false,
# 'YYTEXT_POINTER': false, #### Dependencies
# 'SIZE_T': 'size_t',
# 'SSIZE_T': 'ssize_t',
})
boost = dependency('boost', version: '>=1.66') boost = dependency('boost', version: '>=1.66')
botan = dependency('botan', required: false)
gtest = dependency('gtest', required: false) gtest = dependency('gtest', required: false)
log4cplus = dependency('log4cplus') log4cplus = dependency('log4cplus')
# Cryptography
crypto = disabler()
botan = disabler()
foreach dep : ['botan-2', 'botan', 'botan-3']
botan = dependency(dep, required: false)
if botan.found()
break
endif
endforeach
openssl = dependency('openssl', required: false)
if botan.found() and false # remove "or flase" when botan+mariadb gets fixes
crypto = botan
conf_data.set('WITH_BOTAN', true)
message('Using Botan.')
elif openssl.found()
crypto = openssl
conf_data.set('WITH_OPENSSL', true)
message('Using OpenSSL.')
endif
if not crypto.found()
error('Build failed: Could not find neither botan nor openssl libraries.')
endif
# Kerberos
krb5 = dependency('krb5', required: false) krb5 = dependency('krb5', required: false)
if not krb5.found()
krb5_config = find_program('krb5-config', required: false)
cflags = run_command([krb5_config, '--cflags'], check: false)
libs = run_command([krb5_config, '--libs'], check: false)
if cflags.returncode() == 0 and libs.returncode() == 0
krb5 = declare_dependency(
compile_args: cflags.stdout().split(),
link_args: libs.stdout().split(),
)
endif
endif
# MySQL
mysql = dependency('mariadb', required: false) mysql = dependency('mariadb', required: false)
if not mysql.found() if not mysql.found()
mysql = dependency('mysql', required: false) mysql = dependency('mysql', required: false)
endif endif
if not mysql.found() foreach mysql_config : ['mariadb_config', 'mysql_config']
mysql_config = find_program('mariadb_config', required: false) if mysql.found()
if mysql_config.found() continue
mysql = declare_dependency(compile_args: run_command([mysql_config, '--cflags']).stdout().split(), endif
link_args: run_command([mysql_config, '--libs']).stdout().split()) mysql_config = find_program(mysql_config, required: false)
endif if not mysql_config.found()
continue
endif
cflags = run_command([mysql_config, '--cflags'], check: false)
libs = run_command([mysql_config, '--libs'], check: false)
if cflags.returncode() == 0 and libs.returncode() == 0
mysql = declare_dependency(
compile_args: cflags.stdout().split(),
link_args: libs.stdout().split(),
)
break
endif
endforeach
if mysql.found()
conf_data.set('HAVE_MYSQL', true)
endif endif
if not mysql.found()
mysql_config = find_program('mysql_config')
if mysql_config.found()
mysql = declare_dependency(compile_args: run_command([mysql_config, '--cflags']).stdout().split(),
link_args: run_command([mysql_config, '--libs']).stdout().split())
endif
endif
postgresql = dependency('libpq', required: false)
openssl = dependency('openssl', required: false)
# PostgreSQL
postgresql = dependency('libpq', required: false)
if not postgresql.found()
pg_config = find_program('pg_config', required: false)
cflags = run_command([pg_config, '--cflags'], check: false)
libs = run_command([pg_config, '--libs'], check: false)
if cflags.returncode() == 0 and libs.returncode() == 0
krb5 = declare_dependency(
compile_args: cflags.stdout().split(),
link_args: libs.stdout().split(),
)
endif
endif
postgresql_server_header = disabler()
foreach dir : ['/usr/include/pgsql/server', '/usr/include/postgresql/server']
if not fs.is_dir(dir)
continue
endif
exists = cpp.has_header(
'utils/errcodes.h',
include_directories: [include_directories(dir)],
required: false,
)
if exists
postgresql_server_header = declare_dependency(include_directories: dir)
break
endif
endforeach
if postgresql.found()
conf_data.set('HAVE_PGSQL', true)
endif
# NETCONF
netconf_deps = {} netconf_deps = {}
netconf_deps_array = [] netconf_deps_array = []
netconf_deps_found = true netconf_deps_found = true
foreach dep : ['yang', 'yang-cpp', 'sysrepo', 'sysrepo-cpp'] foreach dep : ['yang', 'yang-cpp', 'sysrepo', 'sysrepo-cpp']
netconf_deps = netconf_deps + {dep: cpp.find_library(dep, dirs: [f'/opt/@dep@/lib'], required: false)} netconf_deps = netconf_deps + {dep: dependency(dep, required: false)}
if netconf_deps[dep].found() if not netconf_deps[dep].found()
netconf_deps = netconf_deps + {dep: declare_dependency( lib = cpp.find_library(dep, dirs: [f'/opt/@dep@/lib'], required: false)
dependencies: netconf_deps[dep], if lib.found()
include_directories: include_directories(f'/opt/@dep@/include'), netconf_deps = netconf_deps + {
)} dep: declare_dependency(
netconf_deps_array += netconf_deps[dep] dependencies: lib,
else include_directories: include_directories(
netconf_deps_found = false f'/opt/@dep@/include',
break ),
endif ),
}
endif
endif
if netconf_deps[dep].found()
netconf_deps_array += netconf_deps[dep]
else
netconf_deps_found = false
endif
endforeach endforeach
if netconf_deps_found
add_project_arguments('-std=c++20', language: 'cpp')
endif
if openssl.found() #### Compiler Checks
crypto = openssl
conf_data.set('WITH_OPENSSL', true)
message('Using OpenSSL.')
elif botan.found()
crypto = botan
conf_data.set('WITH_BOTAN', true)
message('Using Botan.')
else
error('Build failed: Could not find neither botan nor openssl libraries.')
endif
result = cpp.run(fs.read('compiler-checks/stream-truncated-error.cc'), name: 'HAVE_STREAM_TRUNCATED_ERROR', dependencies: [crypto]) result = cpp.run(
if result.compiled() and result.returncode() == 0 fs.read('compiler-checks/chrono-same-duration.cc'),
conf_data.set('HAVE_STREAM_TRUNCATED_ERROR', true) name: 'CHRONO_SAME_DURATION',
endif dependencies: [boost],
)
conf_data.set('CHRONO_SAME_DURATION', result.returncode() == 0)
result = cpp.run(
fs.read('compiler-checks/have-generic-tls-method.cc'),
name: 'HAVE_GENERIC_TLS_METHOD',
dependencies: [crypto],
)
conf_data.set('HAVE_GENERIC_TLS_METHOD', result.returncode() == 0)
result = cpp.run(fs.read('compiler-checks/have-sa-len.cc'), name: 'HAVE_SA_LEN')
conf_data.set('HAVE_SA_LEN', result.returncode() == 0)
if mysql.found() if mysql.found()
result = cpp.run(fs.read('compiler-checks/mysql-my-bool.cc'), name: 'HAVE_MYSQL_MY_BOOL', dependencies: [mysql]) result = cpp.run(
if result.compiled() and result.returncode() == 0 fs.read('compiler-checks/mysql-my-bool.cc'),
conf_data.set('HAVE_MYSQL_MY_BOOL', true) name: 'HAVE_MYSQL_MY_BOOL',
endif dependencies: [mysql],
)
conf_data.set('HAVE_MYSQL_MY_BOOL', result.returncode() == 0)
endif endif
system = build_machine.system() result = cpp.run(
if system == 'linux' fs.read('compiler-checks/stream-truncated-error.cc'),
conf_data.set('OS_LINUX', true) name: 'HAVE_STREAM_TRUNCATED_ERROR',
elif system == 'freebsd' dependencies: [crypto],
conf_data.set('OS_BSD', true) )
conf_data.set('OS_FREEBSD', true) conf_data.set('HAVE_STREAM_TRUNCATED_ERROR', result.returncode() == 0)
conf_data.set('HAVE_SA_LEN', true)
elif system == 'netbsd' #### System-specific Variables
conf_data.set('OS_BSD', true)
conf_data.set('OS_NETBSD', true) SYSTEM = build_machine.system()
conf_data.set('HAVE_SA_LEN', true) if SYSTEM == 'linux'
elif system == 'openbsd' conf_data.set('OS_LINUX', true)
conf_data.set('OS_BSD', true) elif SYSTEM == 'freebsd'
conf_data.set('OS_OPENBSD', true) conf_data.set('OS_BSD', true)
conf_data.set('HAVE_SA_LEN', true) conf_data.set('OS_FREEBSD', true)
elif system == 'sun' elif SYSTEM == 'netbsd'
conf_data.set('OS_SOLARIS', true) conf_data.set('OS_BSD', true)
elif system == 'darwin' conf_data.set('OS_NETBSD', true)
conf_data.set('OS_BSD', true) elif SYSTEM == 'openbsd'
conf_data.set('OS_OSX', true) conf_data.set('OS_BSD', true)
conf_data.set('HAVE_SA_LEN', true) conf_data.set('OS_OPENBSD', true)
elif SYSTEM == 'sun'
conf_data.set('OS_SOLARIS', true)
elif SYSTEM == 'darwin'
conf_data.set('OS_BSD', true)
conf_data.set('OS_OSX', true)
else else
error(f'Build failed: Unsupported system "@system@".') error(f'Build failed: Unsupported system "@SYSTEM@".')
endif endif
message(f'Detected system "@system@".') message(f'Detected system "@SYSTEM@".')
#### System-specific Compiler Flags
prefix = get_option('prefix') prefix = get_option('prefix')
if system == 'darwin' if SYSTEM == 'darwin'
add_project_arguments('-D__APPLE_USE_RFC_3542', language: 'cpp') add_project_arguments('-D__APPLE_USE_RFC_3542', language: 'cpp')
add_project_link_arguments(f'-Wl,-rpath,@prefix@/lib', language: 'cpp') add_project_link_arguments(f'-Wl,-rpath,@prefix@/lib', language: 'cpp')
else else
conf_data.set('CHRONO_SAME_DURATION', true) add_project_link_arguments(f'-Wl,-rpath=@prefix@/lib', language: 'cpp')
add_project_link_arguments(f'-Wl,-rpath=@prefix@/lib', language: 'cpp')
endif endif
have_premium = false have_premium = fs.is_dir('premium')
if fs.is_dir('premium') if have_premium
have_premium = true conf_data.set('PREMIUM', true)
conf_data.set('PREMIUM', true)
endif endif
configure_file(input : 'config.h.in', #### Configuration Files
output : 'config.h',
configuration : conf_data)
configure_file(input : 'kea_version.h.in', # TODO: Change to config.h.in when autotools are removed.
output : 'kea_version.h', configure_file(
configuration : conf_data) input: 'meson-config.h.in',
output: 'config.h',
configuration: conf_data,
)
includes = [ # TODO: Change to kea_version.h.in when autotools are removed.
include_directories('.'), configure_file(
include_directories('src/bin'), input: 'meson-kea_version.h.in',
include_directories('src/lib'), output: 'kea_version.h',
configuration: conf_data,
)
#### Default Includes
INCLUDES = [
include_directories('.'),
include_directories('src/bin'),
include_directories('src/lib'),
] ]
kea_admin = '@0@/src/bin/admin/kea-admin'.format(meson.current_build_dir()) #### Build Starts Here
kea_lfc = '@0@/src/bin/lfc/kea-lfc'.format(meson.current_build_dir())
libs_built_so_far = [] LIBS_BUILT_SO_FAR = []
subdir('src') subdir('src')
if have_premium if have_premium
subdir('premium') subdir('premium')
endif endif

View File

@ -1,22 +1,25 @@
dhcp4_lib = static_library('dhcp4', dhcp4_lib = static_library(
'client_handler.cc', 'dhcp4',
'ctrl_dhcp4_srv.cc', 'client_handler.cc',
'dhcp4to6_ipc.cc', 'ctrl_dhcp4_srv.cc',
'dhcp4_lexer.cc', 'dhcp4to6_ipc.cc',
'dhcp4_log.cc', 'dhcp4_lexer.cc',
'dhcp4_messages.cc', 'dhcp4_log.cc',
'dhcp4_parser.cc', 'dhcp4_messages.cc',
'dhcp4_srv.cc', 'dhcp4_parser.cc',
'json_config_parser.cc', 'dhcp4_srv.cc',
'parser_context.cc', 'json_config_parser.cc',
include_directories: [include_directories('.')] + includes, 'parser_context.cc',
link_with: libs_built_so_far, dependencies: [crypto],
include_directories: [include_directories('.')] + INCLUDES,
link_with: LIBS_BUILT_SO_FAR,
) )
kea_dhcp4_exe = executable('kea-dhcp4', executable(
'main.cc', 'kea-dhcp4',
dependencies: [crypto], 'main.cc',
include_directories: [include_directories('.')] + includes, dependencies: [crypto],
install: true, include_directories: [include_directories('.')] + INCLUDES,
install_dir: 'sbin', install: true,
link_with: libs_built_so_far + [dhcp4_lib], install_dir: 'sbin',
link_with: LIBS_BUILT_SO_FAR + [dhcp4_lib],
) )

View File

@ -1,32 +1,36 @@
dhcp6_lib = static_library('dhcp6', dhcp6_lib = static_library(
'client_handler.cc', 'dhcp6',
'client_handler.h', 'client_handler.cc',
'ctrl_dhcp6_srv.cc', 'client_handler.h',
'ctrl_dhcp6_srv.h', 'ctrl_dhcp6_srv.cc',
'dhcp6to4_ipc.cc', 'ctrl_dhcp6_srv.h',
'dhcp6to4_ipc.h', 'dhcp6to4_ipc.cc',
'dhcp6_lexer.cc', 'dhcp6to4_ipc.h',
'dhcp6_log.cc', 'dhcp6_lexer.cc',
'dhcp6_log.h', 'dhcp6_log.cc',
'dhcp6_messages.cc', 'dhcp6_log.h',
'dhcp6_messages.h', 'dhcp6_messages.cc',
'dhcp6_parser.cc', 'dhcp6_messages.h',
'dhcp6_parser.h', 'dhcp6_parser.cc',
'dhcp6_srv.cc', 'dhcp6_parser.h',
'dhcp6_srv.h', 'dhcp6_srv.cc',
'json_config_parser.cc', 'dhcp6_srv.h',
'json_config_parser.h', 'json_config_parser.cc',
'main.cc', 'json_config_parser.h',
'parser_context.cc', 'main.cc',
'parser_context.h', 'parser_context.cc',
'parser_context_decl.h', 'parser_context.h',
include_directories: includes 'parser_context_decl.h',
dependencies: [crypto],
include_directories: [include_directories('.')] + INCLUDES,
link_with: LIBS_BUILT_SO_FAR,
) )
kea_dhcp6_exe = executable('kea-dhcp6', executable(
'main.cc', 'kea-dhcp6',
dependencies: [crypto], 'main.cc',
include_directories: [include_directories('.')] + includes, dependencies: [crypto],
install: true, include_directories: [include_directories('.')] + INCLUDES,
install_dir: 'sbin', install: true,
link_with: libs_built_so_far + [dhcp6_lib], install_dir: 'sbin',
link_with: LIBS_BUILT_SO_FAR + [dhcp6_lib],
) )

View File

@ -1,17 +1,19 @@
lfc_lib = static_library('lfc', lfc_lib = static_library(
'lfc_controller.cc', 'lfc',
'lfc_controller.h', 'lfc_controller.cc',
'lfc_log.cc', 'lfc_controller.h',
'lfc_log.h', 'lfc_log.cc',
'lfc_messages.cc', 'lfc_log.h',
'lfc_messages.h', 'lfc_messages.cc',
include_directories: [include_directories('.')] + includes, 'lfc_messages.h',
link_with: libs_built_so_far, include_directories: [include_directories('.')] + INCLUDES,
link_with: LIBS_BUILT_SO_FAR,
) )
kea_lfc_exe = executable('kea-lfc', executable(
'main.cc', 'kea-lfc',
include_directories: [include_directories('.')] + includes, 'main.cc',
install: true, include_directories: [include_directories('.')] + INCLUDES,
install_dir: 'sbin', install: true,
link_with: libs_built_so_far + [lfc_lib], install_dir: 'sbin',
link_with: LIBS_BUILT_SO_FAR + [lfc_lib],
) )

View File

@ -1,36 +1,38 @@
perfdhcplib_lib = static_library('perfdhcplib', perfdhcplib_lib = static_library(
'abstract_scen.h', 'perfdhcplib',
'avalanche_scen.cc', 'abstract_scen.h',
'avalanche_scen.h', 'avalanche_scen.cc',
'basic_scen.cc', 'avalanche_scen.h',
'basic_scen.h', 'basic_scen.cc',
'command_options.cc', 'basic_scen.h',
'command_options.h', 'command_options.cc',
'localized_option.h', 'command_options.h',
'packet_storage.h', 'localized_option.h',
'perf_pkt4.cc', 'packet_storage.h',
'perf_pkt4.h', 'perf_pkt4.cc',
'perf_pkt6.cc', 'perf_pkt4.h',
'perf_pkt6.h', 'perf_pkt6.cc',
'perf_socket.cc', 'perf_pkt6.h',
'perf_socket.h', 'perf_socket.cc',
'pkt_transform.cc', 'perf_socket.h',
'pkt_transform.h', 'pkt_transform.cc',
'rate_control.cc', 'pkt_transform.h',
'rate_control.h', 'rate_control.cc',
'receiver.cc', 'rate_control.h',
'receiver.h', 'receiver.cc',
'stats_mgr.cc', 'receiver.h',
'stats_mgr.h', 'stats_mgr.cc',
'test_control.cc', 'stats_mgr.h',
'test_control.h', 'test_control.cc',
include_directories: [include_directories('.')] + includes, 'test_control.h',
link_with: libs_built_so_far, include_directories: [include_directories('.')] + INCLUDES,
link_with: LIBS_BUILT_SO_FAR,
) )
perfdhcp_exe = executable('perfdhcp', executable(
'main.cc', 'perfdhcp',
include_directories: [include_directories('.')] + includes, 'main.cc',
install: true, include_directories: [include_directories('.')] + INCLUDES,
install_dir: 'sbin', install: true,
link_with: libs_built_so_far + [perfdhcplib_lib], install_dir: 'sbin',
link_with: LIBS_BUILT_SO_FAR + [perfdhcplib_lib],
) )

View File

@ -1,12 +1,13 @@
dhcp_bootp_lib = library('dhcp_bootp', dhcp_bootp_lib = library(
'bootp_callouts.cc', 'dhcp_bootp',
'bootp_log.cc', 'bootp_callouts.cc',
'bootp_log.h', 'bootp_log.cc',
'bootp_messages.cc', 'bootp_log.h',
'bootp_messages.h', 'bootp_messages.cc',
'version.cc', 'bootp_messages.h',
include_directories: [include_directories('.')] + includes, 'version.cc',
install: true, include_directories: [include_directories('.')] + INCLUDES,
install_dir: 'lib/kea/hooks', install: true,
link_with: libs_built_so_far, install_dir: 'lib/kea/hooks',
link_with: LIBS_BUILT_SO_FAR,
) )

View File

@ -1,14 +1,16 @@
dhcp_flex_option_lib = library('dhcp_flex_option', dhcp_flex_option_lib = library(
'flex_option.cc', 'dhcp_flex_option',
'flex_option.h', 'flex_option.cc',
'flex_option_callouts.cc', 'flex_option.h',
'flex_option_log.cc', 'flex_option_callouts.cc',
'flex_option_log.h', 'flex_option_log.cc',
'flex_option_messages.cc', 'flex_option_log.h',
'flex_option_messages.h', 'flex_option_messages.cc',
'version.cc', 'flex_option_messages.h',
include_directories: [include_directories('.')] + includes, 'version.cc',
install: true, dependencies: [crypto],
install_dir: 'lib/kea/hooks', include_directories: [include_directories('.')] + INCLUDES,
link_with: libs_built_so_far, install: true,
install_dir: 'lib/kea/hooks',
link_with: LIBS_BUILT_SO_FAR,
) )

View File

@ -1,35 +1,36 @@
dhcp_high_availability_lib = library('dhcp_high_availability', dhcp_high_availability_lib = library(
'command_creator.cc', 'dhcp_high_availability',
'command_creator.h', 'command_creator.cc',
'communication_state.cc', 'command_creator.h',
'communication_state.h', 'communication_state.cc',
'ha_callouts.cc', 'communication_state.h',
'ha_config.cc', 'ha_callouts.cc',
'ha_config.h', 'ha_config.cc',
'ha_config_parser.cc', 'ha_config.h',
'ha_config_parser.h', 'ha_config_parser.cc',
'ha_impl.cc', 'ha_config_parser.h',
'ha_impl.h', 'ha_impl.cc',
'ha_log.cc', 'ha_impl.h',
'ha_log.h', 'ha_log.cc',
'ha_messages.cc', 'ha_log.h',
'ha_messages.h', 'ha_messages.cc',
'ha_relationship_mapper.h', 'ha_messages.h',
'ha_server_type.h', 'ha_relationship_mapper.h',
'ha_service.cc', 'ha_server_type.h',
'ha_service.h', 'ha_service.cc',
'ha_service_states.cc', 'ha_service.h',
'ha_service_states.h', 'ha_service_states.cc',
'lease_sync_filter.cc', 'ha_service_states.h',
'lease_sync_filter.h', 'lease_sync_filter.cc',
'lease_update_backlog.cc', 'lease_sync_filter.h',
'lease_update_backlog.h', 'lease_update_backlog.cc',
'query_filter.cc', 'lease_update_backlog.h',
'query_filter.h', 'query_filter.cc',
'version.cc', 'query_filter.h',
dependencies: [crypto], 'version.cc',
include_directories: [include_directories('.')] + includes, dependencies: [crypto],
install: true, include_directories: [include_directories('.')] + INCLUDES,
install_dir: 'lib/kea/hooks', install: true,
link_with: libs_built_so_far, install_dir: 'lib/kea/hooks',
link_with: LIBS_BUILT_SO_FAR,
) )

View File

@ -1,17 +1,19 @@
dhcp_lease_cmds_lib = library('dhcp_lease_cmds', dhcp_lease_cmds_lib = library(
'lease_cmds.cc', 'dhcp_lease_cmds',
'lease_cmds.h', 'lease_cmds.cc',
'lease_cmds_callouts.cc', 'lease_cmds.h',
'lease_cmds_exceptions.h', 'lease_cmds_callouts.cc',
'lease_cmds_log.cc', 'lease_cmds_exceptions.h',
'lease_cmds_log.h', 'lease_cmds_log.cc',
'lease_cmds_messages.cc', 'lease_cmds_log.h',
'lease_cmds_messages.h', 'lease_cmds_messages.cc',
'lease_parser.cc', 'lease_cmds_messages.h',
'lease_parser.h', 'lease_parser.cc',
'version.cc', 'lease_parser.h',
include_directories: [include_directories('.')] + includes, 'version.cc',
install: true, dependencies: [crypto],
install_dir: 'lib/kea/hooks', include_directories: [include_directories('.')] + INCLUDES,
link_with: libs_built_so_far, install: true,
install_dir: 'lib/kea/hooks',
link_with: LIBS_BUILT_SO_FAR,
) )

View File

@ -1,36 +1,37 @@
if not mysql.found() if not mysql.found()
subdir_done() subdir_done()
endif endif
dhcp_mysql_lib = library('dhcp_mysql', dhcp_mysql_lib = library(
'mysql_callouts.cc', 'dhcp_mysql',
'mysql_cb_dhcp4.cc', 'mysql_callouts.cc',
'mysql_cb_dhcp4.h', 'mysql_cb_dhcp4.cc',
'mysql_cb_dhcp6.cc', 'mysql_cb_dhcp4.h',
'mysql_cb_dhcp6.h', 'mysql_cb_dhcp6.cc',
'mysql_cb_impl.cc', 'mysql_cb_dhcp6.h',
'mysql_cb_impl.h', 'mysql_cb_impl.cc',
'mysql_cb_log.cc', 'mysql_cb_impl.h',
'mysql_cb_log.h', 'mysql_cb_log.cc',
'mysql_cb_messages.cc', 'mysql_cb_log.h',
'mysql_cb_messages.h', 'mysql_cb_messages.cc',
'mysql_hb_log.cc', 'mysql_cb_messages.h',
'mysql_hb_log.h', 'mysql_hb_log.cc',
'mysql_hb_messages.cc', 'mysql_hb_log.h',
'mysql_hb_messages.h', 'mysql_hb_messages.cc',
'mysql_host_data_source.cc', 'mysql_hb_messages.h',
'mysql_host_data_source.h', 'mysql_host_data_source.cc',
'mysql_lb_log.cc', 'mysql_host_data_source.h',
'mysql_lb_log.h', 'mysql_lb_log.cc',
'mysql_lb_messages.cc', 'mysql_lb_log.h',
'mysql_lb_messages.h', 'mysql_lb_messages.cc',
'mysql_lease_mgr.cc', 'mysql_lb_messages.h',
'mysql_lease_mgr.h', 'mysql_lease_mgr.cc',
'mysql_query_macros_dhcp.h', 'mysql_lease_mgr.h',
'version.cc', 'mysql_query_macros_dhcp.h',
dependencies: [mysql], 'version.cc',
include_directories: [include_directories('.')] + includes, dependencies: [crypto, mysql],
install: true, include_directories: [include_directories('.')] + INCLUDES,
install_dir: 'lib/kea/hooks', install: true,
link_with: libs_built_so_far, install_dir: 'lib/kea/hooks',
link_with: LIBS_BUILT_SO_FAR,
) )

View File

@ -1,24 +1,26 @@
dhcp_perfmon_lib = library('dhcp_perfmon', dhcp_perfmon_lib = library(
'alarm.cc', 'dhcp_perfmon',
'alarm.h', 'alarm.cc',
'alarm_store.cc', 'alarm.h',
'alarm_store.h', 'alarm_store.cc',
'monitored_duration.cc', 'alarm_store.h',
'monitored_duration.h', 'monitored_duration.cc',
'monitored_duration_store.cc', 'monitored_duration.h',
'monitored_duration_store.h', 'monitored_duration_store.cc',
'perfmon_callouts.cc', 'monitored_duration_store.h',
'perfmon_config.cc', 'perfmon_callouts.cc',
'perfmon_config.h', 'perfmon_config.cc',
'perfmon_log.cc', 'perfmon_config.h',
'perfmon_log.h', 'perfmon_log.cc',
'perfmon_messages.cc', 'perfmon_log.h',
'perfmon_messages.h', 'perfmon_messages.cc',
'perfmon_mgr.cc', 'perfmon_messages.h',
'perfmon_mgr.h', 'perfmon_mgr.cc',
'version.cc', 'perfmon_mgr.h',
include_directories: [include_directories('.')] + includes, 'version.cc',
install: true, dependencies: [crypto],
install_dir: 'lib/kea/hooks', include_directories: [include_directories('.')] + INCLUDES,
link_with: libs_built_so_far, install: true,
install_dir: 'lib/kea/hooks',
link_with: LIBS_BUILT_SO_FAR,
) )

View File

@ -1,36 +1,37 @@
if not postgresql.found() if not postgresql.found() or not postgresql_server_header.found()
subdir_done() subdir_done()
endif endif
dhcp_pgsql_lib = library('dhcp_pgsql', dhcp_pgsql_lib = library(
'pgsql_callouts.cc', 'dhcp_pgsql',
'pgsql_cb_dhcp4.cc', 'pgsql_callouts.cc',
'pgsql_cb_dhcp4.h', 'pgsql_cb_dhcp4.cc',
'pgsql_cb_dhcp6.cc', 'pgsql_cb_dhcp4.h',
'pgsql_cb_dhcp6.h', 'pgsql_cb_dhcp6.cc',
'pgsql_cb_impl.cc', 'pgsql_cb_dhcp6.h',
'pgsql_cb_impl.h', 'pgsql_cb_impl.cc',
'pgsql_cb_log.cc', 'pgsql_cb_impl.h',
'pgsql_cb_log.h', 'pgsql_cb_log.cc',
'pgsql_cb_messages.cc', 'pgsql_cb_log.h',
'pgsql_cb_messages.h', 'pgsql_cb_messages.cc',
'pgsql_hb_log.cc', 'pgsql_cb_messages.h',
'pgsql_hb_log.h', 'pgsql_hb_log.cc',
'pgsql_hb_messages.cc', 'pgsql_hb_log.h',
'pgsql_hb_messages.h', 'pgsql_hb_messages.cc',
'pgsql_host_data_source.cc', 'pgsql_hb_messages.h',
'pgsql_host_data_source.h', 'pgsql_host_data_source.cc',
'pgsql_lb_log.cc', 'pgsql_host_data_source.h',
'pgsql_lb_log.h', 'pgsql_lb_log.cc',
'pgsql_lb_messages.cc', 'pgsql_lb_log.h',
'pgsql_lb_messages.h', 'pgsql_lb_messages.cc',
'pgsql_lease_mgr.cc', 'pgsql_lb_messages.h',
'pgsql_lease_mgr.h', 'pgsql_lease_mgr.cc',
'pgsql_query_macros_dhcp.h', 'pgsql_lease_mgr.h',
'version.cc', 'pgsql_query_macros_dhcp.h',
dependencies: [postgresql], 'version.cc',
include_directories: [include_directories('.')] + includes, dependencies: [crypto, postgresql],
install: true, include_directories: [include_directories('.')] + INCLUDES,
install_dir: 'lib/kea/hooks', install: true,
link_with: libs_built_so_far, install_dir: 'lib/kea/hooks',
link_with: LIBS_BUILT_SO_FAR,
) )

View File

@ -1,14 +1,16 @@
dhcp_run_script_lib = library('dhcp_run_script', dhcp_run_script_lib = library(
'run_script.cc', 'dhcp_run_script',
'run_script.h', 'run_script.cc',
'run_script_callouts.cc', 'run_script.h',
'run_script_log.cc', 'run_script_callouts.cc',
'run_script_log.h', 'run_script_log.cc',
'run_script_messages.cc', 'run_script_log.h',
'run_script_messages.h', 'run_script_messages.cc',
'version.cc', 'run_script_messages.h',
include_directories: [include_directories('.')] + includes, 'version.cc',
install: true, dependencies: [crypto],
install_dir: 'lib/kea/hooks', include_directories: [include_directories('.')] + INCLUDES,
link_with: libs_built_so_far, install: true,
install_dir: 'lib/kea/hooks',
link_with: LIBS_BUILT_SO_FAR,
) )

View File

@ -1,14 +1,16 @@
dhcp_stat_cmds_lib = library('dhcp_stat_cmds', dhcp_stat_cmds_lib = library(
'stat_cmds.cc', 'dhcp_stat_cmds',
'stat_cmds.h', 'stat_cmds.cc',
'stat_cmds_callouts.cc', 'stat_cmds.h',
'stat_cmds_log.cc', 'stat_cmds_callouts.cc',
'stat_cmds_log.h', 'stat_cmds_log.cc',
'stat_cmds_messages.cc', 'stat_cmds_log.h',
'stat_cmds_messages.h', 'stat_cmds_messages.cc',
'version.cc', 'stat_cmds_messages.h',
include_directories: [include_directories('.')] + includes, 'version.cc',
install: true, dependencies: [crypto],
install_dir: 'lib/kea/hooks', include_directories: [include_directories('.')] + INCLUDES,
link_with: libs_built_so_far, install: true,
install_dir: 'lib/kea/hooks',
link_with: LIBS_BUILT_SO_FAR,
) )

View File

@ -1,23 +1,24 @@
dhcp_user_chk_lib = library('dhcp_user_chk', dhcp_user_chk_lib = library(
'load_unload.cc', 'dhcp_user_chk',
'pkt_receive_co.cc', 'load_unload.cc',
'pkt_send_co.cc', 'pkt_receive_co.cc',
'subnet_select_co.cc', 'pkt_send_co.cc',
'user.cc', 'subnet_select_co.cc',
'user.h', 'user.cc',
'user_chk.h', 'user.h',
'user_chk_log.cc', 'user_chk.h',
'user_chk_log.h', 'user_chk_log.cc',
'user_chk_messages.cc', 'user_chk_log.h',
'user_chk_messages.h', 'user_chk_messages.cc',
'user_data_source.h', 'user_chk_messages.h',
'user_file.cc', 'user_data_source.h',
'user_file.h', 'user_file.cc',
'user_registry.cc', 'user_file.h',
'user_registry.h', 'user_registry.cc',
'version.cc', 'user_registry.h',
include_directories: [include_directories('.')] + includes, 'version.cc',
install: true, include_directories: [include_directories('.')] + INCLUDES,
install_dir: 'lib/kea/hooks', install: true,
link_with: libs_built_so_far, install_dir: 'lib/kea/hooks',
link_with: LIBS_BUILT_SO_FAR,
) )

View File

@ -1,14 +1,15 @@
kea_asiodns_lib = library('kea-asiodns', kea_asiodns_lib = library(
'asiodns_messages.cc', 'kea-asiodns',
'asiodns_messages.h', 'asiodns_messages.cc',
'io_fetch.cc', 'asiodns_messages.h',
'io_fetch.h', 'io_fetch.cc',
'logger.cc', 'io_fetch.h',
'logger.h', 'logger.cc',
include_directories: [include_directories('.')] + includes, 'logger.h',
install: true, include_directories: [include_directories('.')] + INCLUDES,
install_dir: 'lib', install: true,
link_with: libs_built_so_far, install_dir: 'lib',
link_with: LIBS_BUILT_SO_FAR,
) )
libs_built_so_far = [kea_asiodns_lib] + libs_built_so_far LIBS_BUILT_SO_FAR = [kea_asiodns_lib] + LIBS_BUILT_SO_FAR
subdir('tests') subdir('tests')

View File

@ -1,8 +1,9 @@
kea_asiodns_tests_exe = executable('kea-asiodns-tests', kea_asiodns_tests = executable(
'io_fetch_unittest.cc', 'kea-asiodns-tests',
'run_unittests.cc', 'io_fetch_unittest.cc',
dependencies: [gtest], 'run_unittests.cc',
include_directories: [include_directories('.')] + includes, dependencies: [gtest],
link_with: libs_built_so_far + [kea_testutils_lib, kea_util_unittests_lib], include_directories: [include_directories('.')] + INCLUDES,
link_with: LIBS_BUILT_SO_FAR + [kea_testutils_lib, kea_util_unittests_lib],
) )
test('kea_asiodns_tests_exe', kea_asiodns_tests_exe) test('kea_asiodns_tests', kea_asiodns_tests, protocol: 'gtest')

View File

@ -1,53 +1,54 @@
kea_asiolink_lib = library('kea-asiolink', kea_asiolink_lib = library(
'addr_utilities.cc', 'kea-asiolink',
'addr_utilities.h', 'addr_utilities.cc',
'asiolink.h', 'addr_utilities.h',
'asio_wrapper.h', 'asiolink.h',
'botan_tls.cc', 'asio_wrapper.h',
'botan_tls.h', 'botan_tls.cc',
'botan_wrapper.h', 'botan_tls.h',
'common_tls.cc', 'botan_wrapper.h',
'common_tls.h', 'common_tls.cc',
'crypto_tls.h', 'common_tls.h',
'dummy_io_cb.h', 'crypto_tls.h',
'interval_timer.cc', 'dummy_io_cb.h',
'interval_timer.h', 'interval_timer.cc',
'io_acceptor.h', 'interval_timer.h',
'io_address.cc', 'io_acceptor.h',
'io_address.h', 'io_address.cc',
'io_asio_socket.h', 'io_address.h',
'io_endpoint.cc', 'io_asio_socket.h',
'io_endpoint.h', 'io_endpoint.cc',
'io_error.h', 'io_endpoint.h',
'io_service.cc', 'io_error.h',
'io_service.h', 'io_service.cc',
'io_service_mgr.cc', 'io_service.h',
'io_service_mgr.h', 'io_service_mgr.cc',
'io_service_signal.cc', 'io_service_mgr.h',
'io_service_signal.h', 'io_service_signal.cc',
'io_service_thread_pool.cc', 'io_service_signal.h',
'io_service_thread_pool.h', 'io_service_thread_pool.cc',
'io_socket.cc', 'io_service_thread_pool.h',
'io_socket.h', 'io_socket.cc',
'openssl_tls.cc', 'io_socket.h',
'openssl_tls.h', 'openssl_tls.cc',
'process_spawn.cc', 'openssl_tls.h',
'process_spawn.h', 'process_spawn.cc',
'tcp_acceptor.h', 'process_spawn.h',
'tcp_endpoint.h', 'tcp_acceptor.h',
'tcp_socket.h', 'tcp_endpoint.h',
'tls_acceptor.h', 'tcp_socket.h',
'tls_socket.h', 'tls_acceptor.h',
'udp_endpoint.h', 'tls_socket.h',
'udp_socket.h', 'udp_endpoint.h',
'unix_domain_socket.cc', 'udp_socket.h',
'unix_domain_socket.h', 'unix_domain_socket.cc',
'unix_domain_socket_acceptor.h', 'unix_domain_socket.h',
'unix_domain_socket_endpoint.h', 'unix_domain_socket_acceptor.h',
dependencies: crypto, 'unix_domain_socket_endpoint.h',
include_directories: [include_directories('.')] + includes, dependencies: crypto,
install: true, include_directories: [include_directories('.')] + INCLUDES,
install_dir: 'lib', install: true,
link_with: libs_built_so_far, install_dir: 'lib',
link_with: LIBS_BUILT_SO_FAR,
) )
libs_built_so_far += [kea_asiolink_lib] LIBS_BUILT_SO_FAR = [kea_asiolink_lib] + LIBS_BUILT_SO_FAR

View File

@ -1,29 +1,32 @@
kea_cc_lib = library('kea-cc', kea_cc_lib = library(
'base_stamped_element.cc', 'kea-cc',
'base_stamped_element.h', 'base_stamped_element.cc',
'cfg_to_element.h', 'base_stamped_element.h',
'command_interpreter.cc', 'cfg_to_element.h',
'command_interpreter.h', 'command_interpreter.cc',
'data.cc', 'command_interpreter.h',
'data.h', 'data.cc',
'dhcp_config_error.h', 'data.h',
'element_value.h', 'default_credentials.cc',
'json_feed.cc', 'default_credentials.h',
'json_feed.h', 'dhcp_config_error.h',
'server_tag.cc', 'element_value.h',
'server_tag.h', 'json_feed.cc',
'simple_parser.cc', 'json_feed.h',
'simple_parser.h', 'server_tag.cc',
'stamped_element.cc', 'server_tag.h',
'stamped_element.h', 'simple_parser.cc',
'stamped_value.cc', 'simple_parser.h',
'stamped_value.h', 'stamped_element.cc',
'user_context.cc', 'stamped_element.h',
'user_context.h', 'stamped_value.cc',
include_directories: [include_directories('.')] + includes, 'stamped_value.h',
install: true, 'user_context.cc',
install_dir: 'lib', 'user_context.h',
link_with: libs_built_so_far, include_directories: [include_directories('.')] + INCLUDES,
install: true,
install_dir: 'lib',
link_with: LIBS_BUILT_SO_FAR,
) )
libs_built_so_far = [kea_cc_lib] + libs_built_so_far LIBS_BUILT_SO_FAR = [kea_cc_lib] + LIBS_BUILT_SO_FAR
subdir('tests') subdir('tests')

View File

@ -1,17 +1,18 @@
kea_cc_tests_exe = executable('kea-cc-tests', kea_cc_tests = executable(
'command_interpreter_unittests.cc', 'kea-cc-tests',
'data_file_unittests.cc', 'command_interpreter_unittests.cc',
'data_unittests.cc', 'data_file_unittests.cc',
'element_value_unittests.cc', 'data_unittests.cc',
'json_feed_unittests.cc', 'element_value_unittests.cc',
'run_unittests.cc', 'json_feed_unittests.cc',
'server_tag_unittest.cc', 'run_unittests.cc',
'simple_parser_unittest.cc', 'server_tag_unittest.cc',
'stamped_element_unittest.cc', 'simple_parser_unittest.cc',
'stamped_value_unittest.cc', 'stamped_element_unittest.cc',
'user_context_unittests.cc', 'stamped_value_unittest.cc',
dependencies: [gtest], 'user_context_unittests.cc',
include_directories: [include_directories('.')] + includes, dependencies: [gtest],
link_with: libs_built_so_far + [kea_util_unittests_lib], include_directories: [include_directories('.')] + INCLUDES,
link_with: LIBS_BUILT_SO_FAR + [kea_util_unittests_lib],
) )
test('kea_cc_tests_exe', kea_cc_tests_exe) test('kea_cc_tests', kea_cc_tests, protocol: 'gtest')

View File

@ -1,36 +1,39 @@
kea_config_lib = library('kea-config', kea_config_lib = library(
'base_command_mgr.cc', 'kea-config',
'base_command_mgr.h', 'base_command_mgr.cc',
'client_connection.cc', 'base_command_mgr.h',
'client_connection.h', 'client_connection.cc',
'cmds_impl.h', 'client_connection.h',
'cmd_http_listener.cc', 'cmds_impl.h',
'cmd_http_listener.h', 'cmd_http_listener.cc',
'cmd_response_creator.cc', 'cmd_http_listener.h',
'cmd_response_creator.h', 'cmd_response_creator.cc',
'cmd_response_creator_factory.h', 'cmd_response_creator.h',
'command_mgr.cc', 'cmd_response_creator_factory.h',
'command_mgr.h', 'command_mgr.cc',
'config_log.cc', 'command_mgr.h',
'config_log.h', 'config_log.cc',
'config_messages.cc', 'config_log.h',
'config_messages.h', 'config_messages.cc',
'hooked_command_mgr.cc', 'config_messages.h',
'hooked_command_mgr.h', 'hooked_command_mgr.cc',
'http_command_config.cc', 'hooked_command_mgr.h',
'http_command_config.h', 'http_command_config.cc',
'http_command_mgr.cc', 'http_command_config.h',
'http_command_mgr.h', 'http_command_mgr.cc',
'http_command_response_creator.cc', 'http_command_mgr.h',
'http_command_response_creator.h', 'http_command_response_creator.cc',
'http_command_response_creator_factory.h', 'http_command_response_creator.h',
'timeouts.h', 'http_command_response_creator_factory.h',
'unix_command_mgr.cc', 'timeouts.h',
'unix_command_mgr.h', 'unix_command_config.cc',
dependencies: [crypto], 'unix_command_config.h',
include_directories: [include_directories('.')] + includes, 'unix_command_mgr.cc',
install: true, 'unix_command_mgr.h',
install_dir: 'lib', dependencies: [crypto],
link_with: libs_built_so_far, include_directories: [include_directories('.')] + INCLUDES,
install: true,
install_dir: 'lib',
link_with: LIBS_BUILT_SO_FAR,
) )
libs_built_so_far += [kea_config_lib] LIBS_BUILT_SO_FAR = [kea_config_lib] + LIBS_BUILT_SO_FAR

View File

@ -1,12 +1,13 @@
kea_config_backend_lib = library('kea-config_backend', kea_config_backend_lib = library(
'base_config_backend.h', 'kea-config_backend',
'base_config_backend_mgr.h', 'base_config_backend.h',
'base_config_backend_pool.h', 'base_config_backend_mgr.h',
'constants.h', 'base_config_backend_pool.h',
include_directories: [include_directories('.')] + includes, 'constants.h',
install: true, include_directories: [include_directories('.')] + INCLUDES,
install_dir: 'lib', install: true,
link_with: libs_built_so_far, install_dir: 'lib',
link_with: LIBS_BUILT_SO_FAR,
) )
libs_built_so_far = [kea_config_backend_lib] + libs_built_so_far LIBS_BUILT_SO_FAR = [kea_config_backend_lib] + LIBS_BUILT_SO_FAR
subdir('tests') subdir('tests')

View File

@ -1,8 +1,9 @@
kea_config_backend_tests_exe = executable('kea-config_backend-tests', kea_config_backend_tests = executable(
'config_backend_mgr_unittest.cc', 'kea-config_backend-tests',
'run_unittests.cc', 'config_backend_mgr_unittest.cc',
dependencies: [gtest], 'run_unittests.cc',
include_directories: [include_directories('.')] + includes, dependencies: [gtest],
link_with: libs_built_so_far + [kea_testutils_lib, kea_util_unittests_lib], include_directories: [include_directories('.')] + INCLUDES,
link_with: LIBS_BUILT_SO_FAR + [kea_testutils_lib, kea_util_unittests_lib],
) )
test('kea_config_backend_tests_exe', kea_config_backend_tests_exe) test('kea_config_backend_tests', kea_config_backend_tests, protocol: 'gtest')

View File

@ -1,21 +1,36 @@
kea_cryptolink_lib = library('kea-cryptolink', sources = []
'cryptolink.cc', if crypto == botan
'cryptolink.h', sources += [
'crypto_hash.cc', 'botan_common.h',
'crypto_hash.h', 'botan_hash.cc',
'crypto_hmac.cc', 'botan_hmac.cc',
'crypto_hmac.h', 'botan_link.cc',
'crypto_rng.cc', ]
'crypto_rng.h', elif crypto == openssl
'openssl_common.h', sources += [
'openssl_hash.cc', 'openssl_common.h',
'openssl_hmac.cc', 'openssl_hash.cc',
'openssl_link.cc', 'openssl_hmac.cc',
dependencies: [crypto], 'openssl_link.cc',
include_directories: [include_directories('.')] + includes, ]
install: true, endif
install_dir: 'lib',
link_with: libs_built_so_far, kea_cryptolink_lib = library(
'kea-cryptolink',
'cryptolink.cc',
'cryptolink.h',
'crypto_hash.cc',
'crypto_hash.h',
'crypto_hmac.cc',
'crypto_hmac.h',
'crypto_rng.cc',
'crypto_rng.h',
sources,
dependencies: [crypto],
include_directories: [include_directories('.')] + INCLUDES,
install: true,
install_dir: 'lib',
link_with: LIBS_BUILT_SO_FAR,
) )
libs_built_so_far = [kea_cryptolink_lib] + libs_built_so_far LIBS_BUILT_SO_FAR = [kea_cryptolink_lib] + LIBS_BUILT_SO_FAR
subdir('tests') subdir('tests')

View File

@ -1,10 +1,11 @@
kea_cryptolink_tests_exe = executable('kea-cryptolink-tests', kea_cryptolink_tests = executable(
'crypto_unittests.cc', 'kea-cryptolink-tests',
'hash_unittests.cc', 'crypto_unittests.cc',
'hmac_unittests.cc', 'hash_unittests.cc',
'run_unittests.cc', 'hmac_unittests.cc',
dependencies: [gtest], 'run_unittests.cc',
include_directories: [include_directories('.')] + includes, dependencies: [gtest],
link_with: libs_built_so_far + [kea_util_unittests_lib], include_directories: [include_directories('.')] + INCLUDES,
link_with: LIBS_BUILT_SO_FAR + [kea_util_unittests_lib],
) )
test('kea_cryptolink_tests_exe', kea_cryptolink_tests_exe) test('kea_cryptolink_tests', kea_cryptolink_tests, protocol: 'gtest')

View File

@ -1,29 +1,31 @@
kea_d2srv_lib = library('kea-d2srv', kea_d2srv_lib = library(
'd2_cfg_mgr.cc', 'kea-d2srv',
'd2_cfg_mgr.h', 'd2_cfg_mgr.cc',
'd2_config.cc', 'd2_cfg_mgr.h',
'd2_config.h', 'd2_config.cc',
'd2_log.cc', 'd2_config.h',
'd2_log.h', 'd2_log.cc',
'd2_messages.cc', 'd2_log.h',
'd2_messages.h', 'd2_messages.cc',
'd2_simple_parser.cc', 'd2_messages.h',
'd2_simple_parser.h', 'd2_simple_parser.cc',
'd2_stats.cc', 'd2_simple_parser.h',
'd2_stats.h', 'd2_stats.cc',
'd2_tsig_key.cc', 'd2_stats.h',
'd2_tsig_key.h', 'd2_tsig_key.cc',
'd2_update_message.cc', 'd2_tsig_key.h',
'd2_update_message.h', 'd2_update_message.cc',
'd2_zone.cc', 'd2_update_message.h',
'd2_zone.h', 'd2_zone.cc',
'dns_client.cc', 'd2_zone.h',
'dns_client.h', 'dns_client.cc',
'nc_trans.cc', 'dns_client.h',
'nc_trans.h', 'nc_trans.cc',
include_directories: [include_directories('.')] + includes, 'nc_trans.h',
install: true, dependencies: [crypto],
install_dir: 'lib', include_directories: [include_directories('.')] + INCLUDES,
link_with: libs_built_so_far, install: true,
install_dir: 'lib',
link_with: LIBS_BUILT_SO_FAR,
) )
libs_built_so_far += [kea_d2srv_lib] LIBS_BUILT_SO_FAR = [kea_d2srv_lib] + LIBS_BUILT_SO_FAR

View File

@ -1,27 +1,28 @@
kea_database_lib = library('kea-database', kea_database_lib = library(
'audit_entry.cc', 'kea-database',
'audit_entry.h', 'audit_entry.cc',
'backend_selector.cc', 'audit_entry.h',
'backend_selector.h', 'backend_selector.cc',
'database_connection.cc', 'backend_selector.h',
'database_connection.h', 'database_connection.cc',
'dbaccess_parser.cc', 'database_connection.h',
'dbaccess_parser.h', 'dbaccess_parser.cc',
'db_exceptions.h', 'dbaccess_parser.h',
'db_log.cc', 'db_exceptions.h',
'db_log.h', 'db_log.cc',
'db_messages.cc', 'db_log.h',
'db_messages.h', 'db_messages.cc',
'server.cc', 'db_messages.h',
'server.h', 'server.cc',
'server_collection.cc', 'server.h',
'server_collection.h', 'server_collection.cc',
'server_selector.cc', 'server_collection.h',
'server_selector.h', 'server_selector.cc',
include_directories: [include_directories('.')] + includes, 'server_selector.h',
install: true, include_directories: [include_directories('.')] + INCLUDES,
install_dir: 'lib', install: true,
link_with: libs_built_so_far, install_dir: 'lib',
link_with: LIBS_BUILT_SO_FAR,
) )
libs_built_so_far = [kea_database_lib] + libs_built_so_far LIBS_BUILT_SO_FAR = [kea_database_lib] + LIBS_BUILT_SO_FAR
subdir('tests') subdir('tests')

View File

@ -1,14 +1,15 @@
kea_database_tests_exe = executable('kea-database-tests', kea_database_tests = executable(
'audit_entry_unittest.cc', 'kea-database-tests',
'backend_selector_unittest.cc', 'audit_entry_unittest.cc',
'database_connection_unittest.cc', 'backend_selector_unittest.cc',
'database_log_unittest.cc', 'database_connection_unittest.cc',
'dbaccess_parser_unittest.cc', 'database_log_unittest.cc',
'run_unittests.cc', 'dbaccess_parser_unittest.cc',
'server_selector_unittest.cc', 'run_unittests.cc',
'server_unittest.cc', 'server_selector_unittest.cc',
dependencies: [gtest], 'server_unittest.cc',
include_directories: [include_directories('.')] + includes, dependencies: [gtest],
link_with: libs_built_so_far + [kea_testutils_lib, kea_util_unittests_lib], include_directories: [include_directories('.')] + INCLUDES,
link_with: LIBS_BUILT_SO_FAR + [kea_testutils_lib, kea_util_unittests_lib],
) )
test('kea_database_tests_exe', kea_database_tests_exe) test('kea_database_tests', kea_database_tests, protocol: 'gtest')

View File

@ -1,119 +1,118 @@
system = build_machine.system()
pkt_filter_cc = 'pkt_filter_bpf.cc' pkt_filter_cc = 'pkt_filter_bpf.cc'
pkt_filter_h = 'pkt_filter_bpf.h' pkt_filter_h = 'pkt_filter_bpf.h'
if system == 'linux' if SYSTEM == 'linux'
iface_mgr = 'iface_mgr_linux.cc' iface_mgr = 'iface_mgr_linux.cc'
pkt_filter_cc = 'pkt_filter_lpf.cc' pkt_filter_cc = 'pkt_filter_lpf.cc'
pkt_filter_h = 'pkt_filter_lpf.h' pkt_filter_h = 'pkt_filter_lpf.h'
elif system == 'freebsd' or system == 'netbsd' or system == 'openbsd' or system == 'darwin' elif SYSTEM == 'freebsd' or SYSTEM == 'netbsd' or SYSTEM == 'openbsd' or SYSTEM == 'darwin'
iface_mgr = 'iface_mgr_bsd.cc' iface_mgr = 'iface_mgr_bsd.cc'
elif system == 'sun' elif SYSTEM == 'sun'
iface_mgr = 'iface_mgr_sun.cc' iface_mgr = 'iface_mgr_sun.cc'
elif system == 'osx'
else else
error(f'Build failed: Unsupported system "@system@".') error(f'Build failed: Unsupported system "@SYSTEM@".')
endif endif
kea_dhcp_lib = library('kea-dhcp', kea_dhcp_lib = library(
'classify.cc', 'kea-dhcp',
'classify.h', 'classify.cc',
'dhcp4.h', 'classify.h',
'dhcp6.h', 'dhcp4.h',
'docsis3_option_defs.h', 'dhcp6.h',
'duid.cc', 'docsis3_option_defs.h',
'duid.h', 'duid.cc',
'duid_factory.cc', 'duid.h',
'duid_factory.h', 'duid_factory.cc',
'hwaddr.cc', 'duid_factory.h',
'hwaddr.h', 'hwaddr.cc',
'iface_mgr.cc', 'hwaddr.h',
'iface_mgr.h', 'iface_mgr.cc',
'iface_mgr_error_handler.h', 'iface_mgr.h',
iface_mgr, 'iface_mgr_error_handler.h',
'libdhcp++.cc', iface_mgr,
'libdhcp++.h', 'libdhcp++.cc',
'opaque_data_tuple.cc', 'libdhcp++.h',
'opaque_data_tuple.h', 'opaque_data_tuple.cc',
'option.cc', 'opaque_data_tuple.h',
'option.h', 'option.cc',
'option4_addrlst.cc', 'option.h',
'option4_addrlst.h', 'option4_addrlst.cc',
'option4_client_fqdn.cc', 'option4_addrlst.h',
'option4_client_fqdn.h', 'option4_client_fqdn.cc',
'option4_dnr.cc', 'option4_client_fqdn.h',
'option4_dnr.h', 'option4_dnr.cc',
'option6_addrlst.cc', 'option4_dnr.h',
'option6_addrlst.h', 'option6_addrlst.cc',
'option6_auth.cc', 'option6_addrlst.h',
'option6_auth.h', 'option6_auth.cc',
'option6_client_fqdn.cc', 'option6_auth.h',
'option6_client_fqdn.h', 'option6_client_fqdn.cc',
'option6_dnr.cc', 'option6_client_fqdn.h',
'option6_dnr.h', 'option6_dnr.cc',
'option6_ia.cc', 'option6_dnr.h',
'option6_ia.h', 'option6_ia.cc',
'option6_iaaddr.cc', 'option6_ia.h',
'option6_iaaddr.h', 'option6_iaaddr.cc',
'option6_iaprefix.cc', 'option6_iaaddr.h',
'option6_iaprefix.h', 'option6_iaprefix.cc',
'option6_pdexclude.cc', 'option6_iaprefix.h',
'option6_pdexclude.h', 'option6_pdexclude.cc',
'option6_status_code.cc', 'option6_pdexclude.h',
'option6_status_code.h', 'option6_status_code.cc',
'option_classless_static_route.cc', 'option6_status_code.h',
'option_classless_static_route.h', 'option_classless_static_route.cc',
'option_custom.cc', 'option_classless_static_route.h',
'option_custom.h', 'option_custom.cc',
'option_data_types.cc', 'option_custom.h',
'option_data_types.h', 'option_data_types.cc',
'option_definition.cc', 'option_data_types.h',
'option_definition.h', 'option_definition.cc',
'option_int.h', 'option_definition.h',
'option_int_array.h', 'option_int.h',
'option_opaque_data_tuples.cc', 'option_int_array.h',
'option_opaque_data_tuples.h', 'option_opaque_data_tuples.cc',
'option_space.cc', 'option_opaque_data_tuples.h',
'option_space.h', 'option_space.cc',
'option_space_container.h', 'option_space.h',
'option_string.cc', 'option_space_container.h',
'option_string.h', 'option_string.cc',
'option_vendor.cc', 'option_string.h',
'option_vendor.h', 'option_vendor.cc',
'option_vendor_class.cc', 'option_vendor.h',
'option_vendor_class.h', 'option_vendor_class.cc',
'packet_queue.h', 'option_vendor_class.h',
'packet_queue_mgr.h', 'packet_queue.h',
'packet_queue_mgr4.cc', 'packet_queue_mgr.h',
'packet_queue_mgr4.h', 'packet_queue_mgr4.cc',
'packet_queue_mgr6.cc', 'packet_queue_mgr4.h',
'packet_queue_mgr6.h', 'packet_queue_mgr6.cc',
'packet_queue_ring.h', 'packet_queue_mgr6.h',
'pkt.cc', 'packet_queue_ring.h',
'pkt.h', 'pkt.cc',
'pkt4.cc', 'pkt.h',
'pkt4.h', 'pkt4.cc',
'pkt4o6.cc', 'pkt4.h',
'pkt4o6.h', 'pkt4o6.cc',
'pkt6.cc', 'pkt4o6.h',
'pkt6.h', 'pkt6.cc',
'pkt_filter.cc', 'pkt6.h',
'pkt_filter.h', 'pkt_filter.cc',
'pkt_filter6.cc', 'pkt_filter.h',
'pkt_filter6.h', 'pkt_filter6.cc',
'pkt_filter_inet.cc', 'pkt_filter6.h',
'pkt_filter_inet.h', 'pkt_filter_inet.cc',
'pkt_filter_inet6.cc', 'pkt_filter_inet.h',
'pkt_filter_inet6.h', 'pkt_filter_inet6.cc',
pkt_filter_cc, 'pkt_filter_inet6.h',
pkt_filter_h, pkt_filter_cc,
'pkt_template.h', pkt_filter_h,
'protocol_util.cc', 'pkt_template.h',
'protocol_util.h', 'protocol_util.cc',
'socket_info.h', 'protocol_util.h',
'std_option_defs.h', 'socket_info.h',
include_directories: [include_directories('.')] + includes, 'std_option_defs.h',
install: true, include_directories: [include_directories('.')] + INCLUDES,
install_dir: 'lib', install: true,
link_with: libs_built_so_far, install_dir: 'lib',
link_with: LIBS_BUILT_SO_FAR,
) )
libs_built_so_far += [kea_dhcp_lib] LIBS_BUILT_SO_FAR = [kea_dhcp_lib] + LIBS_BUILT_SO_FAR

View File

@ -1,18 +1,19 @@
kea_dhcp_ddns_lib = library('kea-dhcp_ddns', kea_dhcp_ddns_lib = library(
'dhcp_ddns_log.cc', 'kea-dhcp_ddns',
'dhcp_ddns_log.h', 'dhcp_ddns_log.cc',
'dhcp_ddns_messages.cc', 'dhcp_ddns_log.h',
'dhcp_ddns_messages.h', 'dhcp_ddns_messages.cc',
'ncr_io.cc', 'dhcp_ddns_messages.h',
'ncr_io.h', 'ncr_io.cc',
'ncr_msg.cc', 'ncr_io.h',
'ncr_msg.h', 'ncr_msg.cc',
'ncr_udp.cc', 'ncr_msg.h',
'ncr_udp.h', 'ncr_udp.cc',
include_directories: [include_directories('.')] + includes, 'ncr_udp.h',
install: true, include_directories: [include_directories('.')] + INCLUDES,
install_dir: 'lib', install: true,
link_with: libs_built_so_far, install_dir: 'lib',
link_with: LIBS_BUILT_SO_FAR,
) )
libs_built_so_far = [kea_dhcp_ddns_lib] + libs_built_so_far LIBS_BUILT_SO_FAR = [kea_dhcp_ddns_lib] + LIBS_BUILT_SO_FAR
subdir('tests') subdir('tests')

View File

@ -1,11 +1,12 @@
kea_dhcp_ddns_tests_exe = executable('kea-dhcp_ddns-tests', kea_dhcp_ddns_tests = executable(
'ncr_udp_unittests.cc', 'kea-dhcp_ddns-tests',
'ncr_unittests.cc', 'ncr_udp_unittests.cc',
'run_unittests.cc', 'ncr_unittests.cc',
'test_utils.cc', 'run_unittests.cc',
'test_utils.h', 'test_utils.cc',
dependencies: [gtest], 'test_utils.h',
include_directories: [include_directories('.')] + includes, dependencies: [gtest],
link_with: libs_built_so_far + [kea_testutils_lib, kea_util_unittests_lib], include_directories: [include_directories('.')] + INCLUDES,
link_with: LIBS_BUILT_SO_FAR + [kea_testutils_lib, kea_util_unittests_lib],
) )
test('kea_dhcp_ddns_tests_exe', kea_dhcp_ddns_tests_exe) test('kea_dhcp_ddns_tests', kea_dhcp_ddns_tests, protocol: 'gtest')

View File

@ -1,195 +1,202 @@
kea_dhcpsrv_lib = library('kea-dhcpsrv', kea_dhcpsrv_lib = library(
'allocation_state.cc', 'kea-dhcpsrv',
'allocation_state.h', 'allocation_state.cc',
'allocator.cc', 'allocation_state.h',
'allocator.h', 'allocator.cc',
'alloc_engine.cc', 'allocator.h',
'alloc_engine.h', 'alloc_engine.cc',
'alloc_engine_log.cc', 'alloc_engine.h',
'alloc_engine_log.h', 'alloc_engine_log.cc',
'alloc_engine_messages.cc', 'alloc_engine_log.h',
'alloc_engine_messages.h', 'alloc_engine_messages.cc',
'base_host_data_source.h', 'alloc_engine_messages.h',
'cache_host_data_source.h', 'base_host_data_source.h',
'callout_handle_store.h', 'cache_host_data_source.h',
'cb_ctl_dhcp.h', 'callout_handle_store.h',
'cb_ctl_dhcp4.cc', 'cb_ctl_dhcp.h',
'cb_ctl_dhcp4.h', 'cb_ctl_dhcp4.cc',
'cb_ctl_dhcp6.cc', 'cb_ctl_dhcp4.h',
'cb_ctl_dhcp6.h', 'cb_ctl_dhcp6.cc',
'cfgmgr.cc', 'cb_ctl_dhcp6.h',
'cfgmgr.h', 'cfgmgr.cc',
'cfg_4o6.cc', 'cfgmgr.h',
'cfg_4o6.h', 'cfg_4o6.cc',
'cfg_consistency.cc', 'cfg_4o6.h',
'cfg_consistency.h', 'cfg_consistency.cc',
'cfg_db_access.cc', 'cfg_consistency.h',
'cfg_db_access.h', 'cfg_db_access.cc',
'cfg_duid.cc', 'cfg_db_access.h',
'cfg_duid.h', 'cfg_duid.cc',
'cfg_expiration.cc', 'cfg_duid.h',
'cfg_expiration.h', 'cfg_expiration.cc',
'cfg_globals.cc', 'cfg_expiration.h',
'cfg_globals.h', 'cfg_globals.cc',
'cfg_hosts.cc', 'cfg_globals.h',
'cfg_hosts.h', 'cfg_hosts.cc',
'cfg_hosts_util.cc', 'cfg_hosts.h',
'cfg_hosts_util.h', 'cfg_hosts_util.cc',
'cfg_host_operations.cc', 'cfg_hosts_util.h',
'cfg_host_operations.h', 'cfg_host_operations.cc',
'cfg_iface.cc', 'cfg_host_operations.h',
'cfg_iface.h', 'cfg_iface.cc',
'cfg_mac_source.cc', 'cfg_iface.h',
'cfg_mac_source.h', 'cfg_mac_source.cc',
'cfg_multi_threading.cc', 'cfg_mac_source.h',
'cfg_multi_threading.h', 'cfg_multi_threading.cc',
'cfg_option.cc', 'cfg_multi_threading.h',
'cfg_option.h', 'cfg_option.cc',
'cfg_option_def.cc', 'cfg_option.h',
'cfg_option_def.h', 'cfg_option_def.cc',
'cfg_rsoo.cc', 'cfg_option_def.h',
'cfg_rsoo.h', 'cfg_rsoo.cc',
'cfg_shared_networks.cc', 'cfg_rsoo.h',
'cfg_shared_networks.h', 'cfg_shared_networks.cc',
'cfg_subnets4.cc', 'cfg_shared_networks.h',
'cfg_subnets4.h', 'cfg_subnets4.cc',
'cfg_subnets6.cc', 'cfg_subnets4.h',
'cfg_subnets6.h', 'cfg_subnets6.cc',
'client_class_def.cc', 'cfg_subnets6.h',
'client_class_def.h', 'client_class_def.cc',
'config_backend_dhcp4.h', 'client_class_def.h',
'config_backend_dhcp4_mgr.cc', 'config_backend_dhcp4.h',
'config_backend_dhcp4_mgr.h', 'config_backend_dhcp4_mgr.cc',
'config_backend_dhcp6.h', 'config_backend_dhcp4_mgr.h',
'config_backend_dhcp6_mgr.cc', 'config_backend_dhcp6.h',
'config_backend_dhcp6_mgr.h', 'config_backend_dhcp6_mgr.cc',
'config_backend_pool_dhcp4.cc', 'config_backend_dhcp6_mgr.h',
'config_backend_pool_dhcp4.h', 'config_backend_pool_dhcp4.cc',
'config_backend_pool_dhcp6.cc', 'config_backend_pool_dhcp4.h',
'config_backend_pool_dhcp6.h', 'config_backend_pool_dhcp6.cc',
'csv_lease_file4.cc', 'config_backend_pool_dhcp6.h',
'csv_lease_file4.h', 'csv_lease_file4.cc',
'csv_lease_file6.cc', 'csv_lease_file4.h',
'csv_lease_file6.h', 'csv_lease_file6.cc',
'd2_client_cfg.cc', 'csv_lease_file6.h',
'd2_client_cfg.h', 'd2_client_cfg.cc',
'd2_client_mgr.cc', 'd2_client_cfg.h',
'd2_client_mgr.h', 'd2_client_mgr.cc',
'db_type.h', 'd2_client_mgr.h',
'dhcp4o6_ipc.cc', 'db_type.h',
'dhcp4o6_ipc.h', 'ddns_params.cc',
'dhcpsrv_exceptions.h', 'ddns_params.h',
'dhcpsrv_log.cc', 'dhcp4o6_ipc.cc',
'dhcpsrv_log.h', 'dhcp4o6_ipc.h',
'dhcpsrv_messages.cc', 'dhcpsrv_exceptions.h',
'dhcpsrv_messages.h', 'dhcpsrv_log.cc',
'flq_allocation_state.cc', 'dhcpsrv_log.h',
'flq_allocation_state.h', 'dhcpsrv_messages.cc',
'flq_allocator.cc', 'dhcpsrv_messages.h',
'flq_allocator.h', 'flq_allocation_state.cc',
'fuzz_log.cc', 'flq_allocation_state.h',
'fuzz_log.h', 'flq_allocator.cc',
'fuzz_messages.cc', 'flq_allocator.h',
'fuzz_messages.h', 'fuzz_log.cc',
'host.cc', 'fuzz_log.h',
'host.h', 'fuzz_messages.cc',
'hosts_log.cc', 'fuzz_messages.h',
'hosts_log.h', 'host.cc',
'hosts_messages.cc', 'host.h',
'hosts_messages.h', 'hosts_log.cc',
'host_container.h', 'hosts_log.h',
'host_data_source_factory.cc', 'hosts_messages.cc',
'host_data_source_factory.h', 'hosts_messages.h',
'host_mgr.cc', 'host_container.h',
'host_mgr.h', 'host_data_source_factory.cc',
'ip_range.cc', 'host_data_source_factory.h',
'ip_range.h', 'host_mgr.cc',
'ip_range_permutation.cc', 'host_mgr.h',
'ip_range_permutation.h', 'ip_range.cc',
'iterative_allocation_state.cc', 'ip_range.h',
'iterative_allocation_state.h', 'ip_range_permutation.cc',
'iterative_allocator.cc', 'ip_range_permutation.h',
'iterative_allocator.h', 'iterative_allocation_state.cc',
'key_from_key.h', 'iterative_allocation_state.h',
'lease.cc', 'iterative_allocator.cc',
'lease.h', 'iterative_allocator.h',
'lease_file_loader.h', 'key_from_key.h',
'lease_file_stats.h', 'lease.cc',
'lease_mgr.cc', 'lease.h',
'lease_mgr.h', 'lease_file_loader.h',
'lease_mgr_factory.cc', 'lease_file_stats.h',
'lease_mgr_factory.h', 'lease_mgr.cc',
'memfile_lease_limits.cc', 'lease_mgr.h',
'memfile_lease_limits.h', 'lease_mgr_factory.cc',
'memfile_lease_mgr.cc', 'lease_mgr_factory.h',
'memfile_lease_mgr.h', 'memfile_lease_limits.cc',
'memfile_lease_storage.h', 'memfile_lease_limits.h',
'ncr_generator.cc', 'memfile_lease_mgr.cc',
'ncr_generator.h', 'memfile_lease_mgr.h',
'network.cc', 'memfile_lease_storage.h',
'network.h', 'ncr_generator.cc',
'network_state.cc', 'ncr_generator.h',
'network_state.h', 'network.cc',
'packet_fuzzer.cc', 'network.h',
'packet_fuzzer.h', 'network_state.cc',
'parsers/base_network_parser.cc', 'network_state.h',
'parsers/base_network_parser.h', 'packet_fuzzer.cc',
'parsers/client_class_def_parser.cc', 'packet_fuzzer.h',
'parsers/client_class_def_parser.h', 'parsers/base_network_parser.cc',
'parsers/dhcp_parsers.cc', 'parsers/base_network_parser.h',
'parsers/dhcp_parsers.h', 'parsers/client_class_def_parser.cc',
'parsers/dhcp_queue_control_parser.cc', 'parsers/client_class_def_parser.h',
'parsers/dhcp_queue_control_parser.h', 'parsers/dhcp_parsers.cc',
'parsers/duid_config_parser.cc', 'parsers/dhcp_parsers.h',
'parsers/duid_config_parser.h', 'parsers/dhcp_queue_control_parser.cc',
'parsers/expiration_config_parser.cc', 'parsers/dhcp_queue_control_parser.h',
'parsers/expiration_config_parser.h', 'parsers/duid_config_parser.cc',
'parsers/host_reservations_list_parser.h', 'parsers/duid_config_parser.h',
'parsers/host_reservation_parser.cc', 'parsers/expiration_config_parser.cc',
'parsers/host_reservation_parser.h', 'parsers/expiration_config_parser.h',
'parsers/ifaces_config_parser.cc', 'parsers/host_reservations_list_parser.h',
'parsers/ifaces_config_parser.h', 'parsers/host_reservation_parser.cc',
'parsers/multi_threading_config_parser.cc', 'parsers/host_reservation_parser.h',
'parsers/multi_threading_config_parser.h', 'parsers/ifaces_config_parser.cc',
'parsers/option_data_parser.cc', 'parsers/ifaces_config_parser.h',
'parsers/option_data_parser.h', 'parsers/multi_threading_config_parser.cc',
'parsers/sanity_checks_parser.cc', 'parsers/multi_threading_config_parser.h',
'parsers/sanity_checks_parser.h', 'parsers/option_data_parser.cc',
'parsers/shared_networks_list_parser.h', 'parsers/option_data_parser.h',
'parsers/shared_network_parser.cc', 'parsers/sanity_checks_parser.cc',
'parsers/shared_network_parser.h', 'parsers/sanity_checks_parser.h',
'parsers/simple_parser4.cc', 'parsers/shared_networks_list_parser.h',
'parsers/simple_parser4.h', 'parsers/shared_network_parser.cc',
'parsers/simple_parser6.cc', 'parsers/shared_network_parser.h',
'parsers/simple_parser6.h', 'parsers/simple_parser4.cc',
'pool.cc', 'parsers/simple_parser4.h',
'pool.h', 'parsers/simple_parser6.cc',
'random_allocation_state.cc', 'parsers/simple_parser6.h',
'random_allocation_state.h', 'pool.cc',
'random_allocator.cc', 'pool.h',
'random_allocator.h', 'random_allocation_state.cc',
'resource_handler.cc', 'random_allocation_state.h',
'resource_handler.h', 'random_allocator.cc',
'sanity_checker.cc', 'random_allocator.h',
'sanity_checker.h', 'resource_handler.cc',
'shared_network.cc', 'resource_handler.h',
'shared_network.h', 'sanity_checker.cc',
'srv_config.cc', 'sanity_checker.h',
'srv_config.h', 'shared_network.cc',
'subnet.cc', 'shared_network.h',
'subnet.h', 'srv_config.cc',
'subnet_id.h', 'srv_config.h',
'subnet_selector.h', 'subnet.cc',
'timer_mgr.cc', 'subnet.h',
'timer_mgr.h', 'subnet_id.h',
'tracking_lease_mgr.cc', 'subnet_selector.h',
'tracking_lease_mgr.h', 'timer_mgr.cc',
'utils.h', 'timer_mgr.h',
'writable_host_data_source.h', 'tracking_lease_mgr.cc',
cpp_args: ['-DDHCP_DATA_DIR="@0@"'.format(meson.current_build_dir()), f'-DKEA_LFC_EXECUTABLE="@kea_lfc@"'], 'tracking_lease_mgr.h',
include_directories: [include_directories('.')] + includes, 'utils.h',
install: true, 'writable_host_data_source.h',
install_dir: 'lib', cpp_args: [
link_with: libs_built_so_far, f'-DDHCP_DATA_DIR="@TOP_BUILD_DIR@"',
f'-DKEA_LFC_EXECUTABLE="@KEA_LFC@"',
],
dependencies: [crypto],
include_directories: [include_directories('.')] + INCLUDES,
install: true,
install_dir: 'lib',
link_with: LIBS_BUILT_SO_FAR,
) )
libs_built_so_far += [kea_dhcpsrv_lib] LIBS_BUILT_SO_FAR = [kea_dhcpsrv_lib] + LIBS_BUILT_SO_FAR

View File

@ -1,64 +1,65 @@
kea_dns_lib = library('kea-dns', kea_dns_lib = library(
'char_string.cc', 'kea-dns',
'char_string.h', 'char_string.cc',
'edns.cc', 'char_string.h',
'edns.h', 'edns.cc',
'exceptions.cc', 'edns.h',
'exceptions.h', 'exceptions.cc',
'labelsequence.cc', 'exceptions.h',
'labelsequence.h', 'labelsequence.cc',
'master_lexer.cc', 'labelsequence.h',
'master_lexer.h', 'master_lexer.cc',
'master_lexer_inputsource.cc', 'master_lexer.h',
'master_lexer_inputsource.h', 'master_lexer_inputsource.cc',
'master_lexer_state.h', 'master_lexer_inputsource.h',
'master_loader.cc', 'master_lexer_state.h',
'master_loader.h', 'master_loader.cc',
'master_loader_callbacks.h', 'master_loader.h',
'message.cc', 'master_loader_callbacks.h',
'message.h', 'message.cc',
'messagerenderer.cc', 'message.h',
'messagerenderer.h', 'messagerenderer.cc',
'name.cc', 'messagerenderer.h',
'name.h', 'name.cc',
'name_internal.h', 'name.h',
'opcode.cc', 'name_internal.h',
'opcode.h', 'opcode.cc',
'question.cc', 'opcode.h',
'question.h', 'question.cc',
'rcode.cc', 'question.h',
'rcode.h', 'rcode.cc',
'rdata.cc', 'rcode.h',
'rdata.h', 'rdata.cc',
'rdataclass.cc', 'rdata.h',
'rdataclass.h', 'rdataclass.cc',
'rrclass.cc', 'rdataclass.h',
'rrclass.h', 'rrclass.cc',
'rrparamregistry.cc', 'rrclass.h',
'rrparamregistry.h', 'rrparamregistry.cc',
'rrset.cc', 'rrparamregistry.h',
'rrset.h', 'rrset.cc',
'rrttl.cc', 'rrset.h',
'rrttl.h', 'rrttl.cc',
'rrtype.cc', 'rrttl.h',
'rrtype.h', 'rrtype.cc',
'serial.cc', 'rrtype.h',
'serial.h', 'serial.cc',
'time_utils.cc', 'serial.h',
'time_utils.h', 'time_utils.cc',
'tsig.cc', 'time_utils.h',
'tsig.h', 'tsig.cc',
'tsigerror.cc', 'tsig.h',
'tsigerror.h', 'tsigerror.cc',
'tsigkey.cc', 'tsigerror.h',
'tsigkey.h', 'tsigkey.cc',
'tsigrecord.cc', 'tsigkey.h',
'tsigrecord.h', 'tsigrecord.cc',
'txt_like.h', 'tsigrecord.h',
include_directories: [include_directories('.')] + includes, 'txt_like.h',
install: true, include_directories: [include_directories('.')] + INCLUDES,
install_dir: 'lib', install: true,
link_with: libs_built_so_far, install_dir: 'lib',
link_with: LIBS_BUILT_SO_FAR,
) )
libs_built_so_far = [kea_dns_lib] + libs_built_so_far LIBS_BUILT_SO_FAR = [kea_dns_lib] + LIBS_BUILT_SO_FAR
subdir('tests') subdir('tests')

View File

@ -1,54 +1,55 @@
kea_dns_tests_exe = executable('kea-dns-tests', kea_dns_tests = executable(
'dns_exceptions_unittest.cc', 'kea-dns-tests',
'edns_unittest.cc', 'dns_exceptions_unittest.cc',
'labelsequence_unittest.cc', 'edns_unittest.cc',
'master_lexer_inputsource_unittest.cc', 'labelsequence_unittest.cc',
'master_lexer_state_unittest.cc', 'master_lexer_inputsource_unittest.cc',
'master_lexer_token_unittest.cc', 'master_lexer_state_unittest.cc',
'master_lexer_unittest.cc', 'master_lexer_token_unittest.cc',
'master_loader_callbacks_test.cc', 'master_lexer_unittest.cc',
'master_loader_unittest.cc', 'master_loader_callbacks_test.cc',
'messagerenderer_unittest.cc', 'master_loader_unittest.cc',
'message_unittest.cc', 'messagerenderer_unittest.cc',
'name_unittest.cc', 'message_unittest.cc',
'opcode_unittest.cc', 'name_unittest.cc',
'question_unittest.cc', 'opcode_unittest.cc',
'rcode_unittest.cc', 'question_unittest.cc',
'rdata_char_string_data_unittest.cc', 'rcode_unittest.cc',
'rdata_char_string_unittest.cc', 'rdata_char_string_data_unittest.cc',
'rdata_dhcid_unittest.cc', 'rdata_char_string_unittest.cc',
'rdata_in_aaaa_unittest.cc', 'rdata_dhcid_unittest.cc',
'rdata_in_a_unittest.cc', 'rdata_in_aaaa_unittest.cc',
'rdata_ns_unittest.cc', 'rdata_in_a_unittest.cc',
'rdata_opt_unittest.cc', 'rdata_ns_unittest.cc',
'rdata_ptr_unittest.cc', 'rdata_opt_unittest.cc',
'rdata_rrsig_unittest.cc', 'rdata_ptr_unittest.cc',
'rdata_soa_unittest.cc', 'rdata_rrsig_unittest.cc',
'rdata_tkey_unittest.cc', 'rdata_soa_unittest.cc',
'rdata_tsig_unittest.cc', 'rdata_tkey_unittest.cc',
'rdata_txt_like_unittest.cc', 'rdata_tsig_unittest.cc',
'rdata_unittest.cc', 'rdata_txt_like_unittest.cc',
'rdata_unittest.h', 'rdata_unittest.cc',
'rrclass_unittest.cc', 'rdata_unittest.h',
'rrparamregistry_unittest.cc', 'rrclass_unittest.cc',
'rrset_unittest.cc', 'rrparamregistry_unittest.cc',
'rrttl_unittest.cc', 'rrset_unittest.cc',
'rrtype_unittest.cc', 'rrttl_unittest.cc',
'run_unittests.cc', 'rrtype_unittest.cc',
'serial_unittest.cc', 'run_unittests.cc',
'time_utils_unittest.cc', 'serial_unittest.cc',
'tsigerror_unittest.cc', 'time_utils_unittest.cc',
'tsigkey_unittest.cc', 'tsigerror_unittest.cc',
'tsigrecord_unittest.cc', 'tsigkey_unittest.cc',
'tsig_unittest.cc', 'tsigrecord_unittest.cc',
'unittest_util.cc', 'tsig_unittest.cc',
'unittest_util.h', 'unittest_util.cc',
cpp_args: [ 'unittest_util.h',
'-DTEST_DATA_BUILDDIR="@0@/testdata"'.format(meson.current_build_dir()), cpp_args: [
'-DTEST_DATA_SRCDIR="@0@/testdata"'.format(meson.current_source_dir()), f'-DTEST_DATA_BUILDDIR="@TOP_BUILD_DIR@/src/lib/dns/tests/testdata"',
], f'-DTEST_DATA_SRCDIR="@TOP_SOURCE_DIR@/src/lib/dns/tests/testdata"',
dependencies: [gtest], ],
include_directories: [include_directories('.')] + includes, dependencies: [gtest],
link_with: libs_built_so_far + [kea_util_unittests_lib], include_directories: [include_directories('.')] + INCLUDES,
link_with: LIBS_BUILT_SO_FAR + [kea_util_unittests_lib],
) )
test('kea_dns_tests_exe', kea_dns_tests_exe) test('kea_dns_tests', kea_dns_tests, protocol: 'gtest')

View File

@ -1,24 +1,25 @@
kea_eval_lib = library('kea-eval', kea_eval_lib = library(
'dependency.cc', 'kea-eval',
'dependency.h', 'dependency.cc',
'evaluate.cc', 'dependency.h',
'evaluate.h', 'evaluate.cc',
'eval_context.cc', 'evaluate.h',
'eval_context.h', 'eval_context.cc',
'eval_context_decl.h', 'eval_context.h',
'eval_log.cc', 'eval_context_decl.h',
'eval_log.h', 'eval_log.cc',
'eval_messages.cc', 'eval_log.h',
'eval_messages.h', 'eval_messages.cc',
'lexer.cc', 'eval_messages.h',
'parser.cc', 'lexer.cc',
'parser.h', 'parser.cc',
'token.cc', 'parser.h',
'token.h', 'token.cc',
include_directories: [include_directories('.')] + includes, 'token.h',
install: true, include_directories: [include_directories('.')] + INCLUDES,
install_dir: 'lib', install: true,
link_with: libs_built_so_far, install_dir: 'lib',
link_with: LIBS_BUILT_SO_FAR,
) )
libs_built_so_far = [kea_eval_lib] + libs_built_so_far LIBS_BUILT_SO_FAR = [kea_eval_lib] + LIBS_BUILT_SO_FAR
subdir('tests') subdir('tests')

View File

@ -1,12 +1,13 @@
kea_eval_tests_exe = executable('kea-eval-tests', kea_eval_tests = executable(
'boolean_unittest.cc', 'kea-eval-tests',
'context_unittest.cc', 'boolean_unittest.cc',
'dependency_unittest.cc', 'context_unittest.cc',
'evaluate_unittest.cc', 'dependency_unittest.cc',
'run_unittests.cc', 'evaluate_unittest.cc',
'token_unittest.cc', 'run_unittests.cc',
dependencies: [gtest], 'token_unittest.cc',
include_directories: [include_directories('.')] + includes, dependencies: [gtest],
link_with: libs_built_so_far + [kea_testutils_lib, kea_util_unittests_lib], include_directories: [include_directories('.')] + INCLUDES,
link_with: LIBS_BUILT_SO_FAR + [kea_testutils_lib, kea_util_unittests_lib],
) )
test('kea_eval_tests_exe', kea_eval_tests_exe) test('kea_eval_tests', kea_eval_tests, protocol: 'gtest')

View File

@ -1,11 +1,12 @@
kea_exceptions_lib = library('kea-exceptions', kea_exceptions_lib = library(
'exceptions.cc', 'kea-exceptions',
'exceptions.h', 'exceptions.cc',
'isc_assert.h', 'exceptions.h',
include_directories: [include_directories('.')] + includes, 'isc_assert.h',
install: true, include_directories: [include_directories('.')] + INCLUDES,
install_dir: 'lib', install: true,
link_with: libs_built_so_far, install_dir: 'lib',
link_with: LIBS_BUILT_SO_FAR,
) )
libs_built_so_far = [kea_exceptions_lib] + libs_built_so_far LIBS_BUILT_SO_FAR = [kea_exceptions_lib] + LIBS_BUILT_SO_FAR
subdir('tests') subdir('tests')

View File

@ -1,8 +1,9 @@
kea_exceptions_tests_exe = executable('kea-exceptions-tests', kea_exceptions_tests = executable(
'exceptions_unittest.cc', 'kea-exceptions-tests',
'run_unittests.cc', 'exceptions_unittest.cc',
dependencies: [gtest], 'run_unittests.cc',
include_directories: [include_directories('.')] + includes, dependencies: [gtest],
link_with: libs_built_so_far, include_directories: [include_directories('.')] + INCLUDES,
link_with: LIBS_BUILT_SO_FAR,
) )
test('kea_exceptions_tests_exe', kea_exceptions_tests_exe) test('kea_exceptions_tests', kea_exceptions_tests, protocol: 'gtest')

View File

@ -1,37 +1,38 @@
kea_hooks_lib = library('kea-hooks', kea_hooks_lib = library(
'callout_handle.cc', 'kea-hooks',
'callout_handle.h', 'callout_handle.cc',
'callout_handle_associate.cc', 'callout_handle.h',
'callout_handle_associate.h', 'callout_handle_associate.cc',
'callout_manager.cc', 'callout_handle_associate.h',
'callout_manager.h', 'callout_manager.cc',
'hooks.h', 'callout_manager.h',
'hooks_config.cc', 'hooks.h',
'hooks_config.h', 'hooks_config.cc',
'hooks_log.cc', 'hooks_config.h',
'hooks_log.h', 'hooks_log.cc',
'hooks_manager.cc', 'hooks_log.h',
'hooks_manager.h', 'hooks_manager.cc',
'hooks_messages.cc', 'hooks_manager.h',
'hooks_messages.h', 'hooks_messages.cc',
'hooks_parser.cc', 'hooks_messages.h',
'hooks_parser.h', 'hooks_parser.cc',
'libinfo.cc', 'hooks_parser.h',
'libinfo.h', 'libinfo.cc',
'library_handle.cc', 'libinfo.h',
'library_handle.h', 'library_handle.cc',
'library_manager.cc', 'library_handle.h',
'library_manager.h', 'library_manager.cc',
'library_manager_collection.cc', 'library_manager.h',
'library_manager_collection.h', 'library_manager_collection.cc',
'parking_lots.h', 'library_manager_collection.h',
'pointer_converter.h', 'parking_lots.h',
'server_hooks.cc', 'pointer_converter.h',
'server_hooks.h', 'server_hooks.cc',
cpp_args: ['-DDEFAULT_HOOKS_PATH="@0@"'.format(meson.current_build_dir())], 'server_hooks.h',
include_directories: [include_directories('.')] + includes, cpp_args: [f'-DDEFAULT_HOOKS_PATH="@TOP_BUILD_DIR@"'],
install: true, include_directories: [include_directories('.')] + INCLUDES,
install_dir: 'lib', install: true,
link_with: libs_built_so_far, install_dir: 'lib',
link_with: LIBS_BUILT_SO_FAR,
) )
libs_built_so_far += [kea_hooks_lib] LIBS_BUILT_SO_FAR = [kea_hooks_lib] + LIBS_BUILT_SO_FAR

View File

@ -1,65 +1,66 @@
kea_http_lib = library('kea-http', kea_http_lib = library(
'auth_config.h', 'kea-http',
'auth_log.cc', 'auth_config.h',
'auth_log.h', 'auth_log.cc',
'auth_messages.cc', 'auth_log.h',
'auth_messages.h', 'auth_messages.cc',
'basic_auth.cc', 'auth_messages.h',
'basic_auth.h', 'basic_auth.cc',
'basic_auth_config.cc', 'basic_auth.h',
'basic_auth_config.h', 'basic_auth_config.cc',
'cfg_http_header.cc', 'basic_auth_config.h',
'cfg_http_header.h', 'cfg_http_header.cc',
'client.cc', 'cfg_http_header.h',
'client.h', 'client.cc',
'connection.cc', 'client.h',
'connection.h', 'connection.cc',
'connection_pool.cc', 'connection.h',
'connection_pool.h', 'connection_pool.cc',
'date_time.cc', 'connection_pool.h',
'date_time.h', 'date_time.cc',
'header_context.h', 'date_time.h',
'http_acceptor.h', 'header_context.h',
'http_header.cc', 'http_acceptor.h',
'http_header.h', 'http_header.cc',
'http_log.cc', 'http_header.h',
'http_log.h', 'http_log.cc',
'http_message.cc', 'http_log.h',
'http_message.h', 'http_message.cc',
'http_messages.cc', 'http_message.h',
'http_messages.h', 'http_messages.cc',
'http_message_parser_base.cc', 'http_messages.h',
'http_message_parser_base.h', 'http_message_parser_base.cc',
'http_types.h', 'http_message_parser_base.h',
'listener.cc', 'http_types.h',
'listener.h', 'listener.cc',
'listener_impl.cc', 'listener.h',
'listener_impl.h', 'listener_impl.cc',
'post_request.cc', 'listener_impl.h',
'post_request.h', 'post_request.cc',
'post_request_json.cc', 'post_request.h',
'post_request_json.h', 'post_request_json.cc',
'request.cc', 'post_request_json.h',
'request.h', 'request.cc',
'request_context.h', 'request.h',
'request_parser.cc', 'request_context.h',
'request_parser.h', 'request_parser.cc',
'response.cc', 'request_parser.h',
'response.h', 'response.cc',
'response_context.h', 'response.h',
'response_creator.cc', 'response_context.h',
'response_creator.h', 'response_creator.cc',
'response_creator_factory.h', 'response_creator.h',
'response_json.cc', 'response_creator_factory.h',
'response_json.h', 'response_json.cc',
'response_parser.cc', 'response_json.h',
'response_parser.h', 'response_parser.cc',
'url.cc', 'response_parser.h',
'url.h', 'url.cc',
dependencies: [crypto], 'url.h',
include_directories: [include_directories('.')] + includes, dependencies: [crypto],
install: true, include_directories: [include_directories('.')] + INCLUDES,
install_dir: 'lib', install: true,
link_with: libs_built_so_far, install_dir: 'lib',
link_with: LIBS_BUILT_SO_FAR,
) )
libs_built_so_far += [kea_http_lib] LIBS_BUILT_SO_FAR = [kea_http_lib] + LIBS_BUILT_SO_FAR

View File

@ -1,8 +1,5 @@
sources = [ executable('kea-msg-compiler',
'message.cc'] 'message.cc',
include_directories: [include_directories('.')] + INCLUDES,
kea_msg_compiler = executable('kea-msg-compiler', link_with : LIBS_BUILT_SO_FAR,
sources, install : true)
include_directories: [include_directories('.')] + includes,
link_with : [exceptions_lib, log_lib, util_lib],
install : true)

View File

@ -1,13 +1,14 @@
kea_log_interprocess_lib = library('kea-log-interprocess', kea_log_interprocess_lib = library(
'interprocess_sync.h', 'kea-log-interprocess',
'interprocess_sync_file.cc', 'interprocess_sync.h',
'interprocess_sync_file.h', 'interprocess_sync_file.cc',
'interprocess_sync_null.cc', 'interprocess_sync_file.h',
'interprocess_sync_null.h', 'interprocess_sync_null.cc',
cpp_args: ['-DLOCKFILE_DIR="@0@"'.format(meson.current_build_dir())], 'interprocess_sync_null.h',
include_directories: [include_directories('.')] + includes, cpp_args: [f'-DLOCKFILE_DIR="@TOP_BUILD_DIR@"'],
install: true, include_directories: [include_directories('.')] + INCLUDES,
install_dir: 'lib', install: true,
link_with: libs_built_so_far, install_dir: 'lib',
link_with: LIBS_BUILT_SO_FAR,
) )
libs_built_so_far = [kea_log_interprocess_lib] + libs_built_so_far LIBS_BUILT_SO_FAR = [kea_log_interprocess_lib] + LIBS_BUILT_SO_FAR

View File

@ -1,51 +1,52 @@
subdir('interprocess') subdir('interprocess')
kea_log_lib = library('kea-log', kea_log_lib = library(
'buffer_appender_impl.cc', 'kea-log',
'buffer_appender_impl.h', 'buffer_appender_impl.cc',
'logger.cc', 'buffer_appender_impl.h',
'logger.h', 'logger.cc',
'logger_impl.cc', 'logger.h',
'logger_impl.h', 'logger_impl.cc',
'logger_level.cc', 'logger_impl.h',
'logger_level.h', 'logger_level.cc',
'logger_level_impl.cc', 'logger_level.h',
'logger_level_impl.h', 'logger_level_impl.cc',
'logger_manager.cc', 'logger_level_impl.h',
'logger_manager.h', 'logger_manager.cc',
'logger_manager_impl.cc', 'logger_manager.h',
'logger_manager_impl.h', 'logger_manager_impl.cc',
'logger_name.cc', 'logger_manager_impl.h',
'logger_name.h', 'logger_name.cc',
'logger_specification.h', 'logger_name.h',
'logger_support.cc', 'logger_specification.h',
'logger_support.h', 'logger_support.cc',
'logger_unittest_support.cc', 'logger_support.h',
'logger_unittest_support.h', 'logger_unittest_support.cc',
'logimpl_messages.cc', 'logger_unittest_support.h',
'logimpl_messages.h', 'logimpl_messages.cc',
'log_dbglevels.cc', 'logimpl_messages.h',
'log_dbglevels.h', 'log_dbglevels.cc',
'log_formatter.cc', 'log_dbglevels.h',
'log_formatter.h', 'log_formatter.cc',
'log_messages.cc', 'log_formatter.h',
'log_messages.h', 'log_messages.cc',
'macros.h', 'log_messages.h',
'message_dictionary.cc', 'macros.h',
'message_dictionary.h', 'message_dictionary.cc',
'message_exception.h', 'message_dictionary.h',
'message_initializer.cc', 'message_exception.h',
'message_initializer.h', 'message_initializer.cc',
'message_reader.cc', 'message_initializer.h',
'message_reader.h', 'message_reader.cc',
'message_types.h', 'message_reader.h',
'output_option.cc', 'message_types.h',
'output_option.h', 'output_option.cc',
cpp_args: ['-DTOP_BUILDDIR="@0@"'.format(meson.project_build_root())], 'output_option.h',
dependencies: [log4cplus], cpp_args: [f'-DTOP_BUILDDIR="@TOP_BUILD_DIR@"'],
include_directories: [include_directories('.')] + includes, dependencies: [log4cplus],
install: true, include_directories: [include_directories('.')] + INCLUDES,
install_dir: 'lib', install: true,
link_with: libs_built_so_far, install_dir: 'lib',
link_with: LIBS_BUILT_SO_FAR,
) )
libs_built_so_far = [kea_log_lib] + libs_built_so_far LIBS_BUILT_SO_FAR = [kea_log_lib] + LIBS_BUILT_SO_FAR
subdir('tests') subdir('tests')

View File

@ -2,6 +2,7 @@ SUBDIRS = .
# Define the flags used in each set of tests. # Define the flags used in each set of tests.
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
AM_CPPFLAGS += -DTEMP_DIR=\"${build_dir}\"
AM_CPPFLAGS += $(BOOST_INCLUDES) $(GTEST_INCLUDES) $(LOG4CPLUS_INCLUDES) AM_CPPFLAGS += $(BOOST_INCLUDES) $(GTEST_INCLUDES) $(LOG4CPLUS_INCLUDES)
AM_CXXFLAGS = $(KEA_CXXFLAGS) AM_CXXFLAGS = $(KEA_CXXFLAGS)

View File

@ -1,22 +1,23 @@
kea_log_tests_exe = executable('kea-log-tests', kea_log_tests = executable(
'buffer_appender_unittest.cc', 'kea-log-tests',
'logger_level_impl_unittest.cc', 'buffer_appender_unittest.cc',
'logger_level_unittest.cc', 'logger_level_impl_unittest.cc',
'logger_manager_unittest.cc', 'logger_level_unittest.cc',
'logger_name_unittest.cc', 'logger_manager_unittest.cc',
'logger_specification_unittest.cc', 'logger_name_unittest.cc',
'logger_support_unittest.cc', 'logger_specification_unittest.cc',
'logger_unittest.cc', 'logger_support_unittest.cc',
'log_formatter_unittest.cc', 'logger_unittest.cc',
'log_test_messages.cc', 'log_formatter_unittest.cc',
'log_test_messages.h', 'log_test_messages.cc',
'message_dictionary_unittest.cc', 'log_test_messages.h',
'message_reader_unittest.cc', 'message_dictionary_unittest.cc',
'output_option_unittest.cc', 'message_reader_unittest.cc',
'run_unittests.cc', 'output_option_unittest.cc',
cpp_args: ['-DTEMP_DIR="@0@"'.format(meson.current_build_dir())], 'run_unittests.cc',
dependencies: [gtest, log4cplus], cpp_args: [f'-DTEMP_DIR="@TOP_BUILD_DIR@"'],
include_directories: [include_directories('.')] + includes, dependencies: [gtest, log4cplus],
link_with: libs_built_so_far + [kea_util_unittests_lib], include_directories: [include_directories('.')] + INCLUDES,
link_with: LIBS_BUILT_SO_FAR + [kea_util_unittests_lib],
) )
test('kea_log_tests_exe', kea_log_tests_exe) test('kea_log_tests', kea_log_tests, protocol: 'gtest')

View File

@ -1,21 +0,0 @@
// Copyright (C) 2011-2015 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#ifndef TEMPDIR_H
#define TEMPDIR_H
/// \brief Define temporary directory
///
/// Defines the temporary directory in which temporary files used by the
/// unit tests are created.
#include <string>
namespace {
std::string TEMP_DIR("@builddir@");
}
#endif // TEMPDIR_H

View File

@ -1,18 +1,19 @@
if not mysql.found() if not mysql.found()
subdir_done() subdir_done()
endif endif
kea_mysql_lib = library('kea-mysql', kea_mysql_lib = library(
'mysql_binding.cc', 'kea-mysql',
'mysql_binding.h', 'mysql_binding.cc',
'mysql_connection.cc', 'mysql_binding.h',
'mysql_connection.h', 'mysql_connection.cc',
'mysql_constants.h', 'mysql_connection.h',
cpp_args: [f'-DKEA_ADMIN="@kea_admin@"'], 'mysql_constants.h',
dependencies: [mysql], cpp_args: [f'-DKEA_ADMIN="@KEA_ADMIN@"'],
include_directories: [include_directories('.')] + includes, dependencies: [mysql],
install: true, include_directories: [include_directories('.')] + INCLUDES,
install_dir: 'lib', install: true,
link_with: libs_built_so_far, install_dir: 'lib',
link_with: LIBS_BUILT_SO_FAR,
) )
libs_built_so_far += [kea_mysql_lib] LIBS_BUILT_SO_FAR = [kea_mysql_lib] + LIBS_BUILT_SO_FAR

View File

@ -1,17 +1,18 @@
if not postgresql.found() if not postgresql.found() or not postgresql_server_header.found()
subdir_done() subdir_done()
endif endif
kea_pgsql_lib = library('kea-pgsql', kea_pgsql_lib = library(
'pgsql_connection.cc', 'kea-pgsql',
'pgsql_connection.h', 'pgsql_connection.cc',
'pgsql_exchange.cc', 'pgsql_connection.h',
'pgsql_exchange.h', 'pgsql_exchange.cc',
cpp_args: [f'-DKEA_ADMIN="@kea_admin@"'], 'pgsql_exchange.h',
dependencies: [postgresql], cpp_args: [f'-DKEA_ADMIN="@KEA_ADMIN@"'],
include_directories: [include_directories('.')] + includes, dependencies: [postgresql, postgresql_server_header],
install: true, include_directories: [include_directories('.')] + INCLUDES,
install_dir: 'lib', install: true,
link_with: libs_built_so_far, install_dir: 'lib',
link_with: LIBS_BUILT_SO_FAR,
) )
libs_built_so_far += [kea_pgsql_lib] LIBS_BUILT_SO_FAR = [kea_pgsql_lib] + LIBS_BUILT_SO_FAR

View File

@ -1,10 +1,17 @@
kea_cfgrpt_lib = library('kea-cfgrpt', config_report_cc = configure_file(
'cfgrpt.cc', input: 'config_report.cc.in',
'config_report.cc', output: 'config_report.cc',
'config_report.h', configuration: conf_data,
include_directories: [include_directories('.')] + includes,
install: true,
install_dir: 'lib',
link_with: libs_built_so_far,
) )
libs_built_so_far = [kea_cfgrpt_lib] + libs_built_so_far
kea_cfgrpt_lib = library(
'kea-cfgrpt',
'cfgrpt.cc',
config_report_cc,
'config_report.h',
include_directories: [include_directories('.')] + INCLUDES,
install: true,
install_dir: 'lib',
link_with: LIBS_BUILT_SO_FAR,
)
LIBS_BUILT_SO_FAR = [kea_cfgrpt_lib] + LIBS_BUILT_SO_FAR

View File

@ -1,33 +1,34 @@
subdir('cfgrpt') subdir('cfgrpt')
kea_process_lib = library('kea-process', kea_process_lib = library(
'cb_ctl_base.h', 'kea-process',
'config_base.cc', 'cb_ctl_base.h',
'config_base.h', 'config_base.cc',
'config_ctl_info.cc', 'config_base.h',
'config_ctl_info.h', 'config_ctl_info.cc',
'config_ctl_parser.cc', 'config_ctl_info.h',
'config_ctl_parser.h', 'config_ctl_parser.cc',
'daemon.cc', 'config_ctl_parser.h',
'daemon.h', 'daemon.cc',
'd_cfg_mgr.cc', 'daemon.h',
'd_cfg_mgr.h', 'd_cfg_mgr.cc',
'd_controller.cc', 'd_cfg_mgr.h',
'd_controller.h', 'd_controller.cc',
'd_log.cc', 'd_controller.h',
'd_log.h', 'd_log.cc',
'd_process.h', 'd_log.h',
'logging_info.cc', 'd_process.h',
'logging_info.h', 'logging_info.cc',
'log_parser.cc', 'logging_info.h',
'log_parser.h', 'log_parser.cc',
'process_messages.cc', 'log_parser.h',
'process_messages.h', 'process_messages.cc',
'redact_config.cc', 'process_messages.h',
'redact_config.h', 'redact_config.cc',
cpp_args: ['-DDATA_DIR="@0@"'.format(meson.current_build_dir())], 'redact_config.h',
include_directories: [include_directories('.')] + includes, cpp_args: [f'-DDATA_DIR="@TOP_BUILD_DIR@"'],
install: true, include_directories: [include_directories('.')] + INCLUDES,
install_dir: 'lib', install: true,
link_with: libs_built_so_far, install_dir: 'lib',
link_with: LIBS_BUILT_SO_FAR,
) )
libs_built_so_far += [kea_process_lib] LIBS_BUILT_SO_FAR = [kea_process_lib] + LIBS_BUILT_SO_FAR

View File

@ -1,14 +1,15 @@
kea_stats_lib = library('kea-stats', kea_stats_lib = library(
'context.cc', 'kea-stats',
'context.h', 'context.cc',
'observation.cc', 'context.h',
'observation.h', 'observation.cc',
'stats_mgr.cc', 'observation.h',
'stats_mgr.h', 'stats_mgr.cc',
include_directories: [include_directories('.')] + includes, 'stats_mgr.h',
install: true, include_directories: [include_directories('.')] + INCLUDES,
install_dir: 'lib', install: true,
link_with: libs_built_so_far, install_dir: 'lib',
link_with: LIBS_BUILT_SO_FAR,
) )
libs_built_so_far = [kea_stats_lib] + libs_built_so_far LIBS_BUILT_SO_FAR = [kea_stats_lib] + LIBS_BUILT_SO_FAR
subdir('tests') subdir('tests')

View File

@ -1,10 +1,11 @@
kea_stats_tests_exe = executable('kea-stats-tests', kea_stats_tests = executable(
'context_unittest.cc', 'kea-stats-tests',
'observation_unittest.cc', 'context_unittest.cc',
'run_unittests.cc', 'observation_unittest.cc',
'stats_mgr_unittest.cc', 'run_unittests.cc',
dependencies: [gtest], 'stats_mgr_unittest.cc',
include_directories: [include_directories('.')] + includes, dependencies: [gtest],
link_with: libs_built_so_far + [kea_testutils_lib, kea_util_unittests_lib], include_directories: [include_directories('.')] + INCLUDES,
link_with: LIBS_BUILT_SO_FAR + [kea_testutils_lib, kea_util_unittests_lib],
) )
test('kea_stats_tests_exe', kea_stats_tests_exe) test('kea_stats_tests', kea_stats_tests, protocol: 'gtest')

View File

@ -1,23 +1,24 @@
kea_tcp_lib = library('kea-tcp', kea_tcp_lib = library(
'mt_tcp_listener_mgr.cc', 'kea-tcp',
'mt_tcp_listener_mgr.h', 'mt_tcp_listener_mgr.cc',
'tcp_connection.cc', 'mt_tcp_listener_mgr.h',
'tcp_connection.h', 'tcp_connection.cc',
'tcp_connection_acceptor.h', 'tcp_connection.h',
'tcp_connection_pool.cc', 'tcp_connection_acceptor.h',
'tcp_connection_pool.h', 'tcp_connection_pool.cc',
'tcp_listener.cc', 'tcp_connection_pool.h',
'tcp_listener.h', 'tcp_listener.cc',
'tcp_log.cc', 'tcp_listener.h',
'tcp_log.h', 'tcp_log.cc',
'tcp_messages.cc', 'tcp_log.h',
'tcp_messages.h', 'tcp_messages.cc',
'tcp_stream_msg.cc', 'tcp_messages.h',
'tcp_stream_msg.h', 'tcp_stream_msg.cc',
dependencies: [crypto], 'tcp_stream_msg.h',
include_directories: [include_directories('.')] + includes, dependencies: [crypto],
install: true, include_directories: [include_directories('.')] + INCLUDES,
install_dir: 'lib', install: true,
link_with: libs_built_so_far, install_dir: 'lib',
link_with: LIBS_BUILT_SO_FAR,
) )
libs_built_so_far += [kea_tcp_lib] LIBS_BUILT_SO_FAR = [kea_tcp_lib] + LIBS_BUILT_SO_FAR

View File

@ -1,22 +1,23 @@
kea_testutils_lib = library('kea-testutils', kea_testutils_lib = library(
'gtest_utils.h', 'kea-testutils',
'io_utils.cc', 'gtest_utils.h',
'io_utils.h', 'io_utils.cc',
'log_utils.cc', 'io_utils.h',
'log_utils.h', 'log_utils.cc',
'multi_threading_utils.h', 'log_utils.h',
'sandbox.h', 'multi_threading_utils.h',
'test_to_element.cc', 'sandbox.h',
'test_to_element.h', 'test_to_element.cc',
'threaded_test.cc', 'test_to_element.h',
'threaded_test.h', 'threaded_test.cc',
'unix_control_client.cc', 'threaded_test.h',
'unix_control_client.h', 'unix_control_client.cc',
'user_context_utils.cc', 'unix_control_client.h',
'user_context_utils.h', 'user_context_utils.cc',
dependencies: [gtest], 'user_context_utils.h',
include_directories: [include_directories('.')] + includes, dependencies: [gtest],
install: true, include_directories: [include_directories('.')] + INCLUDES,
install_dir: 'lib', install: true,
link_with: libs_built_so_far, install_dir: 'lib',
link_with: LIBS_BUILT_SO_FAR,
) )

View File

@ -1,9 +1,10 @@
kea_util_io_lib = library('kea-util-io', kea_util_io_lib = library(
'fd.cc', 'kea-util-io',
'fd.h', 'fd.cc',
'pktinfo_utilities.h', 'fd.h',
'sockaddr_util.h', 'pktinfo_utilities.h',
include_directories: [include_directories('.')] + includes, 'sockaddr_util.h',
link_with: libs_built_so_far, include_directories: [include_directories('.')] + INCLUDES,
link_with: LIBS_BUILT_SO_FAR,
) )
libs_built_so_far = [kea_util_io_lib] + libs_built_so_far LIBS_BUILT_SO_FAR = [kea_util_io_lib] + LIBS_BUILT_SO_FAR

View File

@ -1,62 +1,63 @@
kea_util_lib = library('kea-util', kea_util_lib = library(
'bigints.h', 'kea-util',
'boost_time_utils.cc', 'bigints.h',
'boost_time_utils.h', 'boost_time_utils.cc',
'buffer.h', 'boost_time_utils.h',
'chrono_time_utils.cc', 'buffer.h',
'chrono_time_utils.h', 'chrono_time_utils.cc',
'csv_file.cc', 'chrono_time_utils.h',
'csv_file.h', 'csv_file.cc',
'dhcp_space.cc', 'csv_file.h',
'dhcp_space.h', 'dhcp_space.cc',
'doubles.h', 'dhcp_space.h',
'encode/encode.cc', 'doubles.h',
'encode/encode.h', 'encode/encode.cc',
'encode/utf8.cc', 'encode/encode.h',
'encode/utf8.h', 'encode/utf8.cc',
'filesystem.cc', 'encode/utf8.h',
'filesystem.h', 'filesystem.cc',
'hash.h', 'filesystem.h',
'io.h', 'hash.h',
'labeled_value.cc', 'io.h',
'labeled_value.h', 'labeled_value.cc',
'memory_segment.h', 'labeled_value.h',
'memory_segment_local.cc', 'memory_segment.h',
'memory_segment_local.h', 'memory_segment_local.cc',
'multi_threading_mgr.cc', 'memory_segment_local.h',
'multi_threading_mgr.h', 'multi_threading_mgr.cc',
'optional.h', 'multi_threading_mgr.h',
'pid_file.cc', 'optional.h',
'pid_file.h', 'pid_file.cc',
'pointer_util.h', 'pid_file.h',
'range_utilities.h', 'pointer_util.h',
'readwrite_mutex.h', 'range_utilities.h',
'reconnect_ctl.cc', 'readwrite_mutex.h',
'reconnect_ctl.h', 'reconnect_ctl.cc',
'staged_value.h', 'reconnect_ctl.h',
'state_model.cc', 'staged_value.h',
'state_model.h', 'state_model.cc',
'stopwatch.cc', 'state_model.h',
'stopwatch.h', 'stopwatch.cc',
'stopwatch_impl.cc', 'stopwatch.h',
'stopwatch_impl.h', 'stopwatch_impl.cc',
'str.cc', 'stopwatch_impl.h',
'str.h', 'str.cc',
'thread_pool.h', 'str.h',
'triplet.h', 'thread_pool.h',
'unlock_guard.h', 'triplet.h',
'versioned_csv_file.cc', 'unlock_guard.h',
'versioned_csv_file.h', 'versioned_csv_file.cc',
'watched_thread.cc', 'versioned_csv_file.h',
'watched_thread.h', 'watched_thread.cc',
'watch_socket.cc', 'watched_thread.h',
'watch_socket.h', 'watch_socket.cc',
include_directories: [include_directories('.')] + includes, 'watch_socket.h',
install: true, include_directories: [include_directories('.')] + INCLUDES,
install_dir: 'lib', install: true,
link_with: kea_exceptions_lib, install_dir: 'lib',
link_with: LIBS_BUILT_SO_FAR,
) )
subdir('io') subdir('io')
subdir('unittests') subdir('unittests')
libs_built_so_far = [kea_util_lib] + libs_built_so_far LIBS_BUILT_SO_FAR = [kea_util_lib] + LIBS_BUILT_SO_FAR
subdir('tests') subdir('tests')

View File

@ -1,40 +1,44 @@
kea_util_tests_exe = executable('kea-util-tests', kea_util_tests = executable(
'bigint_unittest.cc', 'kea-util-tests',
'boost_time_utils_unittest.cc', 'bigint_unittest.cc',
'buffer_unittest.cc', 'boost_time_utils_unittest.cc',
'chrono_time_utils_unittest.cc', 'buffer_unittest.cc',
'csv_file_unittest.cc', 'chrono_time_utils_unittest.cc',
'dhcp_space_unittest.cc', 'csv_file_unittest.cc',
'doubles_unittest.cc', 'dhcp_space_unittest.cc',
'encode_unittest.cc', 'doubles_unittest.cc',
'fd_tests.cc', 'encode_unittest.cc',
'filesystem_unittests.cc', 'fd_tests.cc',
'hash_unittest.cc', 'filesystem_unittests.cc',
'io_unittests.cc', 'hash_unittest.cc',
'labeled_value_unittest.cc', 'io_unittests.cc',
'memory_segment_common_unittest.cc', 'labeled_value_unittest.cc',
'memory_segment_common_unittest.h', 'memory_segment_common_unittest.cc',
'memory_segment_local_unittest.cc', 'memory_segment_common_unittest.h',
'multi_threading_mgr_unittest.cc', 'memory_segment_local_unittest.cc',
'optional_unittest.cc', 'multi_threading_mgr_unittest.cc',
'pid_file_unittest.cc', 'optional_unittest.cc',
'range_utilities_unittest.cc', 'pid_file_unittest.cc',
'readwrite_mutex_unittest.cc', 'range_utilities_unittest.cc',
'run_unittests.cc', 'readwrite_mutex_unittest.cc',
'staged_value_unittest.cc', 'run_unittests.cc',
'state_model_unittest.cc', 'staged_value_unittest.cc',
'stopwatch_unittest.cc', 'state_model_unittest.cc',
'str_unittests.cc', 'stopwatch_unittest.cc',
'thread_pool_unittest.cc', 'str_unittests.cc',
'triplet_unittest.cc', 'thread_pool_unittest.cc',
'unlock_guard_unittests.cc', 'triplet_unittest.cc',
'utf8_unittest.cc', 'unlock_guard_unittests.cc',
'versioned_csv_file_unittest.cc', 'utf8_unittest.cc',
'watched_thread_unittest.cc', 'versioned_csv_file_unittest.cc',
'watch_socket_unittests.cc', 'watched_thread_unittest.cc',
cpp_args: ['-DABS_SRCDIR="@0@"'.format(meson.current_source_dir()), '-DTEST_DATA_BUILDDIR="@0@"'.format(meson.current_build_dir())], 'watch_socket_unittests.cc',
dependencies: [gtest], cpp_args: [
include_directories: [include_directories('.')] + includes, f'-DABS_SRCDIR="@TOP_SOURCE_DIR@/src/lib/util/tests"',
link_with: libs_built_so_far + [kea_util_unittests_lib], f'-DTEST_DATA_BUILDDIR="@TOP_BUILD_DIR@/src/lib/util/tests"',
],
dependencies: [gtest],
include_directories: [include_directories('.')] + INCLUDES,
link_with: LIBS_BUILT_SO_FAR + [kea_util_unittests_lib],
) )
test('kea_util_tests_exe', kea_util_tests_exe) test('kea_util_tests', kea_util_tests, protocol: 'gtest')

View File

@ -1,22 +1,23 @@
kea_util_unittests_lib = library('kea-util-unittests', kea_util_unittests_lib = library(
'check_valgrind.cc', 'kea-util-unittests',
'check_valgrind.h', 'check_valgrind.cc',
'fork.cc', 'check_valgrind.h',
'fork.h', 'fork.cc',
'interprocess_util.cc', 'fork.h',
'interprocess_util.h', 'interprocess_util.cc',
'newhook.cc', 'interprocess_util.h',
'newhook.h', 'newhook.cc',
'resource.cc', 'newhook.h',
'resource.h', 'resource.cc',
'run_all.cc', 'resource.h',
'run_all.h', 'run_all.cc',
'testdata.cc', 'run_all.h',
'testdata.h', 'testdata.cc',
'textdata.h', 'testdata.h',
'wiredata.cc', 'textdata.h',
'wiredata.h', 'wiredata.cc',
dependencies: [gtest], 'wiredata.h',
include_directories: [include_directories('.')] + includes, dependencies: [gtest],
link_with: libs_built_so_far, include_directories: [include_directories('.')] + INCLUDES,
link_with: LIBS_BUILT_SO_FAR,
) )

View File

@ -1,53 +1,55 @@
if not netconf_deps_found if not netconf_deps_found
subdir_done() subdir_done()
endif endif
kea_yang_lib = library('kea-yang', kea_yang_lib = library(
'adaptor.cc', 'kea-yang',
'adaptor.h', 'adaptor.cc',
'adaptor_config.cc', 'adaptor.h',
'adaptor_config.h', 'adaptor_config.cc',
'adaptor_host.cc', 'adaptor_config.h',
'adaptor_host.h', 'adaptor_host.cc',
'adaptor_option.cc', 'adaptor_host.h',
'adaptor_option.h', 'adaptor_option.cc',
'adaptor_pool.cc', 'adaptor_option.h',
'adaptor_pool.h', 'adaptor_pool.cc',
'adaptor_subnet.cc', 'adaptor_pool.h',
'adaptor_subnet.h', 'adaptor_subnet.cc',
'netconf_error.h', 'adaptor_subnet.h',
'translator.cc', 'netconf_error.h',
'translator.h', 'translator.cc',
'translator_class.cc', 'translator.h',
'translator_class.h', 'translator_class.cc',
'translator_config.cc', 'translator_class.h',
'translator_config.h', 'translator_config.cc',
'translator_control_socket.cc', 'translator_config.h',
'translator_control_socket.h', 'translator_control_socket.cc',
'translator_database.cc', 'translator_control_socket.h',
'translator_database.h', 'translator_database.cc',
'translator_host.cc', 'translator_database.h',
'translator_host.h', 'translator_host.cc',
'translator_logger.cc', 'translator_host.h',
'translator_logger.h', 'translator_logger.cc',
'translator_option_data.cc', 'translator_logger.h',
'translator_option_data.h', 'translator_option_data.cc',
'translator_option_def.cc', 'translator_option_data.h',
'translator_option_def.h', 'translator_option_def.cc',
'translator_pd_pool.cc', 'translator_option_def.h',
'translator_pd_pool.h', 'translator_pd_pool.cc',
'translator_pool.cc', 'translator_pd_pool.h',
'translator_pool.h', 'translator_pool.cc',
'translator_shared_network.cc', 'translator_pool.h',
'translator_shared_network.h', 'translator_shared_network.cc',
'translator_subnet.cc', 'translator_shared_network.h',
'translator_subnet.h', 'translator_subnet.cc',
'yang_models.h', 'translator_subnet.h',
'yang_revisions.h', 'yang_models.h',
dependencies: netconf_deps_array, 'yang_revisions.h',
include_directories: [include_directories('.')] + includes, dependencies: netconf_deps_array,
install: true, include_directories: [include_directories('.')] + INCLUDES,
install_dir: 'lib', install: true,
link_with: libs_built_so_far, install_dir: 'lib',
link_with: LIBS_BUILT_SO_FAR,
override_options: ['cpp_std=c++20'],
) )
libs_built_so_far += [kea_yang_lib] LIBS_BUILT_SO_FAR = [kea_yang_lib] + LIBS_BUILT_SO_FAR

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@