Skip to content

Commit 240a5ee

Browse files
committed
Fix formatting of README.md
1 parent 5d0eca9 commit 240a5ee

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

README.md

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,35 @@
11
# Swift cross-compilation SDKs for Android
22

3-
To build with an SDK, first download [the latest Android NDK 21d]
4-
(https://developer.android.com/ndk/downloads) and [Swift compiler](https://swift.org/download/#releases).
5-
Unpack these archives and the SDK.
3+
To build with an SDK, first download [the latest Android NDK 21d](https://developer.android.com/ndk/downloads)
4+
and [Swift compiler](https://swift.org/download/#releases). Unpack these archives
5+
and the SDK.
66

77
The SDK will need to be modified with the path to your NDK and Swift compiler
88
in the following ways:
99

10-
1. Change all paths in swift-android-aarch64-24-sdk/usr/lib/swift/android/aarch64/glibc.modulemap
11-
from /home/butta/swift/android-ndk-r21d to the path to your NDK.
10+
1. Change all paths in `swift-android-aarch64-24-sdk/usr/lib/swift/android/aarch64/glibc.modulemap`
11+
from `/home/butta/swift/android-ndk-r21d` to the path to your NDK.
1212

13-
2. Change the symbolic link at swift-android-aarch64-24-sdk/usr/lib/swift/clang
13+
2. Change the symbolic link at `swift-android-aarch64-24-sdk/usr/lib/swift/clang`
1414
to point to the clang headers next to your swift compiler, ie
1515

16-
ln -sf /home/yourname/swift-5.3.1-RELEASE-ubuntu20.04/usr/lib/clang/10.0.0 swift-android-aarch64-24-sdk/usr/lib/swift/clang
17-
16+
```
17+
ln -sf /home/yourname/swift-5.3.1-RELEASE-ubuntu20.04/usr/lib/clang/10.0.0
18+
swift-android-aarch64-24-sdk/usr/lib/swift/clang
19+
```
1820
Finally, modify the cross-compilation JSON file in this repo similarly:
1921

20-
1. All paths to the NDK should change from /home/butta/swift/android-ndk-r21d
22+
1. All paths to the NDK should change from `/home/butta/swift/android-ndk-r21d`
2123
to the path to your NDK.
2224

23-
2. The path to the compiler should change from /home/butta/swift/swift-5.3.1-RELEASE-ubuntu20.04
25+
2. The path to the compiler should change from `/home/butta/swift/swift-5.3.1-RELEASE-ubuntu20.04`
2426
to the path to your Swift compiler.
2527

26-
3. The path to the Android SDK should change from /home/butta/swift/swift-android-aarch64-24-sdk
28+
3. The path to the Android SDK should change from `/home/butta/swift/swift-android-aarch64-24-sdk`
2729
to the path to where you unpacked the Android SDK.
2830

2931
Now you're ready to cross-compile a Swift package with the cross-compilation
3032
JSON config:
31-
33+
```
3234
swift build --build-tests --enable-test-discovery --destination ~/swift-android-sdk/android-aarch64.json
35+
```

0 commit comments

Comments
 (0)