Skip to content

Commit 189c65a

Browse files
committed
Added support for Bazel/Buck build
Changes for version 6.0 - XII Resolved compilation errors Fixed autoconf, scons build errors Resolved compilation errors
1 parent 9578cbc commit 189c65a

File tree

9 files changed

+110
-90
lines changed

9 files changed

+110
-90
lines changed

rtdcf/shellb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1373,6 +1373,10 @@ function _b_compile_single() {
13731373
BCK2_SRCES+="\"$file\","
13741374
fi
13751375
return
1376+
else
1377+
if [[ $file == *".h" ]] || [[ $file == *".hh" ]] || [[ $file == *".hpp" ]]; then
1378+
return
1379+
fi
13761380
fi
13771381

13781382
count=$((count+1))
@@ -2414,6 +2418,12 @@ function start() {
24142418

24152419
if [[ "$(type -t do_start)" == 'function' ]]; then
24162420
do_start
2421+
if [ "$BUILD_SYS" = "emb" ]; then
2422+
err_cnt_=$(cat $cmds_log_file|grep " error: "|wc -l)
2423+
if [ ! -z "$err_cnt_" ] && [ "$err_cnt_" -ne 0 ]; then
2424+
echo "Build failed, please check the log file for details .... $cmds_log_file"
2425+
fi
2426+
fi
24172427
else
24182428
echo "Please provide a valid shellb script with a do_start function implementation"
24192429
fi

shellb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1373,6 +1373,10 @@ function _b_compile_single() {
13731373
BCK2_SRCES+="\"$file\","
13741374
fi
13751375
return
1376+
else
1377+
if [[ $file == *".h" ]] || [[ $file == *".hh" ]] || [[ $file == *".hpp" ]]; then
1378+
return
1379+
fi
13761380
fi
13771381

13781382
count=$((count+1))
@@ -2414,6 +2418,12 @@ function start() {
24142418

24152419
if [[ "$(type -t do_start)" == 'function' ]]; then
24162420
do_start
2421+
if [ "$BUILD_SYS" = "emb" ]; then
2422+
err_cnt_=$(cat $cmds_log_file|grep " error: "|wc -l)
2423+
if [ ! -z "$err_cnt_" ] && [ "$err_cnt_" -ne 0 ]; then
2424+
echo "Build failed, please check the log file for details .... $cmds_log_file"
2425+
fi
2426+
fi
24172427
else
24182428
echo "Please provide a valid shellb script with a do_start function implementation"
24192429
fi

0 commit comments

Comments
 (0)