How to build with targets with Google Chromium GN?

Looks like some dependencies are missing. You can pull the dependencies by running

gclient sync

which should download the required dependencies for Chrome driver to compile. Then run the following commands to start compiling Chrome driver:

gn gen out/YourBuildFolder
ninja -C out/YourBuildFolder chromedriver

The above gn gen... command will basically prepare the build folder for the ninja build system to compile by copying the dependencies and preparing necessary files. And ninja -C... command will actually start compiling the files

Hope that works. Thanks


I had same problem but figured it out.

When I run gn in depot_tool directory, I got same error message.

enter image description here

But I run gn in chromium/src directory, gn works!

enter image description here