diff --git a/lib/gyp/generator/ninja/index.js b/lib/gyp/generator/ninja/index.js index 63f4701..f7f8994 100644 --- a/lib/gyp/generator/ninja/index.js +++ b/lib/gyp/generator/ninja/index.js @@ -416,6 +416,10 @@ Ninja.prototype.actions = function actions() { res = res.concat(outputs); + if (action.process_outputs_as_sources === '1') { + this.targetDict.sources = (this.targetDict.sources || []).concat(action.outputs); + } + this.n.build(actionRule, outputs, inputs, { orderOnlyDeps: deps });