The Meson Build System
http://mesonbuild.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1003 B
33 lines
1003 B
project('custom install script', 'c') |
|
|
|
executable('prog', 'prog.c', install : true) |
|
meson.add_install_script('myinstall.py', 'diiba/daaba', 'file.dat') |
|
meson.add_install_script('myinstall.py', 'this/should', 'also-work.dat') |
|
|
|
subdir('src') |
|
|
|
meson.add_install_script('myinstall.py', 'dir', afile, '--mode=copy') |
|
|
|
data = configuration_data() |
|
data.set10('foo', true) |
|
conf = configure_file( |
|
configuration : data, |
|
output : 'conf.txt' |
|
) |
|
|
|
meson.add_install_script('myinstall.py', 'dir', conf, '--mode=copy') |
|
|
|
t = custom_target( |
|
'ct', |
|
command : [find_program('customtarget.py'), '@OUTDIR@'], |
|
output : ['1.txt', '2.txt'], |
|
) |
|
|
|
meson.add_install_script('myinstall.py', 'customtarget', t, '--mode=copy') |
|
meson.add_install_script('myinstall.py', 'customtargetindex', t[0], '--mode=copy') |
|
|
|
meson.add_install_script(exe, 'generated.txt') |
|
wrap = find_program('wrap.py') |
|
# Yes, these are getting silly |
|
meson.add_install_script(wrap, exe, 'wrapped.txt') |
|
meson.add_install_script(wrap, wrap, exe, 'wrapped2.txt')
|
|
|