aboutsummaryrefslogtreecommitdiff
path: root/third-party
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-08-31 10:46:28 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-09-12 13:19:50 -0300
commite2143674ae20fbadbea004bd54d6f5dc32b83803 (patch)
tree0c14bff4b9019cdf314a9a96d947b127bd61e2d9 /third-party
parent042aca6eb4d0fe9e6ddf3bcfb96a39838b2633d1 (diff)
downloadrneovim-e2143674ae20fbadbea004bd54d6f5dc32b83803.tar.gz
rneovim-e2143674ae20fbadbea004bd54d6f5dc32b83803.tar.bz2
rneovim-e2143674ae20fbadbea004bd54d6f5dc32b83803.zip
deps: Update to the experimental msgpack v5 branch
Using msgpack v5 will let nvim be more compatible with msgpack libraries for other platforms. This also replaces "raw" references by "bin" which is the new name for msgpack binary data type
Diffstat (limited to 'third-party')
-rw-r--r--third-party/CMakeLists.txt19
1 files changed, 14 insertions, 5 deletions
diff --git a/third-party/CMakeLists.txt b/third-party/CMakeLists.txt
index ff161a7cc7..2f7b4c9256 100644
--- a/third-party/CMakeLists.txt
+++ b/third-party/CMakeLists.txt
@@ -50,8 +50,8 @@ include(ExternalProject)
set(LIBUV_URL https://github.com/joyent/libuv/archive/v0.11.28.tar.gz)
set(LIBUV_MD5 1a849ba4fc571d531482ed74bc7aabc4)
-set(MSGPACK_URL https://github.com/msgpack/msgpack-c/releases/download/cpp-0.5.8/msgpack-0.5.8.tar.gz)
-set(MSGPACK_MD5 ea0bee0939d2980c0df91f0e4843ccc4)
+set(MSGPACK_URL https://github.com/msgpack/msgpack-c/archive/0335df55e1a408c0d56d43e46253c952fb8a7f04.tar.gz)
+set(MSGPACK_MD5 4c18a1625b586c0d69a0e955ce9a187f)
set(LUAJIT_URL http://luajit.org/download/LuaJIT-2.0.3.tar.gz)
set(LUAJIT_MD5 f14e9104be513913810cd59c8c658dc0)
@@ -92,9 +92,18 @@ if(USE_BUNDLED_MSGPACK)
-DEXPECTED_MD5=${MSGPACK_MD5}
-DTARGET=msgpack
-P ${CMAKE_CURRENT_SOURCE_DIR}/cmake/DownloadAndExtractFile.cmake
- CONFIGURE_COMMAND ${DEPS_BUILD_DIR}/src/msgpack/configure --disable-shared
- --with-pic --prefix=${DEPS_INSTALL_DIR} CC=${DEPS_C_COMPILER}
- INSTALL_COMMAND ${MAKE_PRG} install)
+ CONFIGURE_COMMAND cmake ${DEPS_BUILD_DIR}/src/msgpack
+ -DMSGPACK_ENABLE_CXX=OFF
+ -DMSGPACK_BUILD_TESTS=OFF
+ -DCMAKE_INSTALL_PREFIX=${DEPS_INSTALL_DIR}
+ -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}
+ "-DCMAKE_C_FLAGS:STRING=${CMAKE_C_COMPILER_ARG1} -fPIC"
+ BUILD_COMMAND ${MAKE_PRG}
+ INSTALL_COMMAND ${MAKE_PRG} install &&
+ rm ${DEPS_INSTALL_DIR}/lib/libmsgpack.so &&
+ rm ${DEPS_INSTALL_DIR}/lib/libmsgpack.so.3 &&
+ rm ${DEPS_INSTALL_DIR}/lib/libmsgpack.so.4.0.0
+ )
list(APPEND THIRD_PARTY_DEPS msgpack)
endif()