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

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

Issue 1919973002: Improve Android Quick Start Guide (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
11 The following libraries/utilities are required in addition to those needed for a standard skia checkout: 11 The following libraries/utilities are required in addition to those needed for a standard skia checkout:
12 12
13 * The Android SDK: http://developer.android.com/sdk/ 13 * The Android SDK: http://developer.android.com/sdk/
14 14
15 Check out the source code 15 Check out the source code
16 ------------------------- 16 -------------------------
17 17
18 Follow the instructions [here](../download) for downloading the Skia source. 18 Follow the instructions [here](../download) for downloading the Skia source.
19 19
20 Inside your Skia checkout, `platform_tools/android` contains the Android setup 20 Inside your Skia checkout, `platform_tools/android` contains the Android setup
21 scripts, Android specific dependencies, and the Android Sample App. 21 scripts, Android specific dependencies, and the Android Sample App.
22 22
23 You may need to [install other dependencies](./linux#prerequisites): 23 You may need to [install other dependencies](./linux#prerequisites):
24 24
25 tools/install_dependencies.sh 25 tools/install_dependencies.sh
26 bin/sync-and-gyp
djsollen 2016/04/25 18:35:16 I'll upload a CL to make this a little more clear
liyuqian 2016/04/25 19:10:11 Done.
26 27
27 Setup the Android SDK 28 Setup the Android SDK
28 --------------------- 29 ---------------------
29 30
30 To finish setting up the Android SDK you need to download use the SDK to 31 To finish setting up the Android SDK you need to download use the SDK to
31 download the appropriate API level. To do this simply go to the directory 32 download the appropriate API level. To do this simply go to the directory
32 where you installed the SDK and run the following commands 33 where you installed the SDK and run the following commands
33 34
34 # You may want to add this export to your shell's .bash_profile or .profile 35 # You may want to add this export to your shell's .bash_profile or .profile
35 export ANDROID_SDK_ROOT=/path/to/android/sdk 36 export ANDROID_SDK_ROOT=/path/to/android/sdk
(...skipping 13 matching lines...) Expand all
49 and Make. We make this setup easy for developers by encapsulating all the 50 and Make. We make this setup easy for developers by encapsulating all the
50 details into a custom script that acts as a replacement for make. 51 details into a custom script that acts as a replacement for make.
51 52
52 Custom Android Build Script 53 Custom Android Build Script
53 --------------------------- 54 ---------------------------
54 55
55 The android_ninja script is a wrapper for the ninja command (provided by 56 The android_ninja script is a wrapper for the ninja command (provided by
56 depot_tools) and is specifically designed to work with the Skia's build 57 depot_tools) and is specifically designed to work with the Skia's build
57 system. To use the script you need to call it from Skia's trunk directory with 58 system. To use the script you need to call it from Skia's trunk directory with
58 the -d option plus any of the options or arguments you would normally pass to 59 the -d option plus any of the options or arguments you would normally pass to
59 ninja (see descriptions of some of the other flags here). 60 ninja (see descriptions of some of the other flags here). Please make sure
61 that Android SDK Build-tools 22.0.1 is installed.
djsollen 2016/04/25 18:35:16 move this to the "setup the android sdk" section a
liyuqian 2016/04/25 19:10:11 Done.
60 62
61 export ANDROID_SDK_ROOT=/path/to/android/sdk 63 export ANDROID_SDK_ROOT=/path/to/android/sdk
62 export ANDROID_HOME=/path/to/android/sdk 64 export ANDROID_HOME=/path/to/android/sdk
63 export PATH=$PATH:/path/to/depot_tools 65 export PATH=$PATH:/path/to/depot_tools
64 66
65 cd skia 67 cd skia
66 ./platform_tools/android/bin/android_ninja -d nexus_10 # or nexus_7, galaxy_ nexus, etc... 68 ./platform_tools/android/bin/android_ninja -d nexus_10 # or nexus_7, galaxy_ nexus, etc...
67 69
68 The -d option enables the build system to target the build to a specific 70 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 71 architecture such as MIPS (generic), x86 (generic) and ARM (generic and device
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 # COMMAND LINE APPS 200 # COMMAND LINE APPS
199 # include additional arguments in quotes (e.g. "dm --nopdf") 201 # include additional arguments in quotes (e.g. "dm --nopdf")
200 ./platform_tools/android/bin/android_gdb_native dm 202 ./platform_tools/android/bin/android_gdb_native dm
201 203
202 # SAMPLE APP 204 # SAMPLE APP
203 # make sure you've installed the app on the device first 205 # make sure you've installed the app on the device first
204 ./platform_tools/android/bin/android_gdb_app [-d device_id] 206 ./platform_tools/android/bin/android_gdb_app [-d device_id]
205 207
206 When the gdb client is ready, insert a breakpoint, and continue to let the 208 When the gdb client is ready, insert a breakpoint, and continue to let the
207 program resume execution. 209 program resume execution.
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698