2020-04-15 16:27:40 +02:00
|
|
|
APP_PLATFORM := ${APP_PLATFORM}
|
|
|
|
APP_ABI := ${TARGET_ABI}
|
|
|
|
APP_STL := c++_shared
|
|
|
|
NDK_TOOLCHAIN_VERSION := clang
|
|
|
|
APP_SHORT_COMMANDS := true
|
|
|
|
APP_MODULES := Minetest
|
|
|
|
|
2021-10-31 23:32:25 +01:00
|
|
|
APP_CPPFLAGS := -O2 -fvisibility=hidden
|
2020-04-15 16:27:40 +02:00
|
|
|
|
|
|
|
ifeq ($(APP_ABI),armeabi-v7a)
|
2021-10-31 23:32:25 +01:00
|
|
|
APP_CPPFLAGS += -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb
|
2020-04-15 16:27:40 +02:00
|
|
|
endif
|
|
|
|
|
2021-10-31 23:32:25 +01:00
|
|
|
ifeq ($(APP_ABI),x86)
|
|
|
|
APP_CPPFLAGS += -mssse3 -mfpmath=sse -funroll-loops
|
|
|
|
endif
|
2020-04-15 16:27:40 +02:00
|
|
|
|
|
|
|
ifndef NDEBUG
|
2021-10-31 23:32:25 +01:00
|
|
|
APP_CPPFLAGS := -g -Og -fno-omit-frame-pointer
|
2020-04-15 16:27:40 +02:00
|
|
|
endif
|
|
|
|
|
2021-10-31 23:32:25 +01:00
|
|
|
APP_CFLAGS := $(APP_CPPFLAGS) -Wno-inconsistent-missing-override -Wno-parentheses-equality
|
|
|
|
APP_CXXFLAGS := $(APP_CPPFLAGS) -fexceptions -frtti -std=gnu++17
|
2020-04-15 16:27:40 +02:00
|
|
|
APP_LDFLAGS := -Wl,--no-warn-mismatch,--gc-sections,--icf=safe
|
|
|
|
|
|
|
|
ifeq ($(APP_ABI),arm64-v8a)
|
|
|
|
APP_LDFLAGS := -Wl,--no-warn-mismatch,--gc-sections
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifndef NDEBUG
|
|
|
|
APP_LDFLAGS :=
|
|
|
|
endif
|