Skip to content

Commit

Permalink
Cherry pick PR #1341: Update android toolchain section in docs (#1358)
Browse files Browse the repository at this point in the history
Refer to the original PR: #1341

When migrating to GN the SDK/NDK download was removed from the set up
script.

b/296729469

Co-authored-by: Oscar Vestlie <[email protected]>
  • Loading branch information
cobalt-github-releaser-bot and oxve authored Aug 22, 2023
1 parent 05ad843 commit c05a7f7
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions cobalt/site/docs/development/setup-android.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,16 @@ return and complete the following steps.
Where 4 is the number of parallel threads. You can adjust the number of
parallel threads according to how your workstation performs.

1. Run `cobalt/build/gn.py -p android-x86` to configure the Cobalt build,
which also installs the SDK and NDK. (This step will have to be repeated
with 'android-arm' or 'android-arm64' to target those architectures.) The
SDK and NDK will be downloaded and installed into a `starboard-toolchains`
directory as needed. If prompted, read and accept the license agreement to
proceed forward.
1. Run `starboard/android/shared/download_sdk.sh` to download the SDK and NDK.
The SDK and NDK will be downloaded and installed into
`~/starboard-toolchains`. If you wish to customize the download location
you must set the relevant environment variables accordingly.

If prompted, read and accept the license agreement.

1. Run `cobalt/build/gn.py -p android-x86` to configure the Cobalt build.
(This step will have to be repeated with 'android-arm' or 'android-arm64'
to target those architectures.)

**Note:** If you have trouble building with an error referencing the
`debug.keystore` you may need to set one up on your system:
Expand Down

0 comments on commit c05a7f7

Please sign in to comment.