Group design source files by library in script file to improve compile t...

...ime

Please merge for 2014.4 and 2015.1. Thanks.