flatten 20260225
This commit is contained in:
13
resources/packages/speex/Makefile.project
Executable file
13
resources/packages/speex/Makefile.project
Executable file
@@ -0,0 +1,13 @@
|
||||
include $(MAKEDIR)/Makefile.base
|
||||
|
||||
PROJECTS := libspeex
|
||||
INCPATH := -I include -I libspeex
|
||||
LIBFILE := libspeex.a
|
||||
|
||||
COPYTO := ../../sdk/lib
|
||||
|
||||
_FLAGS := $(_FLAGS) -DHAVE_CONFIG_H
|
||||
|
||||
include $(MAKEDIR)/Makefile.lib
|
||||
|
||||
|
||||
20
resources/packages/speex/config.h
Executable file
20
resources/packages/speex/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/speex/prepare
Executable file
28
resources/packages/speex/prepare
Executable file
@@ -0,0 +1,28 @@
|
||||
set -x
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
mkdir -p sdk/include
|
||||
|
||||
LIB=speex
|
||||
|
||||
mkdir $LIB
|
||||
pushd $LIB
|
||||
|
||||
git clone --depth 1 https://gitlab.xiph.org/xiph/speex.git --branch Speex-1.2.1
|
||||
|
||||
cp -av $DIR/Makefile.* $LIB/
|
||||
cp -av $DIR/config.h speex/include/
|
||||
cp -av $DIR/speex_config_types.h speex/include/speex/speex_config_types.h
|
||||
|
||||
ln -s $DIR/../../Makefile-template speex/Makefile
|
||||
|
||||
pushd speex
|
||||
make
|
||||
popd
|
||||
|
||||
popd
|
||||
|
||||
pushd sdk/include
|
||||
ln -fs ../../speex/speex/include/speex speex
|
||||
popd
|
||||
|
||||
7
resources/packages/speex/speex_config_types.h
Normal file
7
resources/packages/speex/speex_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