~bzoltan/kubuntu-packaging/decouple_cmake_plugin

« back to all changes in this revision

Viewing changes to src/shared/qbs/src/lib/buildgraph/jscommandexecutor.cpp

  • Committer: Timo Jyrinki
  • Date: 2013-11-15 12:25:23 UTC
  • mfrom: (1.1.28)
  • Revision ID: timo.jyrinki@canonical.com-20131115122523-i2kyamsu4gs2mu1m
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
        m_result.errorMessage.clear();
80
80
        ScriptEngine * const scriptEngine = provideScriptEngine();
81
81
        QScriptValue scope = scriptEngine->newObject();
82
 
        Artifact *someOutputArtifact = *transformer->outputs.begin();
83
 
        if (!someOutputArtifact->product.isNull())
84
 
            setupScriptEngineForProduct(scriptEngine, someOutputArtifact->product,
85
 
                                        transformer->rule, scope);
 
82
        setupScriptEngineForFile(scriptEngine, transformer->rule->script->fileContext, scope);
 
83
        setupScriptEngineForProduct(scriptEngine, transformer->product(), transformer->rule, scope);
86
84
        transformer->setupInputs(scriptEngine, scope);
87
85
        transformer->setupOutputs(scriptEngine, scope);
88
86