toTarget

abstract fun toTarget(outputDirectory: String): Target

Transforms this WireOutput into a Target for which Wire will generate code. The Target should use outputDirectory instead of WireOutput.out in all cases for its output directory.