2017-05-08 23:03:33 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2019-03-05 00:38:02 +03:00
|
|
|
DEPLOYMENT_TARGET="10.12"
|
2018-10-06 18:05:09 +03:00
|
|
|
|
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.
|
2018-10-06 18:05:09 +03:00
|
|
|
make CFLAGS="-mmacosx-version-min=${DEPLOYMENT_TARGET}" \
|
|
|
|
MACOSX_DEPLOYMENT_TARGET=${DEPLOYMENT_TARGET} \
|
2018-05-14 23:08:51 +03:00
|
|
|
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"
|