Add static library to 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')
