Author: sgjesse
Date: Tue Sep 9 03:44:33 2008
New Revision: 231
Modified:
wiki/BuildingOnWindows.wiki
Log:
Edited wiki page through web user interface.
Modified: wiki/BuildingOnWindows.wiki
==============================================================================
--- wiki/BuildingOnWindows.wiki (original)
+++ wiki/BuildingOnWindows.wiki Tue Sep 9 03:44:33 2008
@@ -4,19 +4,32 @@
After having installed all the prerequisites you need to add both Python
and SCons to you `PATH`. The following example assumes that Python version
2.5.2 and SCons version 1.0.0 have been installed in their default
locations.
-||`> set PATH=C:\Python25;C:\Python25\Scripts;%PATH%`||
+{{{
+> set PATH=C:\Python25;C:\Python25\Scripts;%PATH%`
+> scons
+}}}
+
+See below for additional information on building if not using Visual
Studio 2005.
+
+There are Visual Studio project files located in `tools\visual studio` for
building V8 using the Visual Studio IDE. Please refer to the `README.txt`
file in that directory for details. When using the Visual Studio IDE for
building the project please update the `PATH` in _My
Computer->Properties->Advanced->Environment Variables_ as the Visual Studio
project files uses Python for some of the build steps.
=== ===
-=== Using Visual Studio 2005 and Visual Studio 2008 ===
-If building with either Visual Studio 2005 or Visual Studio 2008, SCons
1.0.0 should be able to set up the build environment automatically and no
additional options should be required to run the commands mentioned in the
documentation.
+=== Using Visual Studio 2005 ===
+SCons 1.0.0 should be able to detect Visual Studio 2005 and set up the
build environment automatically so no additional options should be required
to run the commands mentioned in the documentation.
+
+=== 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"`||
+
+=== ===
=== Using Visual C++ Express 2008 ===
-However if using Visual C++ Express 2008, you will need to supply an
additional `env` options for SCons to find the Windows SDK. The `env`
option is used to override the default include and library paths discovered
by SCons used when invoking the Microsoft C++ compiler and linker. 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` 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.
-||`>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"
sample=shell`||
+||`>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"`||
=== ===
=== Running tests on Windows ===
-When running the tests using `tools\test.py` on Windows SCons is used to
build the tests written in C++. Therefore if using Visual C++ Express 2008
the additional ´env´ option have to be passed. The script `tools\test.py`
has an option `-S` to specify options which are passed to SCons.
+When running the tests using `tools\test.py` on Windows SCons is used to
build the tests written in C++. Therefore if using Visual Studio 2008 or
Visual C++ Express 2008 the additional ´env´ option have to be passed. The
script `tools\test.py` has an option `-S` to specify options which are
passed to SCons. For Visual C++ Express 2008 it will look like this..
||`>tools\test.py -S 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"`||
--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---