forked from tinq-iot/tinq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_c.sh
executable file
·38 lines (28 loc) · 941 Bytes
/
build_c.sh
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
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
# Copyright (c) 2016 - Qeo LLC
#
# The source code form of this Qeo Open Source Project component is subject
# to the terms of the Clear BSD license.
#
# You can redistribute it and/or modify it under the terms of the Clear BSD
# License (http://directory.fsf.org/wiki/License:ClearBSD). See LICENSE file
# for more details.
#
# The Qeo Open Source Project also includes third party Open Source Software.
# See LICENSE file for more details.
#build qeo-c using gradle and make
SELF_DIR=$(cd $(dirname $0) > /dev/null; pwd)
function syntax()
{
echo "Usage: $(basename $0) <dir where to put all generated binaries>"
exit 1
}
if [ $# -ne 1 ]; then
syntax
fi
GRADLE="gradle -DqeoGradleHelper=$SELF_DIR/gradle-helper -Dartifactory-overlay=$SELF_DIR/$1/maven-repo -DqeoUseMavenCentral=1"
mkdir -p $SELF_DIR/$1
set -e
echo "Compiling qeo-c"
cd "${SELF_DIR}/qeo-c"
$GRADLE assemble -PTARGET=HOSTLINUX uploadOverlay