2018-08-30 19:28:13 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2019-06-18 21:51:09 +00:00
|
|
|
# This file configures for cross-compilation for Windows 32 bit on
|
|
|
|
# Fedora. Confirmed working on F29, at this point.
|
|
|
|
|
|
|
|
# mkdir winbuild
|
|
|
|
# cd winbuild
|
|
|
|
# bash ../development/cmake/scripts/cmingw
|
|
|
|
# make
|
|
|
|
# make package
|
|
|
|
|
|
|
|
# You should end up with something akin to
|
|
|
|
# LyX23-2.3.3-win32.zip
|
|
|
|
# in the winbuild directory.
|
|
|
|
|
2018-08-30 19:28:13 +00:00
|
|
|
CMAKE="mingw32-cmake";
|
|
|
|
MINGW="i686-w64-mingw32";
|
|
|
|
LYXSRC="";
|
|
|
|
DEVEL="";
|
|
|
|
|
|
|
|
function usage() {
|
|
|
|
echo "cmingw [-dD] /path/to/lyx-repo";
|
|
|
|
echo;
|
|
|
|
echo "Uses cmake to configures LyX for a mingw build.";
|
|
|
|
}
|
|
|
|
|
|
|
|
while getopts ":dDh" opt; do
|
|
|
|
case $opt in
|
|
|
|
d ) CMAKE="echo $CMAKE";;
|
|
|
|
h ) usage;
|
|
|
|
exit 0;;
|
2018-09-10 23:21:05 +00:00
|
|
|
D ) DEVEL="-DLYX_CONSOLE=FORCE -DLYX_DEBUG=ON";;
|
2018-08-30 19:28:13 +00:00
|
|
|
/? ) echo -e $USAGE;
|
|
|
|
exit 1;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
|
|
|
$CMAKE $LYXSRC \
|
2018-09-27 18:53:41 +00:00
|
|
|
-DLYX_PROGRAM_SUFFIX=0 \
|
|
|
|
-DCMAKE_VERBOSE_MAKEFILE=1 \
|
2018-08-30 19:28:13 +00:00
|
|
|
-DLYX_CPACK=1 $DEVEL \
|
|
|
|
-DLYX_XMINGW=$MINGW \
|
|
|
|
-DLYX_USE_QT=QT5 \
|
|
|
|
-DLYX_QUIET=1 \
|
|
|
|
-DLYX_HUNSPELL=1 \
|
|
|
|
-DLYX_3RDPARTY_BUILD=1 \
|
|
|
|
-DLYX_MERGE_FILES=0
|