1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-26 23:36:08 +03:00
vimr/bin/build_libnvim.sh

23 lines
597 B
Bash
Raw Normal View History

2017-05-08 23:03:33 +03:00
#!/bin/bash
set -e
2019-03-05 00:38:02 +03:00
DEPLOYMENT_TARGET="10.12"
2017-05-08 23:03:33 +03:00
echo "### Building libnvim"
2018-06-10 23:12:00 +03:00
# Brew's gettext does not get sym-linked to PATH
export PATH=/usr/local/opt/gettext/bin:$PATH
2017-12-08 15:24:59 +03:00
ln -sf ../local.mk .
2017-12-03 11:59:15 +03:00
# We assume that we're already in the neovim project root.
# Use custom gettext source only when building libnvim => not in local.mk which is also used to build the full nvim
# to get the full runtime.
make CFLAGS="-mmacosx-version-min=${DEPLOYMENT_TARGET}" \
MACOSX_DEPLOYMENT_TARGET=${DEPLOYMENT_TARGET} \
CMAKE_EXTRA_FLAGS="-DGETTEXT_SOURCE=CUSTOM" \
2017-12-03 11:59:15 +03:00
libnvim
2017-05-08 23:03:33 +03:00
echo "### Built libnvim"