v8/build
sgjesse@chromium.org 827be16b35 GYP: Make the ARM simulator build with GYP again
Updated the armu.gypi to set values for variables which does not have a default. These variables was recently added to v8.gyp.

Moved the what will be shared between building the v8 library and the cctests to a separate include file. For now this file is currently only used by cctest.gyp. the reason is that the cctests are not just using the API but also internal functions so the C++ defines and optons needs to be the same when compiling the cctests files as when compiling the v8 library files.

R=jkummerow@chromium.org
Review URL: http://codereview.chromium.org/7134039

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@8239 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2011-06-09 12:48:11 +00:00
..
all.gyp Initial attempt to add support for using gyp to build V8 itself 2010-12-14 08:16:39 +00:00
armu.gypi GYP: Make the ARM simulator build with GYP again 2011-06-09 12:48:11 +00:00
common.gypi Add support for building Xcode project files from GYP files 2011-06-09 09:07:17 +00:00
gyp_v8 Initial attempt to add support for using gyp to build V8 itself 2010-12-14 08:16:39 +00:00
README.txt Add support for building Xcode project files from GYP files 2011-06-09 09:07:17 +00:00
v8-features.gypi GYP: Make the ARM simulator build with GYP again 2011-06-09 12:48:11 +00:00

This directory contains the V8 GYP files used to generate actual project files
for different build systems.

This is currently work in progress but this is expected to replace the SCons
based build system.

To use this a checkout of GYP is needed inside this directory. From the root of
the V8 project do the following:

$ svn co http://gyp.googlecode.com/svn/trunk build/gyp

Note for the command lines below that Debug is the default configuration,
so specifying that on the command lines is not required.


To generate Makefiles and build 32-bit version on Linux:
--------------------------------------------------------

$ build/gyp_v8 -D target_arch=ia32
$ make BUILDTYPE=Debug
$ out/Debug/shell
$ make BUILDTYPE=Release
$ out/Release/shell

To generate Makefiles and build 64-bit version on Linux:
--------------------------------------------------------

$ build/gyp_v8 -D target_arch=x64
$ make BUILDTYPE=Debug
$ out/Debug/shell
$ make BUILDTYPE=Release
$ out/Release/shell

To generate Makefiles and build for the arm simulator on Linux:
---------------------------------------------------------------

$ build/gyp_v8 -I build/armu.gypi
$ make BUILDTYPE=Debug
$ out/Debug/shell
$ make BUILDTYPE=Release
$ out/Release/shell


To generate Xcode project files on Mac OS:
------------------------------------------

$ build/gyp_v8 -D target_arch=ia32
$ xcodebuild -project build/all.xcodeproj -configuration Debug
$ samples/build/Debug/shell
$ xcodebuild -project build/all.xcodeproj -configuration Release
$ samples/build/Release/shell


To generate Visual Studio solution and project files on Windows:
----------------------------------------------------------------

On Windows an additional third party component is required. This is cygwin in
the same version as is used by the Chromium project. This can be checked out
from the Chromium repository. From the root of the V8 project do the following:

> svn co http://src.chromium.org/svn/trunk/deps/third_party/cygwin@66844 third_party/cygwin

To run GYP Python is required and it is reccomended to use the same version as
is used by the Chromium project. This can also be checked out from the Chromium
repository. From the root of the V8 project do the following:

> svn co http://src.chromium.org/svn/trunk/tools/third_party/python_26@70627 third_party/python_26

Now generate Visual Studio solution and project files:

> third_party\python_26\python build/gyp_v8 -D target_arch=ia32

Now open build\All.sln in Visual Studio.