1
# Basic Android.mk for libnative
3
LOCAL_PATH := $(call my-dir)
7
LOCAL_MODULE := libnative
17
data/compression.cpp \
18
ext/rg_etc1/rg_etc1.cpp \
19
ext/cityhash/city.cpp \
21
ext/libpng17/pngerror.c \
22
ext/libpng17/pngget.c \
23
ext/libpng17/pngmem.c \
24
ext/libpng17/pngpread.c \
25
ext/libpng17/pngread.c \
26
ext/libpng17/pngrio.c \
27
ext/libpng17/pngrtran.c \
28
ext/libpng17/pngrutil.c \
29
ext/libpng17/pngset.c \
30
ext/libpng17/pngtest.c \
31
ext/libpng17/pngtrans.c \
32
ext/libpng17/pngwio.c \
33
ext/libpng17/pngwrite.c \
34
ext/libpng17/pngwtran.c \
35
ext/libpng17/pngwutil.c \
40
ext/vjson/block_allocator.cpp \
48
json/json_writer.cpp \
50
input/gesture_detector.cpp \
51
input/input_state.cpp \
52
math/fast/fast_math.c \
53
math/fast/fast_matrix.c \
56
math/expression_parser.cpp \
57
math/lin/plane.cpp.arm \
58
math/lin/quat.cpp.arm \
59
math/lin/vec3.cpp.arm \
60
math/lin/matrix4x4.cpp.arm \
63
net/http_headers.cpp \
67
profiler/profiler.cpp \
69
thread/threadutil.cpp \
70
thread/prioritizedworkqueue.cpp \
71
thread/threadpool.cpp \
72
gfx_es2/glsl_program.cpp \
73
gfx_es2/gpu_features.cpp \
75
gfx_es2/draw_buffer.cpp.arm \
76
gfx_es2/draw_text.cpp.arm \
77
gfx/gl_debug_log.cpp \
78
gfx/gl_lost_manager.cpp \
79
gfx/texture_atlas.cpp \
84
thin3d/thin3d_gl.cpp \
85
thin3d/thin3d_vulkan.cpp \
92
ui/virtual_input.cpp \
94
util/text/parsers.cpp \
95
util/text/wrap_text.cpp \
98
LOCAL_CFLAGS := -O3 -DUSING_GLES2 -fsigned-char -fno-strict-aliasing -Wall -Wno-multichar -D__STDC_CONSTANT_MACROS
99
LOCAL_CPPFLAGS := -fno-exceptions -std=gnu++11 -fno-rtti -Wno-reorder
100
LOCAL_C_INCLUDES := $(LOCAL_PATH)/ext $(LOCAL_PATH)/ext/libzip ..
102
#Portable native and separate code on android in future is easy you needs add files
103
#by ($(target_arch_ABI),arquitecture (armeabi-v7a , armeabi , x86 , MIPS)
104
# ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
105
ifeq ($(findstring armeabi-v7a,$(TARGET_ARCH_ABI)),armeabi-v7a)
106
LOCAL_CFLAGS := $(LOCAL_CFLAGS) -DARM -DARMEABI_V7A
107
LOCAL_SRC_FILES := $(LOCAL_SRC_FILES) \
108
math/fast/fast_matrix_neon.S.neon \
109
ext/libpng17/arm/arm_init.c \
110
ext/libpng17/arm/filter_neon_intrinsics.c \
111
ext/libpng17/arm/filter_neon.S.neon
113
else ifeq ($(TARGET_ARCH_ABI),armeabi)
114
LOCAL_CFLAGS := $(LOCAL_CFLAGS) -DARM -DARMEABI -march=armv6
115
else ifeq ($(TARGET_ARCH_ABI),arm64-v8a)
116
LOCAL_CFLAGS := $(LOCAL_CFLAGS) -D_ARCH_64 -DARM64
117
else ifeq ($(TARGET_ARCH_ABI),x86)
118
LOCAL_CFLAGS := $(LOCAL_CFLAGS) -D_M_IX86
119
LOCAL_SRC_FILES := $(LOCAL_SRC_FILES) \
120
math/fast/fast_matrix_sse.c
121
else ifeq ($(TARGET_ARCH_ABI),x86_64)
122
LOCAL_CFLAGS := $(LOCAL_CFLAGS) -D_M_X64
123
LOCAL_SRC_FILES := $(LOCAL_SRC_FILES) \
124
math/fast/fast_matrix_sse.c
127
include $(BUILD_STATIC_LIBRARY)