diff --git a/doc/docs/introduction/how-to-build.md b/doc/docs/introduction/how-to-build.md index d91a06df..93245ee0 100644 --- a/doc/docs/introduction/how-to-build.md +++ b/doc/docs/introduction/how-to-build.md @@ -14,10 +14,6 @@ import TabItem from '@theme/TabItem'; git clone https://github.com/alibaba/PhotonLibOS.git ``` -:::tip -For China mainland developers, if you are having connection issues to github, please try the [mirror repo](https://gitee.com/mirrors/photonlibos.git). -::: - ### Install dependencies ```mdx-code-block @@ -150,7 +146,7 @@ ctest brew install gflags googletest gsasl # Build examples and test code -cmake -B build -D PHOTON_BUILD_TESTING=ON +cmake -B build -D OPENSSL_ROOT_DIR=/usr/local/opt/openssl@1.1 -D PHOTON_BUILD_TESTING=ON cmake --build build -j 8 # Run all test cases @@ -163,7 +159,7 @@ ctest ``` -### Build Options +### Extra Build Options | Option | Default | Description | |:-------------------------:|:-------:|:---------------------------------------------------------:| @@ -176,6 +172,7 @@ ctest | PHOTON_ENABLE_SASL | OFF | Enable SASL. Requires `libgsasl` | | PHOTON_ENABLE_FSTACK_DPDK | OFF | Enable F-Stack and DPDK. Requires both. | | PHOTON_ENABLE_EXTFS | OFF | Enable extfs. Requires `libe2fs` | +| PHOTON_ENABLE_ECOSYSTEM | OFF | Enable ecosystem tools and wrappers | #### Case 1. Staitcally build all third-party libs diff --git a/doc/i18n/cn/docusaurus-plugin-content-docs/current/introduction/how-to-build.md b/doc/i18n/cn/docusaurus-plugin-content-docs/current/introduction/how-to-build.md index 4eb8d62b..3e722e82 100644 --- a/doc/i18n/cn/docusaurus-plugin-content-docs/current/introduction/how-to-build.md +++ b/doc/i18n/cn/docusaurus-plugin-content-docs/current/introduction/how-to-build.md @@ -64,7 +64,7 @@ brew install cmake openssl pkg-config ```bash cd PhotonLibOS cmake -B build -cmake --build build -j +cmake --build build -j 8 ``` ```mdx-code-block @@ -75,7 +75,7 @@ cmake --build build -j ```bash cd PhotonLibOS cmake -B build -cmake --build build -j +cmake --build build -j 8 ``` ```mdx-code-block @@ -85,8 +85,8 @@ cmake --build build -j ```bash cd PhotonLibOS -cmake -B build -cmake --build build -j +cmake -B build -D OPENSSL_ROOT_DIR=/usr/local/opt/openssl@1.1 +cmake --build build -j 8 ``` ```mdx-code-block @@ -115,7 +115,7 @@ dnf install gtest-devel gmock-devel gflags-devel fuse-devel libgsasl-devel # Build examples and test code cmake -B build -D PHOTON_BUILD_TESTING=ON -cmake --build build -j +cmake --build build -j 8 # Run all test cases cd build @@ -133,7 +133,7 @@ apt install libgtest-dev libgmock-dev libgflags-dev libfuse-dev libgsasl7-dev # Build examples and test code cmake -B build -D PHOTON_BUILD_TESTING=ON -cmake --build build -j +cmake --build build -j 8 # Run all test cases cd build @@ -150,8 +150,8 @@ ctest brew install gflags googletest gsasl # Build examples and test code -cmake -B build -D PHOTON_BUILD_TESTING=ON -cmake --build build -j +cmake -B build -D OPENSSL_ROOT_DIR=/usr/local/opt/openssl@1.1 -D PHOTON_BUILD_TESTING=ON +cmake --build build -j 8 # Run all test cases cd build @@ -163,7 +163,7 @@ ctest ``` -### 编译选项 +### 高级编译选项 | Option | Default | Description | |:-------------------------:|:-------:|:----------------------------------------------:| @@ -176,6 +176,7 @@ ctest | PHOTON_ENABLE_SASL | OFF | 开启 SASL. 需要 `libgsasl` | | PHOTON_ENABLE_FSTACK_DPDK | OFF | 开启 F-Stack and DPDK,需要两者的库 | | PHOTON_ENABLE_EXTFS | OFF | 开启 extfs. 需要 `libe2fs` | +| PHOTON_ENABLE_ECOSYSTEM | OFF | 编译Photon生态库,包含一些三方工具和封装 | #### 例子1