custom_target(depends:)
The depfile keyword argument to custom_target now accepts the @BASENAME@ and @PLAINNAME@ substitutions.
depfile
custom_target
@BASENAME@
@PLAINNAME@