1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-11-23 01:54:31 +03:00

Adapt build_neovim.sh

Now we can use neovim/neovim repository
This commit is contained in:
Tae Won Ha 2023-11-13 22:04:41 +01:00
parent 6124ab1ba3
commit ffd0cfda9c
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44
2 changed files with 17 additions and 4 deletions

View File

@ -10,7 +10,7 @@ build_neovim() {
# Brew's gettext does not get sym-linked to PATH
export PATH="/opt/homebrew/opt/gettext/bin:/usr/local/opt/gettext/bin:${PATH}"
export MACOSX_DEPLOYMENT_TARGET
export SDKROOT=$(xcrun --sdk macosx --show-sdk-path)
cmake -S cmake.deps -B .deps -G Ninja \
@ -19,11 +19,18 @@ build_neovim() {
-D CMAKE_OSX_ARCHITECTURES=arm64\;x86_64 \
-D CMAKE_FIND_FRAMEWORK=NEVER
cmake --build .deps
# See https://matrix.to/#/!cylwlNXSwagQmZSkzs:matrix.org/$WxndooGmUtD0a4IqjnALvZ_okHw3Gb0TZJIrc77T-SM?via=matrix.org&via=gitter.im&via=envs.net for libintl
cmake -B build -G Ninja \
-D CMAKE_BUILD_TYPE=${NVIM_BUILD_TYPE} \
-D CMAKE_OSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET} \
-D CMAKE_OSX_ARCHITECTURES=arm64\;x86_64 \
-D CMAKE_FIND_FRAMEWORK=NEVER
-D CMAKE_FIND_FRAMEWORK=NEVER \
-D LIBINTL_INCLUDE_DIR=../NvimServer/NvimServer/third-party/gettext/include \
-D LIBINTL_LIBRARY=../NvimServer/NvimServer/third-party/gettext/lib/libintl.a
cmake --build build
cmake --build build
cpack --config build/CPackConfig.cmake
}

View File

@ -23,7 +23,7 @@ main() {
local version; version=$(brew info gettext --json | jq -r ".[0].versions.stable"); readonly version
echo "### gettext version ${version}"
local temp_dir; temp_dir="$(mktemp -d)"; readonly temp_dir
echo "${temp_dir}"
@ -39,9 +39,15 @@ main() {
popd >/dev/null
mkdir universal
cp -r "${arm64_bottle}/gettext/${version}/include" ./universal/
#cp -r "${arm64_bottle}/gettext/${version}/include" ./universal/
mkdir universal/lib
lipo "${arm64_bottle}/gettext/${version}/lib/libintl.a" "${x86_64_bottle}/gettext/${version}/lib/libintl.a" -create -output ./universal/lib/libintl.a
pushd ./universal >/dev/null
ln -s /opt/homebrew/opt/gettext/bin .
ln -s /opt/homebrew/opt/gettext/share .
ln -s /opt/homebrew/opt/gettext/include .
popd >/dev/null
popd >/dev/null
mv "${temp_dir}/universal" gettext