Revision: 3701
Author: [email protected]
Date: Tue Jan 26 01:12:32 2010
Log: Edited wiki page through web user interface.
http://code.google.com/p/v8/source/detail?r=3701

Modified:
 /wiki/BuildingOnWindows.wiki

=======================================
--- /wiki/BuildingOnWindows.wiki        Tue Apr 21 00:10:34 2009
+++ /wiki/BuildingOnWindows.wiki        Tue Jan 26 01:12:32 2010
@@ -38,13 +38,26 @@
 }}}

 === Using Visual Studio 2008 ===
-As SCons version 1.0.0 does not detect Visual Studio 2008, you will need to supply an additional `env` option to SCons. The `env` option is used to override the environment paths SCons is using. For Visual Studio 2008 it is required to override PATH, INCLUDE and LIB. The following example passes these paths for a Visual Studio 2008 installation assuming that the default installation directories have been used.
-
-||`> scons env="PATH:C:\Program Files\Microsoft Visual Studio 9.0\VC\bin;C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE;C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools,INCLUDE:C:\Program Files\Microsoft Visual Studio 9.0\VC\include;C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include,LIB:C:\Program Files\Microsoft Visual Studio 9.0\VC\lib;C:\Program Files\Microsoft SDKs\Windows\v6.0A\Lib"`||
-
+As SCons version 1.0.0 does not detect Visual Studio 2008, you will need to supply an additional `env` option to SCons. The `env` option is used to override the environment paths SCons is using. For Visual Studio 2008 it is required to override PATH, INCLUDE and LIB.
+
+The setup batch file supplied with Visual Studio 2008 will set the environment variables PATH, INCLUDE and LIB to the correct values. To use the Visual Studio 2008 environment setup either use the link _Visual Studio 2008 Command Prompt_ from the Visual Studio 2008 installation, or use a fresh Command Prompt and run the `vcvarsall.bat` from the `VC` directory of the Visual Studio 2008 installation. Assuming that the default installation directories have been used the following command will do that.
+
+{{{
+> "C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"
+}}}
+
+Now V8 can be built by passing the environment variables to SCons.
+
+{{{
+> scons env="PATH:%PATH%,INCLUDE:%INCLUDE%,LIB:%LIB%"
+}}}
+
+If for some reason setting the environment variables is not feasible the paths can be passed directly. The following example passes these paths for a Visual Studio 2008 installation assuming that the default installation directories have been used.
+
+||`> scons env="PATH:C:\Program Files\Microsoft Visual Studio 9.0\VC\bin;C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE;C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools,INCLUDE:C:\Program Files\Microsoft Visual Studio 9.0\VC\include;C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include,LIB:C:\Program Files\Microsoft Visual Studio 9.0\VC\lib;C:\Program Files\Microsoft SDKs\Windows\v6.0A\Lib"`||
 === ===
 === Using Visual C++ Express 2008 ===
-As for Visual Studio 2008 SCons alos does not detect Visual C++ Express 2008 and the `env` options to SCons is required. In contrast to Visual Studio 2008 the path for Visual C++ Express 2008 are determined correctly so only include and library paths have to be overridden. The following example passes the include and library path for a Visual C++ Express 2008 installation assuming that the default installation directories have been used. +As for Visual Studio 2008 SCons alos does not detect Visual C++ Express 2008 and the `env` 2options to SCons is required. In contrast to Visual Studio 2008 the path for Visual C++ Express 2008 are determined correctly so only include and library paths have to be overridden. The following example passes the include and library path for a Visual C++ Express 2008 installation assuming that the default installation directories have been used.

||`>scons env="INCLUDE:C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include;C:\Program Files\Microsoft Visual Studio 9.0\VC\include,LIB:C:\Program Files\Microsoft SDKs\Windows\v6.0A\Lib;C:\Program Files\Microsoft Visual Studio 9.0\VC\lib"`||

@@ -58,6 +71,9 @@

 ||`>tools\test.py -S msvcltcg=off`||

+=== Paths on 64-bit Windows Vista ===
+On 64-bit Windows Vista replace the prefix `C:\Program Files` with `C:\Program Files (x86)` in all the examples above.
+
 === ===
 === Building the `hello_world` sample on Windows ===
To build the `hello_world.cpp` sample from the [http://code.google.com/apis/v8/get_started.html Getting Started] section of the [http://code.google.com/apis/v8/ documentation] on Windows you can use the Microsoft C++ compiler `cl` directly. First open either the _Visual Studio 2005 Command Prompt_ or the _Visual Studio 2008 Command Prompt_ depending on your version if Visual Studio. Change to the directory where V8 is checked out (and `v8.lib` is located). Place the file `hello_world.cpp` there and run:

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to