Classes | |
class | eagine::embedded_resource |
Class providing access to a const resource block embedded into the executable. More... | |
Functions | |
static auto | eagine::embed (identifier res_id, string_view src_path) noexcept -> embedded_resource |
Triggers the embedding of data from a file on the specified path. More... | |
static auto | as_chars (const embedded_resource &res) noexcept |
Converts the embedded resource block to a const span of characters. | |
|
inlinestaticnoexcept |
Triggers the embedding of data from a file on the specified path.
This function only works properly if the build system invokes the embed generator, that generates appropriate C++ code that defines byte blocks with the content of the specified resource files, compiles them and links them into the built executable. The embed generator is installed as one of the tools and in cmake-based build systems the eagine_embed_packed_target_resources and eagine_embed_target_resources cmake functions can be used invoke it.