comparison build.sh @ 3:b684e25adbbb

Add personal build script
author Andre Heinecke <aheinecke@intevation.de>
date Mon, 10 Feb 2014 16:25:39 +0000
parents
children 9849250f50f2
comparison
equal deleted inserted replaced
2:cf88cc432b9d 3:b684e25adbbb
1 #!/bin/bash
2
3 # This script is currently a dummy to take down some notes on building.
4 # It is not meant to be a general purpose build script.
5
6 set -e
7
8 cd `dirname $0`
9
10 mkdir -p build-linux
11 cd build-linux
12 cmake .. -DCMAKE_VERBOSE_MAKEFILE=True -DCMAKE_PREFIX_PATH=~/wheezy
13 nice make -j8
14 cd ..
15 mkdir -p build-windows
16 cd build-windows
17 cmake .. -DCMAKE_PREFIX_PATH=~/wheezy/src/mxe/usr/i686-w64-mingw32/qt5 \
18 -DCMAKE_TOOLCHAIN_FILE='~/wheezy/src/mxe/usr/i686-w64-mingw32/share/cmake/mxe-conf.cmake'
19 nice make -j8
20 cd ..
21
22 # Note: qt5 plugins have .lib suffix
23 # find ~/wheezy/src/mxe/usr/i686-w64-mingw32/qt5/lib/cmake -name \*.cmake | xargs sed -i 's/\.lib/\.a//g'
24 # Also they need to have a lib prefixed...
25 # Then there is a bogous call _qt5gui_find_extra_libs(OPENGL "glu32;opengl32;gdi32;user32" "" "")
26 # where the second "" has to be replaced by your windows prefix. e.g. /home/andre/wheezy/src/mxe/usr/i686-w64-mingw32/lib

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