author Gijs Kruitbosch <>
Wed, 13 Jul 2016 12:05:22 +0100
changeset 347232 fb5fa9e3a52bf056d922c36f38d4ab8a55380307
parent 337987 afe186de263fa4ddd827c5b9aa6520cc23a0042b
child 397623 4b1b4e0d85790a4cc752993c1cbf12e4a4ce0e3d
permissions -rw-r--r--
Bug 1281787, r=bz MozReview-Commit-ID: JLdLD57pF87

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at

# Usage: ./ <speexdsp_directory>
# Copies the needed files from a directory containing the original
# speexdsp sources.

set -e -x

cp $1/libspeexdsp/resample.c src
cp $1/libspeexdsp/resample_sse.h src/resample_sse.c
cp $1/libspeexdsp/resample_neon.h src/resample_neon.c
cp $1/libspeexdsp/arch.h src
cp $1/libspeexdsp/stack_alloc.h src
cp $1/libspeexdsp/fixed_generic.h src
cp $1/include/speex/speex_resampler.h src
cp $1/AUTHORS .
cp $1/COPYING .

# apply outstanding local patches
patch -p3 < outside-speex.patch
patch -p3 < simd-detect-runtime.patch
patch -p3 < set-skip-frac.patch
patch -p3 < hugemem.patch
patch -p3 < remove-empty-asm-clobber.patch
patch -p3 < handle-memory-error.patch
patch -p3 < fix-overflow.patch