Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
8546622b
Commit
8546622b
authored
Oct 31, 2014
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
contrib/vpx: fix compilation for iOS
parent
0e1d397e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
87 additions
and
7 deletions
+87
-7
contrib/src/vpx/libvpx-ios.patch
contrib/src/vpx/libvpx-ios.patch
+78
-0
contrib/src/vpx/rules.mak
contrib/src/vpx/rules.mak
+9
-7
No files found.
contrib/src/vpx/libvpx-ios.patch
0 → 100644
View file @
8546622b
diff -ru libvpx/build/make/configure.sh libvpx/build/make/configure.sh
--- libvpx/build/make/configure.sh 2014-11-04 21:34:04.000000000 +0100
+++ libvpx/build/make/configure.sh 2014-11-04 21:36:12.000000000 +0100
@@ -714,59 +714,6 @@
# PIC is probably what we want when building shared libs
enabled shared && soft_enable pic
- # Handle darwin variants. Newer SDKs allow targeting older
- # platforms, so find the newest SDK available.
- case ${toolchain} in
- *-darwin*)
- if [ -z "${DEVELOPER_DIR}" ]; then
- DEVELOPER_DIR=`xcode-select -print-path 2> /dev/null`
- [ $? -ne 0 ] && OSX_SKIP_DIR_CHECK=1
- fi
- if [ -z "${OSX_SKIP_DIR_CHECK}" ]; then
- OSX_SDK_ROOTS="${DEVELOPER_DIR}/SDKs"
- OSX_SDK_VERSIONS="MacOSX10.4u.sdk MacOSX10.5.sdk MacOSX10.6.sdk"
- OSX_SDK_VERSIONS="${OSX_SDK_VERSIONS} MacOSX10.7.sdk"
- for v in ${OSX_SDK_VERSIONS}; do
- if [ -d "${OSX_SDK_ROOTS}/${v}" ]; then
- osx_sdk_dir="${OSX_SDK_ROOTS}/${v}"
- fi
- done
- fi
- ;;
- esac
-
- if [ -d "${osx_sdk_dir}" ]; then
- add_cflags "-isysroot ${osx_sdk_dir}"
- add_ldflags "-isysroot ${osx_sdk_dir}"
- fi
-
- case ${toolchain} in
- *-darwin8-*)
- add_cflags "-mmacosx-version-min=10.4"
- add_ldflags "-mmacosx-version-min=10.4"
- ;;
- *-darwin9-*)
- add_cflags "-mmacosx-version-min=10.5"
- add_ldflags "-mmacosx-version-min=10.5"
- ;;
- *-darwin10-*)
- add_cflags "-mmacosx-version-min=10.6"
- add_ldflags "-mmacosx-version-min=10.6"
- ;;
- *-darwin11-*)
- add_cflags "-mmacosx-version-min=10.7"
- add_ldflags "-mmacosx-version-min=10.7"
- ;;
- *-darwin12-*)
- add_cflags "-mmacosx-version-min=10.8"
- add_ldflags "-mmacosx-version-min=10.8"
- ;;
- *-darwin13-*)
- add_cflags "-mmacosx-version-min=10.9"
- add_ldflags "-mmacosx-version-min=10.9"
- ;;
- esac
-
# Handle Solaris variants. Solaris 10 needs -lposix4
case ${toolchain} in
sparc-solaris-*)
@@ -1070,7 +1017,13 @@
;;
gcc*)
add_cflags -m${bits}
- add_ldflags -m${bits}
+ case ${tgt_os} in
+ darwin*)
+ ;;
+ *)
+ add_ldflags -m${bits}
+ ;;
+ esac
link_with_cc=gcc
tune_cflags="-march="
setup_gnu_toolchain
contrib/src/vpx/rules.mak
View file @
8546622b
...
@@ -13,6 +13,7 @@ libvpx: libvpx-$(VPX_VERSION).tar.bz2 .sum-vpx
...
@@ -13,6 +13,7 @@ libvpx: libvpx-$(VPX_VERSION).tar.bz2 .sum-vpx
$(APPLY)
$(SRC)
/vpx/libvpx-sysroot.patch
$(APPLY)
$(SRC)
/vpx/libvpx-sysroot.patch
$(APPLY)
$(SRC)
/vpx/libvpx-no-cross.patch
$(APPLY)
$(SRC)
/vpx/libvpx-no-cross.patch
$(APPLY)
$(SRC)
/vpx/libvpx-mac.patch
$(APPLY)
$(SRC)
/vpx/libvpx-mac.patch
$(APPLY)
$(SRC)
/vpx/libvpx-ios.patch
$(MOVE)
$(MOVE)
DEPS_vpx
=
DEPS_vpx
=
...
@@ -23,6 +24,8 @@ else
...
@@ -23,6 +24,8 @@ else
VPX_CROSS
:=
VPX_CROSS
:=
endif
endif
VPX_LDFLAGS
:=
$(LDFLAGS)
ifeq
($(ARCH),arm)
ifeq
($(ARCH),arm)
VPX_ARCH
:=
armv7
VPX_ARCH
:=
armv7
else
ifeq
($(ARCH),i386)
else
ifeq
($(ARCH),i386)
...
@@ -43,16 +46,14 @@ ifdef HAVE_ANDROID
...
@@ -43,16 +46,14 @@ ifdef HAVE_ANDROID
VPX_OS
:=
android
VPX_OS
:=
android
else
ifdef
HAVE_LINUX
else
ifdef
HAVE_LINUX
VPX_OS
:=
linux
VPX_OS
:=
linux
else
ifdef
HAVE_DARWIN_OS
else
ifdef
HAVE_MACOSX
ifeq
($(ARCH),arm)
VPX_OS
:=
darwin
else
ifeq
($(OSX_VERSION),10.5)
ifeq
($(OSX_VERSION),10.5)
VPX_OS
:=
darwin9
VPX_OS
:=
darwin9
else
else
VPX_OS
:=
darwin10
VPX_OS
:=
darwin10
endif
endif
endif
else
ifdef
HAVE_IOS
VPX_OS
:=
darwin11
else
ifdef
HAVE_SOLARIS
else
ifdef
HAVE_SOLARIS
VPX_OS
:=
solaris
VPX_OS
:=
solaris
else
ifdef
HAVE_WIN64
# must be before WIN32
else
ifdef
HAVE_WIN64
# must be before WIN32
...
@@ -89,7 +90,8 @@ ifdef HAVE_MACOSX
...
@@ -89,7 +90,8 @@ ifdef HAVE_MACOSX
VPX_CONF
+=
--sdk-path
=
$(MACOSX_SDK)
VPX_CONF
+=
--sdk-path
=
$(MACOSX_SDK)
endif
endif
ifdef
HAVE_IOS
ifdef
HAVE_IOS
VPX_CONF
+=
--sdk-path
=
$(SDKROOT)
VPX_CONF
+=
--sdk-path
=
$(IOS_SDK)
--enable-vp8-decoder
--disable-vp8-encoder
--disable-vp9-encoder
VPX_LDFLAGS
:=
"-L
$(IOS_SDK)
/usr/lib -arch
$(ARCH)
-syslibroot
$(IOS_SDK)
-ios_version_min 6.1"
endif
endif
ifdef
HAVE_ANDROID
ifdef
HAVE_ANDROID
# vpx configure.sh overrides our sysroot and it looks for it itself, and
# vpx configure.sh overrides our sysroot and it looks for it itself, and
...
@@ -100,7 +102,7 @@ VPX_CONF += --extra-cflags="-I $(ANDROID_NDK)/sources/cpufeatures/"
...
@@ -100,7 +102,7 @@ VPX_CONF += --extra-cflags="-I $(ANDROID_NDK)/sources/cpufeatures/"
endif
endif
.vpx
:
libvpx
.vpx
:
libvpx
cd
$<
&&
CROSS
=
$(VPX_CROSS)
./configure
--target
=
$(VPX_TARGET)
\
cd
$<
&&
LDFLAGS
=
$(VPX_LDFLAGS)
CROSS
=
$(VPX_CROSS)
./configure
--target
=
$(VPX_TARGET)
\
$(VPX_CONF)
--prefix
=
$(PREFIX)
$(VPX_CONF)
--prefix
=
$(PREFIX)
cd
$<
&&
$(MAKE)
cd
$<
&&
$(MAKE)
cd
$<
&&
../../../contrib/src/pkg-static.sh vpx.pc
cd
$<
&&
../../../contrib/src/pkg-static.sh vpx.pc
...
...
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