Skip to content

Commit 9d66d0d

Browse files
committed
[#3443] Extra additions to the additions to the Meson Proof of Concept
1 parent 7ddd626 commit 9d66d0d

File tree

113 files changed

+698
-643
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+698
-643
lines changed

compiler-checks/have-generic-tls-method.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22

33
int main() {
44
auto _(boost::asio::ssl::context::tls);
5+
return 0;
56
}

compiler-checks/have-sa-len.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44
int main() {
55
struct sockaddr sa;
66
sa.sa_len = 0;
7+
return 0;
78
}

compiler-checks/mysql-my-bool.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22

33
int main() {
44
my_bool _(0);
5+
return 0;
56
}

compiler-checks/stream-truncated-error.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22

33
int main() {
44
auto _(boost::asio::ssl::error::stream_truncated);
5+
return 0;
56
}

meson.build

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ conf_data = configuration_data(
115115
boost = dependency('boost', version: '>=1.66')
116116
gtest = dependency('gtest', required: false)
117117
log4cplus = dependency('log4cplus')
118+
threads = dependency('threads')
118119

119120
# Cryptography
120121
crypto = disabler()
@@ -135,10 +136,7 @@ elif botan.found()
135136
conf_data.set('WITH_BOTAN', true)
136137
message('Using Botan.')
137138
message('Checking Botan Boost support.')
138-
cpp.has_header(
139-
'botan/asio_stream.h',
140-
dependencies: botan,
141-
required: true)
139+
cpp.has_header('botan/asio_stream.h', dependencies: [botan], required: true)
142140
endif
143141
if not crypto.found()
144142
error('Build failed: Could not find neither botan nor openssl libraries.')
@@ -213,7 +211,7 @@ foreach dep : ['yang', 'yang-cpp', 'sysrepo', 'sysrepo-cpp']
213211
if lib.found()
214212
netconf_deps = netconf_deps + {
215213
dep: declare_dependency(
216-
dependencies: lib,
214+
dependencies: [lib],
217215
include_directories: include_directories(
218216
f'/opt/@dep@/include',
219217
),
@@ -309,13 +307,17 @@ configure_file(
309307
input: 'meson-config.h.in',
310308
output: 'config.h',
311309
configuration: conf_data,
310+
install: true,
311+
install_dir: 'include/kea',
312312
)
313313

314314
# TODO: Change to kea_version.h.in when autotools are removed.
315315
configure_file(
316316
input: 'meson-kea_version.h.in',
317317
output: 'kea_version.h',
318318
configuration: conf_data,
319+
install: true,
320+
install_dir: 'include/kea',
319321
)
320322

321323
#### Default Includes

src/bin/admin/kea-admin.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
# Copyright (C) 2014-2024 Internet Systems Consortium, Inc. ("ISC")
3+
# Copyright (C) 2014-2025 Internet Systems Consortium, Inc. ("ISC")
44
#
55
# This Source Code Form is subject to the terms of the Mozilla Public
66
# License, v. 2.0. If a copy of the MPL was not distributed with this

src/bin/admin/meson.build

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,7 @@ kea_admin_conf_data.set('variables', 'variables')
1313
configure_file(
1414
input: 'kea-admin.in',
1515
output: 'kea-admin',
16-
configuration: kea_admin_conf_data
17-
)
18-
configure_file(
19-
input: 'admin-utils.sh.in',
20-
output: 'admin-utils.sh',
21-
copy: true
16+
configuration: kea_admin_conf_data,
2217
)
18+
configure_file(input: 'admin-utils.sh.in', output: 'admin-utils.sh', copy: true)
2319
# install?

src/bin/dhcp4/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ executable(
2121
include_directories: [include_directories('.')] + INCLUDES,
2222
install: true,
2323
install_dir: 'sbin',
24-
link_with: LIBS_BUILT_SO_FAR + [dhcp4_lib],
24+
link_with: [dhcp4_lib] + LIBS_BUILT_SO_FAR,
2525
)

src/bin/dhcp6/meson.build

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,16 @@
11
dhcp6_lib = static_library(
22
'dhcp6',
33
'client_handler.cc',
4-
'client_handler.h',
54
'ctrl_dhcp6_srv.cc',
6-
'ctrl_dhcp6_srv.h',
75
'dhcp6to4_ipc.cc',
8-
'dhcp6to4_ipc.h',
96
'dhcp6_lexer.cc',
107
'dhcp6_log.cc',
11-
'dhcp6_log.h',
128
'dhcp6_messages.cc',
13-
'dhcp6_messages.h',
149
'dhcp6_parser.cc',
15-
'dhcp6_parser.h',
1610
'dhcp6_srv.cc',
17-
'dhcp6_srv.h',
1811
'json_config_parser.cc',
19-
'json_config_parser.h',
2012
'main.cc',
2113
'parser_context.cc',
22-
'parser_context.h',
23-
'parser_context_decl.h',
2414
dependencies: [crypto],
2515
include_directories: [include_directories('.')] + INCLUDES,
2616
link_with: LIBS_BUILT_SO_FAR,
@@ -32,5 +22,5 @@ executable(
3222
include_directories: [include_directories('.')] + INCLUDES,
3323
install: true,
3424
install_dir: 'sbin',
35-
link_with: LIBS_BUILT_SO_FAR + [dhcp6_lib],
25+
link_with: [dhcp6_lib] + LIBS_BUILT_SO_FAR,
3626
)

src/bin/lfc/meson.build

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
lfc_lib = static_library(
22
'lfc',
33
'lfc_controller.cc',
4-
'lfc_controller.h',
54
'lfc_log.cc',
6-
'lfc_log.h',
75
'lfc_messages.cc',
8-
'lfc_messages.h',
6+
dependencies: [boost],
97
include_directories: [include_directories('.')] + INCLUDES,
108
link_with: LIBS_BUILT_SO_FAR,
119
)
1210
executable(
1311
'kea-lfc',
1412
'main.cc',
13+
dependencies: [boost],
1514
include_directories: [include_directories('.')] + INCLUDES,
1615
install: true,
1716
install_dir: 'sbin',
18-
link_with: LIBS_BUILT_SO_FAR + [lfc_lib],
17+
link_with: [lfc_lib] + LIBS_BUILT_SO_FAR,
1918
)

src/bin/perfdhcp/meson.build

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,26 @@
11
perfdhcplib_lib = static_library(
22
'perfdhcplib',
3-
'abstract_scen.h',
43
'avalanche_scen.cc',
5-
'avalanche_scen.h',
64
'basic_scen.cc',
7-
'basic_scen.h',
85
'command_options.cc',
9-
'command_options.h',
10-
'localized_option.h',
11-
'packet_storage.h',
126
'perf_pkt4.cc',
13-
'perf_pkt4.h',
147
'perf_pkt6.cc',
15-
'perf_pkt6.h',
168
'perf_socket.cc',
17-
'perf_socket.h',
189
'pkt_transform.cc',
19-
'pkt_transform.h',
2010
'rate_control.cc',
21-
'rate_control.h',
2211
'receiver.cc',
23-
'receiver.h',
2412
'stats_mgr.cc',
25-
'stats_mgr.h',
2613
'test_control.cc',
27-
'test_control.h',
14+
dependencies: [boost],
2815
include_directories: [include_directories('.')] + INCLUDES,
2916
link_with: LIBS_BUILT_SO_FAR,
3017
)
3118
executable(
3219
'perfdhcp',
3320
'main.cc',
21+
dependencies: [boost],
3422
include_directories: [include_directories('.')] + INCLUDES,
3523
install: true,
3624
install_dir: 'sbin',
37-
link_with: LIBS_BUILT_SO_FAR + [perfdhcplib_lib],
25+
link_with: [perfdhcplib_lib] + LIBS_BUILT_SO_FAR,
3826
)

src/hooks/dhcp/bootp/meson.build

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@ dhcp_bootp_lib = library(
22
'dhcp_bootp',
33
'bootp_callouts.cc',
44
'bootp_log.cc',
5-
'bootp_log.h',
65
'bootp_messages.cc',
7-
'bootp_messages.h',
86
'version.cc',
7+
dependencies: [boost],
98
include_directories: [include_directories('.')] + INCLUDES,
109
install: true,
1110
install_dir: 'lib/kea/hooks',
1211
link_with: LIBS_BUILT_SO_FAR,
13-
name_suffix: 'so'
12+
name_suffix: 'so',
1413
)
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
dhcp_flex_option_lib = library(
22
'dhcp_flex_option',
33
'flex_option.cc',
4-
'flex_option.h',
54
'flex_option_callouts.cc',
65
'flex_option_log.cc',
7-
'flex_option_log.h',
86
'flex_option_messages.cc',
9-
'flex_option_messages.h',
107
'version.cc',
118
dependencies: [crypto],
129
include_directories: [include_directories('.')] + INCLUDES,
1310
install: true,
1411
install_dir: 'lib/kea/hooks',
1512
link_with: LIBS_BUILT_SO_FAR,
13+
name_suffix: 'so',
1614
)
Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,23 @@
11
dhcp_high_availability_lib = library(
22
'dhcp_high_availability',
33
'command_creator.cc',
4-
'command_creator.h',
54
'communication_state.cc',
6-
'communication_state.h',
75
'ha_callouts.cc',
86
'ha_config.cc',
9-
'ha_config.h',
107
'ha_config_parser.cc',
11-
'ha_config_parser.h',
128
'ha_impl.cc',
13-
'ha_impl.h',
149
'ha_log.cc',
15-
'ha_log.h',
1610
'ha_messages.cc',
17-
'ha_messages.h',
18-
'ha_relationship_mapper.h',
19-
'ha_server_type.h',
2011
'ha_service.cc',
21-
'ha_service.h',
2212
'ha_service_states.cc',
23-
'ha_service_states.h',
2413
'lease_sync_filter.cc',
25-
'lease_sync_filter.h',
2614
'lease_update_backlog.cc',
27-
'lease_update_backlog.h',
2815
'query_filter.cc',
29-
'query_filter.h',
3016
'version.cc',
3117
dependencies: [crypto],
3218
include_directories: [include_directories('.')] + INCLUDES,
3319
install: true,
3420
install_dir: 'lib/kea/hooks',
3521
link_with: LIBS_BUILT_SO_FAR,
22+
name_suffix: 'so',
3623
)

src/hooks/dhcp/lease_cmds/meson.build

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
11
dhcp_lease_cmds_lib = library(
22
'dhcp_lease_cmds',
33
'lease_cmds.cc',
4-
'lease_cmds.h',
54
'lease_cmds_callouts.cc',
6-
'lease_cmds_exceptions.h',
75
'lease_cmds_log.cc',
8-
'lease_cmds_log.h',
96
'lease_cmds_messages.cc',
10-
'lease_cmds_messages.h',
117
'lease_parser.cc',
12-
'lease_parser.h',
138
'version.cc',
149
dependencies: [crypto],
1510
include_directories: [include_directories('.')] + INCLUDES,
1611
install: true,
1712
install_dir: 'lib/kea/hooks',
1813
link_with: LIBS_BUILT_SO_FAR,
14+
name_suffix: 'so',
1915
)

src/hooks/dhcp/mysql/meson.build

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,21 @@ dhcp_mysql_lib = library(
66
'dhcp_mysql',
77
'mysql_callouts.cc',
88
'mysql_cb_dhcp4.cc',
9-
'mysql_cb_dhcp4.h',
109
'mysql_cb_dhcp6.cc',
11-
'mysql_cb_dhcp6.h',
1210
'mysql_cb_impl.cc',
13-
'mysql_cb_impl.h',
1411
'mysql_cb_log.cc',
15-
'mysql_cb_log.h',
1612
'mysql_cb_messages.cc',
17-
'mysql_cb_messages.h',
1813
'mysql_hb_log.cc',
19-
'mysql_hb_log.h',
2014
'mysql_hb_messages.cc',
21-
'mysql_hb_messages.h',
2215
'mysql_host_data_source.cc',
23-
'mysql_host_data_source.h',
2416
'mysql_lb_log.cc',
25-
'mysql_lb_log.h',
2617
'mysql_lb_messages.cc',
27-
'mysql_lb_messages.h',
2818
'mysql_lease_mgr.cc',
29-
'mysql_lease_mgr.h',
30-
'mysql_query_macros_dhcp.h',
3119
'version.cc',
3220
dependencies: [crypto, mysql],
3321
include_directories: [include_directories('.')] + INCLUDES,
3422
install: true,
3523
install_dir: 'lib/kea/hooks',
3624
link_with: LIBS_BUILT_SO_FAR,
25+
name_suffix: 'so',
3726
)

src/hooks/dhcp/perfmon/meson.build

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,19 @@
11
dhcp_perfmon_lib = library(
22
'dhcp_perfmon',
33
'alarm.cc',
4-
'alarm.h',
54
'alarm_store.cc',
6-
'alarm_store.h',
75
'monitored_duration.cc',
8-
'monitored_duration.h',
96
'monitored_duration_store.cc',
10-
'monitored_duration_store.h',
117
'perfmon_callouts.cc',
128
'perfmon_config.cc',
13-
'perfmon_config.h',
149
'perfmon_log.cc',
15-
'perfmon_log.h',
1610
'perfmon_messages.cc',
17-
'perfmon_messages.h',
1811
'perfmon_mgr.cc',
19-
'perfmon_mgr.h',
2012
'version.cc',
2113
dependencies: [crypto],
2214
include_directories: [include_directories('.')] + INCLUDES,
2315
install: true,
2416
install_dir: 'lib/kea/hooks',
2517
link_with: LIBS_BUILT_SO_FAR,
18+
name_suffix: 'so',
2619
)

src/hooks/dhcp/pgsql/meson.build

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,21 @@ dhcp_pgsql_lib = library(
66
'dhcp_pgsql',
77
'pgsql_callouts.cc',
88
'pgsql_cb_dhcp4.cc',
9-
'pgsql_cb_dhcp4.h',
109
'pgsql_cb_dhcp6.cc',
11-
'pgsql_cb_dhcp6.h',
1210
'pgsql_cb_impl.cc',
13-
'pgsql_cb_impl.h',
1411
'pgsql_cb_log.cc',
15-
'pgsql_cb_log.h',
1612
'pgsql_cb_messages.cc',
17-
'pgsql_cb_messages.h',
1813
'pgsql_hb_log.cc',
19-
'pgsql_hb_log.h',
2014
'pgsql_hb_messages.cc',
21-
'pgsql_hb_messages.h',
2215
'pgsql_host_data_source.cc',
23-
'pgsql_host_data_source.h',
2416
'pgsql_lb_log.cc',
25-
'pgsql_lb_log.h',
2617
'pgsql_lb_messages.cc',
27-
'pgsql_lb_messages.h',
2818
'pgsql_lease_mgr.cc',
29-
'pgsql_lease_mgr.h',
30-
'pgsql_query_macros_dhcp.h',
3119
'version.cc',
3220
dependencies: [crypto, postgresql],
3321
include_directories: [include_directories('.')] + INCLUDES,
3422
install: true,
3523
install_dir: 'lib/kea/hooks',
3624
link_with: LIBS_BUILT_SO_FAR,
25+
name_suffix: 'so',
3726
)

0 commit comments

Comments
 (0)