Might be a long shot but can I use KSP to generate sources that are not added to the current module compilation?
t
Ting-Yuan Huang
02/08/2024, 7:31 PM
you can generate them as resources. Or if you don't care about incremental compilation / processing, you may write them to anywhere without KSP's CodeGenerator API
👍 1
m
mbonnin
02/08/2024, 7:39 PM
Oh so just bypass
codeGenerator.createNewFile
? Makes sense 👍 Thanks!
t
Ting-Yuan Huang
02/08/2024, 8:30 PM
Yes. The drawback is that KSP won't know the association between the outputs and the inputs. You may either 1) disable incremental processing, or 2) have a shadow output (can be empty) that shares the same inputs with the file that is written without KSP's API.