Add declaration generation to release build