I can successfully build the 6261 branch with the command
python3 automate-git.py --download-dir=. --branch=6261 --x64-build --with-pgo-profiles
I can run cefclient.exe with no problems from the command line in out\Debug_GN_x64
I can load cef.sln into Visual Studio 2022 but when I try to run it with the debugger I get
- Code: Select all
Build started...
1>------ Build started: Project: apps, Configuration: GN x64 ------
1>'ninja.exe' is not recognized as an internal or external command,
1>operable program or batch file.
1>D:\cef\cefbuild6261\chromium\src\out\Debug_GN_x64\obj\apps\apps.vcxproj(105,5): error MSB3073: The command "call ninja.exe -C D:\cef\cefbuild6261\chromium\src\out\Debug_GN_x64\ obj/apps/apps.lib" exited with code 1.
1>Done building project "apps.vcxproj" -- FAILED.
When I check PATH in a command window I see
- Code: Select all
D:\cef\cefbuild6261>path
PATH=D:\cef\cefbuild6261\depot_tools;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\CMake\bin;C:\Program Files\dotnet\;C:\Program Files\Git\cmd;C;C:\Users\Richard\AppData\Local\Microsoft\WindowsApps;C:\Users\Richard\.dotnet\tools;c:\Utils;
ninja.exe does not exist in D:\cef\cefbuild6261\depot_tools, only ninja, ninja.bat and ninja.py. autoninja.exe does exist.
I can't find any way of making Visual Studio use autoninja.exe instead of ninja.exe
In my environment variables I have
GN_DEFINES=is_official_build=true proprietary_codecs=true ffmpeg_branding=Chrome
GN_ARGUMENTS=--ide=vs2022 --sln=cef --filters=//cef/*
I have Win 10.0.22621.1778 SDK installed
Am I doing something wrong or is there an issue here?