Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Casanowow Life for love
VLC-Android
Commits
f5638b6c
Commit
f5638b6c
authored
Jan 18, 2012
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HOWTO: reorder
build VLC first
parent
4b9863f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
37 deletions
+42
-37
HOWTO
HOWTO
+42
-37
No files found.
HOWTO
View file @
f5638b6c
...
...
@@ -16,41 +16,7 @@ if [ -z "$ANDROID_NDK" -o -z "$ANDROID_SDK" ]; then
exit
1
fi
# Using CyanogenMod headers instead of AOSP, since CyanogenMod
# has commit 1563f4aca88d354c502dba056d173cefc7c2ea7f,
# "Stagefright: Memcpy optimization on output port." (available
# upstream at https://www.codeaurora.org/gitweb/quic/la/?p=platform/frameworks/base.git;a=commit;h=052368f194c9fc180b9b0335b60114a2f1fb88d8),
# which adds some vtable entries needed on newer qualcomm devices.
if
[
!
-d
"android-headers/frameworks/base"
]
;
then
echo
"Fetching Android system headers (1/2)"
git clone
-b
gingerbread
--depth
=
1 git://github.com/CyanogenMod/android_frameworks_base.git android-headers/frameworks/base
else
echo
"Updating Android system headers (1/2)"
pushd
android-headers/frameworks/base
>
/dev/null
git pull origin gingerbread
popd
>
/dev/null
fi
if
[
!
-d
"android-headers/system/core"
]
;
then
echo
"Fetching Android system headers (2/2)"
git clone
-b
gingerbread
--depth
=
1 git://github.com/CyanogenMod/android_system_core.git android-headers/system/core
else
echo
"Updating Android system headers (2/2)"
pushd
android-headers/system/core
>
/dev/null
git pull origin gingerbread
popd
>
/dev/null
fi
export
ANDROID_SYS_HEADERS
=
${
PWD
}
/android-headers
echo
"Fetching Android libraries for linking"
# Libraries from any froyo/gingerbread device/emulator should work
# fine, since the symbols used should be available on most of them.
if
[
!
-f
"update-cm-7.1.0.1-NS-signed.zip"
]
;
then
curl
-O
http://mirror.sea.tdrevolution.net/cm/stable/gingerbread/update-cm-7.1.0.1-NS-signed.zip
unzip update-cm-7.1.0.1-NS-signed.zip system/lib/
\*
mv
system/lib android-libs
rmdir
system
fi
export
ANDROID_LIBS
=
${
PWD
}
/android-libs
# 1/ libvlc, libvlccore and its plugins
if
[
!
-d
"vlc"
]
;
then
echo
"VLC source not found, cloning"
...
...
@@ -90,8 +56,8 @@ cd ../.. && mkdir -p android && cd android
if
test
!
-s
"../configure"
then
echo
"Bootstraping"
.
./bootstrap
fi
;
(
cd
..
&&
./bootstrap
)
fi
echo
"Configuring"
sh ../extras/package/android/configure.sh
...
...
@@ -99,8 +65,47 @@ sh ../extras/package/android/configure.sh
echo
"Building"
make
# 2/ VLC android UI and specific code
echo
"Building Android"
cd
../../
# Using CyanogenMod headers instead of AOSP, since CyanogenMod
# has commit 1563f4aca88d354c502dba056d173cefc7c2ea7f,
# "Stagefright: Memcpy optimization on output port." (available
# upstream at https://www.codeaurora.org/gitweb/quic/la/?p=platform/frameworks/base.git;a=commit;h=052368f194c9fc180b9b0335b60114a2f1fb88d8),
# which adds some vtable entries needed on newer qualcomm devices.
if
[
!
-d
"android-headers/frameworks/base"
]
;
then
echo
"Fetching Android system headers (1/2)"
git clone
-b
gingerbread
--depth
=
1 git://github.com/CyanogenMod/android_frameworks_base.git android-headers/frameworks/base
else
echo
"Updating Android system headers (1/2)"
pushd
android-headers/frameworks/base
>
/dev/null
git pull origin gingerbread
popd
>
/dev/null
fi
if
[
!
-d
"android-headers/system/core"
]
;
then
echo
"Fetching Android system headers (2/2)"
git clone
-b
gingerbread
--depth
=
1 git://github.com/CyanogenMod/android_system_core.git android-headers/system/core
else
echo
"Updating Android system headers (2/2)"
pushd
android-headers/system/core
>
/dev/null
git pull origin gingerbread
popd
>
/dev/null
fi
export
ANDROID_SYS_HEADERS
=
${
PWD
}
/android-headers
echo
"Fetching Android libraries for linking"
# Libraries from any froyo/gingerbread device/emulator should work
# fine, since the symbols used should be available on most of them.
if
[
!
-f
"update-cm-7.1.0.1-NS-signed.zip"
]
;
then
curl
-O
http://mirror.sea.tdrevolution.net/cm/stable/gingerbread/update-cm-7.1.0.1-NS-signed.zip
unzip update-cm-7.1.0.1-NS-signed.zip system/lib/
\*
mv
system/lib android-libs
rmdir
system
fi
export
ANDROID_LIBS
=
${
PWD
}
/android-libs
make distclean
VLC_BUILD_DIR
=
vlc/android make
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