Application.mk 795 B

1234567891011121314151617181920212223242526272829303132
  1. APP_PLATFORM := ${APP_PLATFORM}
  2. APP_ABI := ${TARGET_ABI}
  3. APP_STL := c++_shared
  4. NDK_TOOLCHAIN_VERSION := clang
  5. APP_SHORT_COMMANDS := true
  6. APP_MODULES := Minetest
  7. APP_CPPFLAGS := -O2 -fvisibility=hidden
  8. ifeq ($(APP_ABI),armeabi-v7a)
  9. APP_CPPFLAGS += -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb
  10. endif
  11. ifeq ($(APP_ABI),x86)
  12. APP_CPPFLAGS += -mssse3 -mfpmath=sse -funroll-loops
  13. endif
  14. ifndef NDEBUG
  15. APP_CPPFLAGS := -g -Og -fno-omit-frame-pointer
  16. endif
  17. APP_CFLAGS := $(APP_CPPFLAGS) -Wno-inconsistent-missing-override -Wno-parentheses-equality
  18. APP_CXXFLAGS := $(APP_CPPFLAGS) -fexceptions -frtti -std=gnu++14
  19. APP_LDFLAGS := -Wl,--no-warn-mismatch,--gc-sections,--icf=safe
  20. ifeq ($(APP_ABI),arm64-v8a)
  21. APP_LDFLAGS := -Wl,--no-warn-mismatch,--gc-sections
  22. endif
  23. ifndef NDEBUG
  24. APP_LDFLAGS :=
  25. endif