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