.Sln or .vcporj files are generated using handles when compiling Chromium

So, I'm trying to create my first Chrome build just for fun, and I got all the files I want through gclient configuration and synchronization. However, there are no project files that VS can open, just a bunch of .gyp files that are useless to me.

The gclient runhooks -force command should generate sln files for me, but when I run it, I get nothing. Even a mistake.

What?

Thanks.

+4
source share
2 answers

Yes, this information is still missing from the Chromium documentation. How to create Visual Studio solution files:

export GYP_GENERATORS=msvs-ninja gclient runhooks --force 

You won't need --force if you first typed gclient runhooks . The generator should be good for your ninja build, and it should generate your .sln files.

+4
source

Yes, a really annoying problem ... I did all kinds of things to make it work, and that’s how I did her work in the end, believe it or not:

  • Reboot the computer.
  • In the cd terminal, the directory containing the .gclient file
  • checkout Important note below if you have never used GYP before
  • gclient runhooks --force
  • profit

Important: You must also set the environment variable named GYP_GENERATORS to a value that displays the types of assembly projects. For example, to create NINJA and Microsoft Visual Studio assembly files (your case), do this if in the linux terminal export GYP_GENERATORS=ninja,msvs or Windows cmd setx GYP_GENERATORS ninja,msvs /M before step 4 . Thus, you control what types of projects will be created on the pens.

+1
source

Source: https://habr.com/ru/post/1482684/


All Articles