resource compile