make: Pass framework libraries using the '-framework' flag.
make: Pass framework libraries using the '-framework' flag.

Mac gyp files put framework dependencies into 'libraries', for example: 

    'link_settings': { 
      'libraries': [ 
        '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework', 
      ], 
    },

If a framework is passed in directly, ld will complain with 

    ld: in /System/Library/Frameworks/Cocoa.framework, can't map file, errno=22 

Instead, frameworks need to be passed as `-framework Cocoa`, and the 
framework search path needs to be set with `-F` (this is already supported, 
search the file for "mac_framework_dirs"). Hence, convert libraries ending in 
".framework" into "-framework" flags.
Review URL: http://codereview.chromium.org/7399017

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

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