diff options
| author | raysan5 <raysan5@gmail.com> | 2014-09-16 23:10:27 +0200 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2014-09-16 23:10:27 +0200 |
| commit | 983cc8d291b7bf70d60e9b6dbbb6526b7c9e58bb (patch) | |
| tree | c77755a7df6335ae9747fb9a54df7fec686640e8 /src_android/jni/Android.mk | |
| parent | 8e2680f41fbab871cfdbb01fc945803f9af6e12a (diff) | |
| download | raylib-983cc8d291b7bf70d60e9b6dbbb6526b7c9e58bb.tar.gz raylib-983cc8d291b7bf70d60e9b6dbbb6526b7c9e58bb.zip | |
Android project to compile raylib src
Diffstat (limited to 'src_android/jni/Android.mk')
| -rw-r--r-- | src_android/jni/Android.mk | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/src_android/jni/Android.mk b/src_android/jni/Android.mk new file mode 100644 index 00000000..56316b17 --- /dev/null +++ b/src_android/jni/Android.mk @@ -0,0 +1,60 @@ +#************************************************************************************************** +# +# raylib for Android +# +# Static library compilation +# +# Copyright (c) 2014 Ramon Santamaria (Ray San - raysan@raysanweb.com) +# +# This software is provided "as-is", without any express or implied warranty. In no event +# will the authors be held liable for any damages arising from the use of this software. +# +# Permission is granted to anyone to use this software for any purpose, including commercial +# applications, and to alter it and redistribute it freely, subject to the following restrictions: +# +# 1. The origin of this software must not be misrepresented; you must not claim that you +# wrote the original software. If you use this software in a product, an acknowledgment +# in the product documentation would be appreciated but is not required. +# +# 2. Altered source versions must be plainly marked as such, and must not be misrepresented +# as being the original software. +# +# 3. This notice may not be removed or altered from any source distribution. +# +#************************************************************************************************** + +# Path of the current directory (i.e. the directory containing the Android.mk file itself) +LOCAL_PATH := $(call my-dir) + +# raylib static library compilation +# NOTE: It uses source placed on relative path ../../src from this file +#----------------------------------------------------------------------- +# Makefile that will clear many LOCAL_XXX variables for you +include $(CLEAR_VARS) + +# Module name +LOCAL_MODULE := raylib + +# Module source files +LOCAL_SRC_FILES :=\ + ../../src/core.c \ + ../../src/rlgl.c \ + ../../src/raymath.c \ + ../../src/stb_image.c \ + ../../src/textures.c \ + ../../src/text.c \ + ../../src/shapes.c \ + ../../src/models.c \ + ../../src/utils.c \ + ../../src/audio.c \ + ../../src/stb_vorbis.c \ + +# Required includes paths (.h) +LOCAL_C_INCLUDES := $(LOCAL_PATH) $(LOCAL_PATH)/include $(LOCAL_PATH)/../../src + +# Required flags for compilation: defines PLATFORM_ANDROID and GRAPHICS_API_OPENGL_ES2 +LOCAL_CFLAGS := -Wall -std=c99 -g -DPLATFORM_ANDROID -DGRAPHICS_API_OPENGL_ES2 + +# Build the static library libraylib.a +include $(BUILD_STATIC_LIBRARY) +#-------------------------------------------------------------------- |
