Use the recommended `MinSizeRel` instead of `Release` for CMake

master
Oussama Teyib 4 months ago
parent
commit
0b539707f3
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      Working-for-Android.md

+ 4
- 4
Working-for-Android.md

@ -60,9 +60,9 @@ You can build raylib using either **CMake** or **Make**. Follow the steps below
- Build raylib as a static library:
```
cmake -B Build \
-G <build_system> \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_TOOLCHAIN_FILE=<path_to_ndk>/build/cmake/android.toolchain.cmake \
-G "<build_system>" \
-DCMAKE_BUILD_TYPE=MinSizeRel \
-DCMAKE_TOOLCHAIN_FILE=<path_to_ndk>\build\cmake\android.toolchain.cmake \
-DPLATFORM=Android \
-DANDROID_ABI=<abi> \
-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:
```
cd raylib/src
cd raylib\src
```
- Build the library:
```

Loading…
Cancel
Save