Gloria Wang | 7913073 | 2010-02-08 14:41:04 -0800 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | include $(CLEAR_VARS) |
| 3 | |
| 4 | LOCAL_SRC_FILES = \ |
| 5 | Tremolo/bitwise.c \ |
| 6 | Tremolo/codebook.c \ |
| 7 | Tremolo/dsp.c \ |
| 8 | Tremolo/floor0.c \ |
| 9 | Tremolo/floor1.c \ |
| 10 | Tremolo/floor_lookup.c \ |
| 11 | Tremolo/framing.c \ |
| 12 | Tremolo/mapping0.c \ |
| 13 | Tremolo/mdct.c \ |
| 14 | Tremolo/misc.c \ |
| 15 | Tremolo/res012.c \ |
| 16 | Tremolo/treminfo.c \ |
Gloria Wang | d75baf2 | 2010-02-12 16:28:30 -0800 | [diff] [blame] | 17 | Tremolo/vorbisfile.c |
| 18 | |
| 19 | ifeq ($(TARGET_ARCH),arm) |
| 20 | LOCAL_SRC_FILES += \ |
Gloria Wang | 7913073 | 2010-02-08 14:41:04 -0800 | [diff] [blame] | 21 | Tremolo/bitwiseARM.s \ |
| 22 | Tremolo/dpen.s \ |
| 23 | Tremolo/floor1ARM.s \ |
| 24 | Tremolo/mdctARM.s |
Gloria Wang | d75baf2 | 2010-02-12 16:28:30 -0800 | [diff] [blame] | 25 | LOCAL_CFLAGS += \ |
Gloria Wang | 7913073 | 2010-02-08 14:41:04 -0800 | [diff] [blame] | 26 | -D_ARM_ASSEM_ |
Gloria Wang | d75baf2 | 2010-02-12 16:28:30 -0800 | [diff] [blame] | 27 | else |
| 28 | LOCAL_CFLAGS += \ |
| 29 | -DONLY_C |
| 30 | endif |
| 31 | LOCAL_CFLAGS+= -O2 |
Gloria Wang | 7913073 | 2010-02-08 14:41:04 -0800 | [diff] [blame] | 32 | |
Dan Albert | 554ffdf | 2014-08-06 21:41:44 -0700 | [diff] [blame] | 33 | # We need this because the current asm generates the following link error: |
| 34 | # requires unsupported dynamic reloc R_ARM_REL32; recompile with -fPIC |
| 35 | # Bug: 16853291 |
| 36 | LOCAL_LDFLAGS := -Wl,-Bsymbolic |
| 37 | |
Gloria Wang | 7913073 | 2010-02-08 14:41:04 -0800 | [diff] [blame] | 38 | LOCAL_C_INCLUDES:= \ |
| 39 | $(LOCAL_PATH)/Tremolo |
| 40 | |
| 41 | LOCAL_ARM_MODE := arm |
| 42 | |
| 43 | LOCAL_MODULE := libvorbisidec |
| 44 | |
| 45 | include $(BUILD_SHARED_LIBRARY) |