Make NPatchData receive LoadComplete call from TextureManager.
[platform/core/uifw/dali-toolkit.git] / automated-tests / build.sh
1 #!/bin/bash
2
3
4 TEMP=`getopt -o r --long rebuild \
5      -n 'genmake' -- "$@"`
6
7 if [ $? != 0 ] ; then echo "Terminating..." >&2 ; exit 1 ; fi
8
9 # Note the quotes around `$TEMP': they are essential!
10 eval set -- "$TEMP"
11
12 opt_rebuild=false
13
14 while true ; do
15     case "$1" in
16         -r|--rebuild) opt_rebuild=true ; shift ;;
17         --) shift ; break ;;
18         *) shift ;;   # Ignore
19     esac
20 done
21
22 if [ false == $opt_rebuild -o ! -d "build" ] ; then
23     rm -rf build
24     mkdir build
25 fi
26
27 function build
28 {
29     (cd build ; cmake .. -DMODULE=$1 ; make -j7 )
30 }
31
32 if [ -n "$1" ] ; then
33   echo BUILDING ONLY $1
34   build $1
35 else
36   for mod in `ls -1 src/ | grep -v CMakeList `
37   do
38     if [ $mod != 'common' ] && [ $mod != 'manual' ]; then
39         echo BUILDING $mod
40         build $mod
41         if [ $? -ne 0 ]; then echo "Build failed" ; exit 1; fi
42     fi
43   done
44 fi
45
46 echo "Build succeeded"
47 exit 0