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
b2b25aeb
Commit
b2b25aeb
authored
Sep 04, 2014
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
extras/ios: fix build script
(cherry picked from commit d32f040df7c85f9331cf5f5aa6438a84e2ad8360)
parent
e7d8819b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
extras/package/ios/build.sh
extras/package/ios/build.sh
+11
-9
No files found.
extras/package/ios/build.sh
View file @
b2b25aeb
...
@@ -5,7 +5,7 @@ PLATFORM=OS
...
@@ -5,7 +5,7 @@ PLATFORM=OS
VERBOSE
=
no
VERBOSE
=
no
SDK_VERSION
=
7.0
SDK_VERSION
=
7.0
SDK_MIN
=
5.1
SDK_MIN
=
5.1
64
BIT_SDK_MIN
=
7.0
SIXTYFOUR
BIT_SDK_MIN
=
7.0
ARCH
=
armv7
ARCH
=
armv7
usage
()
usage
()
...
@@ -132,17 +132,19 @@ export PLATFORM=$PLATFORM
...
@@ -132,17 +132,19 @@ export PLATFORM=$PLATFORM
export
SDK_VERSION
=
$SDK_VERSION
export
SDK_VERSION
=
$SDK_VERSION
export
CFLAGS
=
"-isysroot
${
SDKROOT
}
-arch
${
ARCH
}
${
OPTIM
}
"
export
CFLAGS
=
"-isysroot
${
SDKROOT
}
-arch
${
ARCH
}
${
OPTIM
}
"
if
[
"
$PLATFORM
"
=
"OS"
]
;
then
if
[
"
$PLATFORM
"
=
"OS"
]
;
then
if
[
"
$ARCH
"
!=
"arm64"
]
;
then
if
[
"
$ARCH
"
!=
"arm64"
]
;
then
export
CFLAGS
=
"
${
CFLAGS
}
-mcpu=cortex-a8 -miphoneos-version-min=
${
SDK_MIN
}
"
export
CFLAGS
=
"
${
CFLAGS
}
-mcpu=cortex-a8 -miphoneos-version-min=
${
SDK_MIN
}
"
else
else
export
CFLAGS
=
"
${
CFLAGS
}
-miphoneos-version-min=
${
64
BIT_SDK_MIN
}
"
export
CFLAGS
=
"
${
CFLAGS
}
-miphoneos-version-min=
${
SIXTYFOUR
BIT_SDK_MIN
}
"
fi
fi
else
else
if
[
"
$ARCH
"
!=
"x86_64"
]
;
then
if
[
"
$ARCH
"
!=
"x86_64"
]
;
then
export
CFLAGS
=
"
${
CFLAGS
}
-miphoneos-version-min=
${
SDK_MIN
}
"
export
CFLAGS
=
"
${
CFLAGS
}
-miphoneos-version-min=
${
SDK_MIN
}
"
else
else
export
CFLAGS
=
"
${
CFLAGS
}
-miphoneos-version-min=
${
64BIT_SDK_MIN
}
"
export
CFLAGS
=
"
${
CFLAGS
}
-miphoneos-version-min=
${
SIXTYFOURBIT_SDK_MIN
}
"
fi
fi
fi
export
CXXFLAGS
=
"
${
CFLAGS
}
-stdlib=libstdc++"
export
CXXFLAGS
=
"
${
CFLAGS
}
-stdlib=libstdc++"
...
@@ -169,9 +171,9 @@ if [ "$ARCH" != "arm64" ]; then
...
@@ -169,9 +171,9 @@ if [ "$ARCH" != "arm64" ]; then
EXTRA_LDFLAGS+
=
" -miphoneos-version-min=
${
SDK_MIN
}
"
EXTRA_LDFLAGS+
=
" -miphoneos-version-min=
${
SDK_MIN
}
"
export
LDFLAGS
=
"
${
LDFLAGS
}
-miphoneos-version-min=
${
SDK_MIN
}
"
export
LDFLAGS
=
"
${
LDFLAGS
}
-miphoneos-version-min=
${
SDK_MIN
}
"
else
else
EXTRA_CFLAGS+
=
" -miphoneos-version-min=
${
64
BIT_SDK_MIN
}
"
EXTRA_CFLAGS+
=
" -miphoneos-version-min=
${
SIXTYFOUR
BIT_SDK_MIN
}
"
EXTRA_LDFLAGS+
=
" -miphoneos-version-min=
${
64
BIT_SDK_MIN
}
"
EXTRA_LDFLAGS+
=
" -miphoneos-version-min=
${
SIXTYFOUR
BIT_SDK_MIN
}
"
export
LDFLAGS
=
"
${
LDFLAGS
}
-miphoneos-version-min=
${
64
BIT_SDK_MIN
}
"
export
LDFLAGS
=
"
${
LDFLAGS
}
-miphoneos-version-min=
${
SIXTYFOUR
BIT_SDK_MIN
}
"
fi
fi
EXTRA_LDFLAGS
=
"-arch
${
ARCH
}
"
EXTRA_LDFLAGS
=
"-arch
${
ARCH
}
"
else
else
...
@@ -182,9 +184,9 @@ if [ "$ARCH" != "x86_64" ]; then
...
@@ -182,9 +184,9 @@ if [ "$ARCH" != "x86_64" ]; then
EXTRA_LDFLAGS+
=
" -miphoneos-version-min=
${
SDK_MIN
}
"
EXTRA_LDFLAGS+
=
" -miphoneos-version-min=
${
SDK_MIN
}
"
export
LDFLAGS
=
"
${
LDFLAGS
}
-miphoneos-version-min=
${
SDK_MIN
}
"
export
LDFLAGS
=
"
${
LDFLAGS
}
-miphoneos-version-min=
${
SDK_MIN
}
"
else
else
EXTRA_CFLAGS+
=
" -miphoneos-version-min=
${
64
BIT_SDK_MIN
}
"
EXTRA_CFLAGS+
=
" -miphoneos-version-min=
${
SIXTYFOUR
BIT_SDK_MIN
}
"
EXTRA_LDFLAGS+
=
" -miphoneos-version-min=
${
64
BIT_SDK_MIN
}
"
EXTRA_LDFLAGS+
=
" -miphoneos-version-min=
${
SIXTYFOUR
BIT_SDK_MIN
}
"
export
LDFLAGS
=
"
${
LDFLAGS
}
-miphoneos-version-min=
${
64
BIT_SDK_MIN
}
"
export
LDFLAGS
=
"
${
LDFLAGS
}
-miphoneos-version-min=
${
SIXTYFOUR
BIT_SDK_MIN
}
"
fi
fi
fi
fi
...
...
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