OLD | NEW |
1 Windows | 1 Windows |
2 ======= | 2 ======= |
3 | 3 |
4 Prerequisites | 4 Prerequisites |
5 ------------- | 5 ------------- |
6 | 6 |
7 Make sure the following have been installed: | 7 Make sure the following have been installed: |
8 | 8 |
9 * [Visual C++ 2013 Express or later, available for | 9 * [Visual C++ 2013 Express or later, available for |
10 free](https://www.visualstudio.com/downloads/download-visual-studio-vs#d-exp
ress-windows-8) | 10 free](https://www.visualstudio.com/downloads/download-visual-studio-vs#d-exp
ress-windows-8) |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 We use the open-source Gyp tool to generate Visual Studio projects (and | 50 We use the open-source Gyp tool to generate Visual Studio projects (and |
51 analogous build scripts on other platforms) from our multi-platform "gyp" | 51 analogous build scripts on other platforms) from our multi-platform "gyp" |
52 files. | 52 files. |
53 | 53 |
54 Three Gyp generators are used on Windows: | 54 Three Gyp generators are used on Windows: |
55 | 55 |
56 * `ninja` - Run ninja yourself, without VisualStudio project files, | 56 * `ninja` - Run ninja yourself, without VisualStudio project files, |
57 | 57 |
58 * `msvs-ninja` - Develop from a fully-integrated Visual Studio. | 58 * `msvs-ninja` - Develop from a fully-integrated Visual Studio. |
59 Gyp generates Visual-Studio-compatible project files that still | 59 Gyp generates Visual-Studio-compatible project files that still |
60 ultimately build using ninja | 60 ultimately build using ninja. This is the preferred and better maintained |
| 61 way of using Visual Studio. |
61 | 62 |
62 * `msvs` - Use Visual Studio's own (slower) build system | 63 * `msvs` - Use Visual Studio's own (slower) build system. This is not as well |
| 64 maintained as msvs-ninja. The msvs and ninja output can clobber each other |
| 65 so building from both the command line and Visual Studio can produce bad |
| 66 states that can be fixed by deleting the out directory and rerunning |
| 67 gyp_skia. |
63 | 68 |
64 To choose which ones to use, set the `GYP_GENERATORS` environment | 69 To choose which ones to use, set the `GYP_GENERATORS` environment |
65 variable to a comma-delimited list of generators before running | 70 variable to a comma-delimited list of generators before running |
66 sync-and-gyp. The default value for `GYP_GENERATORS` is | 71 sync-and-gyp. The default value for `GYP_GENERATORS` is |
67 `ninja,msvs-ninja`. For example to enable the `ninja` and `msvs` | 72 `ninja,msvs-ninja`. For example to enable the `ninja` and `msvs` |
68 generators: | 73 generators: |
69 | 74 |
70 <a name="env"></a>Setting Enviroment Variables in Windows CMD.EXE | 75 <a name="env"></a>Setting Enviroment Variables in Windows CMD.EXE |
71 ----------------------------------------------------------------- | 76 ----------------------------------------------------------------- |
72 | 77 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 click on "Yes" to rebuild it. | 133 click on "Yes" to rebuild it. |
129 | 134 |
130 6. Once the build is complete, you should see a window with various | 135 6. Once the build is complete, you should see a window with various |
131 example graphics. To move through the sample app, use the | 136 example graphics. To move through the sample app, use the |
132 following keypresses: | 137 following keypresses: |
133 - right- and left-arrow key: cycle through different test pages | 138 - right- and left-arrow key: cycle through different test pages |
134 - 'D' key: cycle through rendering methods for each test page | 139 - 'D' key: cycle through rendering methods for each test page |
135 - other keys are defined in SampleApp.cpp’s | 140 - other keys are defined in SampleApp.cpp’s |
136 SampleWindow::onHandleKey() and SampleWindow::onHandleChar() | 141 SampleWindow::onHandleKey() and SampleWindow::onHandleChar() |
137 methods | 142 methods |
OLD | NEW |