diff options
| author | 2023-09-23 14:16:13 -0700 | |
|---|---|---|
| committer | 2023-09-23 14:16:13 -0700 | |
| commit | 221645d2cedec06e36161b4b5473b391c0ea1c74 (patch) | |
| tree | 2d80d066a2e93b596169540b194dc8fed74aea26 /meson.build | |
| parent | Make meson build work on windows. (diff) | |
More refinement of meson build.
Diffstat (limited to 'meson.build')
| -rw-r--r-- | meson.build | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/meson.build b/meson.build index 84fe4da9..d09f5734 100644 --- a/meson.build +++ b/meson.build @@ -169,7 +169,7 @@ janet_boot = executable('janet-boot', core_src, boot_src, # Build janet.c janetc = custom_target('janetc', - input : [janet_boot], + input : [janet_boot, 'src/boot/boot.janet'], output : 'janet.c', capture : true, command : [ @@ -288,11 +288,12 @@ patched_janet = custom_target('patched-janeth', install : true, install_dir : join_paths(get_option('includedir'), 'janet'), build_by_default : true, - output : ['janet.h'], + output : ['janet_' + meson.project_version() + '.h'], command : [janet_nativeclient, '@INPUT@', '@OUTPUT@']) # Create a version of the janet.h header that matches what jpm often expects 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' + meson.project_version() + '.h', install_dir: join_paths(get_option('includedir'), 'janet')) endif |
