blob: a4ca8a8e7f62fc3420d32ee8209c195b9352dfe4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/bin/bash -ex
#
# Copyright 2019-2020 The Mumble Developers. All rights reserved.
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file at the root of the
# Mumble source tree or at <https://www.mumble.info/LICENSE>.
#
# Below is a list of configuration variables used from environment.
#
# BUILD_BINARIESDIRECTORY - The local path on the agent that can be used
# as an output folder for compiled binaries.
# BUILD_SOURCESDIRECTORY - The local path on the agent where the
# repository is downloaded.
#
VER=$(python scripts/mumble-version.py)
cd $BUILD_BINARIESDIRECTORY
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=appdir/usr -Dtests=ON Donline-tests=ON -Dversion=$VER -Dsymbols=ON \
-Donline-tests=ON -Dgrpc=ON -Ddisplay-install-paths=ON $BUILD_SOURCESDIRECTORY
cmake --build .
ctest --verbose
cmake --install .
|