mr_ped Messages: 826 Registered: November 2005 Location: Czech Republic - Praha
Experienced Contributor
It sounds useful, but I'm not sure how to implement it (in most robust way to avoid any pitfalls in the future). (but also has to be reasonable simple to figure out, as most of the time I will probably forget about it, and do the #ifdef thing manually).
Does the build system has some unique flag for the top package?
Can you imagine project with top package not containing the main, but reusing one from the dependencies? Maybe something like project for plugin for particular app, having the full app as dependency? So in such case the main is needed.
I'm not sure, if this has simple-enough and obvious-enough solution to make it worth your time.
If you have particular implementation on mind already...