aheinecke@405: # Copyright (C) 2014 by Bundesamt für Sicherheit in der Informationstechnik aheinecke@405: # Software engineering by Intevation GmbH aheinecke@405: # aheinecke@405: # This file is Free Software under the GNU GPL (v>=2) aheinecke@405: # and comes with ABSOLUTELY NO WARRANTY! aheinecke@405: # See LICENSE.txt for details. aheinecke@405: aheinecke@3: #!/bin/bash aheinecke@3: aheinecke@3: # This script is currently a dummy to take down some notes on building. aheinecke@3: # It is not meant to be a general purpose build script. aheinecke@3: aheinecke@3: set -e aheinecke@3: aheinecke@3: cd `dirname $0` aheinecke@3: bernhard@56: # build requirements need to be installed: andre@301: # polarssl, qt5, (opt) doxygen, (opt) hiawatha-webserver, (opt) libnss3-dev bernhard@56: aheinecke@3: mkdir -p build-linux aheinecke@3: cd build-linux aheinecke@37: cmake .. -DCMAKE_VERBOSE_MAKEFILE=True -DCMAKE_PREFIX_PATH=~/ubuntu aheinecke@3: nice make -j8 aheinecke@3: cd .. aheinecke@3: mkdir -p build-windows aheinecke@3: cd build-windows andre@373: MXEPATH=~/ubuntu/src/mxe/usr/i686-w64-mingw32.static/ aheinecke@67: cmake .. \ andre@373: -DCMAKE_PREFIX_PATH="$MXEPATH/qt5;$MXEPATH;" \ aheinecke@328: -DNSS_INCLUDEDIR="/nss-3.12.7/include;/nss-3.12.7/public/nss" \ aheinecke@328: -DNSS_LIBDIR="/nss-3.12.7/lib" \ andre@373: -DCMAKE_TOOLCHAIN_FILE="$MXEPATH/share/cmake/mxe-conf.cmake" \ aheinecke@4: -DCMAKE_VERBOSE_MAKEFILE=True aheinecke@3: nice make -j8 aheinecke@3: cd .. aheinecke@3: aheinecke@3: # Note: qt5 plugins have .lib suffix aheinecke@77: # 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' aheinecke@3: # Also they need to have a lib prefixed... aheinecke@3: # Then there is a bogous call _qt5gui_find_extra_libs(OPENGL "glu32;opengl32;gdi32;user32" "" "") aheinecke@67: # where the first "" has to be replaced by your windows prefix. e.g. aheinecke@67: # /home/andre/ubuntu/src/mxe/usr/i686-w64-mingw32.static/lib aheinecke@69: # if this does not work you can omment out the line altogether