]> sigrok.org Git - sigrok-util.git/blobdiff - cross-compile/mingw/sigrok-cross-mingw
Rename pulseview.patch to pulseview_linkfix.patch.
[sigrok-util.git] / cross-compile / mingw / sigrok-cross-mingw
index 767870992b454dc0dcc552602e27809becee7f60..b38a111f3413e078c5a0d87e97f0de61e7c45178 100755 (executable)
@@ -19,6 +19,8 @@
 ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 ##
 
+set -e
+
 # The path where your MXE directory is located.
 MXE=$HOME/mxe-git
 
@@ -75,6 +77,17 @@ for opt in opt_flags:
 EOF
 chmod 755 $PREFIX/bin/python3-config
 
+# Download the Python 3.2.3 MSI installer (needed for NSIS runs).
+wget -c http://python.org/ftp/python/3.2.3/python-3.2.3.msi \
+     -O $PREFIX/python-3.2.3.msi
+
+# libserialport
+git clone git://sigrok.org/libserialport
+cd libserialport
+./autogen.sh
+PKG_CONFIG_PATH_i686_pc_mingw32=$P ./configure $C $L && make install
+cd ..
+
 # libsigrok
 git clone git://sigrok.org/libsigrok
 cd libsigrok
@@ -94,28 +107,14 @@ git clone git://sigrok.org/sigrok-cli
 cd sigrok-cli
 ./autogen.sh
 PKG_CONFIG_PATH_i686_pc_mingw32=$P:$P2 ./configure $C && make install
+makensis -DHOME=$HOME contrib/sigrok-cli_cross.nsi
 cd ..
 
-## TODO: Doesn't fully work, yet.
-## # sigrok-qt
-## git clone git://sigrok.org/sigrok-qt
-## cd sigrok-qt
-## PKG_CONFIG_PATH_i686_pc_mingw32=$P:$P2 qmake -spec win32-g++
-## make
-## # TODO: make install
-## cd ..
-
-# # sigrok-gtk
-# git clone git://sigrok.org/sigrok-gtk
-# cd sigrok-gtk
-# ./autogen.sh
-# PKG_CONFIG_PATH_i686_pc_mingw32=$P:$P2 ./configure $C && make install
-# cd ..
-
 # PulseView
 git clone git://sigrok.org/pulseview
 cd pulseview
-# TODO: Append (not prepend) "-llzma -llcms" to the linker.
+patch -p1 < ../../pulseview_linkfix.patch
 PKG_CONFIG_PATH_i686_pc_mingw32=$P:$P2 cmake $CM -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX -DDISABLE_WERROR=y . && make install VERBOSE=1
+makensis -DHOME=$HOME contrib/pulseview_cross.nsi
 cd ..