Android.mk 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. LOCAL_PATH := $(call my-dir)
  2. include $(CLEAR_VARS)
  3. LOCAL_MODULE := manaplus
  4. ROOT_PATH := $(LOCAL_PATH)/..
  5. SDL_PATH := ../SDL
  6. LOCAL_C_INCLUDES := $(LOCAL_PATH)/$(SDL_PATH)/include \
  7. $(LOCAL_PATH)/src \
  8. $(ROOT_PATH)/xml2/include \
  9. $(ROOT_PATH)/gettext-0.18/gettext-runtime/intl \
  10. $(ROOT_PATH)/sdl_gfx \
  11. $(ROOT_PATH)/curl/include \
  12. $(ROOT_PATH)/SDL2_net-2.0.0
  13. LOCAL_CPPFLAGS += -DUSE_SDL2 -DTMWA_SUPPORT -DUSE_OPENGL -DENABLE_NLS -DENABLE_LIBXML
  14. LOCAL_CPPFLAGS += -frtti -fexceptions -Wno-error=format-security -fvisibility=hidden
  15. LOCAL_CPPFLAGS += -ffast-math -funswitch-loops -pedantic -Wall -Wc++11-compat -std=c++0x -funsafe-loop-optimizations -flto -fwhole-program
  16. LOCAL_CPPFLAGS += -fpic -fpie
  17. LOCAL_SHARED_LIBRARIES := SDL2 SDL2_mixer sdl_net SDL2_ttf SDL2_image libcurl intl png sdl2_gfx xml2
  18. LOCAL_LDLIBS := -lGLESv1_CM -lEGL -llog -lz
  19. # Add your application source files here...
  20. LOCAL_SRC_FILES := $(SDL_PATH)/src/main/android/SDL_android_main.c \
  21. $(subst $(LOCAL_PATH)/,, \
  22. $(wildcard $(LOCAL_PATH)/src/*.cpp) \
  23. $(wildcard $(LOCAL_PATH)/src/being/*.cpp) \
  24. $(wildcard $(LOCAL_PATH)/src/render/*.cpp) \
  25. $(wildcard $(LOCAL_PATH)/src/render/vertexes/*.cpp) \
  26. $(wildcard $(LOCAL_PATH)/src/render/openglx/*.cpp) \
  27. $(wildcard $(LOCAL_PATH)/src/render/shaders/*.cpp) \
  28. $(wildcard $(LOCAL_PATH)/src/render/opengl/*.cpp) \
  29. $(wildcard $(LOCAL_PATH)/src/render/nacl/*.cpp) \
  30. $(wildcard $(LOCAL_PATH)/src/utils/*.cpp) \
  31. $(wildcard $(LOCAL_PATH)/src/utils/translation/*.cpp) \
  32. $(wildcard $(LOCAL_PATH)/src/utils/xml/*.cpp) \
  33. $(wildcard $(LOCAL_PATH)/src/listeners/*.cpp) \
  34. $(wildcard $(LOCAL_PATH)/src/const/*.cpp) \
  35. $(wildcard $(LOCAL_PATH)/src/const/render/*.cpp) \
  36. $(wildcard $(LOCAL_PATH)/src/const/utils/*.cpp) \
  37. $(wildcard $(LOCAL_PATH)/src/const/resources/*.cpp) \
  38. $(wildcard $(LOCAL_PATH)/src/const/resources/map/*.cpp) \
  39. $(wildcard $(LOCAL_PATH)/src/const/resources/item/*.cpp) \
  40. $(wildcard $(LOCAL_PATH)/src/const/gui/*.cpp) \
  41. $(wildcard $(LOCAL_PATH)/src/const/net/*.cpp) \
  42. $(wildcard $(LOCAL_PATH)/src/progs/*.cpp) \
  43. $(wildcard $(LOCAL_PATH)/src/progs/manaplus/*.cpp) \
  44. $(wildcard $(LOCAL_PATH)/src/progs/manaplus/gui/*.cpp) \
  45. $(wildcard $(LOCAL_PATH)/src/progs/manaplus/actions/*.cpp) \
  46. $(wildcard $(LOCAL_PATH)/src/resources/*.cpp) \
  47. $(wildcard $(LOCAL_PATH)/src/resources/image/*.cpp) \
  48. $(wildcard $(LOCAL_PATH)/src/resources/animation/*.cpp) \
  49. $(wildcard $(LOCAL_PATH)/src/resources/resourcemanager/*.cpp) \
  50. $(wildcard $(LOCAL_PATH)/src/resources/atlas/*.cpp) \
  51. $(wildcard $(LOCAL_PATH)/src/resources/db/*.cpp) \
  52. $(wildcard $(LOCAL_PATH)/src/resources/sprite/*.cpp) \
  53. $(wildcard $(LOCAL_PATH)/src/resources/inventory/*.cpp) \
  54. $(wildcard $(LOCAL_PATH)/src/resources/loaders/*.cpp) \
  55. $(wildcard $(LOCAL_PATH)/src/resources/dye/*.cpp) \
  56. $(wildcard $(LOCAL_PATH)/src/resources/map/*.cpp) \
  57. $(wildcard $(LOCAL_PATH)/src/resources/rect/*.cpp) \
  58. $(wildcard $(LOCAL_PATH)/src/resources/item/*.cpp) \
  59. $(wildcard $(LOCAL_PATH)/src/resources/skill/*.cpp) \
  60. $(wildcard $(LOCAL_PATH)/src/gui/*.cpp) \
  61. $(wildcard $(LOCAL_PATH)/src/gui/windows/*.cpp) \
  62. $(wildcard $(LOCAL_PATH)/src/gui/shortcut/*.cpp) \
  63. $(wildcard $(LOCAL_PATH)/src/gui/widgets/*.cpp) \
  64. $(wildcard $(LOCAL_PATH)/src/gui/widgets/attrs/*.cpp) \
  65. $(wildcard $(LOCAL_PATH)/src/gui/widgets/tabs/*.cpp) \
  66. $(wildcard $(LOCAL_PATH)/src/gui/widgets/tabs/chat/*.cpp) \
  67. $(wildcard $(LOCAL_PATH)/src/gui/fonts/*.cpp) \
  68. $(wildcard $(LOCAL_PATH)/src/gui/popups/*.cpp) \
  69. $(wildcard $(LOCAL_PATH)/src/gui/models/*.cpp) \
  70. $(wildcard $(LOCAL_PATH)/src/sdl2gfx/*.cpp) \
  71. $(wildcard $(LOCAL_PATH)/src/actions/*.cpp) \
  72. $(wildcard $(LOCAL_PATH)/src/input/*.cpp) \
  73. $(wildcard $(LOCAL_PATH)/src/input/touch/*.cpp) \
  74. $(wildcard $(LOCAL_PATH)/src/input/pages/*.cpp) \
  75. $(wildcard $(LOCAL_PATH)/src/net/*.cpp) \
  76. $(wildcard $(LOCAL_PATH)/src/net/eathena/*.cpp) \
  77. $(wildcard $(LOCAL_PATH)/src/net/tmwa/*.cpp) \
  78. $(wildcard $(LOCAL_PATH)/src/net/ea/*.cpp) \
  79. $(wildcard $(LOCAL_PATH)/src/test/*.cpp) \
  80. $(wildcard $(LOCAL_PATH)/src/ints/*.cpp) \
  81. $(wildcard $(LOCAL_PATH)/src/fs/*.cpp) \
  82. $(wildcard $(LOCAL_PATH)/src/fs/virtfs/*.cpp) \
  83. $(wildcard $(LOCAL_PATH)/src/enums/*.cpp) \
  84. $(wildcard $(LOCAL_PATH)/src/enums/being/*.cpp) \
  85. $(wildcard $(LOCAL_PATH)/src/enums/render/*.cpp) \
  86. $(wildcard $(LOCAL_PATH)/src/enums/resources/*.cpp) \
  87. $(wildcard $(LOCAL_PATH)/src/enums/resources/map/*.cpp) \
  88. $(wildcard $(LOCAL_PATH)/src/enums/resources/item/*.cpp) \
  89. $(wildcard $(LOCAL_PATH)/src/enums/resources/skill/*.cpp) \
  90. $(wildcard $(LOCAL_PATH)/src/enums/gui/*.cpp) \
  91. $(wildcard $(LOCAL_PATH)/src/enums/input/*.cpp) \
  92. $(wildcard $(LOCAL_PATH)/src/enums/net/*.cpp) \
  93. $(wildcard $(LOCAL_PATH)/src/enums/fs/*.cpp) \
  94. $(wildcard $(LOCAL_PATH)/src/enums/simpletypes/*.cpp) \
  95. $(wildcard $(LOCAL_PATH)/src/enums/particle/*.cpp) \
  96. $(wildcard $(LOCAL_PATH)/src/enums/events/*.cpp) \
  97. $(wildcard $(LOCAL_PATH)/src/particle/*.cpp) \
  98. $(wildcard $(LOCAL_PATH)/src/events/*.cpp) \
  99. )
  100. include $(BUILD_SHARED_LIBRARY)