From 1e04e2cae5bbed941c558cdc05af9ad88bef3014 Mon Sep 17 00:00:00 2001 From: hero2002 Date: Sat, 8 Jan 2022 20:58:12 +0200 Subject: [PATCH] improved the cmake config for android so it don't conflict --- cmake/LibraryConfigurations.cmake | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/cmake/LibraryConfigurations.cmake b/cmake/LibraryConfigurations.cmake index a59fd3148..b7874888f 100644 --- a/cmake/LibraryConfigurations.cmake +++ b/cmake/LibraryConfigurations.cmake @@ -40,15 +40,7 @@ elseif (${PLATFORM} MATCHES "Android") set(PLATFORM_CPP "PLATFORM_ANDROID") set(GRAPHICS "GRAPHICS_API_OPENGL_ES2") set(CMAKE_POSITION_INDEPENDENT_CODE ON) - set(raylib_sources - rcore.c - rmodels.c - rshapes.c - rtext.c - rtextures.c - utils.c - ${ANDROID_NDK}/sources/android/native_app_glue/android_native_app_glue.c - ) + set(raylib_sources "${raylib_sources} ${ANDROID_NDK}/sources/android/native_app_glue/android_native_app_glue.c") add_definitions(-DANDROID -D__ANDROID_API__=21) include_directories(${ANDROID_NDK}/sources/android/native_app_glue) set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--exclude-libs,libatomic.a -Wl,--build-id -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--warn-shared-textrel -Wl,--fatal-warnings -u ANativeActivity_onCreate -Wl,-undefined,dynamic_lookup")