meson: make ‘sway-xkb’ plugin compile time optional

This commit is contained in:
Daniel Eklöf 2022-12-14 09:53:24 +01:00
parent 0cf0d64970
commit b6450446a8
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
4 changed files with 22 additions and 10 deletions

View file

@ -81,8 +81,10 @@ EXTERN_MODULE(removables);
#if defined(PLUGIN_ENABLED_SCRIPT)
EXTERN_MODULE(script);
#endif
EXTERN_MODULE(river);
#if defined(PLUGIN_ENABLED_SWAY_XKB)
EXTERN_MODULE(sway_xkb);
#endif
EXTERN_MODULE(river);
EXTERN_MODULE(xkb);
EXTERN_MODULE(xwindow);
@ -199,10 +201,12 @@ init(void)
#if defined(PLUGIN_ENABLED_SCRIPT)
REGISTER_CORE_MODULE(script, script);
#endif
#if defined(PLUGIN_ENABLED_SWAY_XKB)
REGISTER_CORE_MODULE(sway-xkb, sway_xkb);
#endif
#if defined(HAVE_PLUGIN_river)
REGISTER_CORE_MODULE(river, river);
#endif
REGISTER_CORE_MODULE(sway-xkb, sway_xkb);
#if defined(HAVE_PLUGIN_xkb)
REGISTER_CORE_MODULE(xkb, xkb);
#endif