[task] Make it can generate a libs dir auto