diff --git a/meson.build b/meson.build index 3f993fe2..1e60f041 100644 --- a/meson.build +++ b/meson.build @@ -4,6 +4,10 @@ project('ncmpc', 'cpp', default_options: [ 'cpp_std=c++2a', 'warning_level=3', + + # If we build libmpdclient, it should be linked statically into + # our executable. + 'libmpdclient:default_library=static', ], license: 'GPLv2+', ) diff --git a/subprojects/.gitignore b/subprojects/.gitignore new file mode 100644 index 00000000..f6c4ee43 --- /dev/null +++ b/subprojects/.gitignore @@ -0,0 +1 @@ +/libmpdclient/ diff --git a/subprojects/libmpdclient.wrap b/subprojects/libmpdclient.wrap new file mode 100644 index 00000000..002c0032 --- /dev/null +++ b/subprojects/libmpdclient.wrap @@ -0,0 +1,6 @@ +[wrap-git] +url = https://github.com/MusicPlayerDaemon/libmpdclient +revision = v2.21 + +[provide] +libmpdclient = libmpdclient_dep