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