Skip to content

Commit 08c381d

Browse files
committed
doc: update build guide of macOS
1 parent ef786b6 commit 08c381d

File tree

3 files changed

+26
-24
lines changed

3 files changed

+26
-24
lines changed

README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -91,19 +91,19 @@ make release
9191

9292
#### macOS
9393

94-
1. It's recommended that install Android [SDK](https://developer.android.com/studio/index.html) and [NDK](https://developer.android.com/ndk/index.html) manually or via Android Studio.
95-
2. Install [Homebrew](http://brew.sh/) (If your is network is too slow, you could setup a [Homebrew mirror](https://mirrors.ustc.edu.cn/help/brew.git.html)), then run:
94+
1. Install [Android SDK](https://developer.android.com/sdk/index.html)
9695

96+
2. Set up ANDROID_SDK_ROOT
9797
```bash
98-
brew install automake cmake opencc boost python gradle doxygen clang capnp
98+
# Android
99+
export ANDROID_SDK_ROOT="android_sdk_path"
99100
```
100101

101-
Set the following environment variables in your `~/.bashrc` is recommended:
102+
3. Set up [mirror](https://mirrors.tuna.tsinghua.edu.cn/help/homebrew/) of Homebrew(Optional)
103+
104+
4. Install [Homebrew](https://brew.sh/)
102105
```bash
103-
# Android
104-
export ANDROID_HOME="your_android_sdk"
105-
export ANDROID_NDK="your_android_ndk"
106-
export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$ANDROID_NDK
106+
brew install cmake capnp
107107
```
108108

109109
## Third Party Libraries

README_sc.md

+9-8
Original file line numberDiff line numberDiff line change
@@ -83,20 +83,21 @@ make release
8383

8484
#### macOS
8585

86-
1. 推荐通过 Android Studio 或手动安装 Android [SDK](https://developer.android.com/studio/index.html)[NDK](https://developer.android.com/ndk/index.html)
87-
2. 安装 [Homebrew](http://brew.sh/)(如果网速过慢,可设置 [Homebrew 镜像](https://mirrors.ustc.edu.cn/help/brew.git.html)),然后运行:
86+
1. 安装 [Android SDK](https://developer.android.com/sdk/index.html)
8887

88+
2. 设置相应的 ANDROID_SDK_ROOT
8989
```bash
90-
brew install automake cmake opencc boost python gradle doxygen clang capnp
90+
# Android
91+
export ANDROID_SDK_ROOT="android_sdk_path"
9192
```
9293

93-
如果使用 bash,请在 ~/.bashrc 中设置环境变量:
94+
3. 设置 Homebrew [镜像](https://mirrors.tuna.tsinghua.edu.cn/help/homebrew/)(可选)
95+
96+
4. 安装 [Homebrew](https://brew.sh/)
9497
```bash
95-
# Android
96-
export ANDROID_HOME="your_android_sdk"
97-
export ANDROID_NDK="your_android_ndk"
98-
export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$ANDROID_NDK
98+
brew install cmake capnp
9999
```
100+
100101
## 第三方库
101102
- [Boost C++ Libraries](https://www.boost.org/) (Boost Software License)
102103
- [Cap'n Proto](https://capnproto.org/) (MIT License)

README_tc.md

+9-8
Original file line numberDiff line numberDiff line change
@@ -82,20 +82,21 @@ make release
8282

8383
#### macOS
8484

85-
1. 推薦通過 Android Studio 或手動安裝 Android [SDK](https://developer.android.com/studio/index.html)[NDK](https://developer.android.com/ndk/index.html)
86-
2. 安裝 [Homebrew](http://brew.sh/)(如果網速過慢,可設置 [Homebrew 鏡像](https://mirrors.ustc.edu.cn/help/brew.git.html)),然後執行:
85+
1. 安裝 [Android SDK](https://developer.android.com/sdk/index.html)
8786

87+
2. 設置相應的 ANDROID_SDK_ROOT
8888
```bash
89-
brew install automake cmake opencc boost python gradle doxygen clang capnp
89+
# Android
90+
export ANDROID_SDK_ROOT="android_sdk_path"
9091
```
9192

92-
如果使用 bash,請在 ~/.bashrc 中設置環境變數:
93+
3. 設置 Homebrew [鏡像](https://mirrors.tuna.tsinghua.edu.cn/help/homebrew/)(可選)
94+
95+
4. 安裝 [Homebrew](https://brew.sh/)
9396
```bash
94-
# Android
95-
export ANDROID_HOME="your_android_sdk"
96-
export ANDROID_NDK="your_android_ndk"
97-
export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$ANDROID_NDK
97+
brew install cmake capnp
9898
```
99+
99100
## 第三方庫
100101
- [Boost C++ Libraries](https://www.boost.org/) (Boost Software License)
101102
- [Cap'n Proto](https://capnproto.org/) (MIT License)

0 commit comments

Comments
 (0)