diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2017-07-13 12:00:18 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2018-03-14 08:52:50 +0000 |
commit | 149e20aca1e401ba18bbae602df2caa7dc68c493 (patch) | |
tree | 29b0b5a270696040b5b8c668834c2e6929ec621f /src/lib/corelib/buildgraph/jscommandexecutor.cpp | |
parent | d0f29502e0d4f3e21fbe0f0b7b56c62b4f85fde3 (diff) |
Provide rules with information about the content of Export items
The product variable gets a new property "exports" that provides
a "dependencies" array as well as property values the same way
that the product variable itself does, but for exported dependencies
and properties, respectively. In addition, meta data about these
properties is provided via a "properties" array, and structural
information can be retrieved via "childItems".
This data is intended to be used by modules creating interface
files from products.
Task-number: QBS-268
Change-Id: I2bb106e1ca1b18abbd6fe60411bc81bda9ee35e7
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'src/lib/corelib/buildgraph/jscommandexecutor.cpp')
-rw-r--r-- | src/lib/corelib/buildgraph/jscommandexecutor.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/corelib/buildgraph/jscommandexecutor.cpp b/src/lib/corelib/buildgraph/jscommandexecutor.cpp index cbdf70085..4b7adb221 100644 --- a/src/lib/corelib/buildgraph/jscommandexecutor.cpp +++ b/src/lib/corelib/buildgraph/jscommandexecutor.cpp @@ -152,6 +152,10 @@ private: importFilesUsedInCommand.cbegin(), importFilesUsedInCommand.cend()); transformer->depsRequestedInCommands.add(scriptEngine->productsWithRequestedDependencies()); transformer->artifactsMapRequestedInCommands.unite(scriptEngine->requestedArtifacts()); + for (const ResolvedProduct * const p : scriptEngine->requestedExports()) { + transformer->exportedModulesAccessedInCommands.insert( + std::make_pair(p->uniqueName(), p->exportedModule)); + } scriptEngine->clearRequestedProperties(); if (scriptEngine->hasUncaughtException()) { // ### We don't know the line number of the command's sourceCode property assignment. |