'programming'에 해당되는 글 1건

  1. 2012.03.02 Google V8 JavaScript Build on Windows with Visual Studio 2010
개발2012. 3. 2. 12:11

Pre-requisites for all platforms are:

    Subversion 1.4 or higher - see http://sourceforge.net/projects/win32svn/
    Python 2.4 or higher - see http://www.python.org
    SCons 1.0.0 or higher - see http://www.scons.org

Phase 1.  Download V8 source  by SVN

>svn svn checkout http://v8.googlecode.com/svn/trunk/ v8-read-only

>cd v8-read-only

Phase 2. Prepare environment values for MSVC++ 2010

>"C:\Program Files\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"

Phase 3. build V8  for shared library.

#for release mode library
>scons mode=release library=shared msvcrt=shared env="PATH:%PATH%,LIB:%LIB%,INCLUDE:%INCLUDE%" d8

#for debug mode library
>scons mode=debug library=shared msvcrt=shared env="PATH:%PATH%,LIB:%LIB%,INCLUDE:%INCLUDE%" d8

( When I was choose static mode. V8.lib was too large size more than 200MB and too slow to use in my application build and there were several problems. but shared mode was good! so I suggest shared(dll) mode )

Good luck!

I referred following links.

Posted by 퍼니로거 즐건록

댓글을 달아 주세요