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
2209e091
Commit
2209e091
authored
Jun 13, 2014
by
Vittorio Giovara
Committed by
Jean-Baptiste Kempf
Jun 14, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
contrib: libvpx: allow compiling on android
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
58c5bed5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
3 deletions
+46
-3
contrib/src/vpx/libvpx-mac.patch
contrib/src/vpx/libvpx-mac.patch
+4
-2
contrib/src/vpx/libvpx-sysroot.patch
contrib/src/vpx/libvpx-sysroot.patch
+31
-0
contrib/src/vpx/rules.mak
contrib/src/vpx/rules.mak
+11
-1
No files found.
contrib/src/vpx/libvpx-mac.patch
View file @
2209e091
...
...
@@ -4,12 +4,14 @@ VLC's contrib system is clever enough to detect this, but libvpx fails miserably
diff -ru libvpx/build/make/configure.sh libvpx/build/make/configure.sh
--- libvpx/build/make/configure.sh 2012-06-08 10:26:47.000000000 +0200
+++ libvpx-fixed/build/make/configure.sh 2012-06-08 10:26:07.000000000 +0200
@@ -628,6 +628,
9
@@
@@ -628,6 +628,
11
@@
if [ -d "/Developer/SDKs/MacOSX10.7.sdk" ]; then
osx_sdk_dir="/Developer/SDKs/MacOSX10.7.sdk"
fi
+ if [ -d "${sdk_path}" ]; then
+ osx_sdk_dir=${sdk_path}
+ case "${sdk_path}" in
+ darwin*) osx_sdk_dir=${sdk_path} ;;
+ esac
+ fi
case ${toolchain} in
...
...
contrib/src/vpx/libvpx-sysroot.patch
0 → 100644
View file @
2209e091
Our contrib system already passes the correct sysroot to the compiler, so there
is no need to set an alternate libc path. If that path is empty the script will
try to look for it in some fashion, but since the SDKROOT may be in a
non standard location the look up may fail.
This patch avoids that case and relies on the user configuration for the
correct sysroot.
See also https://code.google.com/p/webm/issues/detail?id=809
diff --git a/build/make/configure.sh b/build/make/configure.sh
index d4124c7..c420d25 100755
--- a/build/make/configure.sh
+++ b/build/make/configure.sh
@@ -939,8 +939,11 @@
EOF
awk '{ print $1 }' | tail -1`
fi
- add_cflags "--sysroot=${alt_libc}"
- add_ldflags "--sysroot=${alt_libc}"
+ # this may happen if toolchain binaries are outside the ndk dir
+ if [ "${alt_libc}" ]; then
+ add_cflags "--sysroot=${alt_libc}"
+ add_ldflags "--sysroot=${alt_libc}"
+ fi
# linker flag that routes around a CPU bug in some
# Cortex-A8 implementations (NDK Dev Guide)
--
1.8.3.2
contrib/src/vpx/rules.mak
View file @
2209e091
...
...
@@ -10,6 +10,7 @@ $(TARBALLS)/libvpx-$(VPX_VERSION).tar.bz2:
libvpx
:
libvpx-$(VPX_VERSION).tar.bz2 .sum-vpx
$(UNPACK)
$(APPLY)
$(SRC)
/vpx/libvpx-sysroot.patch
$(APPLY)
$(SRC)
/vpx/libvpx-no-cross.patch
$(APPLY)
$(SRC)
/vpx/libvpx-mac.patch
$(MOVE)
...
...
@@ -38,7 +39,9 @@ else ifeq ($(ARCH),x86_64)
VPX_ARCH
:=
x86_64
endif
ifdef
HAVE_LINUX
ifdef
HAVE_ANDROID
VPX_OS
:=
android
else
ifdef
HAVE_LINUX
VPX_OS
:=
linux
else
ifdef
HAVE_DARWIN_OS
ifeq
($(ARCH),arm)
...
...
@@ -83,6 +86,13 @@ endif
ifdef
HAVE_IOS
VPX_CONF
+=
--sdk-path
=
$(SDKROOT)
endif
ifdef
HAVE_ANDROID
# vpx configure.sh overrides our sysroot and it looks for it itself, and
# uses that path to look for the compiler (which we already know)
VPX_CONF
+=
--sdk-path
=
$(
shell
dirname
$(
shell
which
$(HOST)
-gcc
))
# needed for cpu-features.h
VPX_CONF
+=
--extra-cflags
=
"-I
$(ANDROID_NDK)
/sources/cpufeatures/"
endif
.vpx
:
libvpx
cd
$<
&&
CROSS
=
$(VPX_CROSS)
./configure
--target
=
$(VPX_TARGET)
\
...
...
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