Skip to content

Commit

Permalink
misc: added libconfig as submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
Monsterovich committed May 24, 2024
1 parent 9a83982 commit 91645d5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "subprojects/libconfig"]
path = subprojects/libconfig
url = https://github.com/hyperrealm/libconfig
8 changes: 7 additions & 1 deletion src/meson.build
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
cmake = import('cmake')
sub_libconfig_opts = cmake.subproject_options()
sub_libconfig_opts.add_cmake_defines({'BUILD_SHARED_LIBS': false})
sub_libconfig = cmake.subproject('libconfig', options: sub_libconfig_opts)

libev = dependency('libev', required: false)
if not libev.found()
libev = cc.find_library('ev')
Expand Down Expand Up @@ -34,7 +39,8 @@ endforeach
foreach i : required_xcb_packages
base_deps += [dependency(i, version: '>=1.12.0', required: true)]
endforeach
base_deps += [dependency('libconfig', version: '>=1.7', required: true)]

base_deps += sub_libconfig.dependency('config')

if not cc.has_header('uthash.h')
error('Dependency uthash not found')
Expand Down
1 change: 1 addition & 0 deletions subprojects/libconfig
Submodule libconfig added at f9404f

0 comments on commit 91645d5

Please sign in to comment.