Android.mk 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. #LOCAL_PATH := $(shell pwd)/jni
  2. LOCAL_PATH := $(call my-dir)
  3. MY_ARMV7_CFLAGS := -mcpu=cortex-a8 -mfpu=neon -ftree-vectorize -mfloat-abi=softfp -ffast-math -fsingle-precision-constant -D__ARM_ARCH__=7
  4. INCLUDE_DIR := $(LOCAL_PATH)/include
  5. DSP_ARM_DIR := $(LOCAL_PATH)/dsp_arm
  6. DSP_ARM_SRC := \
  7. dsp_arm/abs_s.s \
  8. dsp_arm/dsp_math.c \
  9. dsp_arm/l_add.s \
  10. dsp_arm/l_sub.s \
  11. dsp_arm/l_mac.s \
  12. dsp_arm/l_msu.s \
  13. dsp_arm/l_shr.s \
  14. dsp_arm/l_shl.s \
  15. dsp_arm/divide_s.s \
  16. dsp_arm/l_abs.s \
  17. dsp_arm/l_mult.s \
  18. dsp_arm/mac_r.s \
  19. dsp_arm/sub.s \
  20. dsp_arm/add.s \
  21. dsp_arm/mult_r.s \
  22. dsp_arm/negate.s \
  23. dsp_arm/norm_s.s \
  24. dsp_arm/shr_r.s \
  25. dsp_arm/shift_r.s \
  26. dsp_arm/msu_r.s \
  27. dsp_arm/l_negate.s \
  28. dsp_arm/l_shr_r.s \
  29. dsp_arm/l_shift_r.s \
  30. dsp_arm/norm_l.s \
  31. dsp_arm/mult.s \
  32. dsp_arm/round32.s \
  33. dsp_arm/shl.s \
  34. dsp_arm/shr.s \
  35. dsp_arm/saturate.s \
  36. dsp_arm/l_mpy_ls.s \
  37. dsp_arm/l_mpy_ll.s \
  38. dsp_arm/div_32.s \
  39. dsp_arm/fft_tabs.s \
  40. dsp_arm/c_fft.s.neon \
  41. dsp_arm/test.s.neon \
  42. DSP_MATH_DIR := $(LOCAL_PATH)/dspmath
  43. DSP_MATH_SRC := \
  44. dspmath/mathadv.c\
  45. dspmath/ehwutl.c\
  46. dspmath/globdefs.c
  47. CODE_DIR := $(LOCAL_PATH)/code
  48. CODE_SRC := \
  49. code/globs.c\
  50. code/d_globs.c\
  51. code/e_globs.c\
  52. code/acb_ex.c\
  53. code/acelp_pf.c\
  54. code/apf.c\
  55. code/auto.c\
  56. code/a2lsp.c\
  57. code/bitpack.c\
  58. code/bitupack.c\
  59. code/bl_intrp.c\
  60. code/bqiir.c\
  61. code/c3_10pf.c\
  62. code/c8_35pf.c\
  63. code/comacb.c\
  64. code/convh.c\
  65. code/cshift.c\
  66. code/d3_10pf.c\
  67. code/d8_35pf.c\
  68. code/decode.c\
  69. code/d_fer.c\
  70. code/d_no_fer.c\
  71. code/d_rate_1.c\
  72. code/durbin.c\
  73. code/encode.c\
  74. code/fcbgq.c\
  75. code/fer.c\
  76. code/filter.c\
  77. code/fndppf.c\
  78. code/getext1k.c\
  79. code/getgain.c\
  80. code/getres.c\
  81. code/impulser.c\
  82. code/interpol.c\
  83. code/intr_cos.c\
  84. code/inv_sqrt.c\
  85. code/lpcana.c\
  86. code/lspmaq.c\
  87. code/lsp2a.c\
  88. code/maxeloc.c\
  89. code/mdfyorig.c\
  90. code/mod.c\
  91. code/ns127.c\
  92. code/pit_shrp.c\
  93. code/pktoav.c\
  94. code/pre_enc.c\
  95. code/putacbc.c\
  96. code/r_fft.c\
  97. code/rda.c\
  98. code/rom.c\
  99. code/synfltr.c\
  100. code/weight.c\
  101. code/w2res.c\
  102. code/zeroinpt.c
  103. # main.c\
  104. include $(CLEAR_VARS)
  105. LOCAL_MODULE := evrcc
  106. LOCAL_ARM_MODE := arm
  107. LOCAL_SRC_FILES := $(DSP_MATH_SRC) $(CODE_SRC) evrcc.c evrcpacket.c
  108. LOCAL_C_INCLUDES += $(INCLUDE_DIR) $(CODE_DIR) $(DSP_MATH_DIR)
  109. ifeq ($(TARGET_ARCH_ABI),"armeabi-v7a")
  110. LOCAL_C_INCLUDES += $(DSP_ARM_DIR)
  111. LOCAL_SRC_FILES += $(DSP_MATH_DIR)/mathevrc.c $(DSP_MATH_DIR)/mathdp31.c
  112. LOCAL_CFLAGS += $(MY_ARMV7_CFLAGS)
  113. else
  114. LOCAL_SRC_FILES += $(DSP_ARM_SRC)
  115. #LOCAL_ARM_NEON := true
  116. endif
  117. LOCAL_CFLAGS += -std=c99 -O3
  118. include $(BUILD_SHARED_LIBRARY)
  119. #include $(CLEAR_VARS)
  120. #LOCAL_MODULE := asmtest
  121. #LOCAL_ARM_MODE := arm
  122. #LOCAL_CFLAGS += -std=c99 -O3 $(MY_ARMV7_CFLAGS)
  123. #LOCAL_C_INCLUDES += $(INCLUDE_DIR) $(CODE_DIR) $(DSP_MATH_IR) $(DSP_ARM_DIR)
  124. #LOCAL_SRC_FILES := $(DSP_ARM_SRC) dsp_foo/mathevrc.c asmtest.c
  125. #include $(BUILD_EXECUTABLE)
  126. #include $(CLEAR_VARS)
  127. #LOCAL_MODULE := evrcodec
  128. #LOCAL_ARM_MODE := arm
  129. #LOCAL_SRC_FILES := test.cpp
  130. #LOCAL_CFLAGS += -std=c99 -O3
  131. #LOCAL_C_INCLUDES += $(INCLUDE_DIR) $(CODE_DIR) $(DSP_MATH_IR) $(DSP_ARM_DIR)
  132. #LOCAL_CPPFLAGS := -std=gnu++11 -fno-rtti -fno-exceptions
  133. #LOCAL_SHARED_LIBRARIES += libevrcc
  134. #include $(BUILD_EXECUTABLE)