build(meson): much more robust build system
This commit is contained in:
@@ -1,22 +1,29 @@
|
||||
if get_option('pkg_config')
|
||||
if get_option('build_python')
|
||||
message('Generating wheel-relocatable pkg-config file for GridFire...')
|
||||
wheel_pc_conf = configuration_data()
|
||||
wheel_pc_conf.set('VERSION', meson.project_version())
|
||||
configure_file(
|
||||
input: 'gridfire-wheel.pc.in',
|
||||
output: 'gridfire.pc',
|
||||
configuration: wheel_pc_conf,
|
||||
install: true,
|
||||
install_dir: gridfire_pcdir,
|
||||
)
|
||||
elif get_option('pkg_config')
|
||||
message('Generating pkg-config file for GridFire...')
|
||||
pkg = import('pkgconfig')
|
||||
pkg.generate(
|
||||
libgridfire,
|
||||
name: 'gridfire',
|
||||
description: 'GridFire nuclear reaction network solver',
|
||||
version: meson.project_version(),
|
||||
libraries: [
|
||||
libgridfire,
|
||||
libcomposition,
|
||||
libconst,
|
||||
liblogging,
|
||||
libcppad_static,
|
||||
libcvode_static,
|
||||
libkinsol_static
|
||||
|
||||
],
|
||||
subdirs: ['gridfire'],
|
||||
filebase: 'gridfire',
|
||||
install_dir: join_paths(get_option('libdir'), 'pkgconfig')
|
||||
subdirs: ['gridfire'],
|
||||
requires: [
|
||||
'fourdst_composition',
|
||||
'fourdst_config',
|
||||
'fourdst_constants',
|
||||
'fourdst_logging',
|
||||
],
|
||||
extra_cflags: ['-I${includedir}' / 'gridfire' / 'vendor'],
|
||||
)
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user