diff options
| author | 2019-06-07 23:11:34 -0400 | |
|---|---|---|
| committer | 2019-06-07 23:11:34 -0400 | |
| commit | b83fe146fae09cc852f04daa320cd0ab41bf05f2 (patch) | |
| tree | 5d754584ffb3596500db0c0b5a539fdbd9092f91 | |
| parent | Add janet_dep to meson build file. (diff) | |
Add static library to meson build.
| -rw-r--r-- | meson.build | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/meson.build b/meson.build index ab311cf0..05a404b8 100644 --- a/meson.build +++ b/meson.build @@ -129,6 +129,11 @@ libjanet = shared_library('janet', core_src, core_image, dependencies : [m_dep, dl_dep], install : true) +libjanet_static = static_library('janet', core_src, core_image, + include_directories : incdir, + dependencies : [m_dep, dl_dep], + install : true) + janet_mainclient = executable('janet', core_src, core_image, init_gen, mainclient_src, include_directories : incdir, dependencies : [m_dep, dl_dep], @@ -181,8 +186,10 @@ endforeach run_target('repl', command : [janet_nativeclient]) # For use as meson subproject (wrap) -janet_dep = declare_dependency(include_directories : incdir, +janet_shared_dep = declare_dependency(include_directories : incdir, link_with : libjanet) +janet_static_dep = declare_dependency(include_directories : incdir, + link_with : libjanet_static) # Installation install_man('janet.1') |
