view build.sh @ 757:9bfaced5cf59

(issue56) Do not delete the certificate immediately When the selection changed the remove cert is triggered by a slection change event in the certificateitem. Deleting it immediately would delete the trigger of the call. Instead we deleteLater so that the widget get's cleaned up in the next mainloop iteration when it is no longer needed.
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 07 Jul 2014 12:54:02 +0200
parents 35d6b371ba63
children
line wrap: on
line source
# Copyright (C) 2014 by Bundesamt für Sicherheit in der Informationstechnik
# Software engineering by Intevation GmbH
#
# This file is Free Software under the GNU GPL (v>=2)
# and comes with ABSOLUTELY NO WARRANTY!
# See LICENSE.txt for details.

#!/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, (opt) libnss3-dev

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
MXEPATH=~/ubuntu/src/mxe/usr/i686-w64-mingw32.static/
cmake .. \
    -DCMAKE_PREFIX_PATH="$MXEPATH/qt5;$MXEPATH;" \
    -DNSS_INCLUDEDIR="/nss-3.12.7/include;/nss-3.12.7/public/nss" \
    -DNSS_LIBDIR="/nss-3.12.7/lib" \
    -DCMAKE_TOOLCHAIN_FILE="$MXEPATH/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/