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
67b43ed8
Commit
67b43ed8
authored
Mar 25, 2012
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ios/build.sh: fixed compilation for the iOS Simulator and the new contribs
plus some cleanup
parent
0f4ce731
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
extras/package/ios/build.sh
extras/package/ios/build.sh
+11
-6
No files found.
extras/package/ios/build.sh
View file @
67b43ed8
...
...
@@ -4,6 +4,7 @@ set -e
PLATFORM
=
OS
VERBOSE
=
no
SDK_VERSION
=
5.0
SDK_MIN
=
5.0
usage
()
{
...
...
@@ -45,7 +46,7 @@ do
;;
s
)
PLATFORM
=
Simulator
SDK
=
5.0
SDK
=
${
SDK_MIN
}
;;
k
)
SDK
=
$OPTARG
...
...
@@ -71,7 +72,7 @@ fi
info
"Building libvlc for the iOS"
if
[
"
$PLATFORM
"
=
"Simulator"
]
;
then
TARGET
=
"i686-apple-darwin1
0
"
TARGET
=
"i686-apple-darwin1
1
"
ARCH
=
"i386"
else
TARGET
=
"arm-apple-darwin11"
...
...
@@ -130,7 +131,11 @@ export STRIP="xcrun strip"
export
SDKROOT
export
CFLAGS
=
"-isysroot
${
SDKROOT
}
-arch
${
ARCH
}
-mcpu=cortex-a8 -miphoneos-version-min=5.0
${
OPTIM
}
"
if
[
"
$PLATFORM
"
=
"OS"
]
;
then
export
CFLAGS
=
"-isysroot
${
SDKROOT
}
-arch
${
ARCH
}
-mcpu=cortex-a8 -miphoneos-version-min=
${
SDK_MIN
}
${
OPTIM
}
"
else
export
CFLAGS
=
"-isysroot
${
SDKROOT
}
-arch
${
ARCH
}
-miphoneos-version-min=
${
SDK_MIN
}
${
OPTIM
}
"
fi
export
CPPFLAGS
=
"
${
CFLAGS
}
"
export
CXXFLAGS
=
"
${
CFLAGS
}
"
export
OBJCFLAGS
=
"
${
CFLAGS
}
"
...
...
@@ -138,13 +143,15 @@ export OBJCFLAGS="${CFLAGS}"
export
CPP
=
"xcrun cc -E"
export
CXXCPP
=
"xcrun c++ -E"
export
BUILDFORIOS
=
"yes"
if
[
"
$PLATFORM
"
=
"Simulator"
]
;
then
# Use the new ABI on simulator, else we can't build
export
OBJCFLAGS
=
"-fobjc-abi-version=2 -fobjc-legacy-dispatch
${
OBJCFLAGS
}
"
fi
if
[
"
$PLATFORM
"
=
"OS"
]
;
then
export
LDFLAGS
=
"-L
${
SDKROOT
}
/usr/lib -arch
${
ARCH
}
-isysroot
${
SDKROOT
}
-miphoneos-version-min=
5.0
"
export
LDFLAGS
=
"-L
${
SDKROOT
}
/usr/lib -arch
${
ARCH
}
-isysroot
${
SDKROOT
}
-miphoneos-version-min=
${
SDK_MIN
}
"
else
export
LDFLAGS
=
"-syslibroot=
${
SDKROOT
}
/ -arch
${
ARCH
}
"
fi
...
...
@@ -193,7 +200,6 @@ fi
make
spopd
if
[
"
$PLATFORM
"
=
"OS"
]
;
then
export
AS
=
"
${
IOS_GAS_PREPROCESSOR
}
${
CC
}
"
export
ASCPP
=
"
${
IOS_GAS_PREPROCESSOR
}
${
CC
}
"
...
...
@@ -301,7 +307,6 @@ ${VLCROOT}/configure \
--disable-faad
\
--disable-lua
\
--disable-mad
\
--enable-a52
\
--disable-mtp
\
--disable-ogg
\
--disable-speex
\
...
...
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