make/mac: Delay space escaping until write time.
make/mac: Delay space escaping until write time.

self.output and self.output_binary used to contain escaped spaces. Instead,
let WriteMakeRule() escape spaces, WriteDoCmd() now does so by transitivity.
Manually escape spaces in every WriteLn() call.

This gets rid of the awkward escape->unescape in WriteXcodeEnv() and allows
sharing that code with the ninja generator.

BUG=chromium:97273
TEST=gyp tests, building chrome
Review URL: http://codereview.chromium.org/9155016

git-svn-id: e7e1075985beda50ea81ac4472467b4f6e91fc78@1138 78cadc50-ecff-11dd-a971-7dbc132099af

cysp/gyp,Omegaphora/external_chromium_org_tools_gyp,okwasi/gyp,amoikevin/gyp,dougbeal/gyp,pyokagan/gyp,sdklite/gyp,mgamer/gyp,AOSPU/external_chromium_org_tools_gyp,mistydemeo/gyp,Jack-Q/GYP-copy,channing/gyp,amoikevin/gyp,Phuehvk/gyp,clar/gyp,turbulenz/gyp,chromium/gyp,cchamberlain/gyp,ryfx/gyp,ttyangf/pdfium_gyp,bulldy80/gyp_unofficial,LazyCodingCat/gyp,IllusionRom-deprecated/android_platform_external_chromium_org_tools_gyp,trafi/gyp,bdarnell/gyp,pyokagan/gyp,AOSPU/external_chromium_org_tools_gyp,yangrongwei/gyp,okumura/gyp,lianliuwei/gyp,springmeyer/gyp,alexcrichton/gyp,svn2github/kgyp,adblockplus/gyp,Jack-Q/GYP-copy,erikge/watch_gyp,amoikevin/gyp,ttyangf/pdfium_gyp,springmeyer/gyp,Phuehvk/gyp,mumble-voip/libmumble-gyp,yangrongwei/gyp,lukeweber/gyp-override,kevinchen3315/gyp-git,lukeweber/gyp-override,sanyaade-teachings/gyp,mgamer/gyp,Jack-Q/GYP-copy,bpsinc-native/src_tools_gyp,bulldy80/gyp_unofficial,cchamberlain/gyp,mkrautz/gyp-libmumble,msc-/gyp,channing/gyp,yjhjstz/gyp,brson/gyp,bpsinc-native/src_tools_gyp,pandaxcl/gyp,adblockplus/gyp,mkrautz/gyp-libmumble,xin3liang/platform_external_chromium_org_tools_gyp,okwasi/gyp,bnq4ever/gypgoogle,adblockplus/gyp,pandaxcl/gyp,yjhjstz/gyp,erikge/watch_gyp,openpeer/webrtc-gyp,bpsinc-native/src_tools_gyp,svn2github/gyp,dougbeal/gyp,saghul/gyn,bdarnell/gyp,pyokagan/gyp,Jack-Q/GYP-copy,mgamer/gyp,dougbeal/gyp,pandaxcl/gyp,Danath/gyp,Chilledheart/gyp,adblockplus/gyp,omasanori/gyp,MIPS/external-chromium_org-tools-gyp,Omegaphora/external_chromium_org_tools_gyp,springmeyer/gyp,azunite/gyp,trafi/gyp,channing/gyp,sdklite/gyp,trafi/gyp,trafi/gyp,saghul/gyn,sanyaade-teachings/gyp,adblockplus/gyp,ttyangf/gyp,pandaxcl/gyp,kevinchen3315/gyp-git,Phuehvk/gyp,brson/gyp,Danath/gyp,springmeyer/gyp,carlTLR/gyp,luvit/gyp,mapbox/gyp,kevinchen3315/gyp-git,sloanyang/gyp,ryfx/gyp,sport-monkey/GYP,okwasi/gyp,trafi/gyp,enkripsi/gyp,LazyCodingCat/gyp,bpsinc-native/src_tools_gyp,dougbeal/gyp,bnoordhuis/gyp,sanyaade-teachings/gyp,msc-/gyp,yjhjstz/gyp,enkripsi/gyp,tarc/gyp,bnoordhuis/gyp,lukeweber/gyp-override,saghul/gyn,pyokagan/gyp,yinquan529/platform-external-chromium_org-tools-gyp,msc-/gyp,alexcrichton/gyp,mkrautz/gyp-libmumble,openpeer/webrtc-gyp,android-ia/platform_external_chromium_org_tools_gyp,okwasi/gyp,turbulenz/gyp,Danath/gyp,cchamberlain/gyp,duanhjlt/gyp,sport-monkey/GYP,AWhetter/gyp,azunite/gyp,svn2github/kgyp,cchamberlain/gyp,sloanyang/gyp,omasanori/gyp,svn2github/gyp,Chilledheart/gyp,sdklite/gyp,AWhetter/gyp,bulldy80/gyp_unofficial,saghul/gyn,bulldy80/gyp_unofficial,sdklite/gyp,ttyangf/pdfium_gyp,okumura/gyp,pyokagan/gyp,mapbox/gyp,svn2github/gyp,msc-/gyp,amoikevin/gyp,openpeer/webrtc-gyp,bnoordhuis/gyp,IllusionRom-deprecated/android_platform_external_chromium_org_tools_gyp,MIPS/external-chromium_org-tools-gyp,svn2github/gyp,geekboxzone/lollipop_external_chromium_org_tools_gyp,clar/gyp,okumura/gyp,chromium/gyp,mkrautz/gyp-libmumble,yjhjstz/gyp,android-ia/platform_external_chromium_org_tools_gyp,sanyaade-teachings/gyp,ryfx/gyp,AWhetter/gyp,duanhjlt/gyp,Phuehvk/gyp,ryfx/gyp,erikge/watch_gyp,ryfx/gyp,tarc/gyp,AWhetter/gyp,azunite/gyp,carlTLR/gyp,mapbox/gyp,duanhjlt/gyp,bnoordhuis/gyp,kevinchen3315/gyp-git,yjhjstz/gyp,bdarnell/gyp,turbulenz/gyp,Danath/gyp,carlTLR/gyp,yinquan529/platform-external-chromium_org-tools-gyp,azunite/gyp_20150930,turbulenz/gyp,duanhjlt/gyp,lianliuwei/gyp,geekboxzone/lollipop_external_chromium_org_tools_gyp,yangrongwei/gyp,alexcrichton/gyp,sloanyang/gyp,okumura/gyp,LazyCodingCat/gyp,MIPS/external-chromium_org-tools-gyp,xin3liang/platform_external_chromium_org_tools_gyp,Chilledheart/gyp,dougbeal/gyp,ttyangf/gyp,channing/gyp,pandaxcl/gyp,sport-monkey/GYP,yangrongwei/gyp,mistydemeo/gyp,IllusionRom-deprecated/android_platform_external_chromium_org_tools_gyp,mumble-voip/libmumble-gyp,omasanori/gyp,xin3liang/platform_external_chromium_org_tools_gyp,mumble-voip/libmumble-gyp,brson/gyp,azunite/gyp_20150930,openpeer/webrtc-gyp,mistydemeo/gyp,Danath/gyp,bnq4ever/gypgoogle,tarc/gyp,ttyangf/gyp,carlTLR/gyp,carlTLR/gyp,sport-monkey/GYP,luvit/gyp,bnq4ever/gypgoogle,openpeer/webrtc-gyp,luvit/gyp,mumble-voip/libmumble-gyp,sdklite/gyp,ttyangf/pdfium_gyp,cysp/gyp,svn2github/gyp,clar/gyp,alexcrichton/gyp,cchamberlain/gyp,mgamer/gyp,amoikevin/gyp,android-ia/platform_external_chromium_org_tools_gyp,geekboxzone/lollipop_external_chromium_org_tools_gyp,yinquan529/platform-external-chromium_org-tools-gyp,enkripsi/gyp,springmeyer/gyp,xin3liang/platform_external_chromium_org_tools_gyp,Chilledheart/gyp,ttyangf/gyp,svn2github/kgyp,enkripsi/gyp,erikge/watch_gyp,Jack-Q/GYP-copy,Omegaphora/external_chromium_org_tools_gyp,cysp/gyp,azunite/gyp_20150930,LazyCodingCat/gyp,svn2github/kgyp,saghul/gyn,Omegaphora/external_chromium_org_tools_gyp,AOSPU/external_chromium_org_tools_gyp,sloanyang/gyp,chromium/gyp,ttyangf/gyp,Chilledheart/gyp,bnq4ever/gypgoogle,erikge/watch_gyp,bnoordhuis/gyp,lianliuwei/gyp,azunite/gyp_20150930,chromium/gyp,tarc/gyp,bnq4ever/gypgoogle,mapbox/gyp,enkripsi/gyp,tarc/gyp,mapbox/gyp,IllusionRom-deprecated/android_platform_external_chromium_org_tools_gyp,clar/gyp,yinquan529/platform-external-chromium_org-tools-gyp,turbulenz/gyp,svn2github/kgyp,mistydemeo/gyp,cysp/gyp,omasanori/gyp,chromium/gyp,clar/gyp,android-ia/platform_external_chromium_org_tools_gyp,bdarnell/gyp,lukeweber/gyp-override,AWhetter/gyp,msc-/gyp,azunite/gyp,Phuehvk/gyp,sport-monkey/GYP,mgamer/gyp,lianliuwei/gyp,duanhjlt/gyp,sanyaade-teachings/gyp,cysp/gyp,luvit/gyp,LazyCodingCat/gyp,azunite/gyp,brson/gyp,MIPS/external-chromium_org-tools-gyp,bulldy80/gyp_unofficial,AOSPU/external_chromium_org_tools_gyp,azunite/gyp_20150930,ttyangf/pdfium_gyp,geekboxzone/lollipop_external_chromium_org_tools_gyp