diff options
author | James McCoy <jamessan@jamessan.com> | 2018-02-01 12:50:51 -0500 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2018-02-02 07:28:56 -0500 |
commit | e34f2897d5a33287652f94d554ecfdc890571d18 (patch) | |
tree | a3e6b2817d8359d680d9163bf2b9fecaa33c3962 | |
parent | 71190f1f3423076fdeb3ae196a77781aedeea5a3 (diff) | |
download | rneovim-e34f2897d5a33287652f94d554ecfdc890571d18.tar.gz rneovim-e34f2897d5a33287652f94d554ecfdc890571d18.tar.bz2 rneovim-e34f2897d5a33287652f94d554ecfdc890571d18.zip |
third-party: Install luabitop if using Lua
-rw-r--r-- | third-party/cmake/BuildLuarocks.cmake | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/third-party/cmake/BuildLuarocks.cmake b/third-party/cmake/BuildLuarocks.cmake index 08a965de43..2d9c77ff97 100644 --- a/third-party/cmake/BuildLuarocks.cmake +++ b/third-party/cmake/BuildLuarocks.cmake @@ -130,12 +130,30 @@ add_custom_target(inspect list(APPEND THIRD_PARTY_DEPS inspect) +if((NOT USE_BUNDLED_LUAJIT) AND USE_BUNDLED_LUA) + # DEPENDS on the previous module, because Luarocks breaks if parallel. + add_custom_command(OUTPUT ${HOSTDEPS_LIB_DIR}/luarocks/rocks/luabitop + COMMAND ${LUAROCKS_BINARY} + ARGS build luabitop ${LUAROCKS_BUILDARGS} + DEPENDS inspect) + add_custom_target(luabitop + DEPENDS ${HOSTDEPS_LIB_DIR}/luarocks/rocks/luabitop) + + list(APPEND THIRD_PARTY_DEPS luabitop) +endif() + if(USE_BUNDLED_BUSTED) + if((NOT USE_BUNDLED_LUAJIT) AND USE_BUNDLED_LUA) + set(PENLIGHT_DEPENDS luabitop) + else() + set(PENLIGHT_DEPENDS inspect) + endif() + # DEPENDS on the previous module, because Luarocks breaks if parallel. add_custom_command(OUTPUT ${HOSTDEPS_LIB_DIR}/luarocks/rocks/penlight/1.3.2-2 COMMAND ${LUAROCKS_BINARY} ARGS build penlight 1.3.2-2 ${LUAROCKS_BUILDARGS} - DEPENDS inspect) + DEPENDS ${PENLIGHT_DEPENDS}) add_custom_target(penlight DEPENDS ${HOSTDEPS_LIB_DIR}/luarocks/rocks/penlight/1.3.2-2) |