Any .metal shader in your swift package automatically goes into default.metallib (considered as a processed resources when built with xcodebuild / Xcode)
I do believe however that it would be able to customise this since at the moment to have .ci.metal shader files that link against core-image and regular metal shader files, you need a custom Build Rule in Xcode, this is a very specific case that's currently limiting