Skip to content

Commit 0627e39

Browse files
committed
meson: use install_subdir
1 parent c0b5aea commit 0627e39

File tree

2 files changed

+18
-33
lines changed

2 files changed

+18
-33
lines changed

config/install-mod.py

Lines changed: 0 additions & 30 deletions
This file was deleted.

meson.build

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,24 @@ if get_option('api')
5454
endif
5555

5656
module_id = meson.project_name()
57-
meson.add_install_script(
58-
find_program(files('config'/'install-mod.py')),
59-
get_option('includedir') / module_id,
57+
if host_machine.system() == 'windows'
58+
symbols_file = 'lib'+module_id+'.dll.symbols'
59+
obj_suffix = '.obj'
60+
else
61+
symbols_file = 'lib'+module_id+'.so.symbols'
62+
obj_suffix = '.o'
63+
endif
64+
install_subdir(minpack_lib.full_path()+'.p',
65+
install_dir: 'include'/module_id,
66+
strip_directory: true,
67+
exclude_files: [
68+
'depscan.dd',
69+
module_id+'-deps.json',
70+
symbols_file,
71+
module_id+'.dat',
72+
'src_minpack.f90'+obj_suffix,
73+
'src_minpack_capi.f90'+obj_suffix,
74+
],
6075
)
6176

6277
pkg = import('pkgconfig')

0 commit comments

Comments
 (0)