diff --git a/.gitignore b/.gitignore index b5da578..1eef64a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /build +/subprojects/libinih *.swp diff --git a/src/meson.build b/src/meson.build index 3feac16..6f1e737 100644 --- a/src/meson.build +++ b/src/meson.build @@ -15,7 +15,9 @@ tio_sources = [ 'signals.c' ] -tio_dep = dependency('inih', required: true) +tio_dep = dependency('inih', required: true, + fallback : ['libinih', 'inih_dep'], + default_options: ['default_library=static', 'distro_install=false']) tio_c_args = ['-Wno-unused-result'] diff --git a/subprojects/libinih.wrap b/subprojects/libinih.wrap new file mode 100644 index 0000000..c9d1760 --- /dev/null +++ b/subprojects/libinih.wrap @@ -0,0 +1,4 @@ +[wrap-git] +directory=libinih +url=https://github.com/benhoyt/inih.git +revision=r55