mozilla/pdf.js — pull request #1953 by brendandahl (2012-08-01 19:30:18+00:00)
Title: Add B2G build and new preprocessor.

Since we're adding another target that I believe will require more customization in the future and I think our strategy of just using SED was getting too messy, I've added a new preprocessor which tries to follow the ff preprocessor(https://developer.mozilla.org/en/Build/Text_Preprocessor). I also added another little build helper function to help with common steps we were taking in the main build targets(firefox,chrome,mozcentral,b2g,web). We could probably simplify things even further if we added an initial layout step to this, but the PR was already getting too big so I'll wait to do that.

Also, I added a new build target `generic` which builds the generic production version of pdf.js. This is basically the contents of our old `web` build target. I mainly did this because now the file `build/pdf.js` is not preprocessed since it needs to be preprocessed differently by each main build target.

For testing, I built all the targets and compared them to the current build output. Everything still needs verification though.