2017-01-27 16:43:49 -05:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
|
|
|
|
# OpenAL
|
|
|
|
LOCAL_MODULE := openal
|
2021-09-25 02:57:03 -04:00
|
|
|
LOCAL_SRC_FILES := deps-$(TARGET_ARCH_ABI)/openal/libopenal.a
|
2017-01-27 16:43:49 -05:00
|
|
|
include $(PREBUILT_STATIC_LIBRARY)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
|
|
|
|
# OGG
|
|
|
|
LOCAL_MODULE := ogg
|
2021-09-25 02:57:03 -04:00
|
|
|
LOCAL_SRC_FILES := deps-$(TARGET_ARCH_ABI)/libogg/libogg.a
|
2017-01-27 16:43:49 -05:00
|
|
|
include $(PREBUILT_STATIC_LIBRARY)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
|
|
|
|
# Vorbis
|
|
|
|
LOCAL_MODULE := vorbis
|
2021-09-25 02:57:03 -04:00
|
|
|
LOCAL_SRC_FILES := deps-$(TARGET_ARCH_ABI)/libvorbis/lib/libvorbis.a
|
2017-01-27 16:43:49 -05:00
|
|
|
include $(PREBUILT_STATIC_LIBRARY)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
|
|
|
|
# Vorbisfile
|
|
|
|
LOCAL_MODULE := vorbisfile
|
2021-09-25 02:57:03 -04:00
|
|
|
LOCAL_SRC_FILES := deps-$(TARGET_ARCH_ABI)/libvorbis/lib/libvorbisfile.a
|
2017-01-27 16:43:49 -05:00
|
|
|
include $(PREBUILT_STATIC_LIBRARY)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
|
|
|
|
# CURL
|
|
|
|
LOCAL_MODULE := curl
|
2021-09-25 02:57:03 -04:00
|
|
|
LOCAL_SRC_FILES := deps-$(TARGET_ARCH_ABI)/curl/lib/libcurl.a
|
2017-01-27 16:43:49 -05:00
|
|
|
include $(PREBUILT_STATIC_LIBRARY)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
|
2021-05-02 00:28:42 -04:00
|
|
|
# libmbedtls
|
|
|
|
LOCAL_MODULE := libmbedtls
|
2021-09-25 02:57:03 -04:00
|
|
|
LOCAL_SRC_FILES := deps-$(TARGET_ARCH_ABI)/mbedtls/library/libmbedtls.a
|
2017-01-27 16:43:49 -05:00
|
|
|
include $(PREBUILT_STATIC_LIBRARY)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
|
2021-05-02 00:28:42 -04:00
|
|
|
# libmbedcrypto
|
|
|
|
LOCAL_MODULE := libmbedcrypto
|
2021-09-25 02:57:03 -04:00
|
|
|
LOCAL_SRC_FILES := deps-$(TARGET_ARCH_ABI)/mbedtls/library/libmbedcrypto.a
|
2021-05-02 00:28:42 -04:00
|
|
|
include $(PREBUILT_STATIC_LIBRARY)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
|
|
|
|
# libmbedx509
|
|
|
|
LOCAL_MODULE := libmbedx509
|
2021-09-25 02:57:03 -04:00
|
|
|
LOCAL_SRC_FILES := deps-$(TARGET_ARCH_ABI)/mbedtls/library/libmbedx509.a
|
2017-01-27 16:43:49 -05:00
|
|
|
include $(PREBUILT_STATIC_LIBRARY)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
|
|
|
|
# JPEG
|
2020-05-13 22:13:57 -04:00
|
|
|
LOCAL_MODULE := libjpeg
|
2021-09-25 02:57:03 -04:00
|
|
|
LOCAL_SRC_FILES := deps-$(TARGET_ARCH_ABI)/libjpeg/libjpeg.a
|
2017-01-27 16:43:49 -05:00
|
|
|
include $(PREBUILT_STATIC_LIBRARY)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
|
|
|
|
# zlib
|
|
|
|
LOCAL_MODULE := zlib
|
2021-09-25 02:57:03 -04:00
|
|
|
LOCAL_SRC_FILES := deps-$(TARGET_ARCH_ABI)/zlib/libz.a
|
2017-01-27 16:43:49 -05:00
|
|
|
include $(PREBUILT_STATIC_LIBRARY)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
|
|
|
|
# PNG
|
|
|
|
LOCAL_MODULE := png
|
2021-09-25 02:57:03 -04:00
|
|
|
LOCAL_SRC_FILES := deps-$(TARGET_ARCH_ABI)/libpng/libpng.a
|
2017-01-27 16:43:49 -05:00
|
|
|
include $(PREBUILT_STATIC_LIBRARY)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
|
2019-06-10 01:54:10 -04:00
|
|
|
# Freetype
|
|
|
|
LOCAL_MODULE := freetype
|
2021-09-25 02:57:03 -04:00
|
|
|
LOCAL_SRC_FILES := deps-$(TARGET_ARCH_ABI)/freetype/build/libfreetype.a
|
2019-06-10 01:54:10 -04:00
|
|
|
include $(PREBUILT_STATIC_LIBRARY)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
|
|
|
|
# Harfbuzz
|
|
|
|
LOCAL_MODULE := harfbuzz
|
2021-09-25 02:57:03 -04:00
|
|
|
LOCAL_SRC_FILES := deps-$(TARGET_ARCH_ABI)/harfbuzz/build/libharfbuzz.a
|
2019-06-10 01:54:10 -04:00
|
|
|
include $(PREBUILT_STATIC_LIBRARY)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
|
2022-08-08 21:26:05 -04:00
|
|
|
# shaderc
|
|
|
|
LOCAL_MODULE := shaderc
|
|
|
|
LOCAL_SRC_FILES := deps-$(TARGET_ARCH_ABI)/shaderc/libshaderc/libshaderc_combined.a
|
|
|
|
include $(PREBUILT_STATIC_LIBRARY)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
|
2022-08-07 23:32:01 -04:00
|
|
|
# libsquish
|
|
|
|
LOCAL_MODULE := libsquish
|
|
|
|
LOCAL_SRC_FILES := deps-$(TARGET_ARCH_ABI)/libsquish/libsquish.a
|
|
|
|
include $(PREBUILT_STATIC_LIBRARY)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
|
|
|
|
# astc-encoder
|
|
|
|
LOCAL_MODULE := libastcenc
|
|
|
|
LOCAL_SRC_FILES := deps-$(TARGET_ARCH_ABI)/astc-encoder/Source/libastcenc.a
|
|
|
|
include $(PREBUILT_STATIC_LIBRARY)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
|
2017-01-27 16:43:49 -05:00
|
|
|
# ifaddrs
|
|
|
|
LOCAL_MODULE := ifaddrs
|
|
|
|
LOCAL_PATH := .
|
|
|
|
LOCAL_SRC_FILES := ../lib/ifaddrs/ifaddrs.c
|
|
|
|
LOCAL_CFLAGS := -I../lib/ifaddrs
|
2021-10-04 06:15:21 -04:00
|
|
|
# Starting NDK21 it enables NEON by default on 32-bit ARM target
|
|
|
|
# Disable it to support more phones
|
|
|
|
ifeq ($(TARGET_ARCH_ABI), armeabi-v7a)
|
|
|
|
LOCAL_ARM_NEON := false
|
|
|
|
endif
|
2017-01-27 16:43:49 -05:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
|
|
|
|
# AngelScript
|
|
|
|
LOCAL_MODULE := angelscript
|
|
|
|
LOCAL_PATH := .
|
|
|
|
LOCAL_CPP_FEATURES += rtti exceptions
|
|
|
|
LOCAL_SRC_FILES := $(wildcard ../lib/angelscript/source/*.S) \
|
|
|
|
$(wildcard ../lib/angelscript/source/*.cpp)
|
|
|
|
LOCAL_CFLAGS := -I../lib/angelscript/source/
|
2021-10-04 06:15:21 -04:00
|
|
|
ifeq ($(TARGET_ARCH_ABI), armeabi-v7a)
|
|
|
|
LOCAL_ARM_NEON := false
|
|
|
|
endif
|
2017-01-27 16:43:49 -05:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
|
|
|
|
# ENET
|
|
|
|
LOCAL_MODULE := enet
|
|
|
|
LOCAL_PATH := .
|
|
|
|
LOCAL_CPP_FEATURES += rtti
|
|
|
|
LOCAL_SRC_FILES := $(wildcard ../lib/enet/*.c)
|
2019-08-21 02:59:13 -04:00
|
|
|
LOCAL_CFLAGS := -I../lib/enet/include/ -DHAS_SOCKLEN_T -DENABLE_IPV6
|
2021-10-04 06:15:21 -04:00
|
|
|
ifeq ($(TARGET_ARCH_ABI), armeabi-v7a)
|
|
|
|
LOCAL_ARM_NEON := false
|
|
|
|
endif
|
2017-01-27 16:43:49 -05:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
|
|
|
|
# Bullet
|
|
|
|
LOCAL_MODULE := bullet
|
|
|
|
LOCAL_PATH := .
|
|
|
|
LOCAL_CPP_FEATURES += rtti
|
|
|
|
LOCAL_SRC_FILES := $(wildcard ../lib/bullet/src/*/*.cpp) \
|
|
|
|
$(wildcard ../lib/bullet/src/*/*/*.cpp)
|
|
|
|
LOCAL_CFLAGS := -I../lib/bullet/src/
|
2021-10-04 06:15:21 -04:00
|
|
|
ifeq ($(TARGET_ARCH_ABI), armeabi-v7a)
|
|
|
|
LOCAL_ARM_NEON := false
|
|
|
|
endif
|
2017-01-27 16:43:49 -05:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
2019-06-22 13:02:05 -04:00
|
|
|
|
|
|
|
# Graphics utils
|
|
|
|
LOCAL_MODULE := graphics_utils
|
|
|
|
LOCAL_PATH := .
|
|
|
|
LOCAL_CPP_FEATURES += rtti
|
|
|
|
LOCAL_SRC_FILES := $(wildcard ../lib/graphics_utils/mipmap/*.c)
|
2022-04-28 23:28:47 -04:00
|
|
|
LOCAL_CFLAGS := -I../lib/graphics_utils/mipmap \
|
|
|
|
-I../lib/simd_wrapper
|
2021-10-04 06:15:21 -04:00
|
|
|
ifeq ($(TARGET_ARCH_ABI), armeabi-v7a)
|
|
|
|
LOCAL_ARM_NEON := false
|
|
|
|
endif
|
2019-06-22 13:02:05 -04:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
|
2020-12-03 21:04:44 -05:00
|
|
|
# Graphics engine
|
|
|
|
LOCAL_MODULE := graphics_engine
|
|
|
|
LOCAL_PATH := .
|
2021-06-09 13:02:24 -04:00
|
|
|
LOCAL_CPP_FEATURES += rtti exceptions
|
2021-04-13 21:34:59 -04:00
|
|
|
LOCAL_SRC_FILES := $(wildcard ../lib/graphics_engine/src/*.c) \
|
|
|
|
$(wildcard ../lib/graphics_engine/src/*.cpp)
|
2022-08-08 21:26:05 -04:00
|
|
|
LOCAL_CFLAGS := -DENABLE_LIBASTCENC \
|
|
|
|
-I../lib/graphics_engine/include \
|
|
|
|
-I../lib/graphics_utils \
|
|
|
|
-I../lib/sdl2/include/ \
|
|
|
|
-I../lib/bullet/src/ \
|
|
|
|
-I../lib/irrlicht/include/ \
|
|
|
|
-I../lib/shaderc/libshaderc/include \
|
|
|
|
-I../lib/libsquish \
|
2022-08-07 23:32:01 -04:00
|
|
|
-Ideps-$(TARGET_ARCH_ABI)/astc-encoder/Source
|
2021-10-04 06:15:21 -04:00
|
|
|
ifeq ($(TARGET_ARCH_ABI), armeabi-v7a)
|
|
|
|
LOCAL_ARM_NEON := false
|
|
|
|
endif
|
2022-08-07 23:32:01 -04:00
|
|
|
LOCAL_STATIC_LIBRARIES := shaderc libsquish libastcenc
|
2020-12-03 21:04:44 -05:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
|
2020-01-03 00:25:26 -05:00
|
|
|
# MCPP
|
|
|
|
LOCAL_MODULE := mcpp
|
|
|
|
LOCAL_PATH := .
|
|
|
|
LOCAL_CPP_FEATURES += rtti
|
|
|
|
LOCAL_SRC_FILES := $(wildcard ../lib/mcpp/*.c)
|
|
|
|
LOCAL_CFLAGS := -DMCPP_LIB -DHAVE_CONFIG_H
|
2021-10-04 06:15:21 -04:00
|
|
|
ifeq ($(TARGET_ARCH_ABI), armeabi-v7a)
|
|
|
|
LOCAL_ARM_NEON := false
|
|
|
|
endif
|
2020-01-03 00:25:26 -05:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
|
2020-08-23 12:53:04 -04:00
|
|
|
# SheenBidi
|
|
|
|
LOCAL_MODULE := sheenbidi
|
|
|
|
LOCAL_PATH := .
|
|
|
|
LOCAL_CPP_FEATURES += rtti
|
|
|
|
LOCAL_SRC_FILES := $(wildcard ../lib/sheenbidi/Source/*.c)
|
|
|
|
LOCAL_CFLAGS := -I../lib/sheenbidi/Headers
|
2021-10-04 06:15:21 -04:00
|
|
|
ifeq ($(TARGET_ARCH_ABI), armeabi-v7a)
|
|
|
|
LOCAL_ARM_NEON := false
|
|
|
|
endif
|
2020-08-23 12:53:04 -04:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
|
2020-09-09 01:27:10 -04:00
|
|
|
# tinygettext
|
|
|
|
LOCAL_MODULE := tinygettext
|
|
|
|
LOCAL_PATH := .
|
|
|
|
LOCAL_CPP_FEATURES += rtti exceptions
|
|
|
|
LOCAL_SRC_FILES := $(wildcard ../lib/tinygettext/src/*.cpp)
|
2020-09-09 01:29:17 -04:00
|
|
|
LOCAL_CFLAGS := -I../lib/tinygettext/include -DDISABLE_ICONV
|
2021-10-04 06:15:21 -04:00
|
|
|
ifeq ($(TARGET_ARCH_ABI), armeabi-v7a)
|
|
|
|
LOCAL_ARM_NEON := false
|
|
|
|
endif
|
2020-09-09 01:27:10 -04:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
|
2017-01-27 16:43:49 -05:00
|
|
|
# Irrlicht
|
|
|
|
LOCAL_MODULE := irrlicht
|
|
|
|
LOCAL_PATH := .
|
2021-06-09 13:02:24 -04:00
|
|
|
LOCAL_CPP_FEATURES += rtti exceptions
|
2020-07-11 20:25:06 -04:00
|
|
|
LOCAL_SRC_FILES := $(wildcard ../lib/irrlicht/source/Irrlicht/*.cpp)
|
2017-01-27 16:43:49 -05:00
|
|
|
LOCAL_CFLAGS := -I../lib/irrlicht/source/Irrlicht/ \
|
|
|
|
-I../lib/irrlicht/include/ \
|
2019-06-26 04:12:22 -04:00
|
|
|
-I../src \
|
2021-09-25 02:57:03 -04:00
|
|
|
-Ideps-$(TARGET_ARCH_ABI)/libjpeg/ \
|
|
|
|
-Ideps-$(TARGET_ARCH_ABI)/libpng/ \
|
|
|
|
-Ideps-$(TARGET_ARCH_ABI)/zlib/ \
|
2020-04-21 03:28:02 -04:00
|
|
|
-I../lib/sdl2/include/ \
|
2020-12-03 21:04:44 -05:00
|
|
|
-I../lib/graphics_engine/include \
|
2020-07-11 20:25:06 -04:00
|
|
|
-DMOBILE_STK \
|
2019-05-17 21:15:58 -04:00
|
|
|
-DANDROID_PACKAGE_CALLBACK_NAME=$(PACKAGE_CALLBACK_NAME)
|
2018-07-26 16:20:53 -04:00
|
|
|
LOCAL_CPPFLAGS := -std=gnu++0x
|
2020-05-13 22:13:57 -04:00
|
|
|
LOCAL_STATIC_LIBRARIES := libjpeg png zlib
|
2021-10-04 06:15:21 -04:00
|
|
|
ifeq ($(TARGET_ARCH_ABI), armeabi-v7a)
|
|
|
|
LOCAL_ARM_NEON := false
|
|
|
|
endif
|
2017-01-27 16:43:49 -05:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
2021-10-03 23:41:04 -04:00
|
|
|
|
2020-04-21 03:28:02 -04:00
|
|
|
# SDL2
|
|
|
|
LOCAL_MODULE := SDL2
|
|
|
|
LOCAL_PATH := .
|
|
|
|
LOCAL_SRC_FILES := $(wildcard ../lib/sdl2/src/*.c) \
|
|
|
|
$(wildcard ../lib/sdl2/src/audio/*.c) \
|
|
|
|
$(wildcard ../lib/sdl2/src/audio/android/*.c) \
|
|
|
|
$(wildcard ../lib/sdl2/src/audio/dummy/*.c) \
|
2021-10-03 23:41:04 -04:00
|
|
|
$(wildcard ../lib/sdl2/src/audio/aaudio/*.c) \
|
2020-04-21 03:28:02 -04:00
|
|
|
$(wildcard ../lib/sdl2/src/audio/openslES/*.c) \
|
2021-10-03 23:41:04 -04:00
|
|
|
../lib/sdl2/src/atomic/SDL_atomic.c.arm \
|
|
|
|
../lib/sdl2/src/atomic/SDL_spinlock.c.arm \
|
2020-04-21 03:28:02 -04:00
|
|
|
$(wildcard ../lib/sdl2/src/core/android/*.c) \
|
|
|
|
$(wildcard ../lib/sdl2/src/cpuinfo/*.c) \
|
|
|
|
$(wildcard ../lib/sdl2/src/dynapi/*.c) \
|
|
|
|
$(wildcard ../lib/sdl2/src/events/*.c) \
|
|
|
|
$(wildcard ../lib/sdl2/src/file/*.c) \
|
|
|
|
$(wildcard ../lib/sdl2/src/haptic/*.c) \
|
|
|
|
$(wildcard ../lib/sdl2/src/haptic/android/*.c) \
|
2021-12-23 21:57:13 -05:00
|
|
|
$(wildcard ../lib/sdl2/src/hidapi/*.c) \
|
|
|
|
$(wildcard ../lib/sdl2/src/hidapi/android/*.cpp) \
|
2020-04-21 03:28:02 -04:00
|
|
|
$(wildcard ../lib/sdl2/src/joystick/*.c) \
|
|
|
|
$(wildcard ../lib/sdl2/src/joystick/android/*.c) \
|
|
|
|
$(wildcard ../lib/sdl2/src/joystick/hidapi/*.c) \
|
|
|
|
$(wildcard ../lib/sdl2/src/joystick/virtual/*.c) \
|
2021-12-23 21:57:13 -05:00
|
|
|
$(wildcard ../lib/sdl2/src/loadso/dlopen/*.c) \
|
2020-05-13 22:07:35 -04:00
|
|
|
$(wildcard ../lib/sdl2/src/locale/android/*.c) \
|
|
|
|
$(wildcard ../lib/sdl2/src/locale/*.c) \
|
2020-12-03 21:04:44 -05:00
|
|
|
$(wildcard ../lib/sdl2/src/misc/*.c) \
|
|
|
|
$(wildcard ../lib/sdl2/src/misc/android/*.c) \
|
2020-04-21 03:28:02 -04:00
|
|
|
$(wildcard ../lib/sdl2/src/power/*.c) \
|
|
|
|
$(wildcard ../lib/sdl2/src/power/android/*.c) \
|
|
|
|
$(wildcard ../lib/sdl2/src/filesystem/android/*.c) \
|
|
|
|
$(wildcard ../lib/sdl2/src/sensor/*.c) \
|
|
|
|
$(wildcard ../lib/sdl2/src/sensor/android/*.c) \
|
|
|
|
$(wildcard ../lib/sdl2/src/render/*.c) \
|
|
|
|
$(wildcard ../lib/sdl2/src/render/*/*.c) \
|
|
|
|
$(wildcard ../lib/sdl2/src/stdlib/*.c) \
|
|
|
|
$(wildcard ../lib/sdl2/src/thread/*.c) \
|
|
|
|
$(wildcard ../lib/sdl2/src/thread/pthread/*.c) \
|
|
|
|
$(wildcard ../lib/sdl2/src/timer/*.c) \
|
|
|
|
$(wildcard ../lib/sdl2/src/timer/unix/*.c) \
|
|
|
|
$(wildcard ../lib/sdl2/src/video/*.c) \
|
|
|
|
$(wildcard ../lib/sdl2/src/video/android/*.c) \
|
2021-10-03 23:41:04 -04:00
|
|
|
$(wildcard ../lib/sdl2/src/video/yuv2rgb/*.c)
|
2020-04-21 03:28:02 -04:00
|
|
|
LOCAL_CFLAGS := -I../lib/sdl2/include/ -DGL_GLEXT_PROTOTYPES
|
2021-10-03 23:41:04 -04:00
|
|
|
LOCAL_LDLIBS := -ldl -lGLESv1_CM -lGLESv2 -lOpenSLES -llog -landroid
|
2020-04-21 03:28:02 -04:00
|
|
|
LOCAL_STATIC_LIBRARIES := cpufeatures
|
|
|
|
|
2021-10-04 06:15:21 -04:00
|
|
|
ifeq ($(TARGET_ARCH_ABI), armeabi-v7a)
|
|
|
|
LOCAL_ARM_NEON := false
|
|
|
|
endif
|
2021-10-03 23:41:04 -04:00
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
2020-04-21 03:28:02 -04:00
|
|
|
include $(CLEAR_VARS)
|
2017-01-27 16:43:49 -05:00
|
|
|
|
|
|
|
# STK
|
|
|
|
LOCAL_MODULE := main
|
|
|
|
LOCAL_PATH := .
|
|
|
|
LOCAL_CPP_FEATURES += rtti exceptions
|
|
|
|
LOCAL_SRC_FILES := $(wildcard ../src/*.cpp) \
|
|
|
|
$(wildcard ../src/*/*.cpp) \
|
|
|
|
$(wildcard ../src/*/*/*.cpp)
|
2021-10-03 23:41:04 -04:00
|
|
|
LOCAL_LDLIBS := -llog -lm -lOpenSLES
|
2017-01-27 16:43:49 -05:00
|
|
|
LOCAL_CFLAGS := -I../lib/angelscript/include \
|
|
|
|
-I../lib/bullet/src \
|
2020-08-23 12:53:04 -04:00
|
|
|
-I../lib/sheenbidi/Headers \
|
2017-01-27 16:43:49 -05:00
|
|
|
-I../lib/enet/include \
|
|
|
|
-I../lib/ifaddrs \
|
|
|
|
-I../lib/irrlicht/include \
|
|
|
|
-I../lib/irrlicht/source/Irrlicht \
|
2019-06-22 13:02:05 -04:00
|
|
|
-I../lib/graphics_utils \
|
2020-12-03 21:04:44 -05:00
|
|
|
-I../lib/graphics_engine/include \
|
2020-01-03 00:25:26 -05:00
|
|
|
-I../lib/mcpp \
|
2020-04-21 03:28:02 -04:00
|
|
|
-I../lib/sdl2/include \
|
2020-09-09 01:27:10 -04:00
|
|
|
-I../lib/tinygettext/include \
|
2022-11-19 03:52:08 -05:00
|
|
|
-I../lib/libsquish \
|
2017-01-27 16:43:49 -05:00
|
|
|
-I../src \
|
2021-09-25 02:57:03 -04:00
|
|
|
-Ideps-$(TARGET_ARCH_ABI)/curl/include \
|
|
|
|
-Ideps-$(TARGET_ARCH_ABI)/freetype/include \
|
|
|
|
-Ideps-$(TARGET_ARCH_ABI)/harfbuzz/include \
|
|
|
|
-Ideps-$(TARGET_ARCH_ABI)/libogg/include \
|
|
|
|
-Ideps-$(TARGET_ARCH_ABI)/libvorbis/include \
|
|
|
|
-Ideps-$(TARGET_ARCH_ABI)/openal/include \
|
|
|
|
-Ideps-$(TARGET_ARCH_ABI)/mbedtls/include \
|
2017-01-27 16:43:49 -05:00
|
|
|
-DUSE_GLES2 \
|
2019-07-13 02:22:22 -04:00
|
|
|
-DMOBILE_STK \
|
2018-07-10 16:23:22 -04:00
|
|
|
-DENABLE_SOUND \
|
2019-08-21 02:59:13 -04:00
|
|
|
-DENABLE_IPV6 \
|
2021-09-25 02:57:03 -04:00
|
|
|
-DENABLE_CRYPTO_MBEDTLS \
|
2017-01-27 16:43:49 -05:00
|
|
|
-DNDEBUG \
|
2020-09-09 01:29:17 -04:00
|
|
|
-DDISABLE_ICONV \
|
2018-04-18 18:25:22 -04:00
|
|
|
-DANDROID_PACKAGE_NAME=\"$(PACKAGE_NAME)\" \
|
|
|
|
-DANDROID_APP_DIR_NAME=\"$(APP_DIR_NAME)\" \
|
2019-05-24 12:40:37 -04:00
|
|
|
-DSUPERTUXKART_VERSION=\"$(PROJECT_VERSION)\" \
|
2021-10-04 01:01:00 -04:00
|
|
|
-DANDROID_PACKAGE_CLASS_NAME=\"$(PACKAGE_CLASS_NAME)\"
|
2018-07-26 16:20:53 -04:00
|
|
|
LOCAL_CPPFLAGS := -std=gnu++0x
|
2017-01-27 16:43:49 -05:00
|
|
|
|
2020-04-21 03:28:02 -04:00
|
|
|
LOCAL_STATIC_LIBRARIES := irrlicht bullet enet ifaddrs angelscript mcpp SDL2 \
|
2021-05-02 00:28:42 -04:00
|
|
|
vorbisfile vorbis ogg openal curl libmbedtls \
|
|
|
|
libmbedcrypto libmbedx509 c++_static sheenbidi \
|
|
|
|
harfbuzz freetype tinygettext graphics_utils \
|
|
|
|
graphics_engine
|
2017-01-27 16:43:49 -05:00
|
|
|
|
2021-10-04 06:15:21 -04:00
|
|
|
ifeq ($(TARGET_ARCH_ABI), armeabi-v7a)
|
|
|
|
LOCAL_ARM_NEON := false
|
|
|
|
endif
|
2017-01-27 16:43:49 -05:00
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
|
|
|
include $(CLEAR_VARS)
|
2020-04-21 03:28:02 -04:00
|
|
|
$(call import-module, android/cpufeatures)
|