mirror of
https://github.com/janet-lang/janet
synced 2024-11-25 01:37:19 +00:00
Make install work ok if meson is old.
This commit is contained in:
parent
395ca7feea
commit
431451bac2
@ -267,5 +267,13 @@ patched_janet = custom_target('patched-janeth',
|
|||||||
# Create a version of the janet.h header that matches what jpm often expects
|
# Create a version of the janet.h header that matches what jpm often expects
|
||||||
if meson.version().version_compare('>=0.61')
|
if meson.version().version_compare('>=0.61')
|
||||||
install_symlink('janet.h', pointing_to: 'janet/janet.h', install_dir: get_option('includedir'))
|
install_symlink('janet.h', pointing_to: 'janet/janet.h', install_dir: get_option('includedir'))
|
||||||
|
else
|
||||||
|
patched_janet2 = custom_target('patched-janeth2',
|
||||||
|
input : ['tools/patch-header.janet', 'src/include/janet.h', jconf],
|
||||||
|
install : true,
|
||||||
|
install_dir : get_option('includedir'),
|
||||||
|
build_by_default : true,
|
||||||
|
output : ['janet.h'],
|
||||||
|
command : [janet_nativeclient, '@INPUT@', '@OUTPUT@'])
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user