Search code examples
buildwebrtcgpuchromiumninja

Only GPU build solution from Chromium


I just wanted to know is it possible to build specifically GPU from the chromium using ninja(gn).

For example: In the GN documentation I saw something like,

--filters= Semicolon-separated list of label patterns used to limit the set of generated projects (see "gn help label_pattern"). Only matching targets and their dependencies will be included in the solution. Only used for Visual Studio, Xcode and JSON.

Can anyone who used this help me out!

PS: Visual Studio(.sln) with only GPU project in the solution is what I'm looking for.


Solution

  • You can use --filters argument to gn to restrict generating VS project files for only the projects you would like to build. In your case, you can use the following command:

    gn gen --ide=vs --filters=//gpu --no-deps out\YourBuildFolder