Rename embed-resources parameters fro the Slint compiler

This commit is contained in:
Tobias Hunger 2023-03-09 14:35:33 +01:00 committed by Tobias Hunger
parent bad588e1e4
commit c5ecade881
3 changed files with 17 additions and 18 deletions

View file

@ -68,18 +68,18 @@ CMake project, install it into a prefix directory of your choice and use `find_p
### Resource Embedding
You may change the default resource embedding the Slint compiler will use via
the `SLINT_EMBED_RESOURCES` target property, which accepts `as-paths`,
`as-contents` and `as-textures`. The latter optimizes for the Slint
software-renderer and falls back to `as-contents` if that isn't used.
the `SLINT_EMBED_RESOURCES` target property, which accepts `as-absolute-path`,
`embed-files` and `embed-for-software-renderer`. The latter optimizes for the
Slint software-renderer and falls back to `embed-files` if that isn't used.
Typically you will want to effect resource embedding for all targets in a
CMake project. This is done with the `DEFAULT_SLINT_EMBED_RESOURCES` option,
which initializes the `SLINT_EMBED_RESOURCES` target property.
Typically you will want to set `DEFAULT_SLINT_EMBED_RESOURCES` to `as-paths`
for debug builds as this reduces build times. When doing a release, you will
want to switch to `as-contents` to create self-contained binary that will work
on all systems.
Typically you will want to set `DEFAULT_SLINT_EMBED_RESOURCES` to
`as-absolute-path` for debug builds as this reduces build times. When doing a
release, you will want to switch to `embed-files` to create self-contained
binary that will work on all systems.
### Features