| 1 |
# Meson common cross file for targeting Windows from Linux |
| 2 |
# To be included after mingw-cross-{matlab,octave}.ini |
| 3 |
|
| 4 |
[constants] |
| 5 |
# For the architectural baseline, we follow MSYS2: |
| 6 |
# https://www.msys2.org/news/#2022-10-18-new-minimum-hardware-requirements-cpus-from-20067 |
| 7 |
# If this is modified, windows/deps/toolchain-mingw64.cmake should also be updated |
| 8 |
arch_flags = [ '-march=nocona', '-msahf', '-mtune=generic' ] |
| 9 |
|
| 10 |
[binaries] |
| 11 |
cpp = 'x86_64-w64-mingw32ucrt-g++' |
| 12 |
fortran = 'x86_64-w64-mingw32ucrt-gfortran' |
| 13 |
c = 'x86_64-w64-mingw32ucrt-gcc' |
| 14 |
strip = 'x86_64-w64-mingw32ucrt-strip' |
| 15 |
ar = 'x86_64-w64-mingw32ucrt-gcc-ar' |
| 16 |
pkg-config = 'x86_64-w64-mingw32ucrt-pkg-config' |
| 17 |
|
| 18 |
[host_machine] |
| 19 |
system = 'windows' |
| 20 |
cpu_family = 'x86_64' |
| 21 |
cpu = 'x86_64' |
| 22 |
endian = 'little' |
| 23 |
|
| 24 |
[project options] |
| 25 |
pardiso = 'enabled' |
| 26 |
suitesparse_src_path = '/tmp/windeps/src/suitesparse' |
| 27 |
|
| 28 |
[built-in options] |
| 29 |
prefer_static = true |
| 30 |
|
| 31 |
cpp_args = arch_flags |
| 32 |
fortran_args = arch_flags + [ '-B', slicot_path ] |
| 33 |
c_args = arch_flags |