Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(477)

Side by Side Diff: site/user/quick/macos.md

Issue 834353003: Adding user doc section and core files for new site (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: One more fix to android.md Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « site/user/quick/ios.md ('k') | site/user/quick/nacl.md » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 Mac OS X
2 ========
3
4 Prerequisites
5 -------------
6
7 Make sure the following have been installed:
8
9 * XCode (Apple's development environment): required
10 * 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.
12 * Chromium depot_tools: required to download the source and dependencies
13 * http://www.chromium.org/developers/how-tos/depottools
14
15 Check out the source code
16 -------------------------
17
18 See the instructions [here](../download).
19
20 Generate XCode projects
21 -----------------------
22
23 We use the open-source gyp tool to generate XCode projects (and analogous
24 build scripts on other platforms) from our multiplatform "gyp" files.
25
26 Before building, make sure that gyp knows to create an XCode project or ninja
27 build files. If you leave GYP_GENERATORS undefined it will assume the
28 following default:
29
30 GYP_GENERATORS="ninja,xcode"
31
32 Or you can set it to `ninja` or `xcode` alone, if you like.
33
34 You can then generate the Xcode projects and ninja build files by running:
35
36 ./gyp_skia
37
38 Build and run tests from the command line
39 -----------------------------------------
40
41 ninja -C out/Debug dm
42 out/Debug/dm
43
44 The usual mode you want for testing is Debug mode (SK_DEBUG is defined, and
45 debug symbols are included in the binary). If you would like to build the
46 Release version instead:
47
48 ninja -C out/Release dm
49 out/Release/dm
50
51 Build and run nanobench (performance tests)
52 -------------------------------------------
53
54 In this case, we will build with the "Release" configuration, since we are runni ng performance tests.
55
56 ninja -C out/Release nanobench
57 out/Release/nanobench [ --skps path/to/*.skp ]
58
59 Build and run SampleApp in the XCode IDE
60 ----------------------------------------
61
62 * Run gyp_skia as described above.
63 * 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
65 * 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:
67 * right- and left-arrow keys: cycle through different test pages
68 * '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
OLDNEW
« no previous file with comments | « site/user/quick/ios.md ('k') | site/user/quick/nacl.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698