@echo Message files regenerated
gss_tsig_messages.h gss_tsig_messages.cc: gss_tsig_messages.mes
- $(top_builddir)/src/lib/log/compiler/kea-msg-compiler $(top_srcdir)/src/hooks/d2/gss_tsig/gss_tsig_messages.mes
+ (cd $(top_srcdir); \
+ $(abs_top_builddir)/src/lib/log/compiler/kea-msg-compiler src/hooks/d2/gss_tsig/gss_tsig_messages.mes)
else
-// File created from ../../../../src/hooks/d2/gss_tsig/gss_tsig_messages.mes
+// File created from src/hooks/d2/gss_tsig/gss_tsig_messages.mes
#include <cstddef>
#include <log/message_types.h>
-// File created from ../../../../src/hooks/d2/gss_tsig/gss_tsig_messages.mes
+// File created from src/hooks/d2/gss_tsig/gss_tsig_messages.mes
#ifndef GSS_TSIG_MESSAGES_H
#define GSS_TSIG_MESSAGES_H
subdir('testutils')
subdir('libloadtests')
subdir('tests')
+
+if KEA_MSG_COMPILER.found()
+ target_gen_messages = run_target(
+ 'premium-src-hooks-d2-gss_tsig-gss_tsig_messages',
+ command: [
+ CD_AND_RUN,
+ TOP_SOURCE_DIR,
+ KEA_MSG_COMPILER,
+ 'src/hooks/d2/gss_tsig/gss_tsig_messages.mes',
+ ],
+ )
+ TARGETS_GEN_MESSAGES += [target_gen_messages]
+endif
link_with: [ddns_gss_tsig_tests_libs] + LIBS_BUILT_SO_FAR,
)
test('ddns-gss-tsig-tests', ddns_gss_tsig_tests, protocol: 'gtest')
+
+executable(
+ 'nsupdate',
+ 'nsupdate.cc',
+ cpp_args: [f'-DTEST_DATA_DIR="@current_source_dir@"'],
+ dependencies: [krb5],
+ include_directories: [include_directories('.'), include_directories('..')] + INCLUDES,
+ link_with: [ddns_gss_tsig_archive] + LIBS_BUILT_SO_FAR,
+)
@echo Message files regenerated
class_cmds_messages.h class_cmds_messages.cc: class_cmds_messages.mes
- $(top_builddir)/src/lib/log/compiler/kea-msg-compiler $(top_srcdir)/src/hooks/dhcp/class_cmds/class_cmds_messages.mes
+ (cd $(top_srcdir); \
+ $(abs_top_builddir)/src/lib/log/compiler/kea-msg-compiler src/hooks/dhcp/class_cmds/class_cmds_messages.mes)
else
-// File created from ../../../../src/hooks/dhcp/class_cmds/class_cmds_messages.mes
+// File created from src/hooks/dhcp/class_cmds/class_cmds_messages.mes
#include <cstddef>
#include <log/message_types.h>
-// File created from ../../../../src/hooks/dhcp/class_cmds/class_cmds_messages.mes
+// File created from src/hooks/dhcp/class_cmds/class_cmds_messages.mes
#ifndef CLASS_CMDS_MESSAGES_H
#define CLASS_CMDS_MESSAGES_H
)
subdir('libloadtests')
subdir('tests')
+
+if KEA_MSG_COMPILER.found()
+ target_gen_messages = run_target(
+ 'premium-src-hooks-dhcp-class_cmds-class_cmds_messages',
+ command: [
+ CD_AND_RUN,
+ TOP_SOURCE_DIR,
+ KEA_MSG_COMPILER,
+ 'src/hooks/dhcp/class_cmds/class_cmds_messages.mes',
+ ],
+ )
+ TARGETS_GEN_MESSAGES += [target_gen_messages]
+endif
--- /dev/null
+/ddns_tuning_messages.cc -diff merge=ours
+/ddns_tuning_messages.h -diff merge=ours
@echo Message files regenerated
ddns_tuning_messages.h ddns_tuning_messages.cc: ddns_tuning_messages.mes
- $(top_builddir)/src/lib/log/compiler/kea-msg-compiler $(top_srcdir)/src/hooks/dhcp/ddns_tuning/ddns_tuning_messages.mes
+ (cd $(top_srcdir); \
+ $(abs_top_builddir)/src/lib/log/compiler/kea-msg-compiler src/hooks/dhcp/ddns_tuning/ddns_tuning_messages.mes)
else
-// File created from ../../../../src/hooks/dhcp/ddns_tuning/ddns_tuning_messages.mes
+// File created from src/hooks/dhcp/ddns_tuning/ddns_tuning_messages.mes
#include <cstddef>
#include <log/message_types.h>
-// File created from ../../../../src/hooks/dhcp/ddns_tuning/ddns_tuning_messages.mes
+// File created from src/hooks/dhcp/ddns_tuning/ddns_tuning_messages.mes
#ifndef DDNS_TUNING_MESSAGES_H
#define DDNS_TUNING_MESSAGES_H
)
subdir('libloadtests')
subdir('tests')
+
+if KEA_MSG_COMPILER.found()
+ target_gen_messages = run_target(
+ 'premium-src-hooks-dhcp-ddns_tuning-ddns_tuning_messages',
+ command: [
+ CD_AND_RUN,
+ TOP_SOURCE_DIR,
+ KEA_MSG_COMPILER,
+ 'src/hooks/dhcp/ddns_tuning/ddns_tuning_messages.mes',
+ ],
+ )
+ TARGETS_GEN_MESSAGES += [target_gen_messages]
+endif
@echo Message files regenerated
flex_id_messages.h flex_id_messages.cc: flex_id_messages.mes
- $(top_builddir)/src/lib/log/compiler/kea-msg-compiler $(top_srcdir)/src/hooks/dhcp/flex_id/flex_id_messages.mes
+ (cd $(top_srcdir); \
+ $(abs_top_builddir)/src/lib/log/compiler/kea-msg-compiler src/hooks/dhcp/flex_id/flex_id_messages.mes)
else
-// File created from ../../../../src/hooks/dhcp/flex_id/flex_id_messages.mes
+// File created from src/hooks/dhcp/flex_id/flex_id_messages.mes
#include <cstddef>
#include <log/message_types.h>
-// File created from ../../../../src/hooks/dhcp/flex_id/flex_id_messages.mes
+// File created from src/hooks/dhcp/flex_id/flex_id_messages.mes
#ifndef FLEX_ID_MESSAGES_H
#define FLEX_ID_MESSAGES_H
)
subdir('libloadtests')
subdir('tests')
+
+if KEA_MSG_COMPILER.found()
+ target_gen_messages = run_target(
+ 'premium-src-hooks-dhcp-flex_id-flex_id_messages',
+ command: [
+ CD_AND_RUN,
+ TOP_SOURCE_DIR,
+ KEA_MSG_COMPILER,
+ 'src/hooks/dhcp/flex_id/flex_id_messages.mes',
+ ],
+ )
+ TARGETS_GEN_MESSAGES += [target_gen_messages]
+endif
@echo Message files regenerated
legal_log_messages.h legal_log_messages.cc: legal_log_messages.mes
- $(top_builddir)/src/lib/log/compiler/kea-msg-compiler $(top_srcdir)/src/hooks/dhcp/forensic_log/legal_log_messages.mes
+ (cd $(top_srcdir); \
+ $(abs_top_builddir)/src/lib/log/compiler/kea-msg-compiler src/hooks/dhcp/forensic_log/legal_log_messages.mes)
else
-// File created from ../../../../src/hooks/dhcp/forensic_log/legal_log_messages.mes
+// File created from src/hooks/dhcp/forensic_log/legal_log_messages.mes
#include <cstddef>
#include <log/message_types.h>
-// File created from ../../../../src/hooks/dhcp/forensic_log/legal_log_messages.mes
+// File created from src/hooks/dhcp/forensic_log/legal_log_messages.mes
#ifndef LEGAL_LOG_MESSAGES_H
#define LEGAL_LOG_MESSAGES_H
)
subdir('libloadtests')
subdir('tests')
+
+if KEA_MSG_COMPILER.found()
+ target_gen_messages = run_target(
+ 'premium-src-hooks-dhcp-forensic_log-legal_log_messages',
+ command: [
+ CD_AND_RUN,
+ TOP_SOURCE_DIR,
+ KEA_MSG_COMPILER,
+ 'src/hooks/dhcp/forensic_log/legal_log_messages.mes',
+ ],
+ )
+ TARGETS_GEN_MESSAGES += [target_gen_messages]
+endif
@echo Message files regenerated
host_cache_messages.h host_cache_messages.cc: host_cache_messages.mes
- $(top_builddir)/src/lib/log/compiler/kea-msg-compiler $(top_srcdir)/src/hooks/dhcp/host_cache/host_cache_messages.mes
+ (cd $(top_srcdir); \
+ $(abs_top_builddir)/src/lib/log/compiler/kea-msg-compiler src/hooks/dhcp/host_cache/host_cache_messages.mes)
else
-// File created from ../../../../src/hooks/dhcp/host_cache/host_cache_messages.mes
+// File created from src/hooks/dhcp/host_cache/host_cache_messages.mes
#include <cstddef>
#include <log/message_types.h>
-// File created from ../../../../src/hooks/dhcp/host_cache/host_cache_messages.mes
+// File created from src/hooks/dhcp/host_cache/host_cache_messages.mes
#ifndef HOST_CACHE_MESSAGES_H
#define HOST_CACHE_MESSAGES_H
)
subdir('libloadtests')
subdir('tests')
+
+if KEA_MSG_COMPILER.found()
+ target_gen_messages = run_target(
+ 'premium-src-hooks-dhcp-host_cache-host_cache_messages',
+ command: [
+ CD_AND_RUN,
+ TOP_SOURCE_DIR,
+ KEA_MSG_COMPILER,
+ 'src/hooks/dhcp/host_cache/host_cache_messages.mes',
+ ],
+ )
+ TARGETS_GEN_MESSAGES += [target_gen_messages]
+endif
@echo Message files regenerated
host_cmds_messages.h host_cmds_messages.cc: host_cmds_messages.mes
- $(top_builddir)/src/lib/log/compiler/kea-msg-compiler $(top_srcdir)/src/hooks/dhcp/host_cmds/host_cmds_messages.mes
+ (cd $(top_srcdir); \
+ $(abs_top_builddir)/src/lib/log/compiler/kea-msg-compiler src/hooks/dhcp/host_cmds/host_cmds_messages.mes)
else
-// File created from ../../../../src/hooks/dhcp/host_cmds/host_cmds_messages.mes
+// File created from src/hooks/dhcp/host_cmds/host_cmds_messages.mes
#include <cstddef>
#include <log/message_types.h>
-// File created from ../../../../src/hooks/dhcp/host_cmds/host_cmds_messages.mes
+// File created from src/hooks/dhcp/host_cmds/host_cmds_messages.mes
#ifndef HOST_CMDS_MESSAGES_H
#define HOST_CMDS_MESSAGES_H
)
subdir('libloadtests')
subdir('tests')
+
+if KEA_MSG_COMPILER.found()
+ target_gen_messages = run_target(
+ 'premium-src-hooks-dhcp-host_cmds-host_cmds_messages',
+ command: [
+ CD_AND_RUN,
+ TOP_SOURCE_DIR,
+ KEA_MSG_COMPILER,
+ 'src/hooks/dhcp/host_cmds/host_cmds_messages.mes',
+ ],
+ )
+ TARGETS_GEN_MESSAGES += [target_gen_messages]
+endif
@echo Message files regenerated
lease_query_messages.h lease_query_messages.cc: lease_query_messages.mes
- $(top_builddir)/src/lib/log/compiler/kea-msg-compiler $(top_srcdir)/src/hooks/dhcp/lease_query/lease_query_messages.mes
+ (cd $(top_srcdir); \
+ $(abs_top_builddir)/src/lib/log/compiler/kea-msg-compiler src/hooks/dhcp/lease_query/lease_query_messages.mes)
else
-// File created from ../../../../src/hooks/dhcp/lease_query/lease_query_messages.mes
+// File created from src/hooks/dhcp/lease_query/lease_query_messages.mes
#include <cstddef>
#include <log/message_types.h>
-// File created from ../../../../src/hooks/dhcp/lease_query/lease_query_messages.mes
+// File created from src/hooks/dhcp/lease_query/lease_query_messages.mes
#ifndef LEASE_QUERY_MESSAGES_H
#define LEASE_QUERY_MESSAGES_H
)
subdir('libloadtests')
subdir('tests')
+
+if KEA_MSG_COMPILER.found()
+ target_gen_messages = run_target(
+ 'premium-src-hooks-dhcp-lease_query-lease_query_messages',
+ command: [
+ CD_AND_RUN,
+ TOP_SOURCE_DIR,
+ KEA_MSG_COMPILER,
+ 'src/hooks/dhcp/lease_query/lease_query_messages.mes',
+ ],
+ )
+ TARGETS_GEN_MESSAGES += [target_gen_messages]
+endif
@echo Message files regenerated
limits_messages.h limits_messages.cc: limits_messages.mes
- $(top_builddir)/src/lib/log/compiler/kea-msg-compiler $(top_srcdir)/src/hooks/dhcp/limits/limits_messages.mes
+ (cd $(top_srcdir); \
+ $(abs_top_builddir)/src/lib/log/compiler/kea-msg-compiler src/hooks/dhcp/limits/limits_messages.mes)
else
-// File created from ../../../../src/hooks/dhcp/limits/limits_messages.mes
+// File created from src/hooks/dhcp/limits/limits_messages.mes
#include <cstddef>
#include <log/message_types.h>
-// File created from ../../../../src/hooks/dhcp/limits/limits_messages.mes
+// File created from src/hooks/dhcp/limits/limits_messages.mes
#ifndef LIMITS_MESSAGES_H
#define LIMITS_MESSAGES_H
)
subdir('libloadtests')
subdir('tests')
+
+if KEA_MSG_COMPILER.found()
+ target_gen_messages = run_target(
+ 'premium-src-hooks-dhcp-limits-limits_messages',
+ command: [
+ CD_AND_RUN,
+ TOP_SOURCE_DIR,
+ KEA_MSG_COMPILER,
+ 'src/hooks/dhcp/limits/limits_messages.mes',
+ ],
+ )
+ TARGETS_GEN_MESSAGES += [target_gen_messages]
+endif
@echo Message files regenerated
ping_check_messages.h ping_check_messages.cc: ping_check_messages.mes
- $(top_builddir)/src/lib/log/compiler/kea-msg-compiler $(top_srcdir)/src/hooks/dhcp/ping_check/ping_check_messages.mes
+ (cd $(top_srcdir); \
+ $(abs_top_builddir)/src/lib/log/compiler/kea-msg-compiler src/hooks/dhcp/ping_check/ping_check_messages.mes)
else
)
subdir('libloadtests')
subdir('tests')
+
+if KEA_MSG_COMPILER.found()
+ target_gen_messages = run_target(
+ 'premium-src-hooks-dhcp-ping_check-ping_check_messages',
+ command: [
+ CD_AND_RUN,
+ TOP_SOURCE_DIR,
+ KEA_MSG_COMPILER,
+ 'src/hooks/dhcp/ping_check/ping_check_messages.mes',
+ ],
+ )
+ TARGETS_GEN_MESSAGES += [target_gen_messages]
+endif
-// File created from ../../../../src/hooks/dhcp/ping_check/ping_check_messages.mes
+// File created from src/hooks/dhcp/ping_check/ping_check_messages.mes
#include <cstddef>
#include <log/message_types.h>
-// File created from ../../../../src/hooks/dhcp/ping_check/ping_check_messages.mes
+// File created from src/hooks/dhcp/ping_check/ping_check_messages.mes
#ifndef PING_CHECK_MESSAGES_H
#define PING_CHECK_MESSAGES_H
@echo Message files regenerated
radius_messages.h radius_messages.cc: radius_messages.mes
- $(top_builddir)/src/lib/log/compiler/kea-msg-compiler $(top_srcdir)/src/hooks/dhcp/radius/radius_messages.mes
+ (cd $(top_srcdir); \
+ $(abs_top_builddir)/src/lib/log/compiler/kea-msg-compiler src/hooks/dhcp/radius/radius_messages.mes)
else
)
subdir('libloadtests')
subdir('tests')
+
+if KEA_MSG_COMPILER.found()
+ target_gen_messages = run_target(
+ 'premium-src-hooks-dhcp-radius-radius_messages',
+ command: [
+ CD_AND_RUN,
+ TOP_SOURCE_DIR,
+ KEA_MSG_COMPILER,
+ 'src/hooks/dhcp/radius/radius_messages.mes',
+ ],
+ )
+ TARGETS_GEN_MESSAGES += [target_gen_messages]
+endif
-// File created from ../../../../src/hooks/dhcp/radius/radius_messages.mes
+// File created from src/hooks/dhcp/radius/radius_messages.mes
#include <cstddef>
#include <log/message_types.h>
-// File created from ../../../../src/hooks/dhcp/radius/radius_messages.mes
+// File created from src/hooks/dhcp/radius/radius_messages.mes
#ifndef RADIUS_MESSAGES_H
#define RADIUS_MESSAGES_H
@echo Message files regenerated
subnet_cmds_messages.h subnet_cmds_messages.cc: subnet_cmds_messages.mes
- $(top_builddir)/src/lib/log/compiler/kea-msg-compiler $(top_srcdir)/src/hooks/dhcp/subnet_cmds/subnet_cmds_messages.mes
+ (cd $(top_srcdir); \
+ $(abs_top_builddir)/src/lib/log/compiler/kea-msg-compiler src/hooks/dhcp/subnet_cmds/subnet_cmds_messages.mes)
else
)
subdir('libloadtests')
subdir('tests')
+
+if KEA_MSG_COMPILER.found()
+ target_gen_messages = run_target(
+ 'premium-src-hooks-dhcp-subnet_cmds-subnet_cmds_messages',
+ command: [
+ CD_AND_RUN,
+ TOP_SOURCE_DIR,
+ KEA_MSG_COMPILER,
+ 'src/hooks/dhcp/subnet_cmds/subnet_cmds_messages.mes',
+ ],
+ )
+ TARGETS_GEN_MESSAGES += [target_gen_messages]
+endif
-// File created from ../../../../src/hooks/dhcp/subnet_cmds/subnet_cmds_messages.mes
+// File created from src/hooks/dhcp/subnet_cmds/subnet_cmds_messages.mes
#include <cstddef>
#include <log/message_types.h>
-// File created from ../../../../src/hooks/dhcp/subnet_cmds/subnet_cmds_messages.mes
+// File created from src/hooks/dhcp/subnet_cmds/subnet_cmds_messages.mes
#ifndef SUBNET_CMDS_MESSAGES_H
#define SUBNET_CMDS_MESSAGES_H