🚧 fix compilation with meson

This commit is contained in:
Vladislav Nepogodin 2023-08-12 20:53:11 +00:00 committed by GitHub
parent 8232bed5d1
commit 9586a31a54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View File

@ -56,6 +56,7 @@ ftxui = dependency('ftxui', modules : ['ftxui::screen', 'ftxui::dom', 'ftxui::co
rapidjson = dependency('rapidjson', version : ['>=1.1.0'], fallback : ['rapidjson', 'rapidjson_dep'])
ranges = dependency('range-v3', version : ['>=0.11.0'], fallback : ['range-v3', 'range_dep'])
ctre = dependency('ctre', version : ['>=3.7.0'], fallback : ['ctre', 'ctre_dep'])
tomlplusplus = dependency('tomlplusplus', version : ['>=3.3.0'], fallback : ['tomlplusplus', 'tomlplusplus_dep'])
#glibmm = dependency('glibmm-2.4', version : ['>=2.56.0'])
if not is_dev_environment
@ -70,6 +71,7 @@ src_files = files(
'src/cpu.cpp', 'src/cpu.hpp',
'src/pacmanconf_repo.cpp', 'src/pacmanconf_repo.hpp',
'src/initcpio.cpp', 'src/initcpio.hpp',
'src/chwd_profiles.cpp', 'src/chwd_profiles.hpp',
'src/disk.cpp', 'src/disk.hpp',
'src/drivers.cpp', 'src/drivers.hpp',
'src/widgets.cpp', 'src/widgets.hpp',
@ -156,7 +158,7 @@ endif
add_project_arguments(cc.get_supported_arguments(possible_cc_flags), language : 'cpp')
deps = [fmt, spdlog, ftxui, ranges, rapidjson, ctre]
deps = [fmt, spdlog, ftxui, ranges, rapidjson, ctre, tomlplusplus]
if not is_dev_environment
deps += [cpr]
endif

View File

@ -0,0 +1,6 @@
[wrap-git]
url = https://github.com/marzer/tomlplusplus.git
revision = ad55bae8a11a6eee39e2292b01e95b529b105767
[provide]
tomlplusplus = tomlplusplus_dep