Support incremental build.
Added ResourceInjection.