Changeset 4591 for pjproject


Ignore:
Timestamp:
Sep 6, 2013 2:10:48 AM (11 years ago)
Author:
ming
Message:

Re #1576: Add support for iPhone simulator target

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/configure-iphone

    r4588 r4591  
    7171fi 
    7272 
     73# Test the toolchain directory 
     74TCPATH="${DEVPATH}/../../../Toolchains/XcodeDefault.xctoolchain" 
     75if test ! -d ${TCPATH}/usr/bin; then 
     76  TCPATH="${DEVPATH}" 
     77fi 
     78 
    7379# Determine which gcc for this SDK. Binaries should have the 
    7480# full path as it's not normally in user's PATH 
     
    7682if test "${CC}" = ""; then 
    7783  # Try to use clang if available 
    78   ccpath="${DEVPATH}/../../../Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" 
     84  ccpath="${TCPATH}/usr/bin/clang" 
    7985  # Next, try to use llvm-gcc 
    8086  gccpath="${DEVPATH}/usr/bin/llvm-gcc" 
     
    119125export CFLAGS="${CFLAGS} -DPJ_SDK_NAME=\"\\\"`basename $SDKPATH`\\\"\" ${ARCH} -isysroot ${SDKPATH}" 
    120126export LDFLAGS="${LDFLAGS} ${ARCH} -isysroot ${SDKPATH} -framework AudioToolbox -framework Foundation" 
    121 export AR="${DEVPATH}/usr/bin/libtool -static -o" 
     127export AR="${TCPATH}/usr/bin/libtool -static -o" 
    122128export RANLIB="echo ranlib" 
    123129# Use gcc -E as preprocessor instead of cpp, since cpp will find the 
Note: See TracChangeset for help on using the changeset viewer.