summaryrefslogtreecommitdiffstats
path: root/dilos/dependencies/tqt3/debian/maintain/build-examples.sh
blob: 97426d69e6391b1efc8d44740b1bec2a437de7b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/sh

BUILDDIR=$PWD
export QTDIR=/usr/share/tqt3

# first copy over the libtqt-mt.so build configuration of .tqmake.cache
cp /usr/share/tqt3/.tqmake.cache ./.tqmake.cache

# Now compile the examples. The themes example
# won't work since tqconfig.h is not really correct with the
# ifdef's for the TQT_NO_xyz_STYLE, so we use make -k to continue
cd examples; tqmake -o Makefile examples.pro; make -k

# Now compile the tutorial.
cd $BUILDDIR/tutorial; tqmake -o Makefile tutorial.pro; make

# Then the designer examples. 
cd $BUILDDIR/tools/designer/examples
for a in `find . -type d -maxdepth 1 -mindepth 1`; do
        cd $a && tqmake -o Makefile $a.pro; make; cd ..;
done

# There is a bigger sql example in book/ with more subdirectories:
cd book
for a in `find . -type d -maxdepth 1 -mindepth 1`; do
        cd $a && tqmake -o Makefile $a.pro; make; cd ..;
done

# Finally, build the linguist tutorials:
cd $BUILDDIR/tools/linguist/tutorial
for a in `find . -type d -maxdepth 1 -mindepth 1`; do 
	cd $a && tqmake -o Makefile $a.pro; make; cd ..; 
done

# Return to the build directory
cd $BUILDDIR