Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
7998559c
Commit
7998559c
authored
Dec 28, 2010
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Contrib: build some libs for android.
A lot of libraries are still missing.
parent
ea570fc6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
0 deletions
+35
-0
extras/contrib/bootstrap
extras/contrib/bootstrap
+19
-0
extras/contrib/src/Distributions/android.mak
extras/contrib/src/Distributions/android.mak
+16
-0
No files found.
extras/contrib/bootstrap
View file @
7998559c
...
@@ -350,6 +350,25 @@ case "$DISTRO" in
...
@@ -350,6 +350,25 @@ case "$DISTRO" in
win
*
)
win
*
)
add_makefile_cfg
"PKG_CONFIG_PATH =
\$
(PREFIX)/lib/pkgconfig"
add_makefile_cfg
"PKG_CONFIG_PATH =
\$
(PREFIX)/lib/pkgconfig"
;;
;;
android
)
if
test
-z
"
$ANDROID_NDK
"
;
then
error
"The bootstrap script requires the ANDROID_NDK environment variable "
error
"to be set when building for Android"
exit
1
fi
# The given host (arm-eabi) is not the real one (arm-linux-androideabi)
ln
-sfn
$TARGET
hosts/arm-linux-androideabi
CC
=
"arm-linux-androideabi-gcc -nostdlib -lc -lgcc"
CXX
=
"arm-linux-androideabi-g++ -nostdlib -lc -lgcc"
NM
=
arm-linux-androideabi-nm
AR
=
arm-linux-androideabi-ar
LD
=
arm-linux-androideabi-ld
RANLIB
=
arm-linux-androideabi-ranlib
STRIP
=
arm-linux-androideabi-strip
# Add the PATH to the NDK
add_makefile_cfg
"ANDROID_NDK =
${
ANDROID_NDK
}
"
add_makefile_cfg
"PATH =
${
ANDROID_NDK
}
/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/:
${
PATH
}
"
add_enabled_makefile_cfg
"HAVE_LINUX"
esac
esac
# Save passed flags
# Save passed flags
...
...
extras/contrib/src/Distributions/android.mak
0 → 100644
View file @
7998559c
# android rules
# Not compiling: .shout .ebml .matroska .live .mod .x264 .caca .mpcdec .dirac .schroedinger .libass
all
:
.zlib
\
.a52 .mpeg2 .mad .ogg .vorbis .vorbisenc .theora
\
.flac .speex .faad .lame .ffmpeg
\
.twolame
\
.png .dvbpsi
\
.dca .kate
ANDROID_INCLUDE
=
$(ANDROID_NDK)
/platforms/android-9/arch-arm/usr/include
ANDROID_LIB
=
$(ANDROID_NDK)
/platforms/android-9/arch-arm/usr/lib
EXTRA_CPPFLAGS
=
-I
$(ANDROID_INCLUDE)
EXTRA_LDFLAGS
=
-Wl
,-rpath-link
=
$(ANDROID_LIB)
,-Bdynamic,-dynamic-linker
=
/system/bin/linker
-Wl
,--no-undefined
-Wl
,-shared
-L
$(ANDROID_LIB)
EXTRA_CFLAGS
=
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