1.首先安装GYP
2.设置环境变量
3.检查GYP是否生效
4.进入Cef目录执行gyp.bat --depth . -D component=shared_library -G msvs_version=2010 -I cef_paths.gypi -I cef_paths2.gypi cefclient.gyp
5.发生错误,编辑cefclient.gyp,删除sysroot部分,再次运行gyp.bat --depth . -D component=shared_library -G msvs_version=2010 -I cef_paths.gypi -I cef_paths2.gypi
cefclient.gyp
6.生成成功