mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-02 14:51:15 +00:00
Rename environment variables
This commit is contained in:
parent
cc3994b58d
commit
1a0a495bc5
18 changed files with 34 additions and 34 deletions
|
@ -38,7 +38,7 @@ fn widget_library() -> &'static [(&'static str, &'static BuiltinDirectory<'stati
|
|||
|
||||
writeln!(file, "]\n}}")?;
|
||||
|
||||
println!("cargo:rustc-env=SIXTYFPS_WIDGETS_LIBRARY={}", output_file_path.display());
|
||||
println!("cargo:rustc-env=SLINT_WIDGETS_LIBRARY={}", output_file_path.display());
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
@ -33,7 +33,7 @@ pub fn load_file<'a>(path: &'a std::path::Path) -> Option<VirtualFile<'static>>
|
|||
}
|
||||
|
||||
mod builtin_library {
|
||||
include!(env!("SIXTYFPS_WIDGETS_LIBRARY"));
|
||||
include!(env!("SLINT_WIDGETS_LIBRARY"));
|
||||
|
||||
pub type BuiltinDirectory<'a> = [&'a BuiltinFile<'a>];
|
||||
|
||||
|
|
|
@ -89,12 +89,12 @@ impl CompilerConfiguration {
|
|||
}
|
||||
};
|
||||
|
||||
let inline_all_elements = match std::env::var("SIXTYFPS_INLINING") {
|
||||
Ok(var) => {
|
||||
var.parse::<bool>().unwrap_or_else(|_|{
|
||||
panic!("SIXTYFPS_INLINING has incorrect value. Must be either unset, 'true' or 'false'")
|
||||
})
|
||||
}
|
||||
let inline_all_elements = match std::env::var("SLINT_INLINING") {
|
||||
Ok(var) => var.parse::<bool>().unwrap_or_else(|_| {
|
||||
panic!(
|
||||
"SLINT_INLINING has incorrect value. Must be either unset, 'true' or 'false'"
|
||||
)
|
||||
}),
|
||||
// Currently, the interpreter needs the inlining to be on.
|
||||
Err(_) => output_format == crate::generator::OutputFormat::Interpreter,
|
||||
};
|
||||
|
|
|
@ -67,7 +67,7 @@ fn embed_image(
|
|||
if let Some(file) = crate::fileaccess::load_file(std::path::Path::new(path)) {
|
||||
let mut kind = EmbeddedResourcesKind::RawData;
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
if std::env::var("SIXTYFPS_PROCESS_IMAGES").is_ok() {
|
||||
if std::env::var("SLINT_PROCESS_IMAGES").is_ok() {
|
||||
match load_image(file) {
|
||||
Ok(img) => kind = EmbeddedResourcesKind::TextureData(generate_texture(img)),
|
||||
Err(err) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue