Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
54e75be4
Commit
54e75be4
authored
Sep 12, 2011
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: refactor lists of tests and components into variables
parent
11b1db27
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
28 deletions
+20
-28
configure
configure
+20
-28
No files found.
configure
View file @
54e75be4
...
@@ -1748,6 +1748,20 @@ INDEV_LIST=$(find_things indev _IN libavdevice/alldevices.c)
...
@@ -1748,6 +1748,20 @@ INDEV_LIST=$(find_things indev _IN libavdevice/alldevices.c)
PROTOCOL_LIST
=
$(
find_things protocol PROTOCOL libavformat/allformats.c
)
PROTOCOL_LIST
=
$(
find_things protocol PROTOCOL libavformat/allformats.c
)
FILTER_LIST
=
$(
find_things filter FILTER libavfilter/allfilters.c
)
FILTER_LIST
=
$(
find_things filter FILTER libavfilter/allfilters.c
)
ALL_COMPONENTS
=
"
$BSF_LIST
$DECODER_LIST
$DEMUXER_LIST
$ENCODER_LIST
$FILTER_LIST
$HWACCEL_LIST
$INDEV_LIST
$MUXER_LIST
$OUTDEV_LIST
$PARSER_LIST
$PROTOCOL_LIST
"
find_tests
(){
find_tests
(){
map
"echo
${
2
}
\$
{v}_test"
$(
ls
"
$source_path
"
/tests/ref/
$1
|
grep
-v
'[^-a-z0-9_]'
)
map
"echo
${
2
}
\$
{v}_test"
$(
ls
"
$source_path
"
/tests/ref/
$1
|
grep
-v
'[^-a-z0-9_]'
)
}
}
...
@@ -1758,6 +1772,8 @@ LAVF_TESTS=$(find_tests lavf)
...
@@ -1758,6 +1772,8 @@ LAVF_TESTS=$(find_tests lavf)
LAVFI_TESTS
=
$(
find_tests lavfi
)
LAVFI_TESTS
=
$(
find_tests lavfi
)
SEEK_TESTS
=
$(
find_tests seek seek_
)
SEEK_TESTS
=
$(
find_tests seek seek_
)
ALL_TESTS
=
"
$ACODEC_TESTS
$VCODEC_TESTS
$LAVF_TESTS
$LAVFI_TESTS
$SEEK_TESTS
"
pcm_test_deps
=
$(
map
'echo ${v%_*}_decoder $v'
$(
filter pcm_
*
$ENCODER_LIST
))
pcm_test_deps
=
$(
map
'echo ${v%_*}_decoder $v'
$(
filter pcm_
*
$ENCODER_LIST
))
for
n
in
$COMPONENT_LIST
;
do
for
n
in
$COMPONENT_LIST
;
do
...
@@ -1766,7 +1782,7 @@ for n in $COMPONENT_LIST; do
...
@@ -1766,7 +1782,7 @@ for n in $COMPONENT_LIST; do
eval
${
n
}
_if_any
=
"
\$
$v
"
eval
${
n
}
_if_any
=
"
\$
$v
"
done
done
enable
$ARCH_EXT_LIST
$A
CODEC_TESTS
$VCODEC_TESTS
$LAVF_TESTS
$LAVFI_TESTS
$SEEK
_TESTS
enable
$ARCH_EXT_LIST
$A
LL
_TESTS
die_unknown
(){
die_unknown
(){
echo
"Unknown option
\"
$1
\"
."
echo
"Unknown option
\"
$1
\"
."
...
@@ -3119,22 +3135,8 @@ enabled_any $THREADS_LIST && enable threads
...
@@ -3119,22 +3135,8 @@ enabled_any $THREADS_LIST && enable threads
check_deps
$CONFIG_LIST
\
check_deps
$CONFIG_LIST
\
$CONFIG_EXTRA
\
$CONFIG_EXTRA
\
$HAVE_LIST
\
$HAVE_LIST
\
$DECODER_LIST
\
$ALL_COMPONENTS
\
$ENCODER_LIST
\
$ALL_TESTS
\
$HWACCEL_LIST
\
$PARSER_LIST
\
$BSF_LIST
\
$DEMUXER_LIST
\
$MUXER_LIST
\
$FILTER_LIST
\
$INDEV_LIST
\
$OUTDEV_LIST
\
$PROTOCOL_LIST
\
$ACODEC_TESTS
\
$VCODEC_TESTS
\
$LAVF_TESTS
\
$LAVFI_TESTS
\
$SEEK_TESTS
\
enabled asm
||
{
arch
=
c
;
disable
$ARCH_LIST
$ARCH_EXT_LIST
;
}
enabled asm
||
{
arch
=
c
;
disable
$ARCH_LIST
$ARCH_EXT_LIST
;
}
...
@@ -3382,17 +3384,7 @@ print_config ARCH_ "$config_files" $ARCH_LIST
...
@@ -3382,17 +3384,7 @@ print_config ARCH_ "$config_files" $ARCH_LIST
print_config HAVE_
"
$config_files
"
$HAVE_LIST
print_config HAVE_
"
$config_files
"
$HAVE_LIST
print_config CONFIG_
"
$config_files
"
$CONFIG_LIST
\
print_config CONFIG_
"
$config_files
"
$CONFIG_LIST
\
$CONFIG_EXTRA
\
$CONFIG_EXTRA
\
$DECODER_LIST
\
$ALL_COMPONENTS
\
$ENCODER_LIST
\
$HWACCEL_LIST
\
$PARSER_LIST
\
$BSF_LIST
\
$DEMUXER_LIST
\
$MUXER_LIST
\
$FILTER_LIST
\
$PROTOCOL_LIST
\
$INDEV_LIST
\
$OUTDEV_LIST
\
cat
>>
config.mak
<<
EOF
cat
>>
config.mak
<<
EOF
ACODEC_TESTS=
$(
print_enabled
-n
_test
$ACODEC_TESTS
)
ACODEC_TESTS=
$(
print_enabled
-n
_test
$ACODEC_TESTS
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment