OLD | NEW |
1 Linux | 1 Linux |
2 ===== | 2 ===== |
3 | 3 |
4 Prerequisites | 4 Prerequisites |
5 ------------- | 5 ------------- |
6 | 6 |
7 On a Ubuntu 12.04 (Precise) or Ubuntu 14.04 (Trusty) system, you can run | 7 On a Ubuntu 12.04 (Precise) or Ubuntu 14.04 (Trusty) system, you can run |
8 `tools/install_dependencies.sh`, which will install the needed packages. On | 8 `tools/install_dependencies.sh`, which will install the needed packages. On |
9 Ubuntu 12.04, you will need to install the`ninja` build tool separately, which | 9 Ubuntu 12.04, you will need to install the`ninja` build tool separately, which |
10 comes with Chromium's `depot_tools`. | 10 comes with Chromium's `depot_tools`. |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 | 50 |
51 Generate the build files by running the following in your Skia home directory: | 51 Generate the build files by running the following in your Skia home directory: |
52 | 52 |
53 ./gyp_skia | 53 ./gyp_skia |
54 | 54 |
55 Or, you can just rely on it being run automatically by using `make` instead of | 55 Or, you can just rely on it being run automatically by using `make` instead of |
56 `ninja` in examples shown below. | 56 `ninja` in examples shown below. |
57 | 57 |
58 If you want to use Eclipse, see Creating an Eclipse Project after you have gener
ated the makefiles. | 58 If you want to use Eclipse, see Creating an Eclipse Project after you have gener
ated the makefiles. |
59 | 59 |
| 60 On 32-bit Linux (when `uname -m` is *not* `x86_64`), you will have to |
| 61 explicitly specify the architecture: |
| 62 |
| 63 GYP_DEFINES='skia_arch_width=32' ./gyp_skia |
| 64 |
60 Build and run tests from the command line | 65 Build and run tests from the command line |
61 ----------------------------------------- | 66 ----------------------------------------- |
62 | 67 |
63 ninja -C out/Debug dm | 68 ninja -C out/Debug dm |
64 out/Debug/dm | 69 out/Debug/dm |
65 | 70 |
66 The usual mode you want for testing is Debug mode (`SK_DEBUG` is defined, and | 71 The usual mode you want for testing is Debug mode (`SK_DEBUG` is defined, and |
67 debug symbols are included in the binary). If you would like to build the | 72 debug symbols are included in the binary). If you would like to build the |
68 | 73 |
69 Release version instead | 74 Release version instead |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 Build tools | 128 Build tools |
124 ----------- | 129 ----------- |
125 | 130 |
126 make -j tools | 131 make -j tools |
127 out/Debug/skdiff | 132 out/Debug/skdiff |
128 | 133 |
129 Clean up all generated files | 134 Clean up all generated files |
130 ---------------------------- | 135 ---------------------------- |
131 | 136 |
132 make clean | 137 make clean |
OLD | NEW |