Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 0 additions & 30 deletions config/install-mod.py

This file was deleted.

21 changes: 18 additions & 3 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,24 @@ if get_option('api')
endif

module_id = meson.project_name()
meson.add_install_script(
find_program(files('config'/'install-mod.py')),
get_option('includedir') / module_id,
if host_machine.system() == 'windows'
symbols_file = 'lib'+module_id+'.dll.symbols'
obj_suffix = '.obj'
else
symbols_file = 'lib'+module_id+'.so.symbols'
obj_suffix = '.o'
endif
install_subdir(minpack_lib.full_path()+'.p',
install_dir: 'include'/module_id,
strip_directory: true,
exclude_files: [
'depscan.dd',
module_id+'-deps.json',
symbols_file,
module_id+'.dat',
'src_minpack.f90'+obj_suffix,
'src_minpack_capi.f90'+obj_suffix,
],
)

pkg = import('pkgconfig')
Expand Down