Renderer feature refactor

This commit is contained in:
Olivier Goffart 2023-07-27 19:11:24 +02:00 committed by GitHub
parent f2af8317a2
commit 3a807e46c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
36 changed files with 250 additions and 202 deletions

View file

@ -725,6 +725,7 @@ pub struct EnabledFeatures {
pub experimental: bool,
pub backend_qt: bool,
pub std: bool,
pub renderer_software: bool,
}
impl EnabledFeatures {
@ -743,6 +744,9 @@ impl EnabledFeatures {
if self.std {
defines += "#define SLINT_FEATURE_STD\n";
}
if self.renderer_software {
defines += "#define SLINT_FEATURE_RENDERER_SOFTWARE\n";
}
defines
}
}