🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

129 lines
3.5 KiB

  1. LOCAL_PATH := $(call my-dir)
  2. ###########################
  3. #
  4. # SDL shared library
  5. #
  6. ###########################
  7. include $(CLEAR_VARS)
  8. LOCAL_MODULE := SDL2
  9. LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
  10. LOCAL_EXPORT_C_INCLUDES := $(LOCAL_C_INCLUDES)
  11. LOCAL_SRC_FILES := \
  12. $(subst $(LOCAL_PATH)/,, \
  13. $(wildcard $(LOCAL_PATH)/src/*.c) \
  14. $(wildcard $(LOCAL_PATH)/src/audio/*.c) \
  15. $(wildcard $(LOCAL_PATH)/src/audio/android/*.c) \
  16. $(wildcard $(LOCAL_PATH)/src/audio/dummy/*.c) \
  17. $(wildcard $(LOCAL_PATH)/src/audio/aaudio/*.c) \
  18. $(wildcard $(LOCAL_PATH)/src/audio/openslES/*.c) \
  19. $(LOCAL_PATH)/src/atomic/SDL_atomic.c.arm \
  20. $(LOCAL_PATH)/src/atomic/SDL_spinlock.c.arm \
  21. $(wildcard $(LOCAL_PATH)/src/core/android/*.c) \
  22. $(wildcard $(LOCAL_PATH)/src/cpuinfo/*.c) \
  23. $(wildcard $(LOCAL_PATH)/src/dynapi/*.c) \
  24. $(wildcard $(LOCAL_PATH)/src/events/*.c) \
  25. $(wildcard $(LOCAL_PATH)/src/file/*.c) \
  26. $(wildcard $(LOCAL_PATH)/src/haptic/*.c) \
  27. $(wildcard $(LOCAL_PATH)/src/haptic/android/*.c) \
  28. $(wildcard $(LOCAL_PATH)/src/hidapi/*.c) \
  29. $(wildcard $(LOCAL_PATH)/src/hidapi/android/*.cpp) \
  30. $(wildcard $(LOCAL_PATH)/src/joystick/*.c) \
  31. $(wildcard $(LOCAL_PATH)/src/joystick/android/*.c) \
  32. $(wildcard $(LOCAL_PATH)/src/joystick/hidapi/*.c) \
  33. $(wildcard $(LOCAL_PATH)/src/joystick/virtual/*.c) \
  34. $(wildcard $(LOCAL_PATH)/src/loadso/dlopen/*.c) \
  35. $(wildcard $(LOCAL_PATH)/src/locale/*.c) \
  36. $(wildcard $(LOCAL_PATH)/src/locale/android/*.c) \
  37. $(wildcard $(LOCAL_PATH)/src/misc/*.c) \
  38. $(wildcard $(LOCAL_PATH)/src/misc/android/*.c) \
  39. $(wildcard $(LOCAL_PATH)/src/power/*.c) \
  40. $(wildcard $(LOCAL_PATH)/src/power/android/*.c) \
  41. $(wildcard $(LOCAL_PATH)/src/filesystem/android/*.c) \
  42. $(wildcard $(LOCAL_PATH)/src/sensor/*.c) \
  43. $(wildcard $(LOCAL_PATH)/src/sensor/android/*.c) \
  44. $(wildcard $(LOCAL_PATH)/src/render/*.c) \
  45. $(wildcard $(LOCAL_PATH)/src/render/*/*.c) \
  46. $(wildcard $(LOCAL_PATH)/src/stdlib/*.c) \
  47. $(wildcard $(LOCAL_PATH)/src/thread/*.c) \
  48. $(wildcard $(LOCAL_PATH)/src/thread/pthread/*.c) \
  49. $(wildcard $(LOCAL_PATH)/src/timer/*.c) \
  50. $(wildcard $(LOCAL_PATH)/src/timer/unix/*.c) \
  51. $(wildcard $(LOCAL_PATH)/src/video/*.c) \
  52. $(wildcard $(LOCAL_PATH)/src/video/android/*.c) \
  53. $(wildcard $(LOCAL_PATH)/src/video/yuv2rgb/*.c) \
  54. $(wildcard $(LOCAL_PATH)/src/test/*.c))
  55. LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES
  56. LOCAL_CFLAGS += \
  57. -Wall -Wextra \
  58. -Wdocumentation \
  59. -Wdocumentation-unknown-command \
  60. -Wmissing-prototypes \
  61. -Wunreachable-code-break \
  62. -Wunneeded-internal-declaration \
  63. -Wmissing-variable-declarations \
  64. -Wfloat-conversion \
  65. -Wshorten-64-to-32 \
  66. -Wunreachable-code-return \
  67. -Wshift-sign-overflow \
  68. -Wstrict-prototypes \
  69. -Wkeyword-macro \
  70. # Warnings we haven't fixed (yet)
  71. LOCAL_CFLAGS += -Wno-unused-parameter -Wno-sign-compare
  72. LOCAL_LDLIBS := -ldl -lGLESv1_CM -lGLESv2 -lOpenSLES -llog -landroid
  73. LOCAL_LDFLAGS := -Wl,--no-undefined
  74. ifeq ($(NDK_DEBUG),1)
  75. cmd-strip :=
  76. endif
  77. LOCAL_STATIC_LIBRARIES := cpufeatures
  78. include $(BUILD_SHARED_LIBRARY)
  79. ###########################
  80. #
  81. # SDL static library
  82. #
  83. ###########################
  84. LOCAL_MODULE := SDL2_static
  85. LOCAL_MODULE_FILENAME := libSDL2
  86. LOCAL_LDLIBS :=
  87. LOCAL_LDFLAGS :=
  88. LOCAL_EXPORT_LDLIBS := -ldl -lGLESv1_CM -lGLESv2 -llog -landroid
  89. include $(BUILD_STATIC_LIBRARY)
  90. ###########################
  91. #
  92. # SDL main static library
  93. #
  94. ###########################
  95. include $(CLEAR_VARS)
  96. LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
  97. LOCAL_MODULE := SDL2_main
  98. LOCAL_MODULE_FILENAME := libSDL2main
  99. include $(BUILD_STATIC_LIBRARY)
  100. $(call import-module,android/cpufeatures)