feat(raft-library): task 1.1 — build scaffold (raft/ files + meson wiring)

This commit is contained in:
Rongsong Shen 2026-05-31 04:51:42 +00:00
parent dbb750ebd3
commit 7f7de013b9
7 changed files with 225 additions and 0 deletions

View file

@ -105,6 +105,7 @@ libxce_src = [ gen_srcs[0],
'wobj.c',
'configobj.c',
'cluster.c',
'raft/raft.c',
]
incdir = include_directories('../include')
@ -171,6 +172,8 @@ libxce_test_src = ['testsuite/test.c',
'testsuite/test_cluster_parse.c',
'testsuite/test_libxce_retry.c',
'testsuite/test_netio_on_connected.c',
'testsuite/test_raft.c',
'raft/raft_sim.c',
]
libxce_test_deps = [libxce_deps, librtti_dep, unity_dep, libxce_dep]
@ -178,6 +181,7 @@ libxce_test = executable('xcelib_test',
libxce_test_src,
include_directories: [incdir, build_inc],
dependencies: libxce_test_deps,
c_args: ['-DXCE_TESTING'],
install: true)
test('libxce test', libxce_test, timeout: 120)