mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-25 10:22:33 -05:00
Update Android libs and building
This commit is contained in:
15
src/Makefile
15
src/Makefile
@ -97,14 +97,9 @@ ifeq ($(PLATFORM),PLATFORM_WEB)
|
||||
endif
|
||||
|
||||
ifeq ($(PLATFORM),PLATFORM_ANDROID)
|
||||
# Android NDK path
|
||||
# NOTE: Required for standalone toolchain generation
|
||||
ANDROID_NDK = $(ANDROID_NDK_HOME)
|
||||
|
||||
# Android standalone toolchain path
|
||||
# NOTE: This path is also used if toolchain generation
|
||||
#ANDROID_TOOLCHAIN = $(CURDIR)/toolchain
|
||||
ANDROID_TOOLCHAIN = $(RAYLIB_PATH)/android-toolchain
|
||||
# Android required path variables
|
||||
ANDROID_NDK = C:/android-ndk
|
||||
ANDROID_TOOLCHAIN = C:/android_toolchain_arm_api16
|
||||
|
||||
# Android architecture: ARM or ARM64
|
||||
ANDROID_ARCH ?= ARM
|
||||
@ -217,6 +212,10 @@ ifeq ($(PLATFORM),PLATFORM_WEB)
|
||||
# -s USE_PTHREADS=1 # multithreading support
|
||||
endif
|
||||
|
||||
ifeq ($(PLATFORM),PLATFORM_ANDROID)
|
||||
CFLAGS += -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16
|
||||
endif
|
||||
|
||||
#CFLAGSEXTRA = -Wextra -Wmissing-prototypes -Wstrict-prototypes
|
||||
|
||||
# if shared library required, make sure code is compiled as position independent
|
||||
|
||||
Reference in New Issue
Block a user