Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
3d685b6a
Commit
3d685b6a
authored
Oct 31, 2010
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
contrib: Support for iOS.
parent
e46f4108
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
1 deletion
+47
-1
extras/contrib/bootstrap
extras/contrib/bootstrap
+23
-0
extras/contrib/src/Distributions/ios.mak
extras/contrib/src/Distributions/ios.mak
+3
-0
extras/contrib/src/contrib-src.mak
extras/contrib/src/contrib-src.mak
+21
-1
No files found.
extras/contrib/bootstrap
View file @
3d685b6a
...
...
@@ -164,6 +164,9 @@ case $TARGET in
arm
*
eabi
)
ARCH
=
"armel"
;;
arm
*
)
ARCH
=
"arm"
;;
esac
add_makefile_cfg
"ARCH =
$ARCH
"
...
...
@@ -330,6 +333,10 @@ case $TARGET in
;;
esac
#
# Fix up the Distro
#
if
test
-z
"
${
DISTRO
}
"
-a
"
$TARGET
"
=
"
$BUILD
"
;
then
if
test
-d
"/usr/lib/pkgconfig"
;
then
if
test
-z
"
$PKG_CONFIG_PATH
"
;
then
...
...
@@ -356,6 +363,22 @@ test -z "${DISTRO}" && DISTRO=unix
cat
src/Distributions/
"
${
DISTRO
}
"
.mak
>>
"
${
distro_mak
}
"
#
# Distro specific settings
#
case
"
$DISTRO
"
in
ios
)
add_makefile_cfg
'HAVE_IOS = 1'
if
test
-z
"
$IOS_SDK_ROOT
"
;
then
error
"The bootstrap script requires the IOS_SDK_ROOT environment "
error
"variable to be set when building for iOS"
exit
1
fi
add_makefile_cfg
"IOS_SDK_ROOT =
${
IOS_SDK_ROOT
}
"
;;
esac
# Save passed flags
EXTRA_CFLAGS+
=
"
$CFLAGS
"
EXTRA_LDFLAGS+
=
"
$LDFLAGS
"
...
...
extras/contrib/src/Distributions/ios.mak
0 → 100644
View file @
3d685b6a
# iOS rules
all
:
.ffmpeg .live .dvbpsi .faad
extras/contrib/src/contrib-src.mak
View file @
3d685b6a
...
...
@@ -101,7 +101,11 @@ ifneq ($(BUILD),$(HOST))
#
ifndef
HAVE_CYGWIN
# We are REALLY cross compiling
ifdef
HAVE_IOS
FFMPEGCONF
+=
--enable-cross-compile
else
FFMPEGCONF
+=
--cross-prefix
=
$(HOST)
-
--enable-cross-compile
endif
X264CONF
=
--host
=
$(HOST)
PTHREADSCONF
=
CROSS
=
"
$(HOST)
-"
else
...
...
@@ -137,9 +141,11 @@ FFMPEGCONF+= --enable-small --disable-mpegaudio-hp
FFMPEG_CFLAGS
+=
-DHAVE_LRINTF
--std
=
c99
else
ifndef
HAVE_WINCE
ifndef
HAVE_IOS
FFMPEGCONF
+=
--enable-libmp3lame
--enable-libgsm
endif
endif
endif
ifdef
HAVE_DARWIN_OS_ON_INTEL
FFMPEGCONF
+=
--enable-memalign-hack
...
...
@@ -1086,11 +1092,21 @@ FFMPEGCONF += --disable-bzlib --disable-decoder=dca --disable-encoder=vorbis --e
else
ifdef
HAVE_WIN32
FFMPEGCONF
+=
--disable-bzlib
--disable-decoder
=
dca
--disable-encoder
=
vorbis
--enable-libmp3lame
--enable-w32threads
--enable-dxva2
--disable-bsfs
--enable-libvpx
else
ifdef
HAVE_IOS
FFMPEGCONF
+=
--target-os
=
darwin
--sysroot
=
${IOS_SDK_ROOT}
ifeq
($(ARCH),arm)
FFMPEGCONF
+=
--disable-runtime-cpudetect
--enable-neon
--cpu
=
cortex-a8
else
FFMPEGCONF
+=
--disable-mmx
endif
else
FFMPEGCONF
+=
--enable-pthreads
endif
FFMPEG_CFLAGS
+=
--std
=
gnu99
endif
endif
ifdef
HAVE_WINCE
.ffmpeg
:
ffmpeg .zlib
...
...
@@ -1098,6 +1114,9 @@ else
ifdef
HAVE_UCLIBC
.ffmpeg
:
ffmpeg
else
ifdef
HAVE_IOS
.ffmpeg
:
ffmpeg
else
ifeq
($(ARCH),armel)
.ffmpeg
:
ffmpeg .lame .gsm .zlib
else
...
...
@@ -1108,6 +1127,7 @@ else
endif
endif
endif
endif
endif
(
cd
$<
;
$(HOSTCC)
./configure
--prefix
=
$(PREFIX)
--extra-cflags
=
"
$(FFMPEG_CFLAGS)
-DHAVE_STDINT_H"
--extra-ldflags
=
"
$(LDFLAGS)
"
$(FFMPEGCONF)
--disable-shared
--enable-static
&&
make
&&
make install-libs install-headers
)
touch
$@
...
...
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