https://github.com/mozilla/gecko-dev
Raw File
Tip revision: 3e9bc5337f84a381e45a23a4799c593f0cda6105 authored by ffxbld on 12 November 2013, 23:28:48 UTC
Added FENNEC_25_0_1_RELEASE FENNEC_25_0_1_BUILD1 tag(s) for changeset 1b5bfddac9a3. DONTBUILD CLOSED TREE a=release
Tip revision: 3e9bc53
update.sh
# 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
back to top