4UNITY_BUILD_DIR=$PWD/../unity_build/build
7NUM_JOBS=$(( `grep -c ^processor /proc/cpuinfo` + 1 ))
10 echo "usage: build [OPTIONS] [BUILD_TYPE]\n" >&2
11 echo "Script to build the shell. If BUILD_TYPE is not specified, it defaults to \"debug\".\n" >&2
13 echo " -s, --setup Setup the build environment and branch Unity" >&2
14 echo " -c, --clean Clean the build tree before building" >&2
19ARGS=`getopt -n$0 -u -a --longoptions="setup,clean,help" -o "sch" -- "$@"`
26 -s|--setup) SETUP=true;;
27 -c|--clean) CLEAN=true;;
37[ $# -eq 1 ] && BUILD_TYPE="$1"
39install_dependencies() {
41 [ -f /etc/apt/sources.list.d/phablet-team-desktop-deps-${DISTRIB_CODENAME}.list ] || sudo add-apt-repository ppa:phablet-team/desktop-deps || exit 1
42 [ -f /etc/apt/sources.list.d/canonical-qt5-edgers-qt5-proper-${DISTRIB_CODENAME}.list ] || sudo add-apt-repository ppa:canonical-qt5-edgers/qt5-proper || exit 2;
43 [ -f /etc/apt/sources.list.d/ubuntu-sdk-team-ppa-${DISTRIB_CODENAME}.list ] || sudo add-apt-repository ppa:ubuntu-sdk-team/ppa || exit 3
44 sudo apt-get update || exit 4
45 echo "Installing Unity 8 dependencies.."
46 sudo apt-get install qtdeclarative5-ubuntu-ui-toolkit-plugin qtdeclarative5-dee-plugin indicators-client indicators-client-plugin-* qtbase5-dev qtbase5-private-dev qtdeclarative5-dev qtdeclarative5-dev-tools qtdeclarative5-test-plugin libdee-qt5-dev libpulse-dev qtdeclarative5-xmllistmodel-plugin unity-lens-mock demo-assets ubuntu-mobile-icons || exit 5
49if [ -f "/usr/bin/ninja" ] ; then
51 BUILD_COMMAND="ninja -j$NUM_JOBS"
54 BUILD_COMMAND="make -j$NUM_JOBS"
59 ./build_unity --setup || exit 1$?
60 ./build_unity || exit 1$?
62 if $CLEAN; then rm -rf builddir; fi
65 PKG_CONFIG_PATH=$UNITY_BUILD_DIR/lib/pkgconfig/:$PKG_CONFIG_PATH cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE .. ${GENERATOR} || exit 6
66 ${BUILD_COMMAND} || exit 7
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list