if awk_exe.found()
AWK = awk_exe.full_path()
endif
-CD_AND_RUN = f'@TOP_SOURCE_DIR@/cd-and-run.sh'
-KEA_MSG_COMPILER = f'@TOP_BUILD_DIR@/src/lib/log/compiler/kea-msg-compiler'
+CD_AND_RUN = find_program(f'@TOP_SOURCE_DIR@/cd-and-run.sh')
+KEA_MSG_COMPILER = disabler()
#### Dependencies
subdir('tests')
current_source_dir = meson.current_source_dir()
-if HAS_KEA_MSG_COMPILER
+if KEA_MSG_COMPILER.found()
target_gen_messages = run_target(
'src-bin-agent-ca_messages',
command: [
subdir('tests')
current_source_dir = meson.current_source_dir()
-if HAS_KEA_MSG_COMPILER
+if KEA_MSG_COMPILER.found()
target_gen_messages = run_target(
'src-bin-dhcp4-dhcp4_messages',
command: [
subdir('tests')
current_source_dir = meson.current_source_dir()
-if HAS_KEA_MSG_COMPILER
+if KEA_MSG_COMPILER.found()
target_gen_messages = run_target(
'src-bin-dhcp6-dhcp6_messages',
command: [
)
subdir('tests')
-if HAS_KEA_MSG_COMPILER
+if KEA_MSG_COMPILER.found()
target_gen_messages = run_target(
'src-bin-lfc-lfc_messages',
command: [
subdir('tests')
current_source_dir = meson.current_source_dir()
-if HAS_KEA_MSG_COMPILER
+if KEA_MSG_COMPILER.found()
target_gen_messages = run_target(
'src-bin-netconf-netconf_messages',
command: [
subdir('libloadtests')
subdir('tests')
-if HAS_KEA_MSG_COMPILER
+if KEA_MSG_COMPILER.found()
target_gen_messages = run_target(
'src-hooks-dhcp-bootp-bootp_messages',
command: [
subdir('libloadtests')
subdir('tests')
-if HAS_KEA_MSG_COMPILER
+if KEA_MSG_COMPILER.found()
target_gen_messages = run_target(
'src-hooks-dhcp-flex_option-flex_option_messages',
command: [
subdir('libloadtests')
subdir('tests')
-if HAS_KEA_MSG_COMPILER
+if KEA_MSG_COMPILER.found()
target_gen_messages = run_target(
'src-hooks-dhcp-high_availability-ha_messages',
command: [
subdir('libloadtests')
subdir('tests')
-if HAS_KEA_MSG_COMPILER
+if KEA_MSG_COMPILER.found()
target_gen_messages = run_target(
'src-hooks-dhcp-lease_cmds-lease_cmds_messages',
command: [
CD_AND_RUN,
TOP_SOURCE_DIR,
- kea_msg_compiler,
+ KEA_MSG_COMPILER,
'src/hooks/dhcp/lease_cmds/lease_cmds_messages.mes',
],
)
subdir('libloadtests')
subdir('tests')
-if HAS_KEA_MSG_COMPILER
+if KEA_MSG_COMPILER.found()
target_gen_messages = run_target(
'src-hooks-dhcp-mysql-mysql_cb_messages',
command: [
subdir('libloadtests')
subdir('tests')
-if HAS_KEA_MSG_COMPILER
+if KEA_MSG_COMPILER.found()
target_gen_messages = run_target(
'src-hooks-dhcp-perfmon-perfmon_messages',
command: [
subdir('libloadtests')
subdir('tests')
-if HAS_KEA_MSG_COMPILER
+if KEA_MSG_COMPILER.found()
target_gen_messages = run_target(
'src-hooks-dhcp-pgsql-pgsql_cb_messages',
command: [
subdir('tests')
subdir('libloadtests')
-if HAS_KEA_MSG_COMPILER
+if KEA_MSG_COMPILER.found()
target_gen_messages = run_target(
'src-hooks-dhcp-run_script-run_script_messages',
command: [
)
subdir('libloadtests')
subdir('tests')
-if HAS_KEA_MSG_COMPILER
+if KEA_MSG_COMPILER.found()
target_gen_messages = run_target(
'src-hooks-dhcp-stat_cmds-stat_cmds_messages',
command: [
)
subdir('tests')
-if HAS_KEA_MSG_COMPILER
+if KEA_MSG_COMPILER.found()
target_gen_messages = run_target(
'src-hooks-dhcp-user_chk-user_chk_messages',
command: [
kea_asiodns_headers = ['asiodns_messages.h', 'io_fetch.h', 'logger.h']
install_headers(kea_asiodns_headers, preserve_path: true, subdir: 'kea/asiodns')
-if HAS_KEA_MSG_COMPILER
+if KEA_MSG_COMPILER.found()
current_source_dir = meson.current_source_dir()
target_gen_messages = run_target(
'src-lib-asiodns-asiodns_messages',
]
install_headers(kea_config_headers, preserve_path: true, subdir: 'kea/config')
-if HAS_KEA_MSG_COMPILER
+if KEA_MSG_COMPILER.found()
current_source_dir = meson.current_source_dir()
target_gen_messages = run_target(
'src-lib-config-config_messages',
]
install_headers(kea_d2srv_headers, preserve_path: true, subdir: 'kea/d2srv')
-if HAS_KEA_MSG_COMPILER
+if KEA_MSG_COMPILER.found()
current_source_dir = meson.current_source_dir()
target_gen_messages = run_target(
'src-lib-d2srv-d2_messages',
subdir: 'kea/database',
)
-if HAS_KEA_MSG_COMPILER
+if KEA_MSG_COMPILER.found()
current_source_dir = meson.current_source_dir()
target_gen_messages = run_target(
'src-lib-database-db_messages',
subdir: 'kea/dhcp_ddns',
)
-if HAS_KEA_MSG_COMPILER
+if KEA_MSG_COMPILER.found()
current_source_dir = meson.current_source_dir()
target_gen_messages = run_target(
'src-lib-dhcp_ddns-dhcp_ddns_messages',
]
install_headers(kea_dhcpsrv_headers, preserve_path: true, subdir: 'kea/dhcpsrv')
-if HAS_KEA_MSG_COMPILER
+if KEA_MSG_COMPILER.found()
current_source_dir = meson.current_source_dir()
target_gen_messages = run_target(
'src-lib-dhcpsrv-alloc_engine_messages',
install_headers(kea_eval_headers, preserve_path: true, subdir: 'kea/eval')
current_source_dir = meson.current_source_dir()
-if HAS_KEA_MSG_COMPILER
+if KEA_MSG_COMPILER.found()
target_gen_messages = run_target(
'src-lib-eval-eval_messages',
command: [
]
install_headers(kea_hooks_headers, preserve_path: true, subdir: 'kea/hooks')
-if HAS_KEA_MSG_COMPILER
+if KEA_MSG_COMPILER.found()
current_source_dir = meson.current_source_dir()
target_gen_messages = run_target(
'src-lib-hooks-hooks_messages',
]
install_headers(kea_http_headers, preserve_path: true, subdir: 'kea/http')
-if HAS_KEA_MSG_COMPILER
+if KEA_MSG_COMPILER.found()
current_source_dir = meson.current_source_dir()
target_gen_messages = run_target(
'src-lib-http-auth_messages',
if meson.is_cross_build()
- HAS_KEA_MSG_COMPILER = false
subdir_done()
endif
-kea_msg_compiler = executable(
+KEA_MSG_COMPILER = executable(
'kea-msg-compiler',
'message.cc',
include_directories: INCLUDES,
install_dir: 'bin',
link_with: LIBS_BUILT_SO_FAR,
)
-HAS_KEA_MSG_COMPILER = true
]
install_headers(kea_log_headers, preserve_path: true, subdir: 'kea/log')
-if HAS_KEA_MSG_COMPILER
+if KEA_MSG_COMPILER.found()
current_source_dir = meson.current_source_dir()
target_gen_messages = run_target(
'src-lib-log-log_messages',
)
endforeach
-if HAS_KEA_MSG_COMPILER
+if KEA_MSG_COMPILER.found()
current_source_dir = meson.current_source_dir()
target_gen_messages = run_target(
'src-lib-log-tests-log_test_messages',
]
install_headers(kea_process_headers, preserve_path: true, subdir: 'kea/process')
-if HAS_KEA_MSG_COMPILER
+if KEA_MSG_COMPILER.found()
current_source_dir = meson.current_source_dir()
target_gen_messages = run_target(
'src-lib-process-process_messages',
]
install_headers(kea_tcp_headers, preserve_path: true, subdir: 'kea/tcp')
-if HAS_KEA_MSG_COMPILER
+if KEA_MSG_COMPILER.found()
current_source_dir = meson.current_source_dir()
target_gen_messages = run_target(
'src-lib-tcp-tcp_messages',