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