-
Notifications
You must be signed in to change notification settings - Fork 38
/
build.sh
executable file
·41 lines (33 loc) · 952 Bytes
/
build.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
37
38
39
40
41
#! /bin/bash
# **********************************************************
# Copyright (c) 2020-2021 Xuhpclab. All rights reserved.
# Licensed under the MIT License.
# See LICENSE file for more information.
# **********************************************************
for i in "$@"; do
case $i in
--build_cpp_version=*)
BUILD_CPP_VERSION="${i#*=}"
shift # past argument=value
;;
--debug=*)
DEBUG="${i#*=}"
shift # past argument=value
;;
-*|--*)
echo "Unknown option $i"
exit 1
;;
*)
;;
esac
done
CUR_DIR=$(cd "$(dirname "$0")";pwd)
echo -e "add dynamorio patch..."
$CUR_DIR/scripts/build_tool/dr_patch_add.sh --build_cpp_version=${BUILD_CPP_VERSION}
echo -e "init env..."
$CUR_DIR/scripts/build_tool/env_init.sh
echo -e "make..."
$CUR_DIR/scripts/build_tool/make.sh --debug=${DEBUG}
echo -e "make test..."
$CUR_DIR/scripts/build_tool/make_tests.sh --debug=${DEBUG}