🛠️🐜 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.

123 lines
3.4 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. ifeq ($(NDK_DEBUG),1)
  74. cmd-strip :=
  75. endif
  76. LOCAL_STATIC_LIBRARIES := cpufeatures
  77. include $(BUILD_SHARED_LIBRARY)
  78. ###########################
  79. #
  80. # SDL static library
  81. #
  82. ###########################
  83. LOCAL_MODULE := SDL2_static
  84. LOCAL_MODULE_FILENAME := libSDL2
  85. LOCAL_LDLIBS :=
  86. LOCAL_EXPORT_LDLIBS := -ldl -lGLESv1_CM -lGLESv2 -llog -landroid
  87. include $(BUILD_STATIC_LIBRARY)
  88. ###########################
  89. #
  90. # SDL main static library
  91. #
  92. ###########################
  93. include $(CLEAR_VARS)
  94. LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
  95. LOCAL_MODULE := SDL2_main
  96. LOCAL_MODULE_FILENAME := libSDL2main
  97. include $(BUILD_STATIC_LIBRARY)
  98. $(call import-module,android/cpufeatures)