Android.mk 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Copyright (C) 2010 The Android Open Source Project
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. #
  15. # $Id: Android.mk 165 2012-12-28 19:55:23Z oparviai $
  16. LOCAL_PATH := $(call my-dir)
  17. include $(CLEAR_VARS)
  18. # *** Remember: Change -O0 into -O2 in add-applications.mk ***
  19. LOCAL_MODULE := soundtouch
  20. LOCAL_SRC_FILES := soundtouch-jni.cpp soundtouch/source/SoundTouch/AAFilter.cpp soundtouch/source/SoundTouch/FIFOSampleBuffer.cpp \
  21. soundtouch/source/SoundTouch/FIRFilter.cpp soundtouch/source/SoundTouch/cpu_detect_x86.cpp \
  22. soundtouch/source/SoundTouch/RateTransposer.cpp soundtouch/source/SoundTouch/SoundTouch.cpp \
  23. soundtouch/source/SoundTouch/TDStretch.cpp soundtouch/source/SoundTouch/BPMDetect.cpp soundtouch/source/SoundTouch/PeakFinder.cpp \
  24. soundtouch/source/SoundTouch/InterpolateLinear.cpp soundtouch/source/SoundTouch/InterpolateCubic.cpp soundtouch/source/SoundTouch/InterpolateShannon.cpp
  25. # for native audio
  26. LOCAL_LDLIBS += -lgcc
  27. LOCAL_C_INCLUDES += $(LOCAL_PATH)/soundtouch/include
  28. # --whole-archive -lgcc
  29. # for logging
  30. LOCAL_LDLIBS += -llog
  31. # for native asset manager
  32. #LOCAL_LDLIBS += -landroid
  33. # don't export all symbols
  34. # added "-marm" switch to use arm instruction set instead of thumb for improved calculation performance.
  35. LOCAL_CFLAGS += -Wall -fvisibility=hidden -I soundtouch/source/../include -D ST_NO_EXCEPTION_HANDLING -fdata-sections -ffunction-sections -marm
  36. include $(BUILD_SHARED_LIBRARY)