generate files and libs before packing