include_aseprite! from OUT_DIR #544
-
Hi! It seems that the include_aseprite! macro only works with hard coded paths so far so I'm getting the following error: Here is the code that causes the error: Any idea? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Sadly I think this is eager macro expansion which has a postponed RFC as discussed here Michael-F-Bryan/include_dir#86 (someone wanting to do a very similar thing). In theory it could read Would need handling here: https://github.com/agbrs/agb/blob/master/agb-image-converter/src/lib.rs#L45 for backgrounds and here: https://github.com/agbrs/agb/blob/master/agb-image-converter/src/lib.rs#L313 for sprites :) |
Beta Was this translation helpful? Give feedback.
-
Sounds good, thanks for the pointers! |
Beta Was this translation helpful? Give feedback.
Sadly I think this is eager macro expansion which has a postponed RFC as discussed here Michael-F-Bryan/include_dir#86 (someone wanting to do a very similar thing).
In theory it could read
$OUT_DIR/portrait_0.aseprite
and expand the environment variables? I wouldn't be opposed to that if you want to create a PR for it :).Would need handling here: https://github.com/agbrs/agb/blob/master/agb-image-converter/src/lib.rs#L45 for backgrounds and here: https://github.com/agbrs/agb/blob/master/agb-image-converter/src/lib.rs#L313 for sprites :)