~ci-train-bot/indicator-session/indicator-session-ubuntu-yakkety-landing-022

384.2.5 by Charles Kerr
use pete woods' hud cmake code for the build.sh script to check for Ninja and to move the gdbus-codegen macros into a resuable file in the cmake/ directory.
1
#! /bin/bash
2
set -e
3
4
mkdir -p build
5
6
if [ -f "/usr/bin/ninja" ] ; then
7
  EXTRA_ARGS="-G Ninja"
8
  BUILD_COMMAND="ninja"
9
else
10
  BUILD_COMMAND="make"
11
fi
12
13
echo "Using $BUILD_COMMAND to build"
14
(
15
  cd build
384.2.75 by Charles Kerr
remove localinstall mode
16
  cmake .. $EXTRA_ARGS -DCMAKE_INSTALL_PREFIX=../../install -DCMAKE_BUILD_TYPE=Debug
384.2.5 by Charles Kerr
use pete woods' hud cmake code for the build.sh script to check for Ninja and to move the gdbus-codegen macros into a resuable file in the cmake/ directory.
17
  $BUILD_COMMAND
18
)