2016-10-14 13:15:32 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
2016-10-18 19:00:15 +03:00
|
|
|
set -e
|
|
|
|
|
2016-10-17 23:35:29 +03:00
|
|
|
CODE_SIGN=$1
|
|
|
|
|
2016-10-15 10:38:09 +03:00
|
|
|
echo "### Building VimR target"
|
2016-10-14 13:15:32 +03:00
|
|
|
|
|
|
|
# Build NeoVim
|
|
|
|
# 0. Delete previously built things
|
|
|
|
# 1. Build normally to get the full runtime folder and copy it to the neovim's project root
|
|
|
|
# 2. Delete the build folder to re-configure
|
|
|
|
# 3. Build libnvim
|
2016-10-14 13:51:49 +03:00
|
|
|
pushd neovim
|
|
|
|
|
|
|
|
ln -f -s ../local.mk .
|
|
|
|
|
|
|
|
rm -rf build
|
2017-05-04 21:57:31 +03:00
|
|
|
make distclean
|
2016-10-14 13:51:49 +03:00
|
|
|
|
2017-05-07 15:12:55 +03:00
|
|
|
echo "### Building nvim to get the complete runtime folder"
|
2017-05-04 21:57:31 +03:00
|
|
|
rm -rf /tmp/nvim
|
2017-05-08 23:34:20 +03:00
|
|
|
make CFLAGS='-mmacosx-version-min=10.10' MACOSX_DEPLOYMENT_TARGET=10.10 CMAKE_FLAGS="-DCUSTOM_UI=0 -DCMAKE_INSTALL_PREFIX=/tmp/nvim" install
|
2016-10-14 13:51:49 +03:00
|
|
|
|
|
|
|
rm -rf build
|
2016-10-15 00:43:43 +03:00
|
|
|
make clean
|
2016-10-14 13:51:49 +03:00
|
|
|
|
2017-05-08 23:03:33 +03:00
|
|
|
../bin/build_libnvim.sh
|
2016-10-14 13:51:49 +03:00
|
|
|
|
2017-05-04 22:35:11 +03:00
|
|
|
echo "### Copying runtime"
|
|
|
|
rm -rf runtime
|
|
|
|
cp -r /tmp/nvim/share/nvim/runtime .
|
|
|
|
|
2016-10-14 13:51:49 +03:00
|
|
|
popd
|
2016-10-14 13:15:32 +03:00
|
|
|
|
2016-10-17 23:35:29 +03:00
|
|
|
echo "### Updating carthage"
|
|
|
|
carthage update --platform osx
|
|
|
|
|
2016-10-15 10:38:09 +03:00
|
|
|
echo "### Xcodebuilding"
|
2016-10-17 23:35:29 +03:00
|
|
|
|
|
|
|
if [ "${CODE_SIGN}" = true ] ; then
|
2017-11-30 00:59:49 +03:00
|
|
|
xcodebuild CODE_SIGN_IDENTITY="Developer ID Application: Tae Won Ha (H96Q2NKTQH)" -configuration Release -scheme VimR -workspace VimR.xcworkspace -derivedDataPath build
|
2016-10-17 23:35:29 +03:00
|
|
|
else
|
2017-11-30 00:59:49 +03:00
|
|
|
xcodebuild -configuration Release -scheme VimR -workspace VimR.xcworkspace -derivedDataPath build
|
2016-10-17 23:35:29 +03:00
|
|
|
fi
|
2016-10-14 13:15:32 +03:00
|
|
|
|
2016-10-15 10:38:09 +03:00
|
|
|
echo "### Built VimR target"
|