Hi Daniel,
Thank you very much for helping out with this. I don't know if this will be helpful or not, but I wanted to let you know how ST Micro implements it in their STM32CubeMX software. I'm not saying they're doing it right. I'm only offering it as a comparison.
I created a sample project that only included ThreadX. The IAR project that it created did not use libraries. Every RTOS source file was included in the project. I compiled it, and after it was compiled I modified the top level user source file. I compiled the project, and the only file that needed recompiling was the one I modified. I was looking to see how much time the IAR tools took to inspect the status of all the RTOS source files. It did not take hardly any time at all.
I realize there are pros and cons to using libraries vs. source code files. But one thing I proved to myself is that recompiling speed doesn't appear to be an issue.
Regards,
Greg