From 96dab3990e99f49460ff5b442c823c0659024de8 Mon Sep 17 00:00:00 2001 From: Oussama Teyib Date: Thu, 21 Aug 2025 19:15:25 +0000 Subject: [PATCH] Updated Working for Android (markdown) --- Working-for-Android.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Working-for-Android.md b/Working-for-Android.md index fa505fd..f7ea403 100644 --- a/Working-for-Android.md +++ b/Working-for-Android.md @@ -92,12 +92,18 @@ You can build raylib using either **CMake** or **Make**. Follow the steps below ``` - By default, the static library `libraylib.a` will be generated in `raylib/src/` +3. Build raylib as a shared library: + + You can build raylib as a shared library by passing the appropriate option for your build system: + - **CMake**: `-DBUILD_SHARED_LIBS=ON` + - **Make**: `RAYLIB_LIBTYPE=SHARED` + + You might also find [this discussion](https://github.com/raysan5/raylib/issues/5114) helpful. + + > [!WARNING] > Your Android device may have a 64-bit CPU, but the installed OS could still be 32-bit. Make sure the selected ABI matches your device architecture. -> [!NOTE] -> You can build raylib as a shared library (`-DBUILD_SHARED_LIBS=ON` for CMake, `RAYLIB_LIBTYPE=SHARED` for Make), but this is discouraged due to [known issues](https://github.com/raysan5/raylib/issues/5114). - --- ## Implementation for Android Studio