diff --git a/meson.build b/meson.build index 50d6dc669..37ef7109f 100644 --- a/meson.build +++ b/meson.build @@ -31,6 +31,11 @@ if get_option('wayland-logout') == true wayland_logout = subproject('wayland-logout') endif +if get_option('weather') == true + subproject('owf') + add_project_arguments('-DHAVE_WEATHER=1', language: 'cpp') +endif + if libpulse.found() libgvc = libgvc.get_variable('libgvc_dep') add_project_arguments('-DHAVE_PULSE=1', language: 'cpp') diff --git a/meson_options.txt b/meson_options.txt index 8ecd76c03..fae05471b 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -16,3 +16,9 @@ option( value: true, description: 'Install wayland-logout', ) +option( + 'weather', + type: 'boolean', + value: false, + description: 'Install weather widgets and open-weather-fetch systemd service', +) diff --git a/subprojects/owf.wrap b/subprojects/owf.wrap new file mode 100644 index 000000000..d1664d60e --- /dev/null +++ b/subprojects/owf.wrap @@ -0,0 +1,4 @@ +[wrap-git] +url = https://github.com/Secret-chest/open-weather-fetch +revision = 18d282873cfcad7670f3d44edd870f560ca5735c +depth = 1