Quantcast
Channel: Vimタグが付けられた新着記事 - Qiita
Viewing all articles
Browse latest Browse all 5608

WSL上でWindows用のVimをクロスビルド

$
0
0

概要

俺用Vimのビルド環境をWSL上に移行したのでメモ

主なfeature

+terminal+directx+lua/dyn+python/dyn+python3/dyn

環境

WSL + Ubuntu-18.04

ビルドスクリプト

build
sudo apt-get install-y build-essential libtool mingw-w64

git clone --depth 1 https://github.com/LuaJit/LuaJit LuaJit
git clone --depth 1 --single-branch-b 2.7 https://github.com/python/cpython python27
git clone --depth 1 --single-branch-b 3.6 https://github.com/python/cpython python36
cp python27/PC/pyconfig.h python27/Include
cp python36/PC/pyconfig.h python36/Include

git clone https://github.com/vim/vim
pushd vim

make -C src -f Make_ming.mak \CROSS_COMPILE=x86_64-w64-mingw32- WINDRES=x86_64-w64-mingw32-windres \GUI=no \IME=yes\TERMINAL=yes\LUA=../../LuaJit/src DYNAMIC_LUA=yes LUA_VER=51 \PYTHON=yes PYTHONINC=-I../../python27/Include PYTHON_VER=27 \PYTHON3=yes PYTHON3INC=-I../../python36/Include PYTHON3_VER=36 \STATIC_STDCPLUS=yes\-j 4

make -C src -f Make_ming.mak \CROSS_COMPILE=x86_64-w64-mingw32- WINDRES=x86_64-w64-mingw32-windres \GUI=yes\DIRECTX=yes\IME=yes\TERMINAL=yes\LUA=../../LuaJit/src DYNAMIC_LUA=yes LUA_VER=51 \PYTHON=yes PYTHONINC=-I../../python27/Include PYTHON_VER=27 \PYTHON3=yes PYTHON3INC=-I../../python36/Include PYTHON3_VER=36 \STATIC_STDCPLUS=yes\-j 4

popd
  • src/vim.exe
  • src/gvim.exe
  • src/vimrun.exe
  • runtime/

を適当な場所に設置する。


Viewing all articles
Browse latest Browse all 5608

Trending Articles