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, | 12 Note for the command lines below that Debug is the default configuration, |
13 so specifying that on the command lines is not required. | 13 so specifying that on the command lines is not required. |
14 | 14 |
15 | 15 |
16 To generate Makefiles and build 32-bit version on Linux: | 16 To generate Makefiles on Linux: |
17 -------------------------------------------------------- | 17 ------------------------------- |
18 | 18 |
19 $ build/gyp_v8 -D target_arch=ia32 | 19 $ build/gyp_v8 |
20 $ make BUILDTYPE=Debug | 20 |
| 21 This will build makefiles for ia32, x64 and the ARM simulator with names |
| 22 Makefile-ia32, Makefile-x64 and Makefile-armu respectively. |
| 23 |
| 24 To build and run for ia32 in debug and release version do: |
| 25 |
| 26 $ make -f Makefile-ia32 |
21 $ out/Debug/shell | 27 $ out/Debug/shell |
22 $ make BUILDTYPE=Release | 28 $ make -f Makefile-ia32 BUILDTYPE=Release |
23 $ out/Release/shell | 29 $ out/Release/shell |
24 | 30 |
25 To generate Makefiles and build 64-bit version on Linux: | 31 Change the makefile to build and run for the other architectures. |
26 -------------------------------------------------------- | |
27 | |
28 $ build/gyp_v8 -D target_arch=x64 | |
29 $ make BUILDTYPE=Debug | |
30 $ out/Debug/shell | |
31 $ make BUILDTYPE=Release | |
32 $ out/Release/shell | |
33 | |
34 To generate Makefiles and build for the arm simulator on Linux: | |
35 --------------------------------------------------------------- | |
36 | |
37 $ build/gyp_v8 -I build/armu.gypi | |
38 $ make BUILDTYPE=Debug | |
39 $ out/Debug/shell | |
40 $ make BUILDTYPE=Release | |
41 $ out/Release/shell | |
42 | 32 |
43 | 33 |
44 To generate Xcode project files on Mac OS: | 34 To generate Xcode project files on Mac OS: |
45 ------------------------------------------ | 35 ------------------------------------------ |
46 | 36 |
47 $ build/gyp_v8 -D target_arch=ia32 | 37 $ build/gyp_v8 |
48 $ xcodebuild -project build/all.xcodeproj -configuration Debug | 38 |
| 39 This will make an Xcode project for the ia32 architecture. To build and run do: |
| 40 |
| 41 $ xcodebuild -project build/all.xcodeproj |
49 $ samples/build/Debug/shell | 42 $ samples/build/Debug/shell |
50 $ xcodebuild -project build/all.xcodeproj -configuration Release | 43 $ xcodebuild -project build/all.xcodeproj -configuration Release |
51 $ samples/build/Release/shell | 44 $ samples/build/Release/shell |
52 | 45 |
53 | 46 |
54 To generate Visual Studio solution and project files on Windows: | 47 To generate Visual Studio solution and project files on Windows: |
55 ---------------------------------------------------------------- | 48 ---------------------------------------------------------------- |
56 | 49 |
57 On Windows an additional third party component is required. This is cygwin in | 50 On Windows an additional third party component is required. This is cygwin in |
58 the same version as is used by the Chromium project. This can be checked out | 51 the same version as is used by the Chromium project. This can be checked out |
59 from the Chromium repository. From the root of the V8 project do the following: | 52 from the Chromium repository. From the root of the V8 project do the following: |
60 | 53 |
61 > svn co http://src.chromium.org/svn/trunk/deps/third_party/cygwin@66844 third_p
arty/cygwin | 54 > svn co http://src.chromium.org/svn/trunk/deps/third_party/cygwin@66844 third_p
arty/cygwin |
62 | 55 |
63 To run GYP Python is required and it is reccomended to use the same version as | 56 To run GYP Python is required and it is reccomended to use the same version as |
64 is used by the Chromium project. This can also be checked out from the Chromium | 57 is used by the Chromium project. This can also be checked out from the Chromium |
65 repository. From the root of the V8 project do the following: | 58 repository. From the root of the V8 project do the following: |
66 | 59 |
67 > svn co http://src.chromium.org/svn/trunk/tools/third_party/python_26@70627 thi
rd_party/python_26 | 60 > svn co http://src.chromium.org/svn/trunk/tools/third_party/python_26@70627 thi
rd_party/python_26 |
68 | 61 |
69 Now generate Visual Studio solution and project files: | 62 Now generate Visual Studio solution and project files for the ia32 architecture: |
70 | 63 |
71 > third_party\python_26\python build/gyp_v8 -D target_arch=ia32 | 64 > third_party\python_26\python build/gyp_v8 |
72 | 65 |
73 Now open build\All.sln in Visual Studio. | 66 Now open build\All.sln in Visual Studio. |
OLD | NEW |