I think: why not make custom directives contains ordinary c preprocessor directives and mark that using special comment prefix:
import c.mypicture /*@cpp@ #include "../mypicture.xpm" */;
...
Hi all!
I think that will be very sweet simple using C libraries from D source files, like C++ #include.
Stages of compiling D source that uses C libraries: