2015-12-30 12:03:53 -05:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# This script is used by Travis CI to install the dependencies before building
|
|
|
|
# wxWidgets but can also be run by hand if necessary but currently it only
|
2015-12-30 09:56:44 -05:00
|
|
|
# works for Ubuntu 12.04 and 14.04 and OS X used by Travis builds.
|
2015-12-30 12:03:53 -05:00
|
|
|
|
|
|
|
SUDO=sudo
|
|
|
|
|
|
|
|
case $(uname -s) in
|
|
|
|
Linux)
|
|
|
|
if [ -f /etc/apt/sources.list ]; then
|
|
|
|
$SUDO apt-get update
|
2017-11-21 20:33:53 -05:00
|
|
|
case "$wxGTK_VERSION" in
|
|
|
|
3) libgtk_dev=libgtk-3-dev ;;
|
|
|
|
*) libgtk_dev=libgtk2.0-dev;;
|
|
|
|
esac
|
|
|
|
$SUDO apt-get install -y $libgtk_dev libnotify-dev
|
2015-12-30 12:03:53 -05:00
|
|
|
fi
|
|
|
|
;;
|
2015-12-30 09:56:44 -05:00
|
|
|
|
|
|
|
Darwin)
|
|
|
|
brew update
|
|
|
|
brew install cppunit --universal
|
|
|
|
;;
|
2015-12-30 12:03:53 -05:00
|
|
|
esac
|