From f72ef1471c4d5b303f1395c90087994cd2eb92e4 Mon Sep 17 00:00:00 2001 From: Refael Ackermann Date: Mon, 6 Feb 2017 10:20:20 -0500 Subject: [PATCH] ninja: handle 'action' -> 'process_outputs_as_sources' --- lib/gyp/generator/ninja/index.js | 4 ++++ 1 file changed, 4 insertions(+) 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 });