mirror of
https://github.com/rkd77/elinks.git
synced 2025-06-30 22:19:29 -04:00
[win32] Simple meson build script for Win32
msys2 dependencies must be installed first. Some of mingw-w64-i686-* netsurf libraries too
This commit is contained in:
parent
87b5310fc7
commit
a8d63ed882
89
contrib/win32/mes_mingw32.sh
Normal file
89
contrib/win32/mes_mingw32.sh
Normal file
@ -0,0 +1,89 @@
|
||||
#!/bin/bash
|
||||
|
||||
rm -rf builddir32
|
||||
export LDFLAGS="-lws2_32"
|
||||
export CFLAGS="-g2 -O2"
|
||||
LIBRARY_PATH="$HOME/lib32" \
|
||||
PKG_CONFIG_PATH="$HOME/lib32/pkgconfig" \
|
||||
/mingw32/bin/meson setup builddir32 \
|
||||
-D88-colors=false \
|
||||
-D256-colors=false \
|
||||
-Dapidoc=false \
|
||||
-Dbacktrace=false \
|
||||
-Dbittorrent=false \
|
||||
-Dbrotli=true \
|
||||
-Dbzlib=false \
|
||||
-Dcgi=false \
|
||||
-Dcodepoint=false \
|
||||
-Dcss=true \
|
||||
-Dcombining=false \
|
||||
-Ddebug=false \
|
||||
-Ddgi=true \
|
||||
-Ddoc=false \
|
||||
-Dexmode=true \
|
||||
-Dfastmem=true \
|
||||
-Dfsp=false \
|
||||
-Dfsp2=true \
|
||||
-Dgemini=true \
|
||||
-Dgettext=false \
|
||||
-Dgnutls=false \
|
||||
-Dgopher=true \
|
||||
-Dgpm=false \
|
||||
-Dgssapi=false \
|
||||
-Dguile=false \
|
||||
-Dhtml-highlight=true \
|
||||
-Dhtmldoc=false \
|
||||
-Didn=true \
|
||||
-Dipv6=true \
|
||||
-Dlibcss=true \
|
||||
-Dlibcurl=true \
|
||||
-Dlibev=false \
|
||||
-Dlibevent=false \
|
||||
-Dlibsixel=false \
|
||||
-Dluapkg= \
|
||||
-Dlzma=false \
|
||||
-Dmouse=true \
|
||||
-Dmujs=false \
|
||||
-Dnls=true \
|
||||
-Dnntp=true \
|
||||
-Dopenssl=true \
|
||||
-Dpdfdoc=false \
|
||||
-Dperl=false \
|
||||
-Dprefix=$HOME \
|
||||
-Dpython=false \
|
||||
-Dquickjs=false \
|
||||
-Dreproducible=false \
|
||||
-Druby=false \
|
||||
-Dsm-scripting=false \
|
||||
-Dsmb=false \
|
||||
-Dspidermonkey=false \
|
||||
-Dstatic=false \
|
||||
-Dterminfo=false \
|
||||
-Dtest=false \
|
||||
-Dtre=false \
|
||||
-Dtrue-color=false \
|
||||
-Dutf-8=false \
|
||||
-Dwithdebug=false \
|
||||
-Dx=false \
|
||||
-Dxbel=false \
|
||||
-Dzlib=true \
|
||||
-Dzstd=true || exit 4
|
||||
|
||||
|
||||
/mingw32/bin/meson compile -C builddir32
|
||||
|
||||
# prepare zip
|
||||
rm -rf $HOME/ELINKS32
|
||||
|
||||
mkdir -p $HOME/ELINKS32/src
|
||||
mkdir -p $HOME/ELINKS32/po
|
||||
|
||||
install builddir32/src/elinks.exe $HOME/ELINKS32/src/
|
||||
|
||||
cd builddir32/po
|
||||
for i in *; do cp -v $i/LC_MESSAGES/elinks.mo $HOME/ELINKS32/po/$i.gmo; done
|
||||
cd -
|
||||
|
||||
cd $HOME/ELINKS32/src
|
||||
for i in $(ntldd.exe -R elinks.exe | grep \\\\mingw32\\\\bin | cut -d'>' -f2 | cut -d' ' -f2); do cp -v $i . ; done
|
||||
cd -
|
Loading…
x
Reference in New Issue
Block a user