mirror of
https://github.com/qvacua/vimr.git
synced 2024-12-27 15:53:31 +03:00
27 lines
855 B
Bash
Executable File
27 lines
855 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
DEPLOYMENT_TARGET="10.13"
|
|
|
|
echo "### Building libnvim"
|
|
|
|
# Brew's gettext does not get sym-linked to PATH
|
|
export PATH=/usr/local/opt/gettext/bin:$PATH
|
|
|
|
ln -sf ../local.mk .
|
|
|
|
# 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}" \
|
|
CXXFLAGS="-mmacosx-version-min=${DEPLOYMENT_TARGET}" \
|
|
MACOSX_DEPLOYMENT_TARGET=${DEPLOYMENT_TARGET} \
|
|
CMAKE_EXTRA_FLAGS="-DGETTEXT_SOURCE=CUSTOM -DCMAKE_OSX_DEPLOYMENT_TARGET=${DEPLOYMENT_TARGET} -DCMAKE_CXX_COMPILER=$(xcrun -find c++)" \
|
|
DEPS_CMAKE_FLAGS="-DCMAKE_OSX_DEPLOYMENT_TARGET=${DEPLOYMENT_TARGET} -DCMAKE_CXX_COMPILER=$(xcrun -find c++)" \
|
|
libnvim
|
|
|
|
echo "### Built libnvim"
|