diff options
| author | victorfisac <victorfisac@gmail.com> | 2016-06-07 23:41:34 +0200 |
|---|---|---|
| committer | victorfisac <victorfisac@gmail.com> | 2016-06-07 23:41:34 +0200 |
| commit | f97f39987c1b35205eb6824d017a1c288ce64a2d (patch) | |
| tree | 843d8839997deb76b541579b0aa6591a6753108d /src/android/jni/Android.mk | |
| parent | 11cf455fe0d2c956043aa70f7d8256c4a339b430 (diff) | |
| parent | 5631f822bd9195d494915d3b2bb80caf47a65068 (diff) | |
| download | raylib-f97f39987c1b35205eb6824d017a1c288ce64a2d.tar.gz raylib-f97f39987c1b35205eb6824d017a1c288ce64a2d.zip | |
Merge remote-tracking branch 'refs/remotes/raysan5/develop' into develop
Diffstat (limited to 'src/android/jni/Android.mk')
| -rw-r--r-- | src/android/jni/Android.mk | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/src/android/jni/Android.mk b/src/android/jni/Android.mk new file mode 100644 index 00000000..a9178dac --- /dev/null +++ b/src/android/jni/Android.mk @@ -0,0 +1,59 @@ +#************************************************************************************************** +# +# 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 :=\ + ../../core.c \ + ../../rlgl.c \ + ../../textures.c \ + ../../text.c \ + ../../shapes.c \ + ../../gestures.c \ + ../../models.c \ + ../../utils.c \ + ../../audio.c \ + ../../stb_vorbis.c \ + +# Required includes paths (.h) +LOCAL_C_INCLUDES := $(LOCAL_PATH) $(LOCAL_PATH)/include $(LOCAL_PATH)/../.. + +# Required flags for compilation: defines PLATFORM_ANDROID and GRAPHICS_API_OPENGL_ES2 +LOCAL_CFLAGS := -Wall -std=c99 -Wno-missing-braces -DPLATFORM_ANDROID -DGRAPHICS_API_OPENGL_ES2 + +# Build the static library libraylib.a +include $(BUILD_STATIC_LIBRARY) +#-------------------------------------------------------------------- |
