1 #!/bin/bash 2 # 3 # Copyright 2016 Google Inc. All rights reserved. 4 # 5 # Licensed under the Apache License, Version 2.0 (the "License"); 6 # you may not use this file except in compliance with the License. 7 # You may obtain a copy of the License at 8 # 9 # http://www.apache.org/licenses/LICENSE-2.0 10 # 11 # Unless required by applicable law or agreed to in writing, software 12 # distributed under the License is distributed on an "AS IS" BASIS, 13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 # See the License for the specific language governing permissions and 15 # limitations under the License. 16 17 sudo apt-get update -qq 18 sudo apt-get install libglu1-mesa-dev xorg-dev 19 wget http://www.biicode.com/downloads/latest/ubuntu64 20 mv ubuntu64 bii-ubuntu64.deb 21 (sudo dpkg -i bii-ubuntu64.deb) && sudo apt-get -f install 22 rm bii-ubuntu64.deb 23 wget https://s3.amazonaws.com/biibinaries/thirdparty/cmake-3.0.2-Linux-64.tar.gz 24 tar -xzf cmake-3.0.2-Linux-64.tar.gz 25 sudo cp -fR cmake-3.0.2-Linux-64/* /usr 26 rm -rf cmake-3.0.2-Linux-64 27 rm cmake-3.0.2-Linux-64.tar.gz 28 29 cmake --version 30 bii init -l && bii configure -DCMAKE_BUILD_TYPE=$1 && bii test