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
6a6cabf2
Commit
6a6cabf2
authored
Aug 30, 2011
by
Mohamed Naufal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add build-script for Android
parent
006d2ab4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
0 deletions
+41
-0
build.sh
build.sh
+41
-0
No files found.
build.sh
0 → 100755
View file @
6a6cabf2
#!/bin/bash
if
[
"
$NDK
"
=
""
]
;
then
echo
NDK variable not
set
, assuming
${
HOME
}
/android-ndk
export
NDK
=
${
HOME
}
/android-ndk
fi
SYSROOT
=
$NDK
/platforms/android-9/arch-arm
# Expand the prebuilt/* path into the correct one
TOOLCHAIN
=
`
echo
$NDK
/toolchains/arm-linux-androideabi-4.4.3/prebuilt/
*
-x86
`
export
PATH
=
$TOOLCHAIN
/bin:
$PATH
ANDROID_SOURCE
=
$HOME
/android
ANDROID_LIBS
=
$HOME
/glib
rm
-rf
../build/libav
mkdir
-p
../build/libav
DEST
=
../build/libav
FLAGS
=
"--target-os=linux --cross-prefix=arm-linux-androideabi- --arch=arm --cpu=armv7-a"
FLAGS
=
"
$FLAGS
--sysroot=
$SYSROOT
"
FLAGS
=
"
$FLAGS
--disable-avdevice --disable-decoder=h264 --disable-decoder=h264_vdpau --enable-libstagefright"
EXTRA_CFLAGS
=
"-I
$ANDROID_SOURCE
/frameworks/base/include -I
$ANDROID_SOURCE
/system/core/include"
EXTRA_CFLAGS
=
"
$EXTRA_CFLAGS
-I
$ANDROID_SOURCE
/frameworks/base/media/libstagefright"
EXTRA_CFLAGS
=
"
$EXTRA_CFLAGS
-I
$ANDROID_SOURCE
/frameworks/base/include/media/stagefright/openmax"
EXTRA_CFLAGS
=
"
$EXTRA_CFLAGS
-I
$NDK
/sources/cxx-stl/system/include"
EXTRA_CFLAGS
=
"
$EXTRA_CFLAGS
-march=armv7-a -mfloat-abi=softfp -mfpu=neon"
EXTRA_LDFLAGS
=
"-Wl,--fix-cortex-a8 -L
$ANDROID_LIBS
-Wl,-rpath-link,
$ANDROID_LIBS
"
EXTRA_CXXFLAGS
=
"-Wno-multichar -fno-exceptions -fno-rtti"
ABI
=
"armeabi-v7a"
DEST
=
"
$DEST
/
$ABI
"
FLAGS
=
"
$FLAGS
--prefix=
$DEST
"
mkdir
-p
$DEST
echo
$FLAGS
--extra-cflags
=
"
$EXTRA_CFLAGS
"
--extra-ldflags
=
"
$EXTRA_LDFLAGS
"
--extra-cxxflags
=
"
$EXTRA_CXXFLAGS
"
>
$DEST
/info.txt
./configure
$FLAGS
--extra-cflags
=
"
$EXTRA_CFLAGS
"
--extra-ldflags
=
"
$EXTRA_LDFLAGS
"
--extra-cxxflags
=
"
$EXTRA_CXXFLAGS
"
|
tee
$DEST
/configuration.txt
[
$PIPESTATUS
==
0
]
||
exit
1
make clean
make
-j4
||
exit
1
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