mirror of
https://github.com/raysan5/raylib.git
synced 2026-01-30 02:39:17 -05:00
Use the recommended MinSizeRel instead of Release for CMake
@ -60,9 +60,9 @@ You can build raylib using either **CMake** or **Make**. Follow the steps below
|
|||||||
- Build raylib as a static library:
|
- Build raylib as a static library:
|
||||||
```
|
```
|
||||||
cmake -B Build \
|
cmake -B Build \
|
||||||
-G <build_system> \
|
-G "<build_system>" \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=MinSizeRel \
|
||||||
-DCMAKE_TOOLCHAIN_FILE=<path_to_ndk>/build/cmake/android.toolchain.cmake \
|
-DCMAKE_TOOLCHAIN_FILE=<path_to_ndk>\build\cmake\android.toolchain.cmake \
|
||||||
-DPLATFORM=Android \
|
-DPLATFORM=Android \
|
||||||
-DANDROID_ABI=<abi> \
|
-DANDROID_ABI=<abi> \
|
||||||
-DANDROID_PLATFORM=<minimum-api-level> \
|
-DANDROID_PLATFORM=<minimum-api-level> \
|
||||||
@ -81,7 +81,7 @@ You can build raylib using either **CMake** or **Make**. Follow the steps below
|
|||||||
|
|
||||||
- Navigate to the source folder:
|
- Navigate to the source folder:
|
||||||
```
|
```
|
||||||
cd raylib/src
|
cd raylib\src
|
||||||
```
|
```
|
||||||
- Build the library:
|
- Build the library:
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user