26 lines
		
	
	
		
			676 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			676 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/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
 | |
| # works for Ubuntu 12.04 and 14.04 and OS X used by Travis builds.
 | |
| 
 | |
| SUDO=sudo
 | |
| 
 | |
| case $(uname -s) in
 | |
|     Linux)
 | |
|         if [ -f /etc/apt/sources.list ]; then
 | |
|             $SUDO apt-get update
 | |
|             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
 | |
|         fi
 | |
|         ;;
 | |
| 
 | |
|     Darwin)
 | |
|         brew update
 | |
|         brew install cppunit --universal
 | |
|         ;;
 | |
| esac
 |