summaryrefslogtreecommitdiff
path: root/share/qbs/modules/cpp/keil.js
diff options
context:
space:
mode:
authorDenis Shienkov <denis.shienkov@gmail.com>2021-05-14 16:01:41 +0300
committerDenis Shienkov <denis.shienkov@gmail.com>2021-05-19 11:49:21 +0000
commitc7a1ec06313f85a9cf45b44f5940a952348d66d2 (patch)
tree7925fa50939d269cb801ec4a793cf728174fbad5 /share/qbs/modules/cpp/keil.js
parentccd3270b76e09dd9b18a7c59ca5e7f7fcf62c14a (diff)
downloadqbs-c7a1ec06313f85a9cf45b44f5940a952348d66d2.tar.gz
baremetal: Move cpp-specific JS functions to cpp.js file
Previous commit 79b9b02 added these functions to the ModUtils module, but seems a best place for these functions is cpp.js file. Change-Id: Id89b88e1865d003c1c7811220ed01f6d6becfba3 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
Diffstat (limited to 'share/qbs/modules/cpp/keil.js')
-rw-r--r--share/qbs/modules/cpp/keil.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/share/qbs/modules/cpp/keil.js b/share/qbs/modules/cpp/keil.js
index e1876e0b2..8b0902d6f 100644
--- a/share/qbs/modules/cpp/keil.js
+++ b/share/qbs/modules/cpp/keil.js
@@ -436,7 +436,7 @@ function dumpArmCCCompilerMacros(compilerFilePath, tag, nullDevice) {
var p = new Process();
p.exec(compilerFilePath, args, false);
- return ModUtils.extractMacros(p.readStdOut());
+ return Cpp.extractMacros(p.readStdOut());
}
function dumpArmClangCompilerMacros(compilerFilePath, tag, nullDevice) {
@@ -444,7 +444,7 @@ function dumpArmClangCompilerMacros(compilerFilePath, tag, nullDevice) {
"-x", ((tag === "cpp") ? "c++" : "c"), nullDevice ];
var p = new Process();
p.exec(compilerFilePath, args, false);
- return ModUtils.extractMacros(p.readStdOut());
+ return Cpp.extractMacros(p.readStdOut());
}
function dumpMacros(compilerFilePath, tag, nullDevice) {
@@ -886,7 +886,7 @@ function linkerFlags(project, product, inputs, outputs) {
inputs.obj.map(function(obj) { allObjectPaths.push(obj.filePath) });
// Library dependencies.
- var libraryObjects = ModUtils.collectLibraryDependencies(product);
+ var libraryObjects = Cpp.collectLibraryDependencies(product);
allObjectPaths = allObjectPaths.concat(libraryObjects.map(function(lib) {
// Semi-intelligent handling the library paths.
// We need to add the full path prefix to the library file if this
@@ -927,7 +927,7 @@ function linkerFlags(project, product, inputs, outputs) {
args.push("--userlibpath=" + libraryPaths.join(","));
// Library dependencies.
- var libraryDependencies = ModUtils.collectLibraryDependencies(product);
+ var libraryDependencies = Cpp.collectLibraryDependencies(product);
args = args.concat(libraryDependencies.map(function(dep) { return dep.filePath; }));
// Debug information flag.