build: allow using system rocks

This allow distributions and other interested parties to use a system
busted rather than the on neovim bundles by passing the
-D USE_BUNDLED_BUSTED=ON flag to cmake when building.

Closes https://github.com/neovim/neovim/issues/23814.
This commit is contained in:
dundargoc 2023-05-29 18:45:08 +02:00 committed by dundargoc
parent a935c7531a
commit cd097ab8cc

View File

@ -286,6 +286,8 @@ ExternalProject_Add(uncrustify
CMAKE_CACHE_ARGS ${DEPS_CMAKE_CACHE_ARGS} CMAKE_CACHE_ARGS ${DEPS_CMAKE_CACHE_ARGS}
EXCLUDE_FROM_ALL TRUE) EXCLUDE_FROM_ALL TRUE)
option(USE_BUNDLED_BUSTED "Use bundled luarocks" ON)
if(USE_BUNDLED_BUSTED)
ExternalProject_Add(lua-dev-deps ExternalProject_Add(lua-dev-deps
URL https://github.com/neovim/deps/raw/5a1f71cceb24990a0b15fd9a472a5f549f019248/opt/lua-dev-deps.tar.gz URL https://github.com/neovim/deps/raw/5a1f71cceb24990a0b15fd9a472a5f549f019248/opt/lua-dev-deps.tar.gz
URL_HASH SHA256=27db2495f5eddc7fc191701ec9b291486853530c6125609d3197d03481e8d5a2 URL_HASH SHA256=27db2495f5eddc7fc191701ec9b291486853530c6125609d3197d03481e8d5a2
@ -296,3 +298,6 @@ ExternalProject_Add(lua-dev-deps
BUILD_COMMAND "" BUILD_COMMAND ""
INSTALL_COMMAND "" INSTALL_COMMAND ""
EXCLUDE_FROM_ALL TRUE) EXCLUDE_FROM_ALL TRUE)
else()
add_custom_target(lua-dev-deps)
endif()