flatten 20260225

This commit is contained in:
Timothy Prepscius
2026-02-25 13:00:25 -05:00
commit b308a4c280
114 changed files with 14759 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
include $(MAKEDIR)/Makefile.base
PROJECTS := celt silk opus
INCPATH := -I include -I celt -I silk
ifdef FIXED_POINT
PROJECTS += silk/fixed
INCPATH += -I silk/fixed
else
PROJECTS += silk/float
INCPATH += -I silk/float
endif
SRC_C := $(SRC_C) \
src/opus.c \
src/opus_decoder.c \
src/opus_encoder.c \
src/opus_multistream.c \
src/opus_multistream_encoder.c \
src/opus_multistream_decoder.c \
src/repacketizer.c \
src/opus_projection_encoder.c \
src/opus_projection_decoder.c \
src/mapping_matrix.c
SRC_C := $(SRC_C) \
src/analysis.c \
src/mlp.c \
src/mlp_data.c
LIBFILE := libopus.a
COPYTO := ../../sdk/lib
_FLAGS := $(_FLAGS) -DOPUS_BUILD -DUSE_ALLOCA
include $(MAKEDIR)/Makefile.lib

25
resources/packages/opus/prepare Executable file
View File

@@ -0,0 +1,25 @@
set -x
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
mkdir -p sdk/include
LIB=opus
mkdir $LIB
pushd $LIB
git clone --depth 1 https://gitlab.xiph.org/xiph/opus.git --branch v1.4
cp -av $DIR/Makefile.project opus/
ln -s $DIR/../../Makefile-template $LIB/Makefile
pushd opus
make
popd
popd
pushd sdk/include
ln -fs ../../opus/opus/include opus
popd