diff options
| author | Christian Kandeler <christian.kandeler@digia.com> | 2013-02-20 12:17:27 +0100 |
|---|---|---|
| committer | Joerg Bornemann <joerg.bornemann@digia.com> | 2013-02-20 18:06:10 +0100 |
| commit | ff9ea2eef48f0f3f593df27f449159fcc177045d (patch) | |
| tree | ca1db9bcab4e199b1f57111d30748fb59dc4315a /src/lib/buildgraph/rulesapplicator.cpp | |
| parent | b723fb1247019b9b22b520bfcae217399bfee1b2 (diff) | |
| download | qbs-ff9ea2eef48f0f3f593df27f449159fcc177045d.tar.gz | |
Move property look-up into the C++ backend.
Instead of exporting the complete property VariantMap of
products and artifacts to JavaScript and finding the
property values there, we introduce functions that do this
in C++ and just export their functionality.
This functionality will also be made available in the API.
Change-Id: I6b8631e78b74db563403caa47ae10021ca152fa0
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'src/lib/buildgraph/rulesapplicator.cpp')
| -rw-r--r-- | src/lib/buildgraph/rulesapplicator.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/buildgraph/rulesapplicator.cpp b/src/lib/buildgraph/rulesapplicator.cpp index ee38933c6..c8ad2fd7d 100644 --- a/src/lib/buildgraph/rulesapplicator.cpp +++ b/src/lib/buildgraph/rulesapplicator.cpp @@ -198,7 +198,8 @@ void RulesApplicator::setupScriptEngineForArtifact(Artifact *artifact) basedir = FileInfo::path(buildDir.relativeFilePath(artifact->filePath())); } - QScriptValue modulesScriptValue = artifact->properties->toScriptValue(engine()); + //QScriptValue modulesScriptValue = artifact->properties->toScriptValue(engine()); + QScriptValue modulesScriptValue = engine()->newObject(); modulesScriptValue = modulesScriptValue.property("modules"); // expose per file properties we want to use in an Artifact within a Rule |
