]> git.lyx.org Git - features.git/commitdiff
mingw build script
authorRichard Kimberly Heck <rikiheck@lyx.org>
Sat, 29 Sep 2018 21:44:25 +0000 (17:44 -0400)
committerRichard Kimberly Heck <rikiheck@lyx.org>
Sun, 30 Sep 2018 17:50:36 +0000 (13:50 -0400)
development/cmake/scripts/cmingw [new file with mode: 0644]

diff --git a/development/cmake/scripts/cmingw b/development/cmake/scripts/cmingw
new file mode 100644 (file)
index 0000000..f79b6b2
--- /dev/null
@@ -0,0 +1,35 @@
+#!/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 \
+    -DLYX_PROGRAM_SUFFIX=0 \
+    -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