BLD: Try working on building the interface
With inputs from @eli-schwartz
This commit is contained in:
parent
db705390bc
commit
88f37df443
|
@ -0,0 +1,20 @@
|
||||||
|
configurations = [
|
||||||
|
# TODO: Also add defines for DOUBLE for d and the rest
|
||||||
|
{'defs': [], 'name': 'imax'}, # Original, no defines
|
||||||
|
{'defs': ['-DUSE_ABS'], 'name': 'iamax'},
|
||||||
|
{'defs': ['-DUSE_ABS', '-DUSE_MIN'], 'name': 'iamin'},
|
||||||
|
{'defs': ['-DUSE_MIN'], 'name': 'imin'},
|
||||||
|
]
|
||||||
|
|
||||||
|
_static_libs = []
|
||||||
|
foreach conf: configurations
|
||||||
|
_static_libs += static_library(
|
||||||
|
conf['name'],
|
||||||
|
'imax.c',
|
||||||
|
include_directories: _inc,
|
||||||
|
c_args: conf['defs'],
|
||||||
|
)
|
||||||
|
endforeach
|
||||||
|
|
||||||
|
_interface = static_library('_interface',
|
||||||
|
link_whole: _static_libs)
|
|
@ -0,0 +1,4 @@
|
||||||
|
option('no_fblas', type: 'boolean', value: false, description: 'Disable FBLAS')
|
||||||
|
option('build_bfloat16', type: 'boolean', value: false, description: 'Enable BFloat16 support')
|
||||||
|
option('exprecision', type: 'boolean', value: false, description: 'Enable extended precision')
|
||||||
|
option('quad_precision', type: 'boolean', value: false, description: 'Enable quad precision')
|
|
@ -24,7 +24,9 @@ cc = meson.get_compiler('c')
|
||||||
|
|
||||||
# Makefile.system
|
# Makefile.system
|
||||||
# Ignoring all the hostarch checks and conflits for arch in BSD for now
|
# Ignoring all the hostarch checks and conflits for arch in BSD for now
|
||||||
subdir('lapack-netlib')
|
_inc = include_directories('.')
|
||||||
|
# subdir('lapack-netlib')
|
||||||
|
subdir('interface')
|
||||||
|
|
||||||
# System configuration
|
# System configuration
|
||||||
build_single = get_option('build_single')
|
build_single = get_option('build_single')
|
||||||
|
|
Loading…
Reference in New Issue