Advertisement
Guest User

Untitled

a guest
Nov 25th, 2019
552
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.11 KB | None | 0 0
  1. LOCAL_PATH := $(call my-dir)
  2.  
  3. include $(CLEAR_VARS)
  4. LOCAL_MODULE := bass
  5. LOCAL_SRC_FILES := $(LOCAL_PATH)/vendor/bass/libbass.so
  6. LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/vendor/bass/bass.h
  7. include $(PREBUILT_SHARED_LIBRARY)
  8.  
  9. include $(CLEAR_VARS)
  10. LOCAL_MODULE := bassalac
  11. LOCAL_SRC_FILES := $(LOCAL_PATH)/vendor/bass/libbassalac.so
  12. LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/vendor/bass/bass.h
  13. include $(PREBUILT_SHARED_LIBRARY)
  14.  
  15. include $(CLEAR_VARS)
  16. LOCAL_MODULE := bassdsd
  17. LOCAL_SRC_FILES := $(LOCAL_PATH)/vendor/bass/libbassdsd.so
  18. LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/vendor/bass/bass.h
  19. include $(PREBUILT_SHARED_LIBRARY)
  20.  
  21. include $(CLEAR_VARS)
  22. LOCAL_MODULE := bassflac
  23. LOCAL_SRC_FILES := $(LOCAL_PATH)/vendor/bass/libbassflac.so
  24. LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/vendor/bass/bass.h
  25. include $(PREBUILT_SHARED_LIBRARY)
  26.  
  27. include $(CLEAR_VARS)
  28. LOCAL_MODULE := basshls
  29. LOCAL_SRC_FILES := $(LOCAL_PATH)/vendor/bass/libbasshls.so
  30. LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/vendor/bass/bass.h
  31. include $(PREBUILT_SHARED_LIBRARY)
  32.  
  33. include $(CLEAR_VARS)
  34. LOCAL_MODULE := bassmidi
  35. LOCAL_SRC_FILES := $(LOCAL_PATH)/vendor/bass/libbassmidi.so
  36. LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/vendor/bass/bass.h
  37. include $(PREBUILT_SHARED_LIBRARY)
  38.  
  39. include $(CLEAR_VARS)
  40. LOCAL_MODULE := bassmix
  41. LOCAL_SRC_FILES := $(LOCAL_PATH)/vendor/bass/libbassmix.so
  42. LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/vendor/bass/bass.h
  43. include $(PREBUILT_SHARED_LIBRARY)
  44.  
  45. include $(CLEAR_VARS)
  46. LOCAL_MODULE := bassopus
  47. LOCAL_SRC_FILES := $(LOCAL_PATH)/vendor/bass/libbassopus.so
  48. LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/vendor/bass/bass.h
  49. include $(PREBUILT_SHARED_LIBRARY)
  50.  
  51. include $(CLEAR_VARS)
  52. LOCAL_MODULE := basswebm
  53. LOCAL_SRC_FILES := $(LOCAL_PATH)/vendor/bass/libbasswebm.so
  54. LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/vendor/bass/bass.h
  55. include $(PREBUILT_SHARED_LIBRARY)
  56.  
  57. include $(CLEAR_VARS)
  58. LOCAL_MODULE := basswv
  59. LOCAL_SRC_FILES := $(LOCAL_PATH)/vendor/bass/libbasswv.so
  60. LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/vendor/bass/bass.h
  61. include $(PREBUILT_SHARED_LIBRARY)
  62.  
  63. include $(CLEAR_VARS)
  64.  
  65. LOCAL_MODULE := samp
  66. LOCAL_LDLIBS := -llog
  67.  
  68. # samp
  69. FILE_LIST := $(wildcard $(LOCAL_PATH)/*.cpp)
  70. FILE_LIST += $(wildcard $(LOCAL_PATH)/game/*.cpp)
  71. FILE_LIST += $(wildcard $(LOCAL_PATH)/net/*.cpp)
  72. FILE_LIST += $(wildcard $(LOCAL_PATH)/util/*.cpp)
  73. FILE_LIST += $(wildcard $(LOCAL_PATH)/game/RW/RenderWare.cpp)
  74. FILE_LIST += $(wildcard $(LOCAL_PATH)/gui/*.cpp)
  75.  
  76. # vendor
  77. FILE_LIST += $(wildcard $(LOCAL_PATH)/vendor/inih/cpp/INIReader.cpp)
  78. FILE_LIST += $(wildcard $(LOCAL_PATH)/vendor/inih/ini.c)
  79. FILE_LIST += $(wildcard $(LOCAL_PATH)/vendor/RakNet/*.cpp)
  80. FILE_LIST += $(wildcard $(LOCAL_PATH)/vendor/RakNet/SAMP/*.cpp)
  81. FILE_LIST += $(wildcard $(LOCAL_PATH)/vendor/imgui/*.cpp)
  82. FILE_LIST += $(wildcard $(LOCAL_PATH)/vendor/hash/md5.cpp)
  83.  
  84. LOCAL_CPPFLAGS := -w -s -fvisibility=hidden -pthread -Wall -fpack-struct=1 -O2 -std=c++14 -fexceptions
  85.  
  86. LOCAL_SHARED_LIBRARIES := bass bassalac bassdsd bassflac basshls bassmidi bassmix bassopus basswebm basswv
  87.  
  88. LOCAL_SRC_FILES := $(FILE_LIST:$(LOCAL_PATH)/%=%)
  89.  
  90. include $(BUILD_SHARED_LIBRARY)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement