pacman/scripts/libmakepkg/buildenv/meson.build

25 lines
514 B
Meson
Raw Normal View History

libmakepkg_module = 'buildenv'
sources = [
'buildflags.sh.in',
2024-01-16 22:44:10 +00:00
'c.sh.in',
'compiler.sh.in',
2024-01-16 22:40:24 +00:00
'cpp.sh.in',
2024-01-16 22:51:23 +00:00
'cxx.sh.in',
'lto.sh.in',
'makeflags.sh.in',
'rust.sh.in',
]
foreach src : sources
output_dir = join_paths(get_option('datadir'), 'makepkg', libmakepkg_module)
custom_target(
libmakepkg_module + '_' + src.underscorify(),
command : [ SCRIPT_EDITOR, '@INPUT@', '@OUTPUT@' ],
input : src,
output : '@BASENAME@',
install : true,
install_dir : output_dir)
endforeach