support swfs in build script