Skip to content

Added Build Android Toolchain section #12530

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 18, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions docs/Android.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ To follow along with this guide, you'll need:
turn on remote debugging by following the official instructions:
https://developer.chrome.com/devtools/docs/remote-debugging.

## Part One: "Hello, world" on Android
## "Hello, world" on Android

### 1. Downloading (or building) the Swift Android stdlib dependencies

Expand Down Expand Up @@ -309,7 +309,7 @@ Hello, Android

Congratulations! You've just run your first Swift program on Android.

## Part Two: Running the Swift test suite hosted on an Android device
## Running the Swift test suite hosted on an Android device

When running the test suite, build products are automatically pushed to your
device. As in part one, you'll need to connect your Android device via USB:
Expand All @@ -333,3 +333,19 @@ $ utils/build-script \
--android-icu-i18n ~/libicu-android/armeabi-v7a/libicui18n.so \
--android-icu-i18n-include ~/libicu-android/armeabi-v7a/icu/source/i18n/
```

## Build Android Toolchain

This toolchain will generate the .so and .swiftmodule files of the Swift standard library and Foundation framework for the Android environment, armv7 architecture. Those files are needed when building any Swift library to be included in an application for Android.

To build the toolchain run:

```
$ utils/android/build-toolchain
```

It will be built on:

```
path/to/swift-source/swift-android-toolchain
```
16 changes: 0 additions & 16 deletions utils/android/README.md

This file was deleted.