Bug 1836959 - Vendor kiss_fft using `mach vendor` r=glandium

Differential Revision: https://phabricator.services.mozilla.com/D180084
This commit is contained in:
serge-sans-paille 2023-06-07 05:33:46 +00:00
Родитель 6651c13d9f
Коммит 26ecfb32d7
3 изменённых файлов: 49 добавлений и 42 удалений

Просмотреть файл

@ -1,8 +0,0 @@
The source from this directory was copied from the kissfft hg repository using
the update.sh script. The only changes made were those applied by update.sh
and the addition of moz.build and Makefile.in build files for the Mozilla build
system.
The kissfft hg repository is: http://hg.code.sf.net/p/kissfft/code
The hg revision ID used was fbe1bb0bc7b94ec252842b8b7e3f3347ec75d92f.

49
media/kiss_fft/moz.yaml Normal file
Просмотреть файл

@ -0,0 +1,49 @@
schema: 1
bugzilla:
product: Core
component: "Web Audio"
origin:
name: kiss_fft
description: A mixed-radix Fast Fourier Transform
url: https://github.com/mborgerding/kissfft
release: 1c3d6f5aa9eb2bf2f18641f0a7e3e6f5e523a156 (2017-10-25T13:50:40Z).
revision: 1c3d6f5aa9eb2bf2f18641f0a7e3e6f5e523a156
license: BSD-3-Clause
license-file: COPYING
vendoring:
url: https://github.com/mborgerding/kissfft
source-hosting: github
tracking: commit
exclude:
- ".*"
- test
- tools/fftutil.c
- tools/psdpng.c
- "tools/kiss_fftnd*"
- tools/kiss_fastfir.c
- "tools/kfc.*"
- "tools/.*"
- TIPS
- kissfft.hh
- tools/Makefile
- Makefile
keep:
- COPYING
- _kiss_fft_guts.h
- kiss_fft.c
- kiss_fft.h
- tools/kiss_fftr.c
- tools/kiss_fftr.h
update-actions:
- action: move-dir
from: '{vendor_dir}/tools'
to: '{vendor_dir}'

Просмотреть файл

@ -1,34 +0,0 @@
# Usage: sh update.sh <upstream_src_directory>
set -e
if [ ! -d "$1" ]; then
echo "Usage: ./update.sh /path/to/kiss_fft" > 2
exit 1
fi
FILES="CHANGELOG \
COPYING \
README \
README.simd \
_kiss_fft_guts.h \
kiss_fft.c \
kiss_fft.h \
tools/kiss_fftr.c \
tools/kiss_fftr.h"
for file in $FILES; do
cp "$1/$file" .
done
if [ -d "$1/.hg" ]; then
rev=$(cd "$1" && hg log --template='{node}' -r `hg identify -i`)
fi
if [ -n "$rev" ]; then
version=$rev
sed -i.bak -e "/The hg revision ID used was/ s/[0-9a-f]\{40\}\./$version./" README_MOZILLA
rm README_MOZILLA.bak
else
echo "Remember to update README_MOZILLA with the version details."
fi