build: support to build target shared library.

N/A

Signed-off-by: liminghao <liminghao@xiaomi.com>