1. I have tried with VS2013, VS2015 and VS2017, but none of them resulted in a difference. It fails to find gn.exe in each of them, but setting a DEPOT_TOOLS_WIN_TOOLCHAIN to 0 would make it find gn. It unfortunately fails on patching after that, or later when trying to actually build libcef_dll_wrapper.
2. Here is the content of .2.update.bat:
- Code: Select all
@ECHO OFF
call .env.bat
call PYTHON automate\automate-git.py --depot-tools-dir="%~dp0\depot_tools" --download-dir="%~dp0\v%CEFBRANCH%" --checkout %CEFBRANCH% --force-update --no-distrib --no-build
However, this isn't what causes it to attempt to apply the patches twice. The real reason for this is that .4.build-distrib.bat builds once for x64 and once for x86:
- Code: Select all
@ECHO OFF
call PYTHON automate\automate-git.py --depot-tools-dir="%~dp0\depot_tools" --download-dir="%~dp0\v%CEFBRANCH%" --checkout %CEFBRANCH% --distrib-subdir ..\..\..\..\..\v%CEFBRANCH%_distrib_32 --build-target cef --force-build --force-distrib --no-debug-build
call PYTHON automate\automate-git.py --depot-tools-dir="%~dp0\depot_tools" --download-dir="%~dp0\v%CEFBRANCH%" --checkout %CEFBRANCH% --distrib-subdir ..\..\..\..\..\v%CEFBRANCH%_distrib_64 --build-target cef --x64-build --force-build --force-distrib --no-debug-build
As far as i know, the patches shouldn't be applied a second time, since there was no revert of the changes between each run.
Also none of this has to do with the MIDL Version being different, which is what is currently preventing me from building CEF. Even installing the exact Version that the Wiki asks for results in a MIDL version that is newer/more recent. Only if I force my path to not include the windows SDK version and instead directly use Windows Kits/10/bin/x64/midl I get a matching version.