Skip to content
This repository has been archived by the owner on Aug 14, 2022. It is now read-only.

Commit

Permalink
Merge pull request #127 from jt9897253/master
Browse files Browse the repository at this point in the history
Simplify install instructions
  • Loading branch information
vgorloff authored Sep 13, 2021
2 parents 76c1e67 + 16d423b commit 978e989
Showing 1 changed file with 7 additions and 31 deletions.
38 changes: 7 additions & 31 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,57 +27,33 @@ Build of complete toolchain takes ~1.5h. Instead of building it you can just dow

## Setup and Build

1. Check that CMake is installed. Install CMake if needed.
1. Install CMake, Ninja, Autotools and git-lfs. Check that all requirements are installed.

```bash
brew install cmake ninja autoconf automake libtool pkg-config git-lfs
which cmake
brew install cmake
```

2. Check that Ninja is installed. Install Ninja if needed.

```bash
which ninja
brew install ninja
```

3. Check that Autotools is installed. Install Autotools if needed.

```bash
which autoconf
brew install autoconf

which aclocal
brew install automake

which glibtool
brew install libtool

which pkg-config
brew install pkg-config
```

4. Check that git-lfs is installed. Install git-lfs if needed.

```bash
which git-lfs
brew install git-lfs
```

5. Make sure that `Xcode Build Tools` properly configured.
2. Make sure that `Xcode Build Tools` properly configured.

```bash
xcode-select --print-path
```

6. Clone this repository.
3. Clone this repository.

```bash
git clone https://github.com/vgorloff/swift-everywhere-toolchain.git
cd swift-everywhere-toolchain
```

7. Create a symbolic link to NDK installation directory.
4. Create a symbolic link to NDK installation directory.

```bash
sudo mkdir -p /usr/local/ndk
Expand All @@ -86,13 +62,13 @@ Build of complete toolchain takes ~1.5h. Instead of building it you can just dow

The placeholder `$VERSION` needs to be replaced with a version mentioned in file `NDK_VERSION` at the root of cloned repository.

8. Start a build.
5. Start a build.

```bash
node main.js
```

9. Once the build completed, toolchain will be saved to folder `ToolChain/swift-android-toolchain` and compressed into archive `ToolChain/swift-android-toolchain.tar.gz`.
6. Once the build completed, toolchain will be saved to folder `ToolChain/swift-android-toolchain` and compressed into archive `ToolChain/swift-android-toolchain.tar.gz`.

## Usage

Expand Down

0 comments on commit 978e989

Please sign in to comment.