Android.mk 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. LOCAL_PATH := $(call my-dir)
  2. include $(CLEAR_VARS)
  3. ifeq ($(NEON_BUILD)$(TARGET_ARCH_ABI),1armeabi-v7a)
  4. LOCAL_MODULE := retro_picodrive-neon
  5. else
  6. LOCAL_MODULE := retro_picodrive
  7. endif
  8. R := ../
  9. FR := $(LOCAL_PATH)/$(R)
  10. use_cyclone = 0
  11. use_fame = 0
  12. use_musashi = 0
  13. use_drz80 = 0
  14. use_cz80 = 0
  15. use_sh2drc = 0
  16. use_sh2mame = 0
  17. use_svpdrc = 0
  18. asm_memory = 0
  19. asm_render = 0
  20. asm_ym2612 = 0
  21. asm_misc = 0
  22. asm_cdpico = 0
  23. asm_cdmemory = 0
  24. asm_mix = 0
  25. ifeq ($(TARGET_ARCH),arm)
  26. LOCAL_ARM_MODE := arm
  27. ifeq ($(NEON_BUILD),1)
  28. LOCAL_ARM_NEON := true
  29. endif
  30. use_cyclone = 1
  31. use_drz80 = 1
  32. use_sh2drc = 1
  33. use_svpdrc = 1
  34. asm_memory = 1
  35. asm_render = 1
  36. asm_ym2612 = 1
  37. asm_misc = 1
  38. asm_cdpico = 1
  39. asm_cdmemory = 1
  40. asm_mix = 1
  41. else
  42. use_fame = 1
  43. use_cz80 = 1
  44. use_sh2mame = 1
  45. endif
  46. # sources
  47. SRCS_COMMON :=
  48. DEFINES :=
  49. ARCH := $(TARGET_ARCH)
  50. include $(R)platform/common/common.mak
  51. LOCAL_SRC_FILES += $(SRCS_COMMON)
  52. LOCAL_SRC_FILES += $(R)platform/libretro.c
  53. LOCAL_SRC_FILES += $(R)platform/common/mp3.c
  54. LOCAL_SRC_FILES += $(R)platform/common/mp3_dummy.c
  55. # zlib/unzip
  56. LOCAL_SRC_FILES += $(R)zlib/gzio.c $(R)zlib/inffast.c $(R)zlib/inflate.c \
  57. $(R)zlib/inftrees.c $(R)zlib/trees.c $(R)zlib/deflate.c \
  58. $(R)zlib/crc32.c $(R)zlib/adler32.c $(R)zlib/zutil.c \
  59. $(R)zlib/compress.c $(R)zlib/uncompr.c
  60. LOCAL_SRC_FILES += $(R)unzip/unzip.c $(R)unzip/unzip_stream.c
  61. LOCAL_C_INCLUDES += $(R)
  62. LOCAL_CFLAGS += $(addprefix -D,$(DEFINES))
  63. LOCAL_CFLAGS += -Wall -O3 -ffast-math -DNDEBUG
  64. LOCAL_LDLIBS := -llog
  65. include $(BUILD_SHARED_LIBRARY)