In my projects I need to precompile resources.
The proposal states access to the package source would be read only. This means the plugins won’t work with the spm resources feature and will instead require manipulating the bundles in the build directory. Bundles aren’t the same across platforms and could change over time, so that would make the tools overly complex.
I currently use a command line tool to compile resources into the package source and then let spm do its thing. It would be nice if this feature allowed me to do it all in package.
An example would be turning Metal shaders into a Metal Library.
I need to do this with directX as well as convert 3D geometry, images, and audio to various formats.
The spm resources feature has an option for processing resources. Perhaps that could be rolled into this? A resourceTransform plugin or something like that. Just some thoughts. I’ll try to bring this up for the next revision.