Browse Source

Extend tccheck to show library versions

show name and version of libraries in pkgconfig of toolchain
sample output:
  Library config ----> armv7-rpi2-linux-gnueabihf/sysroot/usr/lib/pkgconfig
  ====================

  Library Config : libcrypto.pc        found    OpenSSL-libcrypto   1.1.0l
  Library Config : libpcsclite.pc      found    PCSC Lite           1.8.26
  Library Config : libssl.pc           found    OpenSSL-libssl      1.1.0l
  Library Config : libusb-1.0.pc       found    libusb-1.0          1.0.23
  Library Config : openssl.pc          found    OpenSSL             1.1.0l
  Library Config : zlib.pc             found    zlib                1.2.11
pull/10/head
WXbet 5 years ago
committed by WXbet
parent
commit
0726294bcb
  1. 9
      support/functions/_toolchain

9
support/functions/_toolchain

@ -186,6 +186,15 @@ _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;
libconfigvars=( libcrypto.pc libpcsclite.pc libusb-1.0.pc zlib.pc );
pkg=$(find * |grep -m1 "pkgconfig");
[ "$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;
echo -e $re_;
exit;
};

Loading…
Cancel
Save