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
4dc62701
Commit
4dc62701
authored
Nov 16, 2006
by
Måns Rullgård
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify [TARGET_]ARCH_* setting
Originally committed as revision 7108 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
f57620d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
57 deletions
+25
-57
configure
configure
+25
-57
No files found.
configure
View file @
4dc62701
...
...
@@ -1820,63 +1820,31 @@ echo "SLIBPREF=$SLIBPREF" >> config.mak
echo
"SLIBSUF=
\$
{BUILDSUF}
$SLIBSUF
"
>>
config.mak
echo
"EXESUF=
\$
{BUILDSUF}
$EXESUF
"
>>
config.mak
echo
"TARGET_OS=
$targetos
"
>>
config.mak
if
test
"
$arch
"
=
"x86_32"
-o
"
$arch
"
=
"x86_64"
;
then
echo
"TARGET_ARCH_X86=yes"
>>
config.mak
echo
"#define ARCH_X86 1"
>>
$TMPH
fi
if
test
"
$arch
"
=
"x86_32"
;
then
echo
"TARGET_ARCH_X86_32=yes"
>>
config.mak
echo
"#define ARCH_X86_32 1"
>>
$TMPH
elif
test
"
$arch
"
=
"x86_64"
;
then
echo
"TARGET_ARCH_X86_64=yes"
>>
config.mak
echo
"#define ARCH_X86_64 1"
>>
$TMPH
elif
test
"
$arch
"
=
"armv4l"
;
then
echo
"TARGET_ARCH_ARMV4L=yes"
>>
config.mak
echo
"#define ARCH_ARMV4L 1"
>>
$TMPH
elif
test
"
$arch
"
=
"alpha"
;
then
echo
"TARGET_ARCH_ALPHA=yes"
>>
config.mak
echo
"#define ARCH_ALPHA 1"
>>
$TMPH
elif
test
"
$arch
"
=
"sparc64"
;
then
echo
"TARGET_ARCH_SPARC64=yes"
>>
config.mak
echo
"#define ARCH_SPARC64 1"
>>
$TMPH
echo
"TARGET_ARCH_SPARC=yes"
>>
config.mak
echo
"#define ARCH_SPARC 1"
>>
$TMPH
elif
test
"
$arch
"
=
"sparc"
;
then
echo
"TARGET_ARCH_SPARC=yes"
>>
config.mak
echo
"#define ARCH_SPARC 1"
>>
$TMPH
elif
test
"
$arch
"
=
"powerpc"
;
then
echo
"TARGET_ARCH_POWERPC=yes"
>>
config.mak
echo
"#define ARCH_POWERPC 1"
>>
$TMPH
if
test
$POWERPCMODE
=
"32bits"
;
then
echo
"#define POWERPC_MODE_32BITS 1"
>>
$TMPH
else
echo
"#define POWERPC_MODE_64BITS 1"
>>
$TMPH
fi
if
test
"
$powerpc_perf
"
=
"yes"
;
then
echo
"#define POWERPC_PERFORMANCE_REPORT 1"
>>
$TMPH
fi
elif
test
"
$arch
"
=
"mips"
;
then
echo
"TARGET_ARCH_MIPS=yes"
>>
config.mak
echo
"#define ARCH_MIPS 1"
>>
$TMPH
elif
test
"
$arch
"
=
"sh4"
;
then
echo
"TARGET_ARCH_SH4=yes"
>>
config.mak
echo
"#define ARCH_SH4 1"
>>
$TMPH
elif
test
"
$arch
"
=
"parisc"
;
then
echo
"TARGET_ARCH_PARISC=yes"
>>
config.mak
echo
"#define ARCH_PARISC 1"
>>
$TMPH
elif
test
"
$arch
"
=
"s390"
;
then
echo
"TARGET_ARCH_S390=yes"
>>
config.mak
echo
"#define ARCH_S390 1"
>>
$TMPH
elif
test
"
$arch
"
=
"m68k"
;
then
echo
"TARGET_ARCH_M68K=yes"
>>
config.mak
echo
"#define ARCH_M68K 1"
>>
$TMPH
elif
test
"
$arch
"
=
"ia64"
;
then
echo
"TARGET_ARCH_IA64=yes"
>>
config.mak
echo
"#define ARCH_IA64 1"
>>
$TMPH
elif
test
"
$arch
"
=
"bfin"
;
then
echo
"TARGET_ARCH_BFIN=yes"
>>
config.mak
echo
"#define ARCH_BFIN 1"
>>
$TMPH
fi
ucarch
=
`
toupper
$arch
`
echo
"TARGET_ARCH_
${
ucarch
}
=yes"
>>
config.mak
echo
"#define ARCH_
${
ucarch
}
1"
>>
$TMPH
# special cases
case
"
$arch
"
in
x86_32|x86_64
)
echo
"TARGET_ARCH_X86=yes"
>>
config.mak
echo
"#define ARCH_X86 1"
>>
$TMPH
;;
powerpc
)
if
test
"
$POWERPCMODE
"
=
"64bits"
;
then
echo
"#define POWERPC_MODE_64BITS 1"
>>
$TMPH
fi
if
test
"
$powerpc_perf
"
=
"yes"
;
then
echo
"#define POWERPC_PERFORMANCE_REPORT 1"
>>
$TMPH
fi
;;
sparc64
)
echo
"TARGET_ARCH_SPARC=yes"
>>
config.mak
echo
"#define ARCH_SPARC 1"
>>
$TMPH
;;
esac
echo
"#define TUNECPU
$TUNECPU
"
>>
$TMPH
if
test
"
$bigendian
"
=
"yes"
;
then
echo
"WORDS_BIGENDIAN=yes"
>>
config.mak
...
...
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