> is everything just selected in the sources file with "when thisOS" etc.
Yep, it's done like that. A "generic interface" wouldn't help, the interface would have to be enormous and spread out over multiple files and directories just like today's code.
