Allow custom build and resource files to be excluded from builds

--HG--
extra : rebase_source : 109bd991b0757ce7a4a4a6f6b865251693e3e278