xref: /petsc/systems/Apple/iOS/bin/arch-ios-simulator.py (revision f748bf6bfc83f133d5068e6a5445afd45844ada1)
1*1b37a2a7SPierre Jolivet#!/usr/bin/env python3
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.
56187e55bSBarry Smith# Use a 32 bit compile so this will only work on recent 64 bit OS devices
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 = [
14e6e75211SBarry Smith    '--download-sowing=1',
15e6e75211SBarry Smith    '--download-c2html=1',
1644b85a23SBarry 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