Files
swift-mirror/utils/android
Daniel Rodríguez Troitiño f0eece342a [android] Allow skipping adb_clean.py
In normal cases, adb_clean.py cleaning the temporal directory is a good
idea because all the tests run in a clean state, and previous executions
do not influence the current one.

However, when iterating and running only one or two tests with
utils/run-test, removing all the artifacts and uploading them to the
device can turn each iteration into waiting a couple of minutes. Since
the changes in between tests should only touch a couple of libraries (or
none at all, if the test itself is the modification), avoiding a full
clean is beneficial.

The commit modifies `adb_clean.py` to allow providing the environment
variable `SKIP_ANDROID_CLEAN`, which will simply not execute the script.

Since the introduction of #24146, only the modified
artifacts will be uploaded, and the test iteration can be very fast
(including no time, if there are no changes).
2019-05-06 18:00:21 -07:00
..
2017-01-06 16:41:22 +01:00
2017-01-06 16:41:22 +01:00

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:

android$ ./build-toolchain

It will be built on:

path/to/swift-source/swift-android-toolchain