@@ -2,6 +2,9 @@ if not gtest.found() or not NETCONF_DEPS_FOUND
2
2
subdir_done ()
3
3
endif
4
4
5
+ current_build_dir = meson .current_build_dir()
6
+ current_source_dir = meson .current_source_dir()
7
+
5
8
kea_netconf_tests = executable (
6
9
' kea-netconf-tests' ,
7
10
' basic_library.cc' ,
@@ -13,9 +16,31 @@ kea_netconf_tests = executable(
13
16
' netconf_unittests.cc' ,
14
17
' parser_unittests.cc' ,
15
18
' run_unittests.cc' ,
16
- dependencies : NETCONF_DEPS_ARRAY + [gtest],
19
+ cpp_args : [
20
+ f' -DBASIC_CALLOUT_LIBRARY="@current_build_dir@/libbasic.so"' ,
21
+ f' -DCFG_EXAMPLES="@TOP_SOURCE_DIR@/doc/examples/netconf"' ,
22
+ ' -DKEATEST_MODULE' ,
23
+ f' -DSYNTAX_FILE="@current_source_dir@/../netconf_parser.yy"' ,
24
+ f' -DTEST_DATA_SOURCEDIR="@current_source_dir@"' ,
25
+ f' -DTEST_DATA_BUILDDIR="@current_build_dir@"' ,
26
+ ],
27
+ dependencies : NETCONF_DEPS_ARRAY + [gtest, crypto],
17
28
include_directories : [include_directories (' .' )] + INCLUDES,
18
- link_with : [kea_yang_tests_lib] + LIBS_BUILT_SO_FAR,
29
+ link_with : [
30
+ netconf_lib,
31
+ kea_yang_testutils_lib,
32
+ kea_process_testutils_lib,
33
+ kea_testutils_lib,
34
+ ] + LIBS_BUILT_SO_FAR,
19
35
override_options : [' cpp_std=c++20' ],
20
36
)
21
37
test (' kea-netconf-tests' , kea_netconf_tests, protocol : ' gtest' )
38
+
39
+ shared_library (
40
+ ' basic' ,
41
+ ' basic_library.cc' ,
42
+ include_directories : [include_directories (' .' )] + INCLUDES,
43
+ link_with : LIBS_BUILT_SO_FAR,
44
+ build_rpath : ' /nowhere' ,
45
+ name_suffix : ' so' ,
46
+ )
0 commit comments