Rename environment variables

This commit is contained in:
Tobias Hunger 2022-02-02 13:35:07 +01:00
parent cc3994b58d
commit 1a0a495bc5
No known key found for this signature in database
GPG key ID: 60874021D2F23F91
18 changed files with 34 additions and 34 deletions

View file

@ -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(())
}

View file

@ -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>];

View file

@ -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,
};

View file

@ -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) => {