Fix ProcessVariablesAndConditionsInDict to not modify the passed in variables dictionary.
Fix ProcessVariablesAndConditionsInDict to not modify the passed in variables
dictionary.

Previously, for variables that have late binding, variable definitions in one
target can leak over and affect other targets.

Patch by Albert J. Wong (王重傑) <ajwong@chromium.org>
Review URL: http://codereview.chromium.org/343007

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

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