add static lib generate method