add static library compile

Signed-off-by: xiehuc <xiehuc@gmail.com>