From 518bdfc134bfa00426f22abd574831f7ec51924a Mon Sep 17 00:00:00 2001 From: Ray Date: Thu, 11 May 2017 16:45:49 +0200 Subject: Some work on Android build --- src/Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/Makefile b/src/Makefile index bf19018b..e9de5623 100644 --- a/src/Makefile +++ b/src/Makefile @@ -101,7 +101,7 @@ ifeq ($(PLATFORM),PLATFORM_ANDROID) # Android standalone toolchain path # NOTE: This path is also used if toolchain generation #ANDROID_TOOLCHAIN = $(CURDIR)/toolchain - ANDROID_TOOLCHAIN = C:/raylib/android-standalone-toolchain + ANDROID_TOOLCHAIN = C:/raylib/android-toolchain # Android architecture: ARM or ARM64 ANDROID_ARCH ?= ARM @@ -230,8 +230,13 @@ endif # external required libraries (stb and others) INCLUDES = -I. -Iexternal + # OpenAL Soft library -INCLUDES += -Iexternal/openal_soft/include +ifeq ($(PLATFORM),PLATFORM_ANDROID) + INCLUDES += -Iandroid/jni/include/AL +else + INCLUDES += -Iexternal/openal_soft/include +endif # define any directories containing required header files ifeq ($(PLATFORM),PLATFORM_DESKTOP) @@ -377,7 +382,6 @@ external/stb_vorbis.o: external/stb_vorbis.c external/stb_vorbis.h utils.o : utils.c utils.h $(CC) -c $< $(CFLAGS) $(INCLUDES) -D$(PLATFORM) -D$(SHAREDFLAG) - # It installs generated and needed files to compile projects using raylib. # The installation works manually. # TODO: add other platforms. -- cgit v1.2.3