media/libspeex_resampler/update.sh
author Benoit Girard <b56girard@gmail.com>
Tue, 16 Jul 2013 16:17:18 -0400
changeset 154501 b5319d82251e332db56a65a778f8b159511eb5ac
parent 152464 adeb3608cd4114359cc0eff753f704ed578deb11
child 155302 65485a61c3a9faeb70ee97e60bc370cff9bb68a9
permissions -rw-r--r--
Bug 873378 - Add a limit on mobile of 20 layers per container layer. r=roc

# 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 http://mozilla.org/MPL/2.0/.

# Usage: ./update.sh <libspeex_src_directory>
#
# Copies the needed files from a directory containing the original
# libspeex sources.

cp $1/libspeex/resample.c src
cp $1/libspeex/resample_sse.h src
cp $1/libspeex/arch.h src
cp $1/libspeex/stack_alloc.h src
cp $1/libspeex/fixed_generic.h src
cp $1/include/speex/speex_resampler.h src
cp $1/include/speex/speex_types.h src
sed -e 's/unsigned @SIZE16@/uint16_t/g' -e 's/unsigned @SIZE32@/uint32_t/g' -e 's/@SIZE16@/int16_t/g' -e 's/@SIZE32@/int32_t/g' < $1/include/speex/speex_config_types.h.in > src/speex_config_types.h
cp $1/AUTHORS .
cp $1/COPYING .

# apply outstanding local patches
patch -p1 < truncation.patch
patch -p1 < sse-detect-runtime.patch