build: default to system tomlplusplus and CLI11

This commit is contained in:
Nick Bolton
2024-09-20 20:06:06 +01:00
committed by Chris Rizzitello
parent 60967bbc8d
commit 265ab87997
8 changed files with 91 additions and 22 deletions

View File

@ -31,7 +31,9 @@ install_freebsd() {
qt6-tools \
gtk3 \
googletest \
pugixml
pugixml \
tomlplusplus \
cli11
}
install_openbsd() {

View File

@ -24,8 +24,12 @@ meson_bin = env.get_python_executable("meson")
def setup(no_system_list, static_list):
cmd = [meson_bin, "setup", build_dir]
# TODO: These special Windows exceptions should probably be in Meson
# or somewhere other than this script, as it's a bit hacky.
if env.is_windows():
cmd.append("-Dsystem-gtest=false")
cmd.append("-Dsystem-tomlplusplus=false")
cmd.append("-Dsystem-cli11=false")
for subproject in no_system_list or []:
cmd.append(f"-Dsystem-{subproject}=false")