SIGN IN SIGN UP

openFrameworks is a community-developed cross platform toolkit for creative coding in C++.

0 0 0 C++
#!/bin/bash
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $SCRIPT_DIR
for category in $( find ../../examples -maxdepth 1 -type d )
do
if [ "$category" = "../../examples/android" -o "$category" = "../../examples/templates" -o "$category" = "../../examples/tvOS" -o "$category" = "../../examples/ios" -o "$category" = "../../examples/gles" -o "$category" = "../../examples" ]; then
continue
fi
echo "-----------------------------------------------------------------"
echo building ALL examples in $category
for example in $( find $category -maxdepth 1 -type d )
do
if [ "$example" = "$category" ]; then
continue
fi
2013-03-13 14:57:28 -07:00
if [ ! -e "$example"/$(basename $example).xcodeproj ]; then
echo "-----------------------------------------------------------------"
echo no xcode project for $example
continue
fi
2013-03-12 13:43:14 -07:00
echo "-----------------------------------------------------------------"
echo building $example Debug
2013-03-13 14:57:28 -07:00
xcodebuild -configuration Debug -target $(basename $example) -project $example/$(basename $example).xcodeproj
2013-03-12 13:43:14 -07:00
ret=$?
if [ $ret -ne 0 ]; then
echo failed building $example Debug
exit
2013-03-12 13:43:14 -07:00
fi
2013-03-12 13:43:14 -07:00
echo "-----------------------------------------------------------------"
echo building $example Release
2013-03-13 14:57:28 -07:00
xcodebuild -configuration Release -target $(basename $example) -project $example/$(basename $example).xcodeproj
ret=$?
if [ $ret -ne 0 ]; then
echo failed building $example Release
exit
fi
echo "-----------------------------------------------------------------"
echo ""
done
done