deps: Switch lua msgpack library to one that supports 2.0

This commit is contained in:
Thiago de Arruda
2014-09-16 14:12:58 -03:00
parent 31f835adc4
commit ddecfb763b
3 changed files with 13 additions and 12 deletions

View File

@@ -94,7 +94,7 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
# Find Lua interpreter
include(LuaHelpers)
set(LUA_DEPENDENCIES lpeg cmsgpack bit)
set(LUA_DEPENDENCIES lpeg MessagePack bit)
if(NOT LUA_PRG)
foreach(CURRENT_LUA_PRG luajit lua)
# If LUA_PRG is set find_program() will not search

View File

@@ -1,5 +1,5 @@
lpeg = require('lpeg')
msgpack = require('cmsgpack')
msgpack = require('MessagePack')
-- lpeg grammar for building api metadata from a set of header files. It
-- ignores comments and preprocessor commands and parses a very small subset

View File

@@ -166,25 +166,26 @@ if(USE_BUNDLED_LUAROCKS)
add_custom_target(busted
DEPENDS ${DEPS_BIN_DIR}/busted)
# lua-cmsgpack doesn't depend on busted, but luarocks is unhappy to have two
# instances running in parallel. So we depend on busted to force it
# to be serialized.
add_custom_command(OUTPUT ${DEPS_LIB_DIR}/luarocks/rocks/lua-cmsgpack
# lua-messagepack doesn't depend on busted, but luarocks is unhappy to have
# two instances running in parallel. So we depend on busted to force it to
# be serialized.
add_custom_command(OUTPUT ${DEPS_LIB_DIR}/luarocks/rocks/lua-messagepack
COMMAND ${DEPS_BIN_DIR}/luarocks
ARGS build lua-cmsgpack CC=${DEPS_C_COMPILER} LD=${DEPS_C_COMPILER}
ARGS build lua-messagepack CC=${DEPS_C_COMPILER} LD=${DEPS_C_COMPILER}
DEPENDS busted)
add_custom_target(lua-cmsgpack
DEPENDS ${DEPS_LIB_DIR}/luarocks/rocks/lua-cmsgpack)
add_custom_target(lua-messagepack
DEPENDS ${DEPS_LIB_DIR}/luarocks/rocks/lua-messagepack)
# Like before, depend on cmsgpack to ensure serialization of install commands
# Like before, depend on lua-messagepack to ensure serialization of install
# commands
add_custom_command(OUTPUT ${DEPS_LIB_DIR}/luarocks/rocks/lpeg
COMMAND ${DEPS_BIN_DIR}/luarocks
ARGS build lpeg CC=${DEPS_C_COMPILER} LD=${DEPS_C_COMPILER}
DEPENDS lua-cmsgpack)
DEPENDS lua-messagepack)
add_custom_target(lpeg
DEPENDS ${DEPS_LIB_DIR}/luarocks/rocks/lpeg)
list(APPEND THIRD_PARTY_DEPS busted lua-cmsgpack lpeg)
list(APPEND THIRD_PARTY_DEPS busted lua-messagepack lpeg)
endif()
add_custom_target(third-party ALL