레이블이 Javascript인 게시물을 표시합니다. 모든 게시물 표시
레이블이 Javascript인 게시물을 표시합니다. 모든 게시물 표시

2015년 12월 4일 금요일

How to Build Chrome V8 Javascript Engine with GYP and MSVS 2013 on Windows 10

1. Download Chrome V8 Javascript Engine Source
> git clone https://chromium.googlesource.com/v8/v8.git

2. Download Chromium depot tools (or download directly)
> git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
> set DEPOT_TOOLS_WIN_TOOLCHAIN=0
> set PATH=%PATH%;C:\Git\depot_tools
> cd depot_tools
> gclient
> cd v8
> git config branch.autosetupmerge always
> git config branch.autosetuprebase always
> git pull

3. Download Google's GYP
> git clone https://chromium.googlesource.com/external/gyp.git build\gyp
> cd build\gyp
> gyp
> cd ..\..

4. Download Chromium Python 2.6
> git clone https://chromium.googlesource.com/chromium/deps/python_26.git third_party\python_26

5. Download Chromium Cygwin
> git clone https://chromium.googlesource.com/chromium/deps/cygwin.git third_party\cygwin
> set PATH=%PATH%;C:\Git\v8\third_party\cygwin\bin
> make dependencies

6. Download Chromium ICU
> git clone https://chromium.googlesource.com/chromium/deps/icu.git third_party\icu

7. Create VS Project
> copy tools\gyp\v8.gyp v8.gyp_env
> set GYP_MSVS_VERSION=2013
> third_party\python_26\python.exe build\gyp_v8

8. Build Solution
$ /cygdrive/c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio\ 12.0/Common7/IDE/devenv.com /build Release build/all.sln

참조 사이트
https://www.chromium.org/developers/how-tos/build-instructions-windows
https://code.google.com/p/v8/issues/detail?id=2901
https://github.com/v8/v8/wiki/Using%20Git
http://stuff.stevenreid.uk/2015/04/12/build-google-v8-on-windows-8-x64/
http://gneu.org/2014/02/integrating-v8/
http://egloos.zum.com/haejung/v/1123470
http://namocom.tistory.com/218
http://funnylog.kr/354