fetch --nohooks chromium
cd /path/to/chromium/src
# git checkout -b 51.0.2704.103 refs/tags/51.0.2704.103# gclient sync --nohooks --with_branch_heads --jobs 16# git clone https://bitbucket.org/chromiumembedded/cef.git# third_party/WebKit/LayoutTests/mhtml/transfer_encoding_8bit.mht#Please, commit your changes or stash them before you can switch branches.#Aborting#E:\srccode\chromium\src>git reset --hard#E:\srccode\chromium\src>git pullcd /path/to/chromium/src
gclient sync --nohooks --with_branch_headsgit fetchgit fetch --tagsgit checkout refs/tags/47.0.2526.80 -----current select
orgit checkout -b 47.0.2526.80 refs/tags/47.0.2526.80gclient sync --jobs 16
or gclient sync --nohooks --with_branch_heads --jobs 16 -----current selectgit clone https://bitbucket.org/chromiumembedded/cef.git
cd cef
git checkout -t origin/2526modify the cef.gypcd /path/to/chromium/src
set DEPOT_TOOLS_WIN_TOOLCHAIN=0set GYP_GENERATORS=ninjaset GYP_MSVS_VERSION=2013gclient runhookscd cef
execute the create.batcd /path/to/chromium/src
ninja -C out/Release cefclientninja -C out/Debug cefclientcd /path/to/chromium/src/cef/tools
make_distrib.bat --ninja-buildFAILED: obj/ui/gl/gl.gl_bindings_skia_in_process.obj
ninja -t msvc -e environment.x86 -- "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_x86\cl.exe" /nologo /showIncludes /FC @obj\ui\gl\gl.gl_bindings_skia_in_process.obj.rsp /c ..\..\ui\gl\gl_bindings_skia_in_process.cc /Foobj\ui\gl\gl.gl_bindings_skia_in_process.obj /Fdobj\ui\gl\gl.cc.pdbe:\code\chromium\src\ui\gl\gl_bindings_skia_in_process.cc(891) : error C2679: binary '=' : no operator found which takes a right-hand operand of type 'overloaded-function' (or there is no acceptable conversion) e:\code\chromium\src\third_party\skia\include\gpu\gl\grglinterface.h(116): could be 'GrGLInterface::GLPtr<GrGLFlushMappedBufferRangeProc> &GrGLInterface::GLPtr<GrGLFlushMappedBufferRangeProc>::operator =(const GrGLInterface::GLPtr<GrGLFlushMappedBufferRangeProc> &)' e:\code\chromium\src\third_party\skia\include\gpu\gl\grglinterface.h(112): or 'GrGLInterface::GLPtr<GrGLFlushMappedBufferRangeProc> GrGLInterface::GLPtr<GrGLFlushMappedBufferRangeProc>::operator =(FNPTR_TYPE)' with [ FNPTR_TYPE=GrGLFlushMappedBufferRangeProc ] while trying to match the argument list '(GrGLInterface::GLPtr<GrGLFlushMappedBufferRangeProc>, overloaded-function)'chromium\src\ui\gl\gl_bindings_skia_in_process.cc文件,把提示有错误的函数参数类型前面都加上Gr,
如原来为 GLenum的,改成GrGLenum,GLintptr 改为GrGLintptr等等,如为void*的,改成GrGLvoid.FAILED: obj/ui/gl/gl.egl_util.obj
ninja -t msvc -e environment.x86 -- "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_x86\cl.exe" /nologo /showIncludes /FC @obj\ui\gl\gl.egl_util.obj.rsp /c ..\..\ui\gl\egl_util.cc /Foobj\ui\gl\gl.egl_util.obj /Fdobj\ui\gl\gl.cc.pdbe:\code\chromium\src\third_party\swiftshader\include\egl\eglext.h(119) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-inte:\code\chromium\src\third_party\swiftshader\include\egl\eglext.h(119) : error C2143: syntax error : missing ',' before '*'e:\code\chromium\src\third_party\swiftshader\include\egl\eglext.h(120) : error C2061: syntax error : identifier 'EGLAttrib'e:\code\chromium\src\third_party\swiftshader\include\egl\eglext.h(515) : error C2061: syntax error : identifier 'EGLAttrib'chromium\src\third_party\swiftshader\include\egl\eglext.h,
在62行typedef intptr_t EGLAttribKHR; 后加追加typedef intptr_t EGLAttrib;cd /path/to/chromium/src/cef/tools
make_distrib.bat --ninja-build