ninja: Give WriteSources() and WriteLink() an explicit ninja_file parameter.

For fat binary support on mac, compile and link lines will need different
flags for every arch (i386, x86_64, etc). The only way ninja currently supports
variable scoping is through subninja files, so compile and link commands for
multi-arch compiles will need to go into subninja files. Prepare WriteSources()
and WriteLink() for this.

No functionality change in this CL.

BUG=chromium:90185
R=scottmg@chromium.org

Review URL: https://codereview.chromium.org/21930004

git-svn-id: http://gyp.googlecode.com/svn/trunk@1689 78cadc50-ecff-11dd-a971-7dbc132099af
ninja: Let WriteLink() return the linked binary.

This way, all branches in WriteTarget() write self.target.binary, which is a
bit more regular.

(Also, two minor formatting changes.)

No functionality change.

R=scottmg@chromium.org

Review URL: https://codereview.chromium.org/21664004

git-svn-id: http://gyp.googlecode.com/svn/trunk@1690 78cadc50-ecff-11dd-a971-7dbc132099af