xref: /petsc/systems/Apple/iOS/bin/arch-ios-simulator.py (revision 6187e55b7be868de3dab288e5aecadaea4c1b258)
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.
5*6187e55bSBarry 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 = [
1444b85a23SBarry Smith    '--with-sowing=0',
1544b85a23SBarry Smith    '--with-hwloc=0',
16d9dc08c3SBarry Smith    '--with-mpi=0',
17d9dc08c3SBarry Smith    '--with-ios=1',
18d9dc08c3SBarry Smith    '--with-valgrind=0',
19d9dc08c3SBarry Smith    '--with-opengles=1',
20d9dc08c3SBarry Smith    '--with-x=0',
21d9dc08c3SBarry Smith    '--with-fc=0',
22d9dc08c3SBarry Smith    '--known-blaslapack-mangling=underscore',   # ios only supports this mangling
23d9dc08c3SBarry Smith    'PETSC_ARCH=arch-ios-simulator',
24d9dc08c3SBarry Smith  ]
25d9dc08c3SBarry Smith  configure.petsc_configure(configure_options)
26