Browse Source

BLD: Start adding lapacke includes

pull/4820/head
Rohit Goswami 1 year ago
parent
commit
681e11fe2c
No known key found for this signature in database GPG Key ID: 9CCCE36402CB49A6
1 changed files with 19 additions and 1 deletions
  1. +19
    -1
      meson.build

+ 19
- 1
meson.build View File

@@ -11,7 +11,7 @@
#
# NOTE: This is still a work in progress, the Makefiles are canonical
project('OpenBLAS', ['c', 'fortran'],
default_options: ['c_std=c99'],
default_options: ['c_std=c99', 'pkg.relocatable=true'],
version: '0.3.26.dev')

openblas_major_version = 0 # soversion
@@ -456,6 +456,24 @@ _openblas = static_library('openblas',
],
install: true)

# Handle headers
fs = import('fs')

if not get_option('build_without_lapack')
lapacke_root = 'lapack-netlib/LAPACKE/include'
lapacke_headers = [ 'lapack.h', 'lapacke_config.h', 'lapacke.h', 'lapacke_mangling.h', 'lapacke_utils.h', ]

foreach head : lapacke_headers
fs.copyfile(f'@lapacke_root@/@head@',
install_dir: 'include',
install: true)
endforeach

endif

# TODO(rg) Generate these
# 'cblas.h', 'f77blas.h', 'openblas_config.h',
# install_headers(lapacke_headers)

pkg = import ('pkgconfig')
pkg_ver = meson.project_version()


Loading…
Cancel
Save