Browse Source

Merge pull request #10 from WXbet/gorgone

Extend tccheck  to show built-in library versions of toolchain
pull/12/head
Gorgone 5 years ago
committed by GitHub
parent
commit
88e8a01364
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      support/functions/_toolchain

12
support/functions/_toolchain

@ -186,6 +186,18 @@ _toolchain_check(){
temp=$(find * |grep -m1 "$e");
[ ${#temp} -gt 8 ] && echo -e "$w_l Header File :$y_l $e$g_l\t$txt_found" || echo -e "$w_l Header File :$y_l $e$r_l\t($txt_not_found)";
done;
pkg=$(find * |grep -m1 "pkgconfig");
if [ ${#pkg} -gt 0 ];then
[ "$1" == "native" ] && cd "$_sysroot/$pkg" || cd "$tcdir/$1/$_sysroot/$pkg";
echo -e "\n$w_l Library config ----> $C$_sysroot/$pkg$w_l\n ====================\n";
for f in *.pc;do
content=$(cat "$f") && na=$(echo "$content" | grep 'Name:' | sed -e "s/Name: //g") && ver=$(echo "$content" | grep 'Version:' | sed -e "s/Version: //g");
sp1=$(printf '%*s' $((20-${#f})) | tr ' ' ' ') && sp2=$(printf '%*s' $((20-${#na})) | tr ' ' ' ');
[ ${#content} -gt 0 ] && echo -e "$w_l Library Config :$y_l "$f"$sp1$g_l$txt_found\t$p_l$na$sp2$ver" || echo -e "$w_l Library Config :$y_l "$f"$sp1$r_l($txt_not_found)";
done;
else
echo -e "\n$w_l Library config ----> $C no libraries found in pkgconfig$w_l\n ====================\n";
fi
echo -e $re_;
exit;
};

Loading…
Cancel
Save