2 #******************************************************************************
4 # Copyright (c) 2019 Intel.
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
18 #******************************************************************************/
21 trap 'l_c=$current_command; current_command=$BASH_COMMAND' DEBUG
22 trap 'echo "\"${l_c}\" command exited with code $?."' EXIT
24 XRAN_FH_LIB_DIR=$XRAN_DIR/lib
25 XRAN_FH_APP_DIR=$XRAN_DIR/app
26 XRAN_FH_TEST_DIR=$XRAN_DIR/test/test_xran
31 echo Number of commandline arguments: $#
53 echo $key is unknown command # unknown option
56 shift # past argument or value
61 echo 'MLOG folder is not set. Disable MLOG (MLOG_DIR='$MLOG_DIR')'
64 echo 'MLOG folder is set. Enable MLOG (MLOG_DIR='$MLOG_DIR')'
68 echo 'Building xRAN Library'
69 echo "LIBXRANSO = ${LIBXRANSO}"
73 make $COMMAND_LINE MLOG=${MLOG} LIBXRANSO=${LIBXRANSO} #DEBUG=1 VERBOSE=1
75 echo 'Building xRAN Test Application'
77 make $COMMAND_LINE MLOG=${MLOG} #DEBUG=1 VERBOSE=1
79 if [ -z ${GTEST_ROOT+x} ];
81 echo "GTEST_ROOT is not set. Unit tests are not compiled";
83 echo 'Building xRAN Test Application ('$GTEST_ROOT')'