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
0b0545eb
Commit
0b0545eb
authored
Oct 08, 2013
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ios: unbreak freetype contrib compilation with Xcode 5 and simplify the FLAG handling quite a bit
parent
5d15f59a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
27 deletions
+3
-27
contrib/bootstrap
contrib/bootstrap
+0
-19
contrib/src/main.mak
contrib/src/main.mak
+2
-2
extras/package/ios/build.sh
extras/package/ios/build.sh
+1
-6
No files found.
contrib/bootstrap
View file @
0b0545eb
...
@@ -177,24 +177,6 @@ check_macosx_sdk()
...
@@ -177,24 +177,6 @@ check_macosx_sdk()
add_make
"OSX_VERSION ?=
${
OSX_VERSION
}
"
add_make
"OSX_VERSION ?=
${
OSX_VERSION
}
"
}
}
check_ios_sdk
()
{
if
test
-z
"
$SDKROOT
"
then
SDKROOT
=
`
xcode-select
-print-path
`
/Platforms/iPhone
${
PLATFORM
}
.platform/Developer/SDKs/iPhone
${
PLATFORM
}${
SDK_VERSION
}
.sdk
echo
"SDKROOT not specified, assuming
$SDKROOT
"
else
SDKROOT
=
"
$SDKROOT
"
fi
if
[
!
-d
"
${
SDKROOT
}
"
]
then
echo
"***
${
SDKROOT
}
does not exist, please install required SDK, or set SDKROOT manually. ***"
exit
1
fi
add_make
"SDKROOT=
${
SDKROOT
}
"
}
check_android_sdk
()
check_android_sdk
()
{
{
[
-z
"
${
ANDROID_NDK
}
"
]
&&
echo
"You must set ANDROID_NDK environment variable"
&&
exit
1
[
-z
"
${
ANDROID_NDK
}
"
]
&&
echo
"You must set ANDROID_NDK environment variable"
&&
exit
1
...
@@ -224,7 +206,6 @@ case "${OS}" in
...
@@ -224,7 +206,6 @@ case "${OS}" in
check_macosx_sdk
check_macosx_sdk
add_make_enabled
"HAVE_MACOSX"
"HAVE_DARWIN_OS"
"HAVE_BSD"
add_make_enabled
"HAVE_MACOSX"
"HAVE_DARWIN_OS"
"HAVE_BSD"
else
else
check_ios_sdk
add_make_enabled
"HAVE_IOS"
"HAVE_DARWIN_OS"
"HAVE_BSD"
"HAVE_NEON"
"HAVE_ARMV7A"
add_make_enabled
"HAVE_IOS"
"HAVE_DARWIN_OS"
"HAVE_BSD"
"HAVE_NEON"
"HAVE_ARMV7A"
fi
fi
;;
;;
...
...
contrib/src/main.mak
View file @
0b0545eb
...
@@ -138,8 +138,8 @@ AR=xcrun ar
...
@@ -138,8 +138,8 @@ AR=xcrun ar
LD
=
xcrun ld
LD
=
xcrun ld
STRIP
=
xcrun strip
STRIP
=
xcrun strip
RANLIB
=
xcrun ranlib
RANLIB
=
xcrun ranlib
EXTRA_CFLAGS
+=
-isysroot
$(SDKROOT
)
EXTRA_CFLAGS
+=
$(CFLAGS
)
EXTRA_LDFLAGS
+=
-Wl
,-syslibroot,
$(SDKROOT)
-isysroot
$(SDKROOT
)
EXTRA_LDFLAGS
+=
$(LDFLAGS
)
endif
endif
ifdef
HAVE_WIN32
ifdef
HAVE_WIN32
...
...
extras/package/ios/build.sh
View file @
0b0545eb
...
@@ -137,7 +137,6 @@ export LD="xcrun ld"
...
@@ -137,7 +137,6 @@ export LD="xcrun ld"
export
STRIP
=
"xcrun strip"
export
STRIP
=
"xcrun strip"
export
SDKROOT
CFLAGS
=
"-isysroot
${
SDKROOT
}
-arch
${
ARCH
}
-miphoneos-version-min=
${
SDK_MIN
}
${
OPTIM
}
"
CFLAGS
=
"-isysroot
${
SDKROOT
}
-arch
${
ARCH
}
-miphoneos-version-min=
${
SDK_MIN
}
${
OPTIM
}
"
if
[
"
$ARCH
"
=
"armv7"
-o
"
$ARCH
"
=
"armv7s"
]
;
then
if
[
"
$ARCH
"
=
"armv7"
-o
"
$ARCH
"
=
"armv7s"
]
;
then
CFLAGS+
=
" -mcpu=cortex-a8"
CFLAGS+
=
" -mcpu=cortex-a8"
...
@@ -157,11 +156,7 @@ if [ "$PLATFORM" = "Simulator" ]; then
...
@@ -157,11 +156,7 @@ if [ "$PLATFORM" = "Simulator" ]; then
export
OBJCFLAGS
=
"-fobjc-abi-version=2 -fobjc-legacy-dispatch
${
OBJCFLAGS
}
"
export
OBJCFLAGS
=
"-fobjc-abi-version=2 -fobjc-legacy-dispatch
${
OBJCFLAGS
}
"
fi
fi
if
[
"
$PLATFORM
"
=
"OS"
]
;
then
export
LDFLAGS
=
"-L
${
SDKROOT
}
/usr/lib -arch
${
ARCH
}
-isysroot
${
SDKROOT
}
-miphoneos-version-min=
${
SDK_MIN
}
"
export
LDFLAGS
=
"-L
${
SDKROOT
}
/usr/lib -arch
${
ARCH
}
-isysroot
${
SDKROOT
}
-miphoneos-version-min=
${
SDK_MIN
}
"
else
export
LDFLAGS
=
"-syslibroot=
${
SDKROOT
}
/ -arch
${
ARCH
}
-miphoneos-version-min=
${
SDK_MIN
}
"
fi
if
[
"
$PLATFORM
"
=
"OS"
]
;
then
if
[
"
$PLATFORM
"
=
"OS"
]
;
then
EXTRA_CFLAGS
=
"-arch
${
ARCH
}
${
CFLAGS
}
"
EXTRA_CFLAGS
=
"-arch
${
ARCH
}
${
CFLAGS
}
"
...
...
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