| OLD | NEW |
| 1 Mac OS X | 1 Mac OS X |
| 2 ======== | 2 ======== |
| 3 | 3 |
| 4 Quickstart |
| 5 ---------- |
| 6 |
| 7 1. Install [XCode](http://developer.apple.com/xcode/). |
| 8 |
| 9 2. Install depot tools. |
| 10 |
| 11 <!--?prettify lang=sh?--> |
| 12 |
| 13 git clone 'https://chromium.googlesource.com/chromium/tools/depot_tools.
git' |
| 14 export PATH="${PWD}/depot_tools:${PATH}" |
| 15 |
| 16 3. Get Skia. |
| 17 |
| 18 <!--?prettify lang=sh?--> |
| 19 |
| 20 git clone 'https://skia.googlesource.com/skia' |
| 21 cd skia |
| 22 |
| 23 4. Build. |
| 24 |
| 25 <!--?prettify lang=sh?--> |
| 26 |
| 27 bin/sync-and-gyp && ninja -C out/Debug |
| 28 |
| 29 5. Run DM (the Skia test app) and SampleApp. |
| 30 |
| 31 <!--?prettify lang=sh?--> |
| 32 |
| 33 out/Debug/dm |
| 34 open out/Debug/SampleApp.app |
| 35 |
| 4 Prerequisites | 36 Prerequisites |
| 5 ------------- | 37 ------------- |
| 6 | 38 |
| 7 Make sure the following have been installed: | 39 Make sure the following have been installed: |
| 8 | 40 |
| 9 * XCode (Apple's development environment): required | 41 * XCode (Apple's development environment): required |
| 10 * publicly available at http://developer.apple.com/xcode/ | 42 * publicly available at http://developer.apple.com/xcode/ |
| 11 * add the optional Unix Tools to the install so you get the make command lin
e tool. | 43 * add the optional Unix Tools to the install so you get the make command lin
e tool. |
| 12 * Chromium depot_tools: required to download the source and dependencies | 44 * Chromium depot_tools: required to download the source and dependencies |
| 13 * http://www.chromium.org/developers/how-tos/depottools | 45 * http://www.chromium.org/developers/how-tos/depottools |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 ---------------------------------------- | 92 ---------------------------------------- |
| 61 | 93 |
| 62 * Run gyp_skia as described above. | 94 * Run gyp_skia as described above. |
| 63 * In the Finder, navigate to $SKIA_INSTALLDIR/trunk/out/gyp | 95 * In the Finder, navigate to $SKIA_INSTALLDIR/trunk/out/gyp |
| 64 * Double-click SampleApp.xcodeproj ; this will launch XCode and open the Sampl
eApp project | 96 * Double-click SampleApp.xcodeproj ; this will launch XCode and open the Sampl
eApp project |
| 65 * Click the “Build and Run” button in the top toolbar | 97 * Click the “Build and Run” button in the top toolbar |
| 66 * Once the build is complete, you should see a window with lots of shaded text
examples. To move through the sample app, use the following keypresses: | 98 * Once the build is complete, you should see a window with lots of shaded text
examples. To move through the sample app, use the following keypresses: |
| 67 * right- and left-arrow keys: cycle through different test pages | 99 * right- and left-arrow keys: cycle through different test pages |
| 68 * 'D' key: cycle through rendering methods for each test page | 100 * 'D' key: cycle through rendering methods for each test page |
| 69 * other keys are defined in SampleApp.cpp’s SampleWindow::onHandleKey() and
SampleWindow::onHandleChar() methods | 101 * other keys are defined in SampleApp.cpp’s SampleWindow::onHandleKey() and
SampleWindow::onHandleChar() methods |
| OLD | NEW |