mirror of
https://github.com/slint-ui/slint.git
synced 2025-11-25 22:01:41 +00:00
Fix C++ Ninja build on Windows
For Ninja builds we instruct the compiler to generate a dependency file. This would include paths like builtin:/native/../common/slint-logo-light.svg, which my version of Ninja on Windows doesn't like at all and just flat out aborts on. It doesn't make sense for us to emit those as dependencies, so this patch excludes builtin paths.
This commit is contained in:
parent
0b66628fc4
commit
f0d7009133
1 changed files with 5 additions and 1 deletions
|
|
@ -69,7 +69,11 @@ fn main() -> std::io::Result<()> {
|
|||
}
|
||||
}
|
||||
for resource in doc.root_component.embedded_file_resources.borrow().keys() {
|
||||
write!(f, " {}", resource)?;
|
||||
if !fileaccess::load_file(&std::path::Path::new(resource))
|
||||
.map_or(false, |f| f.is_builtin())
|
||||
{
|
||||
write!(f, " {}", resource)?;
|
||||
}
|
||||
}
|
||||
|
||||
writeln!(f)?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue