Only build EmbedWidget / MPV on X11, since it only works there

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2022-01-31 12:40:46 +00:00
parent c3279f8f12
commit 0fd687bbab
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0
2 changed files with 13 additions and 2 deletions

View file

@ -701,11 +701,14 @@ static void initStatic__Cardinal()
p->addModel(modelAudioFile);
p->addModel(modelCarla);
p->addModel(modelIldaeil);
p->addModel(modelMPV);
#else
spl.removeModule("AudioFile");
spl.removeModule("Carla");
spl.removeModule("Ildaeil");
#endif
#if defined(HAVE_X11) && !defined(HEADLESS) && !defined(STATIC_BUILD)
p->addModel(modelMPV);
#else
spl.removeModule("MPV");
#endif
}