diff options
| author | 2020-06-14 14:27:22 -0500 | |
|---|---|---|
| committer | 2020-06-14 14:27:22 -0500 | |
| commit | be1ec1b973d6eda16a2afb3026717c6c217bc053 (patch) | |
| tree | 0c05958ee32382fb7199cc14dbfa25712827d6f6 /meson.build | |
| parent | Fix MSVC Warnings. (diff) | |
Conditionally install jpm in meson.v1.10.0
Diffstat (limited to 'meson.build')
| -rw-r--r-- | meson.build | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/meson.build b/meson.build index 7b545801..55e04f93 100644 --- a/meson.build +++ b/meson.build @@ -245,16 +245,18 @@ pkg.generate(libjanet, # Installation install_man('janet.1') -install_man('jpm.1') install_headers(['src/include/janet.h', jconf], subdir: 'janet') -patched_jpm = custom_target('patched-jpm', - input : ['tools/patch-jpm.janet', 'jpm'], - install : true, - install_dir : get_option('bindir'), - build_by_default : true, - output : ['jpm'], - command : [janet_nativeclient, '@INPUT@', '@OUTPUT@', - '--binpath=' + join_paths(get_option('prefix'), get_option('bindir')), - '--libpath=' + join_paths(get_option('prefix'), get_option('libdir'), 'janet'), - '--headerpath=' + join_paths(get_option('prefix'), get_option('includedir'))]) install_data(sources : ['tools/.keep'], install_dir : join_paths(get_option('libdir'), 'janet')) +if get_option('peg') and not get_option('reduced_os') and get_option('processes') + install_man('jpm.1') + patched_jpm = custom_target('patched-jpm', + input : ['tools/patch-jpm.janet', 'jpm'], + install : true, + install_dir : get_option('bindir'), + build_by_default : true, + output : ['jpm'], + command : [janet_nativeclient, '@INPUT@', '@OUTPUT@', + '--binpath=' + join_paths(get_option('prefix'), get_option('bindir')), + '--libpath=' + join_paths(get_option('prefix'), get_option('libdir'), 'janet'), + '--headerpath=' + join_paths(get_option('prefix'), get_option('includedir'))]) +endif |
