view modules/media/src/main/native/xcode_project/ @ 8148:6b242a49e749

RT-34893: [Media] Use of QuickTime prevents Mac AppStore Submission Summary: Added new media platform module which uses AVFoundation instead of QTKit Reviewed-by: almatvee, stayer, kcr, flar
author ddehaven
date Mon, 06 Oct 2014 09:32:41 -0700
line wrap: on
line source
# Xcode has no way of running a tool to set up build settings, nor any way to
# externally supply build settings, so we'll create a symlink to JDK_HOME
# and the build settings will use that symlink to find JNI headers


test -f "${GRADLE_PROPS}" && \
    NEW_JDK_HOME=$(grep '^JDK_HOME' "${GRADLE_PROPS}" | sed -E 's/^JDK_HOME[[:space:]]*=[[:space:]]*(.*)$/\1/')

# Fall back on calling /usr/libexec/java_home to find a suitable JDK
test -z "${NEW_JDK_HOME}" && \
    NEW_JDK_HOME=$(/usr/libexec/java_home -v 1.8)


# keep our symlink in sync
test -L "${JAVA_HOME_SYMLINK}" -a "${LINK_TARGET}" != "${NEW_JDK_HOME}" && \
    rm -f "${JAVA_HOME_SYMLINK}"

test -L "${JAVA_HOME_SYMLINK}" || {
    test -z "${NEW_JDK_HOME}" && {
        # we can't find a suitable JDK, bail
        echo "Unable to find Java 8 JDK, please install one or set JDK_HOME in"
        exit 1
    echo "Setting new JDK_HOME=${NEW_JDK_HOME}"
    ln -sf "${NEW_JDK_HOME}" "${JAVA_HOME_SYMLINK}"