mirror of
https://github.com/smallmain/cocos-enhance-kit.git
synced 2025-01-14 06:51:08 +00:00
45 lines
976 B
Makefile
45 lines
976 B
Makefile
LOCAL_PATH := $(call my-dir)
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES = \
|
|
Tremolo/bitwise.c \
|
|
Tremolo/codebook.c \
|
|
Tremolo/dsp.c \
|
|
Tremolo/floor0.c \
|
|
Tremolo/floor1.c \
|
|
Tremolo/floor_lookup.c \
|
|
Tremolo/framing.c \
|
|
Tremolo/info.c \
|
|
Tremolo/mapping0.c \
|
|
Tremolo/mdct.c \
|
|
Tremolo/misc.c \
|
|
Tremolo/res012.c \
|
|
Tremolo/vorbisfile.c
|
|
|
|
# Disable arm optimization which will cause the issue https://github.com/cocos2d/cocos2d-x/issues/17148
|
|
# ifeq ($(TARGET_ARCH),arm)
|
|
# LOCAL_SRC_FILES += \
|
|
# Tremolo/bitwiseARM.s \
|
|
# Tremolo/dpen.s \
|
|
# Tremolo/floor1ARM.s \
|
|
# Tremolo/mdctARM.s
|
|
# LOCAL_CFLAGS += \
|
|
# -D_ARM_ASSEM_
|
|
# # Assembly code in asm_arm.h does not compile with Clang.
|
|
# LOCAL_CLANG_ASFLAGS_arm += \
|
|
# -no-integrated-as
|
|
# else
|
|
LOCAL_CFLAGS += \
|
|
-DONLY_C
|
|
# endif
|
|
LOCAL_CFLAGS+= -O2
|
|
|
|
LOCAL_C_INCLUDES:= \
|
|
$(LOCAL_PATH)/Tremolo
|
|
|
|
LOCAL_ARM_MODE := arm
|
|
|
|
LOCAL_MODULE := libvorbisidec
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|