Lines Matching +full:- +full:- +full:show +full:- +full:sdk +full:- +full:version
5 ## Use of this source code is governed by a BSD-style license
15 ## bundle will be created in a directory called framework. Use --out-dir to
27 if [ -d "${dir}" ]; then
28 rm -rf "${dir}"
32 if [ $res -ne 0 ]; then
44 --help: Display this message and exit.
45 --out-dir: Override output directory (default is ${OUTDIR}).
46 --show-build-output: Show output from each library build.
47 --verbose: Output information about the environment and each stage of the
52 # Extract the latest SDK version from the final field of the form: iphoneosX.Y
53 readonly SDK=$(xcodebuild -showsdks \
54 | grep iphoneos | sort | tail -n 1 | awk '{print substr($NF, 9)}'
57 # Extract Xcode version.
58 readonly XCODE=$(xcodebuild -version | grep Xcode | cut -d " " -f2)
59 if [ -z "${XCODE}" ]; then
64 # Add iPhoneOS-V6 to the list of platforms below if you need armv6 support.
65 # Note that iPhoneOS-V6 support is not available with the iOS6 SDK.
77 iPhoneOS-V7
78 iPhoneOS-V7s
79 iPhoneOS-V7-arm64"
81 readonly DEVELOPER="$(xcode-select --print-path)"
83 readonly LIPO="$(xcrun -sdk iphoneos${SDK} -find lipo)"
85 OPT_FLAGS="-DNDEBUG -O3"
86 readonly SDK_MAJOR_VERSION="$(echo ${SDK} | awk -F '.' '{ print $1 }')"
88 if [ -z "${SDK_MAJOR_VERSION}" ]; then
89 elog "iOS SDK not available"
91 elif [ "${SDK_MAJOR_VERSION}" -lt "6" ]; then
92 elog "You need iOS SDK version 6 or above"
95 vlog "iOS SDK Version ${SDK}"
100 while [ -n "$1" ]; do
102 --help)
106 --out-dir)
110 --enable-debug)
111 OPT_FLAGS="-g"
113 --show-build-output)
116 --verbose)
128 readonly OUTDIR="${OUTDIR:-framework}"
143 rm -rf "${OUTDIR}/${TARGETDIR}"
144 mkdir -p "${OUTDIR}/${TARGETDIR}/Headers/"
148 if [ "${PLATFORM}" = "iPhoneOS-V7-arm64" ]; then
152 elif [ "${PLATFORM}" = "iPhoneOS-V7s" ]; then
155 elif [ "${PLATFORM}" = "iPhoneOS-V7" ]; then
158 elif [ "${PLATFORM}" = "iPhoneOS-V6" ]; then
168 LIBDIR="${OUTDIR}/${PLATFORM}-${SDK}-${ARCH}"
171 eval mkdir -p "${LIBDIR}" ${devnull}
175 SDKROOT="${SDKROOT}${PLATFORM}.platform/Developer/SDKs/${PLATFORM}${SDK}.sdk/"
176 CXXFLAGS="-arch ${ARCH2:-${ARCH}} -isysroot ${SDKROOT} ${OPT_FLAGS}
177 -miphoneos-version-min=6.0"
180 if [ "${SDK_MAJOR_VERSION}" -gt 8 ]; then
181 CXXFLAGS="${CXXFLAGS} -fembed-bitcode"
185 eval make -f Makefile.unix libwebm.a CXXFLAGS=\"${CXXFLAGS}\" ${devnull}
192 eval make -f Makefile.unix clean ${devnull}
203 eval cp -p ${header_file} "${framework_header_dir}/${header_file}" ${devnull}
206 eval ${LIPO} -create ${LIBLIST} -output "${OUTDIR}/${TARGETDIR}/WebM" ${devnull}