2009-05-27 16:44:48 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
export LC_ALL=C
|
|
|
|
|
|
2013-02-28 11:01:54 +01:00
|
|
|
for category in $( find ../../examples/ -maxdepth 1 -type d )
|
2009-05-27 16:44:48 +00:00
|
|
|
do
|
2018-04-26 12:37:06 +02:00
|
|
|
if [ "$category" = "../../examples/android" -o "$category" = "../../examples/ios" -o "$category" = "../../examples/" -o "$category" = "../../examples/tvOS" ]; then
|
2015-11-05 17:39:23 -03:00
|
|
|
continue
|
2012-04-22 17:39:18 -03:00
|
|
|
fi
|
2015-11-05 17:39:23 -03:00
|
|
|
|
2013-02-28 11:01:54 +01:00
|
|
|
echo category $category
|
2015-11-05 17:39:23 -03:00
|
|
|
for example in $( find "$category" -maxdepth 1 -type d | grep -v osx )
|
|
|
|
|
do
|
|
|
|
|
if [ "$example" = "$category" ]; then
|
|
|
|
|
continue
|
2013-02-28 09:56:29 +01:00
|
|
|
fi
|
|
|
|
|
|
2015-11-05 17:39:23 -03:00
|
|
|
echo -----------------------------------------------------------------
|
|
|
|
|
echo building $example
|
|
|
|
|
|
|
|
|
|
#projectGenerator .
|
2024-01-02 23:51:04 -03:00
|
|
|
make Debug -j -C "$example"
|
2012-04-22 17:39:18 -03:00
|
|
|
ret=$?
|
|
|
|
|
if [ $ret -ne 0 ]; then
|
2015-11-05 17:39:23 -03:00
|
|
|
echo error compiling $example
|
|
|
|
|
exit
|
2012-04-22 17:39:18 -03:00
|
|
|
fi
|
2024-01-02 23:51:04 -03:00
|
|
|
make Release -j -C "$example"
|
2012-04-22 17:39:18 -03:00
|
|
|
ret=$?
|
|
|
|
|
if [ $ret -ne 0 ]; then
|
2015-11-05 17:39:23 -03:00
|
|
|
echo error compiling $example
|
|
|
|
|
exit
|
2012-04-22 17:39:18 -03:00
|
|
|
fi
|
2015-11-05 17:39:23 -03:00
|
|
|
|
|
|
|
|
echo -----------------------------------------------------------------
|
|
|
|
|
echo
|
2012-04-22 17:39:18 -03:00
|
|
|
done
|
2009-05-27 16:44:48 +00:00
|
|
|
done
|