nabijaczleweli / rust-embed-resource

A Cargo build script library to handle compilation and inclusion of Windows resources, in the most resilient fashion imaginable
MIT License
173 stars 29 forks source link

Impossible to use two differents resources after 1.6.5 #45

Open poliorcetics opened 2 years ago

poliorcetics commented 2 years ago

I have two resource files

The tests are in several libraries depending on liba

So I have something like:

liba (RESOURCE)
| - test1
| - test2
| - test3
+- probbin (RESOURCE)

Previously I could simply compile and due to the define order, it worked (I have a CI test for it): prodbin had its resources and everything else inherited liba's resources

I tried some fixes on my side in terms of file name and such, but nothing worked so I cannot updated to the new version 1.7.2. Using compile_for didn't work either.

Trying to detect to only build liba's resources when testing doesn't work because liba has no idea what it is built for (cargo does not give such information, to avoid dependencies affecting their build output based on the end product in hidden ways)