view build.sh @ 289:9ad00a3255f4

Change cinst from stdin input to use arguments. As we have to execute this process on Windows over the shell a stdin / stdout communication is not really possible without some major hacks. So you now have to supply an instructions file and the path to the certificatelist as arguments when this process is called
author Andre Heinecke <aheinecke@intevation.de>
date Wed, 02 Apr 2014 13:52:02 +0000
parents 056ddb71a310
children aec9008c3b30
line wrap: on
line source
#!/bin/bash

# This script is currently a dummy to take down some notes on building.
# It is not meant to be a general purpose build script.

set -e

cd `dirname $0`

# build requirements need to be installed:
#   polarssl, qt5, (opt) doxygen, (opt) hiawatha-webserver

mkdir -p build-linux
cd build-linux
cmake .. -DCMAKE_VERBOSE_MAKEFILE=True -DCMAKE_PREFIX_PATH=~/ubuntu
nice make -j8
cd ..
mkdir -p build-windows
cd build-windows
cmake .. \
    -DCMAKE_PREFIX_PATH="~/ubuntu/src/mxe/usr/i686-w64-mingw32.static/qt5;~/ubuntu/src/mxe/usr/i686-w64-mingw32.static" \
    -DCMAKE_TOOLCHAIN_FILE='~/ubuntu/src/mxe/usr/i686-w64-mingw32.static/share/cmake/mxe-conf.cmake' \
    -DCMAKE_VERBOSE_MAKEFILE=True
nice make -j8
cd ..

# Note: qt5 plugins have .lib suffix
# find ~/ubuntu/src/mxe/usr/i686-w64-mingw32.static/qt5/lib/cmake -name \*.cmake | xargs sed -i 's/\/\([a-z]*\)\.lib/\/lib\1\.a/g'
# Also they need to have a lib prefixed...
# Then there is a bogous call _qt5gui_find_extra_libs(OPENGL "glu32;opengl32;gdi32;user32" "" "")
# where the first "" has to be replaced by your windows prefix. e.g.
# /home/andre/ubuntu/src/mxe/usr/i686-w64-mingw32.static/lib
# if this does not work you can omment out the line altogether

http://wald.intevation.org/projects/trustbridge/