git: f7c709b3d7e8 - main - contrib/lutok: upgrade to 0.7.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 27 Nov 2026 05:00:24 UTC
The branch main has been updated by ngie:
URL: https://cgit.FreeBSD.org/src/commit/?id=f7c709b3d7e8a71eeadd432c6cb491929d9f4462
commit f7c709b3d7e8a71eeadd432c6cb491929d9f4462
Merge: e2cdda41b95b a1e3c85b0684
Author: Enji Cooper <ngie@FreeBSD.org>
AuthorDate: 2026-11-27 04:58:58 +0000
Commit: Enji Cooper <ngie@FreeBSD.org>
CommitDate: 2026-11-27 04:58:58 +0000
contrib/lutok: upgrade to 0.7.0
This is a large cleanup release which has a number of changes that
should be largely transparent to end-users of lutok.
Please see NEWS for more details, as well as the vendor import commit.
MFC after: 1 week
Merge commit 'a1e3c85b0684e1a1896fbf811a894a45e658ec83'
contrib/lutok/Doxyfile.in | 1 -
contrib/lutok/INSTALL.md | 182 --
contrib/lutok/Makefile.am | 221 ---
contrib/lutok/NEWS | 66 +
contrib/lutok/api-docs/html/a00002.html | 99 --
contrib/lutok/api-docs/html/a00002_source.html | 168 --
contrib/lutok/api-docs/html/a00029.html | 132 --
contrib/lutok/api-docs/html/a00029_source.html | 247 ---
contrib/lutok/api-docs/html/a00032.html | 98 --
contrib/lutok/api-docs/html/a00032_source.html | 160 +-
contrib/lutok/api-docs/html/a00038.html | 363 +---
contrib/lutok/api-docs/html/a00038_source.html | 157 +-
contrib/lutok/api-docs/html/a00041.html | 324 +++-
contrib/lutok/api-docs/html/a00041_source.html | 154 +-
contrib/lutok/api-docs/html/a00053.html | 105 --
contrib/lutok/api-docs/html/a00053_source.html | 169 --
contrib/lutok/api-docs/html/a00056.html | 165 --
contrib/lutok/api-docs/html/a00056_source.html | 198 ---
contrib/lutok/api-docs/html/a00064.html | 123 +-
contrib/lutok/api-docs/html/a00065.html | 287 ++--
contrib/lutok/api-docs/html/a00066.html | 179 +-
contrib/lutok/api-docs/html/a00067.html | 121 +-
contrib/lutok/api-docs/html/a00880.html | 93 -
contrib/lutok/api-docs/html/a00883.html | 235 ---
contrib/lutok/api-docs/html/a00884.html | 103 +-
contrib/lutok/api-docs/html/a00887.html | 276 ++-
contrib/lutok/api-docs/html/a00888.html | 113 +-
contrib/lutok/api-docs/html/a00891.html | 477 +-----
contrib/lutok/api-docs/html/a00892.html | 114 +-
contrib/lutok/api-docs/html/a00895.html | 513 +++++-
contrib/lutok/api-docs/html/a00895.png | Bin 1584 -> 0 bytes
contrib/lutok/api-docs/html/a00896.html | 106 +-
contrib/lutok/api-docs/html/a00899.html | 269 ++-
contrib/lutok/api-docs/html/a00899.png | Bin 914 -> 1584 bytes
contrib/lutok/api-docs/html/a00900.html | 110 +-
contrib/lutok/api-docs/html/a00903.html | 262 ++-
contrib/lutok/api-docs/html/a00903.png | Bin 1106 -> 914 bytes
contrib/lutok/api-docs/html/a00904.html | 106 +-
contrib/lutok/api-docs/html/a00907.html | 223 ++-
contrib/lutok/api-docs/html/a00908.html | 106 +-
contrib/lutok/api-docs/html/a00911.html | 246 ++-
contrib/lutok/api-docs/html/a00912.html | 106 +-
contrib/lutok/api-docs/html/a00915.html | 238 ++-
contrib/lutok/api-docs/html/a00916.html | 151 +-
contrib/lutok/api-docs/html/a00919.html | 1679 ++-----------------
contrib/lutok/api-docs/html/a00920.html | 153 +-
contrib/lutok/api-docs/html/a00923.html | 1668 +++++++++++++++++-
contrib/lutok/api-docs/html/annotated.html | 117 +-
contrib/lutok/api-docs/html/bc_s.png | Bin 676 -> 0 bytes
contrib/lutok/api-docs/html/bc_sd.png | Bin 635 -> 0 bytes
contrib/lutok/api-docs/html/bdwn.png | Bin 147 -> 0 bytes
contrib/lutok/api-docs/html/classes.html | 103 +-
contrib/lutok/api-docs/html/closed.png | Bin 132 -> 0 bytes
contrib/lutok/api-docs/html/doc.png | Bin 746 -> 0 bytes
contrib/lutok/api-docs/html/docd.png | Bin 756 -> 0 bytes
contrib/lutok/api-docs/html/doxygen.css | 1770 +++++++++++++-------
contrib/lutok/api-docs/html/doxygen.svg | 4 +-
contrib/lutok/api-docs/html/dynsections.js | 123 --
contrib/lutok/api-docs/html/files.html | 104 +-
contrib/lutok/api-docs/html/folderclosed.png | Bin 616 -> 0 bytes
contrib/lutok/api-docs/html/folderopen.png | Bin 597 -> 0 bytes
contrib/lutok/api-docs/html/functions.html | 315 ++--
contrib/lutok/api-docs/html/functions_func.html | 291 ++--
contrib/lutok/api-docs/html/functions_vars.html | 115 +-
contrib/lutok/api-docs/html/globals.html | 95 +-
contrib/lutok/api-docs/html/globals_defs.html | 95 +-
contrib/lutok/api-docs/html/hierarchy.html | 117 +-
contrib/lutok/api-docs/html/index.html | 90 +-
contrib/lutok/api-docs/html/jquery.js | 34 -
contrib/lutok/api-docs/html/menu.js | 615 ++++++-
contrib/lutok/api-docs/html/namespacemembers.html | 105 +-
.../lutok/api-docs/html/namespacemembers_func.html | 107 +-
contrib/lutok/api-docs/html/namespaces.html | 100 +-
contrib/lutok/api-docs/html/nav_f.png | Bin 153 -> 0 bytes
contrib/lutok/api-docs/html/nav_fd.png | Bin 169 -> 0 bytes
contrib/lutok/api-docs/html/nav_g.png | Bin 95 -> 0 bytes
contrib/lutok/api-docs/html/nav_h.png | Bin 98 -> 0 bytes
contrib/lutok/api-docs/html/nav_hd.png | Bin 114 -> 0 bytes
contrib/lutok/api-docs/html/open.png | Bin 123 -> 0 bytes
contrib/lutok/api-docs/html/search/all_0.js | 12 +-
contrib/lutok/api-docs/html/search/all_1.js | 4 +-
contrib/lutok/api-docs/html/search/all_10.js | 2 +-
contrib/lutok/api-docs/html/search/all_11.js | 2 +-
contrib/lutok/api-docs/html/search/all_12.js | 16 +-
contrib/lutok/api-docs/html/search/all_2.js | 20 +-
contrib/lutok/api-docs/html/search/all_3.js | 8 +-
contrib/lutok/api-docs/html/search/all_4.js | 8 +-
contrib/lutok/api-docs/html/search/all_5.js | 8 +-
contrib/lutok/api-docs/html/search/all_6.js | 16 +-
contrib/lutok/api-docs/html/search/all_8.js | 18 +-
contrib/lutok/api-docs/html/search/all_9.js | 12 +-
contrib/lutok/api-docs/html/search/all_a.js | 14 +-
contrib/lutok/api-docs/html/search/all_b.js | 16 +-
contrib/lutok/api-docs/html/search/all_c.js | 28 +-
contrib/lutok/api-docs/html/search/all_d.js | 10 +-
contrib/lutok/api-docs/html/search/all_e.js | 24 +-
contrib/lutok/api-docs/html/search/all_f.js | 12 +-
contrib/lutok/api-docs/html/search/classes_0.js | 2 +-
contrib/lutok/api-docs/html/search/classes_1.js | 2 +-
contrib/lutok/api-docs/html/search/classes_2.js | 2 +-
contrib/lutok/api-docs/html/search/classes_3.js | 2 +-
contrib/lutok/api-docs/html/search/classes_4.js | 2 +-
contrib/lutok/api-docs/html/search/classes_5.js | 8 +-
contrib/lutok/api-docs/html/search/close.svg | 31 -
contrib/lutok/api-docs/html/search/defines_0.js | 2 +-
contrib/lutok/api-docs/html/search/files_0.js | 2 +-
contrib/lutok/api-docs/html/search/files_1.js | 2 +-
contrib/lutok/api-docs/html/search/files_2.js | 2 +-
contrib/lutok/api-docs/html/search/files_3.js | 2 +-
contrib/lutok/api-docs/html/search/files_4.js | 4 +-
contrib/lutok/api-docs/html/search/files_5.js | 2 +-
contrib/lutok/api-docs/html/search/functions_0.js | 4 +-
contrib/lutok/api-docs/html/search/functions_1.js | 16 +-
contrib/lutok/api-docs/html/search/functions_10.js | 2 +-
contrib/lutok/api-docs/html/search/functions_11.js | 16 +-
contrib/lutok/api-docs/html/search/functions_2.js | 6 +-
contrib/lutok/api-docs/html/search/functions_3.js | 6 +-
contrib/lutok/api-docs/html/search/functions_4.js | 8 +-
contrib/lutok/api-docs/html/search/functions_5.js | 16 +-
contrib/lutok/api-docs/html/search/functions_7.js | 18 +-
contrib/lutok/api-docs/html/search/functions_8.js | 8 +-
contrib/lutok/api-docs/html/search/functions_9.js | 14 +-
contrib/lutok/api-docs/html/search/functions_a.js | 10 +-
contrib/lutok/api-docs/html/search/functions_b.js | 28 +-
contrib/lutok/api-docs/html/search/functions_c.js | 6 +-
contrib/lutok/api-docs/html/search/functions_d.js | 18 +-
contrib/lutok/api-docs/html/search/functions_e.js | 10 +-
contrib/lutok/api-docs/html/search/functions_f.js | 2 +-
contrib/lutok/api-docs/html/search/mag.svg | 37 -
contrib/lutok/api-docs/html/search/mag_d.svg | 37 -
contrib/lutok/api-docs/html/search/mag_sel.svg | 74 -
contrib/lutok/api-docs/html/search/mag_seld.svg | 74 -
contrib/lutok/api-docs/html/search/search.css | 176 +-
contrib/lutok/api-docs/html/search/search.js | 1006 ++++++-----
contrib/lutok/api-docs/html/search/typedefs_0.js | 2 +-
contrib/lutok/api-docs/html/search/variables_0.js | 12 +-
contrib/lutok/api-docs/html/search/variables_1.js | 4 +-
contrib/lutok/api-docs/html/search/variables_2.js | 4 +-
contrib/lutok/api-docs/html/search/variables_3.js | 2 +-
contrib/lutok/api-docs/html/search/variables_4.js | 2 +-
contrib/lutok/api-docs/html/splitbar.png | Bin 314 -> 0 bytes
contrib/lutok/api-docs/html/splitbard.png | Bin 282 -> 0 bytes
contrib/lutok/api-docs/html/sync_off.png | Bin 853 -> 0 bytes
contrib/lutok/api-docs/html/sync_on.png | Bin 845 -> 0 bytes
contrib/lutok/api-docs/html/tab_a.png | Bin 142 -> 0 bytes
contrib/lutok/api-docs/html/tab_ad.png | Bin 135 -> 0 bytes
contrib/lutok/api-docs/html/tab_b.png | Bin 169 -> 0 bytes
contrib/lutok/api-docs/html/tab_bd.png | Bin 173 -> 0 bytes
contrib/lutok/api-docs/html/tab_h.png | Bin 177 -> 0 bytes
contrib/lutok/api-docs/html/tab_hd.png | Bin 180 -> 0 bytes
contrib/lutok/api-docs/html/tab_s.png | Bin 184 -> 0 bytes
contrib/lutok/api-docs/html/tab_sd.png | Bin 188 -> 0 bytes
contrib/lutok/api-docs/html/tabs.css | 483 +++++-
contrib/lutok/c_gate.cpp | 17 +-
contrib/lutok/c_gate.hpp | 11 +-
contrib/lutok/c_gate_test.cpp | 8 +-
contrib/lutok/config.h | 169 ++
contrib/lutok/config.h.in | 66 -
contrib/lutok/configure.ac | 84 -
contrib/lutok/debug.cpp | 38 +-
contrib/lutok/debug.hpp | 35 +-
contrib/lutok/debug_test.cpp | 9 +-
contrib/lutok/examples/Makefile | 67 -
contrib/lutok/examples/bindings.cpp | 12 +-
contrib/lutok/examples/hello.cpp | 2 -
contrib/lutok/examples/interpreter.cpp | 5 +-
contrib/lutok/examples/raii.cpp | 9 +-
contrib/lutok/exceptions.cpp | 25 +-
contrib/lutok/exceptions.hpp | 24 +-
contrib/lutok/exceptions_test.cpp | 11 +-
contrib/lutok/lutok.pc.in | 8 +-
contrib/lutok/m4/ac_cxx_compile_stdcxx.m4 | 1070 ------------
contrib/lutok/m4/atf-c++.m4 | 44 -
contrib/lutok/m4/atf-common.m4 | 88 -
contrib/lutok/m4/atf-sh.m4 | 49 -
contrib/lutok/m4/compiler-flags.m4 | 159 --
contrib/lutok/m4/developer-mode.m4 | 112 --
contrib/lutok/m4/doxygen.m4 | 62 -
contrib/lutok/m4/ltsugar.m4 | 124 --
contrib/lutok/m4/lua.m4 | 60 -
contrib/lutok/operations.cpp | 26 +-
contrib/lutok/operations.hpp | 19 +-
contrib/lutok/operations_test.cpp | 48 +-
contrib/lutok/stack_cleaner.cpp | 9 +-
contrib/lutok/stack_cleaner.hpp | 15 +-
contrib/lutok/stack_cleaner_test.cpp | 7 +-
contrib/lutok/state.cpp | 186 +-
contrib/lutok/state.hpp | 94 +-
contrib/lutok/state.ipp | 15 +-
contrib/lutok/state_test.cpp | 147 +-
contrib/lutok/test_utils.hpp | 33 +-
lib/liblutok/Makefile | 4 +-
usr.bin/kyua/Makefile | 12 +-
193 files changed, 9720 insertions(+), 11025 deletions(-)
diff --cc contrib/lutok/api-docs/html/a00899.png
index 449bb6c96a36,15fbfe253ca3..15fbfe253ca3
Binary files differ
diff --cc contrib/lutok/api-docs/html/a00903.png
index 23cf9ae6da2f,5fb54f42f6f3..5fb54f42f6f3
Binary files differ
diff --cc contrib/lutok/config.h
index 000000000000,000000000000..11b9d512306d
new file mode 100644
--- /dev/null
+++ b/contrib/lutok/config.h
@@@ -1,0 -1,0 +1,169 @@@
++/* config.h. Generated from config.h.in by configure. */
++/* config.h.in. Generated from configure.ac by autoheader. */
++
++/* define if the compiler supports basic C++20 syntax */
++#define HAVE_CXX20 1
++
++/* Define to 1 if you have the <dlfcn.h> header file. */
++#define HAVE_DLFCN_H 1
++
++/* Define to 1 if you have the <inttypes.h> header file. */
++#define HAVE_INTTYPES_H 1
++
++/* Define to 1 if you have the <minix/config.h> header file. */
++/* #undef HAVE_MINIX_CONFIG_H */
++
++/* Define to 1 if you have the <stdint.h> header file. */
++#define HAVE_STDINT_H 1
++
++/* Define to 1 if you have the <stdio.h> header file. */
++#define HAVE_STDIO_H 1
++
++/* Define to 1 if you have the <stdlib.h> header file. */
++#define HAVE_STDLIB_H 1
++
++/* Define to 1 if you have the <strings.h> header file. */
++#define HAVE_STRINGS_H 1
++
++/* Define to 1 if you have the <string.h> header file. */
++#define HAVE_STRING_H 1
++
++/* Define to 1 if you have the <sys/stat.h> header file. */
++#define HAVE_SYS_STAT_H 1
++
++/* Define to 1 if you have the <sys/types.h> header file. */
++#define HAVE_SYS_TYPES_H 1
++
++/* Define to 1 if you have the <unistd.h> header file. */
++#define HAVE_UNISTD_H 1
++
++/* Define to 1 if you have the <wchar.h> header file. */
++#define HAVE_WCHAR_H 1
++
++/* Define to the sub-directory where libtool stores uninstalled libraries. */
++#define LT_OBJDIR ".libs/"
++
++/* Name of package */
++#define PACKAGE "lutok"
++
++/* Define to the address where bug reports for this package should be sent. */
++#define PACKAGE_BUGREPORT "testing@FreeBSD.org"
++
++/* Define to the full name of this package. */
++#define PACKAGE_NAME "Lutok"
++
++/* Define to the full name and version of this package. */
++#define PACKAGE_STRING "Lutok 0.7.0"
++
++/* Define to the one symbol short name of this package. */
++#define PACKAGE_TARNAME "lutok"
++
++/* Define to the home page for this package. */
++#define PACKAGE_URL "https://github.com/freebsd/lutok/"
++
++/* Define to the version of this package. */
++#define PACKAGE_VERSION "0.7.0"
++
++/* Define to 1 if all of the C89 standard headers exist (not just the ones
++ required in a freestanding environment). This macro is provided for
++ backward compatibility; new code need not use it. */
++#define STDC_HEADERS 1
++
++/* Enable extensions on AIX, Interix, z/OS. */
++#ifndef _ALL_SOURCE
++# define _ALL_SOURCE 1
++#endif
++/* Enable extensions on Cosmopolitan Libc. */
++#ifndef _COSMO_SOURCE
++# define _COSMO_SOURCE 1
++#endif
++/* Enable general extensions on macOS. */
++#ifndef _DARWIN_C_SOURCE
++# define _DARWIN_C_SOURCE 1
++#endif
++/* Enable general extensions on Solaris. */
++#ifndef __EXTENSIONS__
++# define __EXTENSIONS__ 1
++#endif
++/* Enable GNU extensions on systems that have them. */
++#ifndef _GNU_SOURCE
++# define _GNU_SOURCE 1
++#endif
++/* Enable X/Open compliant socket functions that do not require linking
++ with -lxnet on HP-UX 11.11. */
++#ifndef _HPUX_ALT_XOPEN_SOCKET_API
++# define _HPUX_ALT_XOPEN_SOCKET_API 1
++#endif
++/* Identify the host operating system as Minix.
++ This macro does not affect the system headers' behavior.
++ A future release of Autoconf may stop defining this macro. */
++#ifndef _MINIX
++/* # undef _MINIX */
++#endif
++/* Enable general extensions on NetBSD.
++ Enable NetBSD compatibility extensions on Minix. */
++#ifndef _NETBSD_SOURCE
++# define _NETBSD_SOURCE 1
++#endif
++/* Enable OpenBSD compatibility extensions on NetBSD.
++ Oddly enough, this does nothing on OpenBSD. */
++#ifndef _OPENBSD_SOURCE
++# define _OPENBSD_SOURCE 1
++#endif
++/* Define to 1 if needed for POSIX-compatible behavior. */
++#ifndef _POSIX_SOURCE
++/* # undef _POSIX_SOURCE */
++#endif
++/* Define to 2 if needed for POSIX-compatible behavior. */
++#ifndef _POSIX_1_SOURCE
++/* # undef _POSIX_1_SOURCE */
++#endif
++/* Enable POSIX-compatible threading on Solaris. */
++#ifndef _POSIX_PTHREAD_SEMANTICS
++# define _POSIX_PTHREAD_SEMANTICS 1
++#endif
++/* Enable extensions specified by ISO/IEC TS 18661-5:2014. */
++#ifndef __STDC_WANT_IEC_60559_ATTRIBS_EXT__
++# define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1
++#endif
++/* Enable extensions specified by ISO/IEC TS 18661-1:2014. */
++#ifndef __STDC_WANT_IEC_60559_BFP_EXT__
++# define __STDC_WANT_IEC_60559_BFP_EXT__ 1
++#endif
++/* Enable extensions specified by ISO/IEC TS 18661-2:2015. */
++#ifndef __STDC_WANT_IEC_60559_DFP_EXT__
++# define __STDC_WANT_IEC_60559_DFP_EXT__ 1
++#endif
++/* Enable extensions specified by C23 Annex F. */
++#ifndef __STDC_WANT_IEC_60559_EXT__
++# define __STDC_WANT_IEC_60559_EXT__ 1
++#endif
++/* Enable extensions specified by ISO/IEC TS 18661-4:2015. */
++#ifndef __STDC_WANT_IEC_60559_FUNCS_EXT__
++# define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1
++#endif
++/* Enable extensions specified by C23 Annex H and ISO/IEC TS 18661-3:2015. */
++#ifndef __STDC_WANT_IEC_60559_TYPES_EXT__
++# define __STDC_WANT_IEC_60559_TYPES_EXT__ 1
++#endif
++/* Enable extensions specified by ISO/IEC TR 24731-2:2010. */
++#ifndef __STDC_WANT_LIB_EXT2__
++# define __STDC_WANT_LIB_EXT2__ 1
++#endif
++/* Enable extensions specified by ISO/IEC 24747:2009. */
++#ifndef __STDC_WANT_MATH_SPEC_FUNCS__
++# define __STDC_WANT_MATH_SPEC_FUNCS__ 1
++#endif
++/* Enable extensions on HP NonStop. */
++#ifndef _TANDEM_SOURCE
++# define _TANDEM_SOURCE 1
++#endif
++/* Enable X/Open extensions. Define to 500 only if necessary
++ to make mbstate_t available. */
++#ifndef _XOPEN_SOURCE
++/* # undef _XOPEN_SOURCE */
++#endif
++
++
++/* Version number of package */
++#define VERSION "0.7.0"
diff --cc lib/liblutok/Makefile
index a145cf3dab52,000000000000..b38c9d1707fe
mode 100644,000000..100644
--- a/lib/liblutok/Makefile
+++ b/lib/liblutok/Makefile
@@@ -1,23 -1,0 +1,23 @@@
+LIB_CXX= lutok
+INTERNALLIB=
+
+LIBADD= lua
+
+.PATH: ${SRCTOP}/contrib/lutok
+SRCS= c_gate.cpp \
+ debug.cpp \
+ exceptions.cpp \
+ operations.cpp \
+ stack_cleaner.cpp \
+ state.cpp
+
- CFLAGS+= -I${SRCTOP}/contrib/lutok/include \
++CXXFLAGS+= -I${SRCTOP}/contrib/lutok/include \
+ -I${SRCTOP}/lib/liblua \
+ -I${SRCTOP}/contrib/lua/src
+
+WARNS?= 3
- SHLIB_MAJOR= 0
++SHLIB_MAJOR= 4
+
+CXXSTD= gnu++20
+
+.include <bsd.lib.mk>
diff --cc usr.bin/kyua/Makefile
index 137af9d68ab0,000000000000..f2a3ddffff93
mode 100644,000000..100644
--- a/usr.bin/kyua/Makefile
+++ b/usr.bin/kyua/Makefile
@@@ -1,213 -1,0 +1,215 @@@
+.include <src.opts.mk>
+
+KYUA_CONFDIR= /etc/kyua
+KYUA_DOCDIR= /usr/share/doc/kyua
+KYUA_EGDIR= /usr/share/examples/kyua
+KYUA_MISCDIR= /usr/share/kyua/misc
+KYUA_STOREDIR= /usr/share/kyua/store
+
+KYUA_SRCDIR= ${SRCTOP}/contrib/kyua
+.PATH: ${KYUA_SRCDIR}
+
+PACKAGE= kyua
+PROG_CXX= kyua
+SRCS= main.cpp
+LIBADD= lutok sqlite3 util
+
+.PATH: ${KYUA_SRCDIR}/doc
+MAN= kyua-about.1 \
+ kyua-config.1 \
+ kyua-db-exec.1 \
+ kyua-db-migrate.1 \
+ kyua-debug.1 \
+ kyua-help.1 \
+ kyua-list.1 \
+ kyua-report-html.1 \
+ kyua-report-junit.1 \
+ kyua-report.1 \
+ kyua-test.1 \
+ kyua.1 \
+ kyua.conf.5 \
+ kyuafile.5
+
- CFLAGS+= -I${KYUA_SRCDIR} -I${.CURDIR}
- CFLAGS+= -I${SRCTOP}/contrib/lutok/include
- CFLAGS+= -I${SYSROOT:U${DESTDIR}}/${INCLUDEDIR}/private/sqlite3
- CFLAGS+= -DHAVE_CONFIG_H
++CXXFLAGS+= -I${KYUA_SRCDIR} -I${.CURDIR}
++CXXFLAGS+= -I${SRCTOP}/contrib/lua/src
++CXXFLAGS+= -I${SRCTOP}/lib/liblua
++CXXFLAGS+= -I${SRCTOP}/contrib/lutok/include
++CXXFLAGS+= -I${SYSROOT:U${DESTDIR}}/${INCLUDEDIR}/private/sqlite3
++CXXFLAGS+= -DHAVE_CONFIG_H
+
+# We compile the kyua libraries as part of the main executable as this saves
+# compile time and we don't install them anyway.
- CFLAGS+= -DGDB=\"/usr/local/bin/gdb\" \
++CXXFLAGS+= -DGDB=\"/usr/local/bin/gdb\" \
+ -DKYUA_ARCHITECTURE=\"${MACHINE_ARCH}\" \
+ -DKYUA_CONFDIR=\"${KYUA_CONFDIR}\" \
+ -DKYUA_DOCDIR=\"${KYUA_DOCDIR}\" \
+ -DKYUA_MISCDIR=\"${KYUA_MISCDIR}\" \
+ -DKYUA_PLATFORM=\"${MACHINE}\" \
+ -DKYUA_STOREDIR=\"${KYUA_STOREDIR}\" \
+
+CXXWARNFLAGS.gcc+= -Wno-free-nonheap-object
+
+SRCS+= utils/datetime.cpp \
+ utils/env.cpp \
+ utils/memory.cpp \
+ utils/passwd.cpp \
+ utils/sanity.cpp \
+ utils/stacktrace.cpp \
+ utils/stream.cpp \
+ utils/units.cpp \
+ utils/cmdline/base_command.cpp \
+ utils/cmdline/exceptions.cpp \
+ utils/cmdline/globals.cpp \
+ utils/cmdline/options.cpp \
+ utils/cmdline/parser.cpp \
+ utils/cmdline/ui.cpp \
+ utils/cmdline/ui_mock.cpp \
+ utils/config/exceptions.cpp \
+ utils/config/keys.cpp \
+ utils/config/lua_module.cpp \
+ utils/config/nodes.cpp \
+ utils/config/parser.cpp \
+ utils/config/tree.cpp \
+ utils/format/exceptions.cpp \
+ utils/format/formatter.cpp \
+ utils/fs/auto_cleaners.cpp \
+ utils/fs/directory.cpp \
+ utils/fs/exceptions.cpp \
+ utils/fs/lua_module.cpp \
+ utils/fs/operations.cpp \
+ utils/fs/path.cpp \
+ utils/logging/operations.cpp \
+ utils/process/child.cpp \
+ utils/process/deadline_killer.cpp \
+ utils/process/exceptions.cpp \
+ utils/process/executor.cpp \
+ utils/process/fdstream.cpp \
+ utils/process/isolation.cpp \
+ utils/process/operations.cpp \
+ utils/process/status.cpp \
+ utils/process/system.cpp \
+ utils/process/systembuf.cpp \
+ utils/signals/exceptions.cpp \
+ utils/signals/interrupts.cpp \
+ utils/signals/misc.cpp \
+ utils/signals/programmer.cpp \
+ utils/signals/timer.cpp \
+ utils/sqlite/c_gate.cpp \
+ utils/sqlite/database.cpp \
+ utils/sqlite/exceptions.cpp \
+ utils/sqlite/statement.cpp \
+ utils/sqlite/transaction.cpp \
+ utils/text/exceptions.cpp \
+ utils/text/operations.cpp \
+ utils/text/regex.cpp \
+ utils/text/table.cpp \
+ utils/text/templates.cpp
+
+SRCS+= model/context.cpp \
+ model/exceptions.cpp \
+ model/metadata.cpp \
+ model/test_case.cpp \
+ model/test_program.cpp \
+ model/test_result.cpp
+
+SRCS+= engine/atf.cpp \
+ engine/atf_list.cpp \
+ engine/atf_result.cpp \
+ engine/config.cpp \
+ engine/exceptions.cpp \
+ engine/filters.cpp \
+ engine/googletest.cpp \
+ engine/googletest_list.cpp \
+ engine/googletest_result.cpp \
+ engine/kyuafile.cpp \
+ engine/plain.cpp \
+ engine/requirements.cpp \
+ engine/scanner.cpp \
+ engine/tap.cpp \
+ engine/tap_parser.cpp \
+ engine/scheduler.cpp \
+ engine/execenv/execenv.cpp \
+ engine/execenv/execenv_host.cpp \
+ engine/prepare/prepare.cpp \
+ engine/prepare/prepare_all.cpp
+
+SRCS+= os/freebsd/execenv_jail_manager.cpp \
+ os/freebsd/main.cpp \
+ os/freebsd/reqs_checker_kmods.cpp \
+ os/freebsd/prepare_kmods.cpp
+
+SRCS+= store/dbtypes.cpp \
+ store/exceptions.cpp \
+ store/layout.cpp \
+ store/metadata.cpp \
+ store/migrate.cpp \
+ store/read_backend.cpp \
+ store/read_transaction.cpp \
+ store/write_backend.cpp \
+ store/write_transaction.cpp
+
+SRCS+= drivers/debug_test.cpp \
+ drivers/list_tests.cpp \
+ drivers/report_junit.cpp \
+ drivers/run_tests.cpp \
+ drivers/scan_results.cpp
+
+SRCS+= cli/cmd_about.cpp \
+ cli/cmd_config.cpp \
+ cli/cmd_db_exec.cpp \
+ cli/cmd_db_migrate.cpp \
+ cli/cmd_debug.cpp \
+ cli/cmd_help.cpp \
+ cli/cmd_list.cpp \
+ cli/cmd_prepare.cpp \
+ cli/cmd_report.cpp \
+ cli/cmd_report_html.cpp \
+ cli/cmd_report_junit.cpp \
+ cli/cmd_test.cpp \
+ cli/common.cpp \
+ cli/config.cpp \
+ cli/main.cpp
+
+.if ${MK_JAIL} == "no"
+SRCS+= os/freebsd/execenv_jail_stub.cpp
+.else
+SRCS+= os/freebsd/execenv_jail.cpp \
+ os/freebsd/utils/jail.cpp
+LIBADD+= jail
+.endif
+
+CXXSTD= gnu++20
+
+FILESGROUPS= DOCS MISC STORE
+
+.if ${MK_EXAMPLES} != "no"
+FILESGROUPS+= EXAMPLES
+.endif
+
+# Install a minimal default config that uses the 'tests' user.
+# The examples config is not appropriate for general use.
+CONFS= kyua.conf-default
+CONFSDIR= ${KYUA_CONFDIR}
+CONFSNAME= kyua.conf
+CONFSDIRTAGS= package=kyua
+
+DOCS= AUTHORS CONTRIBUTORS LICENSE
+DOCSDIR= ${KYUA_DOCDIR}
+DOCSTAGS= package=kyua
+
+EXAMPLES= Kyuafile.top kyua.conf
+EXAMPLESDIR= ${KYUA_EGDIR}
+EXAMPLESTAGS= package=kyua
+.PATH: ${KYUA_SRCDIR}/examples
+
+MISC= context.html index.html report.css test_result.html
+MISCDIR= ${KYUA_MISCDIR}
+MISCTAGS= package=kyua
+.PATH: ${KYUA_SRCDIR}/misc
+
+STORE= migrate_v1_v2.sql migrate_v2_v3.sql schema_v3.sql
+STOREDIR= ${KYUA_STOREDIR}
+STORETAGS= package=kyua
+.PATH: ${KYUA_SRCDIR}/store
+
+.include <bsd.prog.mk>