mirror of
https://github.com/NixOS/nix
synced 2025-06-27 21:01:16 +02:00
Integrate perl with the other meson builds
One big dev shell!
This commit is contained in:
parent
e0b4691754
commit
a83d95e26e
20 changed files with 52 additions and 27 deletions
59
src/perl/lib/Nix/meson.build
Normal file
59
src/perl/lib/Nix/meson.build
Normal file
|
@ -0,0 +1,59 @@
|
|||
# Nix-Perl Scripts
|
||||
#============================================================================
|
||||
|
||||
|
||||
|
||||
# Sources
|
||||
#-------------------------------------------------
|
||||
|
||||
nix_perl_store_xs = files('Store.xs')
|
||||
|
||||
nix_perl_scripts = files(
|
||||
'CopyClosure.pm',
|
||||
'Manifest.pm',
|
||||
'SSH.pm',
|
||||
'Store.pm',
|
||||
'Utils.pm',
|
||||
)
|
||||
|
||||
foreach f : nix_perl_scripts
|
||||
fs.copyfile(f)
|
||||
endforeach
|
||||
|
||||
|
||||
# Targets
|
||||
#---------------------------------------------------
|
||||
|
||||
nix_perl_scripts += configure_file(
|
||||
output : 'Config.pm',
|
||||
input : 'Config.pm.in',
|
||||
configuration : nix_perl_conf,
|
||||
)
|
||||
|
||||
nix_perl_store_cc = custom_target(
|
||||
'Store.cc',
|
||||
output : 'Store.cc',
|
||||
input : nix_perl_store_xs,
|
||||
command : [xsubpp, '@INPUT@', '-output', '@OUTPUT@'],
|
||||
)
|
||||
|
||||
# Build Nix::Store Library
|
||||
#-------------------------------------------------
|
||||
nix_perl_store_lib = library(
|
||||
'Store',
|
||||
sources : nix_perl_store_cc,
|
||||
name_prefix : '',
|
||||
install : true,
|
||||
install_mode : 'rwxr-xr-x',
|
||||
install_dir : join_paths(nix_perl_install_dir, 'auto', 'Nix', 'Store'),
|
||||
dependencies : nix_perl_store_dep_list,
|
||||
)
|
||||
|
||||
|
||||
# Install Scripts
|
||||
#---------------------------------------------------
|
||||
install_data(
|
||||
nix_perl_scripts,
|
||||
install_mode : 'rw-r--r--',
|
||||
install_dir : join_paths(nix_perl_install_dir,'Nix'),
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue