mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-15 22:28:10 +08:00
* Make embedding resources optional * Move remaining cef rc to internal module * Move embedded resources to separate crate * Review fixup * Fix * Fix read * Add read error
11 lines
696 B
Rust
11 lines
696 B
Rust
//! This crate provides `EMBEDDED_RESOURCES` that can be included in the desktop application binary.
|
|
//! It is intended to be used by the `embedded_resources` feature of the `graphite-desktop` crate.
|
|
//! The build script checks if the specified resources directory exists and sets the `embedded_resources` cfg flag accordingly.
|
|
//! If the resources directory does not exist, resources will not be embedded and a warning will be reported during compilation.
|
|
|
|
#[cfg(embedded_resources)]
|
|
pub static EMBEDDED_RESOURCES: Option<include_dir::Dir> = Some(include_dir::include_dir!("$EMBEDDED_RESOURCES"));
|
|
|
|
#[cfg(not(embedded_resources))]
|
|
pub static EMBEDDED_RESOURCES: Option<include_dir::Dir> = None;
|