mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-15 23:49:37 +00:00
65bc3149ab
These are not really right. Things are hardcoded that probably should not be. These are marked (hopefully) with "# RKH" comments. Possibly what's needed is another flag? Anyway, help welcome.
34 lines
701 B
Bash
34 lines
701 B
Bash
#!/bin/bash
|
|
|
|
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;;
|
|
D ) DEVEL="-DLYX_CONSOLE=FORCE _DLYX_DEBUG=ON";;
|
|
/? ) echo -e $USAGE;
|
|
exit 1;;
|
|
esac
|
|
done
|
|
|
|
$CMAKE $LYXSRC \
|
|
-DCMAKE_VERBOSE_MAKEFILE=1 \
|
|
-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
|