bug 905096 - Build script modularization
Merge pull request #11693 from yurenju/build-module

bug 905096 - Build script modularization r=@timdream