Skip to content

Commit

Permalink
ninja: handle 'action' -> 'process_outputs_as_sources'
Browse files Browse the repository at this point in the history
  • Loading branch information
refack committed Feb 6, 2017
1 parent a0e19f8 commit f72ef14
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/gyp/generator/ninja/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
Expand Down

0 comments on commit f72ef14

Please sign in to comment.