The Rust API of the compiler (via build.rs) allows controlling who resources such as images or SVGs are embedded in the generated code.
For C++ an API is missing.
This issue proposes adding support for a boolean command line option to the slint-compiler binary and a SLINT_EMBED_RESOURCES boolean CMake target property that slint_target_sources should use in a generator expression to the custom command to invoke the compiler.
The Rust API of the compiler (via build.rs) allows controlling who resources such as images or SVGs are embedded in the generated code.
For C++ an API is missing.
This issue proposes adding support for a boolean command line option to the slint-compiler binary and a
SLINT_EMBED_RESOURCES
boolean CMake target property that slint_target_sources should use in a generator expression to the custom command to invoke the compiler.Example: