| OLD | NEW |
| 1 This directory contains the V8 GYP files used to generate actual project files | 1 This directory contains the V8 GYP files used to generate actual project files |
| 2 for different build systems. | 2 for different build systems. |
| 3 | 3 |
| 4 This is currently work in progress but this is expected to replace the SCons | 4 This is currently work in progress but this is expected to replace the SCons |
| 5 based build system. | 5 based build system. |
| 6 | 6 |
| 7 To use this a checkout of GYP is needed inside this directory. From the root of | 7 To use this a checkout of GYP is needed inside this directory. From the root of |
| 8 the V8 project do the following: | 8 the V8 project do the following: |
| 9 | 9 |
| 10 $ svn co http://gyp.googlecode.com/svn/trunk build/gyp | 10 $ svn co http://gyp.googlecode.com/svn/trunk build/gyp |
| 11 | 11 |
| 12 Note for the command lines below that Debug is the default configuration, |
| 13 so specifying that on the command lines is not required. |
| 14 |
| 15 |
| 12 To generate Makefiles and build 32-bit version on Linux: | 16 To generate Makefiles and build 32-bit version on Linux: |
| 13 -------------------------------------------------------- | 17 -------------------------------------------------------- |
| 14 | 18 |
| 15 $ GYP_DEFINES=target_arch=ia32 build/gyp_v8 | 19 $ build/gyp_v8 -D target_arch=ia32 |
| 16 $ make | 20 $ make BUILDTYPE=Debug |
| 21 $ out/Debug/shell |
| 22 $ make BUILDTYPE=Release |
| 23 $ out/Release/shell |
| 17 | 24 |
| 18 To generate Makefiles and build 64-bit version on Linux: | 25 To generate Makefiles and build 64-bit version on Linux: |
| 19 -------------------------------------------------------- | 26 -------------------------------------------------------- |
| 20 | 27 |
| 21 $ GYP_DEFINES=target_arch=x64 build/gyp_v8 | 28 $ build/gyp_v8 -D target_arch=x64 |
| 22 $ make | 29 $ make BUILDTYPE=Debug |
| 30 $ out/Debug/shell |
| 31 $ make BUILDTYPE=Release |
| 32 $ out/Release/shell |
| 23 | 33 |
| 24 To generate Makefiles and build for the arm simulator on Linux: | 34 To generate Makefiles and build for the arm simulator on Linux: |
| 25 --------------------------------------------------------------- | 35 --------------------------------------------------------------- |
| 26 | 36 |
| 27 $ build/gyp_v8 -I build/arm.gypi | 37 $ build/gyp_v8 -I build/armu.gypi |
| 28 $ make | 38 $ make BUILDTYPE=Debug |
| 39 $ out/Debug/shell |
| 40 $ make BUILDTYPE=Release |
| 41 $ out/Release/shell |
| 42 |
| 43 |
| 44 To generate Xcode project files on Mac OS: |
| 45 ------------------------------------------ |
| 46 |
| 47 $ build/gyp_v8 -D target_arch=ia32 |
| 48 $ xcodebuild -project build/all.xcodeproj -configuration Debug |
| 49 $ samples/build/Debug/shell |
| 50 $ xcodebuild -project build/all.xcodeproj -configuration Release |
| 51 $ samples/build/Release/shell |
| 52 |
| 29 | 53 |
| 30 To generate Visual Studio solution and project files on Windows: | 54 To generate Visual Studio solution and project files on Windows: |
| 31 ---------------------------------------------------------------- | 55 ---------------------------------------------------------------- |
| 32 | 56 |
| 33 On Windows an additional third party component is required. This is cygwin in | 57 On Windows an additional third party component is required. This is cygwin in |
| 34 the same version as is used by the Chromium project. This can be checked out | 58 the same version as is used by the Chromium project. This can be checked out |
| 35 from the Chromium repository. From the root of the V8 project do the following: | 59 from the Chromium repository. From the root of the V8 project do the following: |
| 36 | 60 |
| 37 > svn co http://src.chromium.org/svn/trunk/deps/third_party/cygwin@66844 third_p
arty/cygwin | 61 > svn co http://src.chromium.org/svn/trunk/deps/third_party/cygwin@66844 third_p
arty/cygwin |
| 38 | 62 |
| 39 To run GYP Python is required and it is reccomended to use the same version as | 63 To run GYP Python is required and it is reccomended to use the same version as |
| 40 is used by the Chromium project. This can also be checked out from the Chromium | 64 is used by the Chromium project. This can also be checked out from the Chromium |
| 41 repository. From the root of the V8 project do the following: | 65 repository. From the root of the V8 project do the following: |
| 42 | 66 |
| 43 > svn co http://src.chromium.org/svn/trunk/tools/third_party/python_26@70627 thi
rd_party/python_26 | 67 > svn co http://src.chromium.org/svn/trunk/tools/third_party/python_26@70627 thi
rd_party/python_26 |
| 44 | 68 |
| 45 Now generate Visual Studio solution and project files: | 69 Now generate Visual Studio solution and project files: |
| 46 | 70 |
| 47 > third_party\python_26\python build/gyp_v8 -D target_arch=ia32 | 71 > third_party\python_26\python build/gyp_v8 -D target_arch=ia32 |
| 48 | 72 |
| 49 Now open build\All.sln in Visual Studio. | 73 Now open build\All.sln in Visual Studio. |
| OLD | NEW |