OLD | NEW |
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): |
| 24 |
| 25 tools/install_dependencies.sh |
| 26 |
23 Setup the Android SDK | 27 Setup the Android SDK |
24 --------------------- | 28 --------------------- |
25 | 29 |
26 To finish setting up the Android SDK you need to download use the SDK to | 30 To finish setting up the Android SDK you need to download use the SDK to |
27 download the appropriate API level. To do this simply go to the directory | 31 download the appropriate API level. To do this simply go to the directory |
28 where you installed the SDK and run the following commands | 32 where you installed the SDK and run the following commands |
29 | 33 |
30 # You may want to add this export to your shell's .bash_profile or .profile | 34 # You may want to add this export to your shell's .bash_profile or .profile |
31 export ANDROID_SDK_ROOT=/path/to/android/sdk | 35 export ANDROID_SDK_ROOT=/path/to/android/sdk |
32 | 36 |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 # include additional arguments in quotes (e.g. "dm --nopdf") | 198 # include additional arguments in quotes (e.g. "dm --nopdf") |
195 ./platform_tools/android/bin/android_gdb_native dm | 199 ./platform_tools/android/bin/android_gdb_native dm |
196 | 200 |
197 # SAMPLE APP | 201 # SAMPLE APP |
198 # make sure you've installed the app on the device first | 202 # make sure you've installed the app on the device first |
199 ./platform_tools/android/bin/android_gdb_app | 203 ./platform_tools/android/bin/android_gdb_app |
200 | 204 |
201 When the gdb client is ready, insert a breakpoint, and continue to let the | 205 When the gdb client is ready, insert a breakpoint, and continue to let the |
202 program resume execution. | 206 program resume execution. |
203 | 207 |
OLD | NEW |