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

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

Issue 1439493003: Documentation: clean up (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-11-12 (Thursday) 15:18:10 EST Created 5 years, 1 month 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
OLDNEW
1 Android 1 Android
2 ======= 2 =======
3 3
4 Prerequisites 4 Prerequisites
5 ------------- 5 -------------
6 6
7 _Currently we only support building Skia for Android on a Linux or Mac host! In addition, 7 _Currently we only support building Skia for Android on a Linux or Mac host! In addition,
8 we only use the Mac build for local development. All shipping variants are comp iled on 8 we only use the Mac build for local development. All shipping variants are comp iled on
9 Linux for performance reasons._ 9 Linux for performance reasons._
10 10
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 ./platform_tools/android/bin/android_ninja -d nexus_10 # or nexus_7, galaxy_ nexus, etc... 66 ./platform_tools/android/bin/android_ninja -d nexus_10 # or nexus_7, galaxy_ nexus, etc...
67 67
68 The -d option enables the build system to target the build to a specific 68 The -d option enables the build system to target the build to a specific
69 architecture such as MIPS (generic), x86 (generic) and ARM (generic and device 69 architecture such as MIPS (generic), x86 (generic) and ARM (generic and device
70 specific flavors for Nexus devices). This in turn allows Skia to take 70 specific flavors for Nexus devices). This in turn allows Skia to take
71 advantage of specific device optimizations (e.g. NEON instructions). 71 advantage of specific device optimizations (e.g. NEON instructions).
72 72
73 Generate build file from GYP 73 Generate build file from GYP
74 ---------------------------- 74 ----------------------------
75 75
76 We use the open-source gyp tool to generate build files from our multiplatform 76 We use the open-source gyp tool to generate build files from our
77 "gyp" files. While most other platforms enable you to regenerate these files 77 multiplatform "gyp" files. While most other platforms enable you to
78 using `./gyp_skia` it is recommend that you do NOT do this for Android. Instead 78 regenerate these files using `./gyp_skia` or `bin/sync-and-gyp` it is
79 you can rely on it being run automatically by android_ninja. 79 recommend that you do NOT do this for Android. Instead you can rely
hcm 2015/11/13 05:03:45 recommend-->recommended
hal.canary 2015/11/13 12:21:45 done
80 on it being run automatically by android_ninja.
80 81
81 Faster rebuilds 82 Faster rebuilds
82 --------------- 83 ---------------
83 84
84 You can use ccache to improve the speed of rebuilding: 85 You can use ccache to improve the speed of rebuilding:
85 86
86 # You may want to add this export to your shell's .bash_profile or .profile 87 # You may want to add this export to your shell's .bash_profile or .profile
87 export ANDROID_MAKE_CCACHE=[ccache] 88 export ANDROID_MAKE_CCACHE=[ccache]
88 89
89 Build and run executables on the device 90 Build and run executables on the device
90 --------------------------------------- 91 ---------------------------------------
91 92
92 The build system packages the Skia executables as shared libraries. As such, 93 The build system packages the Skia executables as shared libraries. As such,
93 in order to run any executable on the device you must install the library and 94 in order to run any executable on the device you must install the library and
94 a launcher executable on your device. To assist in this process there is a 95 a launcher executable on your device. To assist in this process there is a
95 script called `android_run_skia` that is located in the 96 script called `android_run_skia` that is located in the
96 `platform_tools/android/bin` directory. 97 `platform_tools/android/bin` directory.
97 98
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 # include additional arguments in quotes (e.g. "dm --nopdf") 199 # include additional arguments in quotes (e.g. "dm --nopdf")
199 ./platform_tools/android/bin/android_gdb_native dm 200 ./platform_tools/android/bin/android_gdb_native dm
200 201
201 # SAMPLE APP 202 # SAMPLE APP
202 # make sure you've installed the app on the device first 203 # make sure you've installed the app on the device first
203 ./platform_tools/android/bin/android_gdb_app 204 ./platform_tools/android/bin/android_gdb_app
204 205
205 When the gdb client is ready, insert a breakpoint, and continue to let the 206 When the gdb client is ready, insert a breakpoint, and continue to let the
206 program resume execution. 207 program resume execution.
207 208
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698