flatten 20260225
This commit is contained in:
15
resources/packages/speexdsp/Makefile.project
Executable file
15
resources/packages/speexdsp/Makefile.project
Executable file
@@ -0,0 +1,15 @@
|
||||
include $(MAKEDIR)/Makefile.base
|
||||
|
||||
PROJECTS := libspeexdsp
|
||||
INCPATH := -I include -I libspeex
|
||||
LIBFILE := libspeexdsp.a
|
||||
|
||||
FILTER_OUT_M := %
|
||||
|
||||
COPYTO := ../../sdk/lib
|
||||
|
||||
_FLAGS := $(_FLAGS) -DHAVE_CONFIG_H
|
||||
|
||||
include $(MAKEDIR)/Makefile.lib
|
||||
|
||||
|
||||
20
resources/packages/speexdsp/config.h
Executable file
20
resources/packages/speexdsp/config.h
Executable file
@@ -0,0 +1,20 @@
|
||||
//
|
||||
// config.h
|
||||
// Speex
|
||||
//
|
||||
// Created by Timothy Prepscius on 3/15/15.
|
||||
// Copyright (c) 2015 Timothy Prepscius. All rights reserved.
|
||||
//
|
||||
|
||||
#ifndef Speex_config_h
|
||||
#define Speex_config_h
|
||||
|
||||
#define EXPORT
|
||||
#define USE_SMALLFT
|
||||
#define HAVE_GETOPT_H
|
||||
#define HAVE_GETOPT_LONG
|
||||
|
||||
//#define FIXED_POINT
|
||||
#define FLOATING_POINT
|
||||
|
||||
#endif
|
||||
28
resources/packages/speexdsp/prepare
Executable file
28
resources/packages/speexdsp/prepare
Executable file
@@ -0,0 +1,28 @@
|
||||
set -x
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
mkdir -p sdk/include
|
||||
|
||||
LIB=speexdsp
|
||||
|
||||
mkdir $LIB
|
||||
pushd $LIB
|
||||
|
||||
git clone --depth 1 https://gitlab.xiph.org/xiph/speexdsp.git --branch SpeexDSP-1.2.1
|
||||
|
||||
cp -av $DIR/Makefile.* $LIB/
|
||||
cp -av $DIR/config.h $LIB/include/
|
||||
cp -av $DIR/speexdsp_config_types.h speexdsp/include/speex/speexdsp_config_types.h
|
||||
mv $LIB/Makefile $LIB/Makefile.no
|
||||
ln -s $DIR/../../Makefile-template $LIB/Makefile
|
||||
|
||||
pushd speexdsp
|
||||
make
|
||||
popd
|
||||
|
||||
popd
|
||||
|
||||
pushd sdk/include
|
||||
ln -fs ../../speexdsp/speexdsp/include/speex speexdsp
|
||||
popd
|
||||
|
||||
7
resources/packages/speexdsp/speexdsp_config_types.h
Normal file
7
resources/packages/speexdsp/speexdsp_config_types.h
Normal file
@@ -0,0 +1,7 @@
|
||||
#include <stdint.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
typedef int16_t spx_int16_t;
|
||||
typedef u_int16_t spx_uint16_t;
|
||||
typedef int32_t spx_int32_t;
|
||||
typedef u_int32_t spx_uint32_t;
|
||||
Reference in New Issue
Block a user