1*d9dc08c3SBarry Smith#!/usr/bin/env python 2*d9dc08c3SBarry Smith# See iosbuilder.py for instructions 3*d9dc08c3SBarry Smith# Note that this "cheats" and runs all the ./configure tests on the Mac NOT on the iPhone 4*d9dc08c3SBarry Smith# but this is ok because the answers are the same. 5*d9dc08c3SBarry Smith# Force a 32 bit compile because that is what ARM supports. 6*d9dc08c3SBarry Smith# No need to provide BLAS/LAPACK because Mac and iOS support the same Accelerate framework 7*d9dc08c3SBarry Smith# 8*d9dc08c3SBarry Smithif __name__ == '__main__': 9*d9dc08c3SBarry Smith import sys 10*d9dc08c3SBarry Smith import os 11*d9dc08c3SBarry Smith sys.path.insert(0, os.path.abspath('config')) 12*d9dc08c3SBarry Smith import configure 13*d9dc08c3SBarry Smith configure_options = [ 14*d9dc08c3SBarry Smith '--with-cc=gcc -m32', 15*d9dc08c3SBarry Smith '--with-mpi=0', 16*d9dc08c3SBarry Smith '--with-ios=1', 17*d9dc08c3SBarry Smith '--with-valgrind=0', 18*d9dc08c3SBarry Smith '--with-opengles=1', 19*d9dc08c3SBarry Smith '--with-x=0', 20*d9dc08c3SBarry Smith '--with-fc=0', 21*d9dc08c3SBarry Smith '--known-blaslapack-mangling=underscore', # ios only supports this mangling 22*d9dc08c3SBarry Smith 'PETSC_ARCH=arch-ios-simulator', 23*d9dc08c3SBarry Smith ] 24*d9dc08c3SBarry Smith configure.petsc_configure(configure_options) 25