diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-01-31 23:35:04 +0100 |
---|---|---|
committer | bfredl <bjorn.linse@gmail.com> | 2023-02-10 20:19:04 +0100 |
commit | d6279f9392073cb1422d76c57baf3fd283ed954e (patch) | |
tree | 744661e70dd843edb434c662355cc3062de2d78a /cmake.deps/cmake/BuildLuarocks.cmake | |
parent | e5d8220179f932ab9c9ef59996cab357a25eaaf8 (diff) | |
download | rneovim-d6279f9392073cb1422d76c57baf3fd283ed954e.tar.gz rneovim-d6279f9392073cb1422d76c57baf3fd283ed954e.tar.bz2 rneovim-d6279f9392073cb1422d76c57baf3fd283ed954e.zip |
refactor(tests): move lua-client into core and use it for functionaltests
Eliminates lua-client and non-static libluv as test time dependencies
Note: the API for a public lua-client is not yet finished.
The interface needs to be adjusted to work in the embedded loop
of a nvim instance (to use it to talk between instances)
Diffstat (limited to 'cmake.deps/cmake/BuildLuarocks.cmake')
-rw-r--r-- | cmake.deps/cmake/BuildLuarocks.cmake | 25 |
1 files changed, 8 insertions, 17 deletions
diff --git a/cmake.deps/cmake/BuildLuarocks.cmake b/cmake.deps/cmake/BuildLuarocks.cmake index b84ce34d45..e50f50798a 100644 --- a/cmake.deps/cmake/BuildLuarocks.cmake +++ b/cmake.deps/cmake/BuildLuarocks.cmake @@ -158,23 +158,14 @@ if(USE_BUNDLED_BUSTED) DEPENDS busted) add_custom_target(luacheck DEPENDS ${LUACHECK_EXE}) - # luv - set(LUV_DEPS luacheck) - if(USE_BUNDLED_LUV) - set(NVIM_CLIENT_DEPS luacheck luv-static lua-compat-5.3) - else() - add_custom_command(OUTPUT ${ROCKS_DIR}/luv - COMMAND ${LUAROCKS_BINARY} build luv ${LUV_VERSION} ${LUAROCKS_BUILDARGS} - DEPENDS luacheck) - add_custom_target(luv DEPENDS ${ROCKS_DIR}/luv) - set(NVIM_CLIENT_DEPS luv) + if (NOT USE_BUNDLED_LUAJIT) + # coxpcall + add_custom_command(OUTPUT ${ROCKS_DIR}/coxpcall + COMMAND ${LUAROCKS_BINARY} build coxpcall 1.16.0-1 ${LUAROCKS_BUILDARGS} + DEPENDS luarocks) + add_custom_target(coxpcall DEPENDS ${ROCKS_DIR}/coxpcall) + list(APPEND THIRD_PARTY_DEPS coxpcall) endif() - # nvim-client: https://github.com/neovim/lua-client - add_custom_command(OUTPUT ${ROCKS_DIR}/nvim-client - COMMAND ${LUAROCKS_BINARY} build nvim-client 0.2.4-1 ${LUAROCKS_BUILDARGS} - DEPENDS ${NVIM_CLIENT_DEPS}) - add_custom_target(nvim-client DEPENDS ${ROCKS_DIR}/nvim-client) - - list(APPEND THIRD_PARTY_DEPS busted luacheck nvim-client) + list(APPEND THIRD_PARTY_DEPS busted luacheck) endif() |