Feature: update the shell of faac

pull/221/head
xufuji456 2 years ago
parent bfbd6df00b
commit 5828575bf1
  1. 17
      shell/faac/Android.mk
  2. 12
      shell/faac/CMakeLists.txt
  3. 19
      shell/shine/Android.mk

@ -1,17 +0,0 @@
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := faac
LOCAL_CFLAGS :=
LOCAL_SRC_FILES := libfaac/aacquant.c libfaac/backpred.c libfaac/bitstream.c \
libfaac/channels.c libfaac/fft.c libfaac/filtbank.c libfaac/frame.c \
libfaac/huffman.c libfaac/ltp.c libfaac/midside.c libfaac/psychkni.c \
libfaac/tns.c libfaac/util.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/libfaac
LOCAL_LDLIBS := -llog
LOCAL_LDLIBS += -landroid
include $(BUILD_STATIC_LIBRARY)

@ -0,0 +1,12 @@
cmake_minimum_required(VERSION 3.4.1)
project("faac")
# the path of faac source code
aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/libfaac FAAC_SRC)
add_library(faac
SHARED
${FAAC_SRC})
target_link_libraries(faac)

@ -1,19 +0,0 @@
WORKING_DIR := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_PATH := $(WORKING_DIR)
LOCAL_ARM_MODE := arm
LOCAL_MODULE := shine
LOCAL_SRC_FILES := shine/bitstream.c shine/huffman.c \
shine/l3bitstream.c shine/l3loop.c shine/l3mdct.c \
shine/l3subband.c shine/layer3.c shine/reservoir.c \
shine/tables.c
LOCAL_LDLIBS := -llog -lz -lm -landroid
LOCAL_C_INCLUDES := shine
LOCAL_LDLIBS := -llog -lz -lm -landroid
include $(BUILD_STATIC_LIBRARY)
#include $(BUILD_SHARED_LIBRARY)
Loading…
Cancel
Save