meson: make ‘network’ plugin compile time optional

This commit is contained in:
Daniel Eklöf 2022-12-14 09:43:14 +01:00
parent 8d5e8b5f20
commit b901ac50ee
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
4 changed files with 13 additions and 1 deletions

View file

@ -66,7 +66,9 @@ EXTERN_MODULE(i3);
#if defined(PLUGIN_ENABLED_LABEL)
EXTERN_MODULE(label);
#endif
#if defined(PLUGIN_ENABLED_NETWORK)
EXTERN_MODULE(network);
#endif
#if defined(PLUGIN_ENABLED_PULSE)
EXTERN_MODULE(pulse);
#endif
@ -178,7 +180,9 @@ init(void)
#if defined(PLUGIN_ENABLED_LABEL)
REGISTER_CORE_MODULE(label, label);
#endif
#if defined(PLUGIN_ENABLED_NETWORK)
REGISTER_CORE_MODULE(network, network);
#endif
#if defined(PLUGIN_ENABLED_PULSE)
REGISTER_CORE_MODULE(pulse, pulse);
#endif