Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot generate solution file of v8 with gyp for visual studio 2013

Tags:

v8

gyp

This is really painful. I followed the instruction from https://github.com/v8/v8/wiki/Building%20with%20Gyp.

fetch v8
cd v8

And when fetching is finished,

set DEPOT_TOOLSPWIN_TOOLCHAIN=0

Instruction said to use command "python build\gyp_v8" but obviously, my v8 clone does not have "build\gyv_v8" file. I googled about this, And found gyp_v8 is in that "gypfiles" folder, not in "build" folder. So command I used was

python gypfiles\gyp_v8

It seemed like working at first. cmd put out the response "Updating projects from gyp files...". No warning or error. But nothing happens! I think it should generate solution file for my VS. But even after process is finished, no solution file was found.

Am I missing something? Im almost dying for this. T-T Please, help me.

like image 324
Jay Kim Avatar asked Jun 24 '16 14:06

Jay Kim


2 Answers

Try setting this environment variable before running GYP:

set GYP_GENERATORS=msvs

Then, after running GYP, do a recursive search for .sln files in your V8 directory :)

like image 55
BitCortex Avatar answered Sep 18 '22 15:09

BitCortex


It seems the google is using a new build system instead of gyp. It is called "gn" and i could generate the Visual Studio solution by executing following code in the v8 directory:

gn gen --ide=vs out/Default

The all.sln is then located in .\v8\out\Default\

Source: http://dev.chromium.org/developers/how-tos/get-the-code

like image 38
Bojan Hrnkas Avatar answered Sep 21 '22 15:09

Bojan Hrnkas