ninja: expand intermediate dir like we do product dir
ninja: expand intermediate dir like we do product dir

By using the special variable $!INTERMEDIATE_DIR, the resulting
value can vary per gyp target.  This is a necessary prerequisite
for cross-compiling, where a given target needs a different
intermediate for host vs target builds.

Also invert the default value for qualified, since most callers
want qualified paths.

Review URL: http://codereview.chromium.org/7763004

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

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