Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
linphone-cmake-builder
Commits
e0e57977
Commit
e0e57977
authored
Nov 09, 2015
by
jehan
Browse files
enable bitcode only for armxxx
parent
d5c58d79
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
8 deletions
+12
-8
builders/openh264.cmake
builders/openh264.cmake
+8
-4
configs/config-ios-arm64.cmake
configs/config-ios-arm64.cmake
+4
-0
configs/config-ios.cmake
configs/config-ios.cmake
+0
-4
No files found.
builders/openh264.cmake
View file @
e0e57977
...
...
@@ -50,17 +50,21 @@ if (APPLE)
if
(
IOS
)
if
(
CMAKE_SYSTEM_PROCESSOR STREQUAL
"aarch64"
)
set
(
EP_openh264_ADDITIONAL_OPTIONS
"OS=
\"
ios
\"
ARCH=
\"
arm64
\"
"
)
#XCode7 allows bitcode
if
(
NOT
${
XCODE_VERSION
}
VERSION_LESS 7
)
set
(
EP_openh264_EXTRA_CFLAGS
"-fembed-bitcode"
)
endif
()
elseif
(
CMAKE_SYSTEM_PROCESSOR STREQUAL
"armv7"
)
set
(
EP_openh264_ADDITIONAL_OPTIONS
"OS=
\"
ios
\"
ARCH=
\"
armv7
\"
"
)
#XCode7 allows bitcode
if
(
NOT
${
XCODE_VERSION
}
VERSION_LESS 7
)
set
(
EP_openh264_EXTRA_CFLAGS
"-fembed-bitcode"
)
endif
()
elseif
(
CMAKE_SYSTEM_PROCESSOR STREQUAL
"x86_64"
)
set
(
EP_openh264_ADDITIONAL_OPTIONS
"OS=
\"
ios
\"
ARCH=
\"
x86_64
\"
"
)
else
()
set
(
EP_openh264_ADDITIONAL_OPTIONS
"OS=
\"
ios
\"
ARCH=
\"
i386
\"
"
)
endif
()
#XCode7 allows bitcode
if
(
NOT
${
XCODE_VERSION
}
VERSION_LESS 7
)
set
(
EP_openh264_EXTRA_CFLAGS
"-fembed-bitcode"
)
endif
()
else
()
if
(
CMAKE_OSX_ARCHITECTURES STREQUAL
"x86_64"
)
set
(
EP_openh264_ADDITIONAL_OPTIONS
"ARCH=
\"
x86_64
\"
"
)
...
...
configs/config-ios-arm64.cmake
View file @
e0e57977
...
...
@@ -22,4 +22,8 @@
set
(
PLATFORM
"OS"
)
include
(
configs/config-ios.cmake
)
#XCode7 allows bitcode
if
(
NOT
${
XCODE_VERSION
}
VERSION_LESS 7
)
set
(
LINPHONE_BUILDER_CPPFLAGS
"
${
LINPHONE_BUILDER_CPPFLAGS
}
-fembed-bitcode"
)
endif
()
configs/config-ios.cmake
View file @
e0e57977
...
...
@@ -52,10 +52,6 @@ else()
set
(
CLANG_TARGET_SPECIFIER
"iphoneos-version-min"
)
endif
()
set
(
COMMON_FLAGS
"-arch
${
LINPHONE_BUILDER_OSX_ARCHITECTURES
}
-m
${
CLANG_TARGET_SPECIFIER
}
=
${
LINPHONE_IOS_DEPLOYMENT_TARGET
}
-DTARGET_OS_IPHONE=1 -D__IOS -fms-extensions"
)
#XCode7 allows bitcode
if
(
NOT
${
XCODE_VERSION
}
VERSION_LESS 7
)
set
(
COMMON_FLAGS
"
${
COMMON_FLAGS
}
-fembed-bitcode"
)
endif
()
set
(
LINPHONE_BUILDER_CPPFLAGS
"
${
COMMON_FLAGS
}
-Dasm=__asm"
)
set
(
LINPHONE_BUILDER_LDFLAGS
"
${
COMMON_FLAGS
}
"
)
set
(
LINPHONE_BUILDER_PKG_CONFIG_LIBDIR
${
CMAKE_INSTALL_PREFIX
}
/lib/pkgconfig
)
# Restrict pkg-config to search in the install directory
...
...
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