Ben Murdoch | b0fe162 | 2011-05-05 13:52:32 +0100 | [diff] [blame] | 1 | This directory contains the V8 GYP files used to generate actual project files |
| 2 | for different build systems. |
| 3 | |
| 4 | This is currently work in progress but this is expected to replace the SCons |
| 5 | based build system. |
| 6 | |
| 7 | To use this a checkout of GYP is needed inside this directory. From the root of |
Ben Murdoch | 257744e | 2011-11-30 15:57:28 +0000 | [diff] [blame] | 8 | the V8 project do the following: |
Ben Murdoch | b0fe162 | 2011-05-05 13:52:32 +0100 | [diff] [blame] | 9 | |
| 10 | $ svn co http://gyp.googlecode.com/svn/trunk build/gyp |
| 11 | |
Ben Murdoch | 3fb3ca8 | 2011-12-02 17:19:32 +0000 | [diff] [blame] | 12 | Note for the command lines below that Debug is the default configuration, |
| 13 | so specifying that on the command lines is not required. |
Ben Murdoch | b0fe162 | 2011-05-05 13:52:32 +0100 | [diff] [blame] | 14 | |
Ben Murdoch | b0fe162 | 2011-05-05 13:52:32 +0100 | [diff] [blame] | 15 | |
Ben Murdoch | 3fb3ca8 | 2011-12-02 17:19:32 +0000 | [diff] [blame] | 16 | To generate Makefiles on Linux: |
| 17 | ------------------------------- |
Ben Murdoch | b0fe162 | 2011-05-05 13:52:32 +0100 | [diff] [blame] | 18 | |
Ben Murdoch | 3fb3ca8 | 2011-12-02 17:19:32 +0000 | [diff] [blame] | 19 | $ build/gyp_v8 |
Ben Murdoch | b0fe162 | 2011-05-05 13:52:32 +0100 | [diff] [blame] | 20 | |
Ben Murdoch | 3fb3ca8 | 2011-12-02 17:19:32 +0000 | [diff] [blame] | 21 | This will build makefiles for ia32, x64 and the ARM simulator with names |
| 22 | Makefile-ia32, Makefile-x64 and Makefile-armu respectively. |
Ben Murdoch | b0fe162 | 2011-05-05 13:52:32 +0100 | [diff] [blame] | 23 | |
Ben Murdoch | 3fb3ca8 | 2011-12-02 17:19:32 +0000 | [diff] [blame] | 24 | To build and run for ia32 in debug and release version do: |
| 25 | |
| 26 | $ make -f Makefile-ia32 |
| 27 | $ out/Debug/shell |
| 28 | $ make -f Makefile-ia32 BUILDTYPE=Release |
| 29 | $ out/Release/shell |
| 30 | |
| 31 | Change the makefile to build and run for the other architectures. |
| 32 | |
| 33 | |
| 34 | To generate Xcode project files on Mac OS: |
| 35 | ------------------------------------------ |
| 36 | |
| 37 | $ build/gyp_v8 |
| 38 | |
| 39 | This will make an Xcode project for the ia32 architecture. To build and run do: |
| 40 | |
| 41 | $ xcodebuild -project build/all.xcodeproj |
| 42 | $ samples/build/Debug/shell |
| 43 | $ xcodebuild -project build/all.xcodeproj -configuration Release |
| 44 | $ samples/build/Release/shell |
| 45 | |
Ben Murdoch | 257744e | 2011-11-30 15:57:28 +0000 | [diff] [blame] | 46 | |
| 47 | To generate Visual Studio solution and project files on Windows: |
| 48 | ---------------------------------------------------------------- |
| 49 | |
| 50 | On Windows an additional third party component is required. This is cygwin in |
| 51 | the same version as is used by the Chromium project. This can be checked out |
| 52 | from the Chromium repository. From the root of the V8 project do the following: |
| 53 | |
| 54 | > svn co http://src.chromium.org/svn/trunk/deps/third_party/cygwin@66844 third_party/cygwin |
| 55 | |
Ben Murdoch | 589d697 | 2011-11-30 16:04:58 +0000 | [diff] [blame] | 56 | To run GYP Python is required and it is recommended to use the same version as |
Ben Murdoch | 257744e | 2011-11-30 15:57:28 +0000 | [diff] [blame] | 57 | is used by the Chromium project. This can also be checked out from the Chromium |
| 58 | repository. From the root of the V8 project do the following: |
| 59 | |
Ben Murdoch | 589d697 | 2011-11-30 16:04:58 +0000 | [diff] [blame] | 60 | > svn co http://src.chromium.org/svn/trunk/tools/third_party/python_26@89111 third_party/python_26 |
Ben Murdoch | 257744e | 2011-11-30 15:57:28 +0000 | [diff] [blame] | 61 | |
Ben Murdoch | 3fb3ca8 | 2011-12-02 17:19:32 +0000 | [diff] [blame] | 62 | Now generate Visual Studio solution and project files for the ia32 architecture: |
Ben Murdoch | 257744e | 2011-11-30 15:57:28 +0000 | [diff] [blame] | 63 | |
Ben Murdoch | 3fb3ca8 | 2011-12-02 17:19:32 +0000 | [diff] [blame] | 64 | > third_party\python_26\python build/gyp_v8 |
Ben Murdoch | 257744e | 2011-11-30 15:57:28 +0000 | [diff] [blame] | 65 | |
| 66 | Now open build\All.sln in Visual Studio. |