diff --git a/docs/docs/en/guide/build.md b/docs/docs/en/guide/build.md index f0ec09fb..0979fec0 100644 --- a/docs/docs/en/guide/build.md +++ b/docs/docs/en/guide/build.md @@ -19,7 +19,7 @@ Execute the following commands at the root directory of the project. **Generate Project** ::: code-group ```bash [Arm64] -cmake -G Xcode -B build -S src -DCMAKE_TOOLCHAIN_FILE=../toolchain/ios.toolchain.cmake -DPLATFORM=OS64 +cmake -G Xcode -B build -S src -DCMAKE_TOOLCHAIN_FILE=../toolchain/ios.toolchain.cmake -DPLATFORM=OS64 -DCMAKE_BUILD_TYPE=Release ``` ::: @@ -52,7 +52,7 @@ Execute the following commands at the root directory of the project. **Generate Project** ::: code-group ```bash [Apple Silicon] -cmake -G Xcode -B build -S src -DCMAKE_TOOLCHAIN_FILE=../toolchain/ios.toolchain.cmake -DPLATFORM=MAC_ARM64 +cmake -G Xcode -B build -S src -DCMAKE_TOOLCHAIN_FILE=../toolchain/ios.toolchain.cmake -DPLATFORM=MAC_ARM64 -DCMAKE_BUILD_TYPE=Release ``` ```bash [Intel] cmake -G Xcode -B build -S src -DCMAKE_TOOLCHAIN_FILE=../toolchain/ios.toolchain.cmake -DPLATFORM=MAC @@ -120,29 +120,23 @@ Compiling on Windows requires the installation of CMake and MinGW64. **Generate Project** -```bash -# Generate project -cmake -G "MinGW Makefiles" -B build -S src -``` -::: code-group - ```bash [Release] -cmake --build build -DCMAKE_BUILD_TYPE=Release +cmake -G "MinGW Makefiles" -B build -S src -DCMAKE_BUILD_TYPE=Release ``` ```bash [Debug] -cmake --build build -DCMAKE_BUILD_TYPE=Debug +cmake -G "MinGW Makefiles" -B build -S src -DCMAKE_BUILD_TYPE=Debug ``` ::: + **Compile** ::: code-group - ```bash [Release] -cmake --build build -DCMAKE_BUILD_TYPE=Release +cmake --build build --config Release ``` ```bash [Debug] -cmake --build build -DCMAKE_BUILD_TYPE=Debug +cmake --build build --config Debug ``` ::: @@ -168,20 +162,23 @@ sudo apt-get install mesa-utils libglu1-mesa-dev freeglut3-dev mesa-common-dev l ``` **Generate Project** -```bash -# Generate project -cmake -B build -S src +```bash [Release] +cmake -B build -S src -DCMAKE_BUILD_TYPE=Release +``` + +```bash [Debug] +cmake -B build -S src -DCMAKE_BUILD_TYPE=Debug ``` +::: **Compile** ::: code-group - ```bash [Release] -cmake --build build -DCMAKE_BUILD_TYPE=Release +cmake --build build --config Release ``` ```bash [Debug] -cmake --build build -DCMAKE_BUILD_TYPE=Debug +cmake --build build --config Debug ``` ::: diff --git a/docs/docs/en/guide/demo.md b/docs/docs/en/guide/demo.md index 7fdb0ab0..8920a597 100644 --- a/docs/docs/en/guide/demo.md +++ b/docs/docs/en/guide/demo.md @@ -87,11 +87,11 @@ It includes the demo and the gpupixel module. The invocation logic is in `MainAc ::: code-group ```bash [Windows] # Generate project -cmake -G "MinGW Makefiles" -B examples/build -S examples +cmake -G "MinGW Makefiles" -B examples/build -S examples -DCMAKE_BUILD_TYPE=Release ``` ```bash [Linux] # Generate project -cmake -G "Unix Makefiles" -B examples/build -S examples +cmake -G "Unix Makefiles" -B examples/build -S examples -DCMAKE_BUILD_TYPE=Release ``` ::: @@ -100,12 +100,12 @@ cmake -G "Unix Makefiles" -B examples/build -S examples ```bash [Release] # Build -cmake --build build -DCMAKE_BUILD_TYPE=Release +cmake --build build --config Release ``` ```bash [Debug] # Build -cmake --build build -DCMAKE_BUILD_TYPE=Debug +cmake --build build --config Debug ``` ::: diff --git a/docs/docs/zh/guide/demo.md b/docs/docs/zh/guide/demo.md index 52699c2d..6e8e58ff 100644 --- a/docs/docs/zh/guide/demo.md +++ b/docs/docs/zh/guide/demo.md @@ -87,11 +87,11 @@ examples ::: code-group ```bash [Windows] # Generate project -cmake -G "MinGW Makefiles" -B examples/build -S examples +cmake -G "MinGW Makefiles" -B examples/build -S examples -DCMAKE_BUILD_TYPE=Release ``` ```bash [Linux] # Generate project -cmake -B examples/build -S examples +cmake -B examples/build -S examples -DCMAKE_BUILD_TYPE=Release ``` ::: @@ -100,12 +100,12 @@ cmake -B examples/build -S examples ```bash [Release] # Build -cmake --build build -DCMAKE_BUILD_TYPE=Release +cmake --build examples/build --config Release ``` ```bash [Debug] # Build -cmake --build build -DCMAKE_BUILD_TYPE=Debug +cmake --build examples/build --config Debug ``` ::: @@ -119,6 +119,11 @@ Demo运行起来后,按键盘调节美颜程度,具体如下: ## Web - +```bash +// not support yet +``` ## Python +``` bash +// not support yet +``` \ No newline at end of file