aboutsummaryrefslogtreecommitdiffstats
path: root/share/qbs/modules/cpp/keil.js
diff options
context:
space:
mode:
Diffstat (limited to 'share/qbs/modules/cpp/keil.js')
-rw-r--r--share/qbs/modules/cpp/keil.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/share/qbs/modules/cpp/keil.js b/share/qbs/modules/cpp/keil.js
index fbdc0e9fb..c19fdd738 100644
--- a/share/qbs/modules/cpp/keil.js
+++ b/share/qbs/modules/cpp/keil.js
@@ -139,6 +139,22 @@ function dumpMacros(compilerFilePath, tag, nullDevice) {
return map;
}
+function dumpDefaultPaths(compilerFilePath, architecture) {
+ var includePaths = [];
+
+ if (architecture === "mcs51") {
+ var path = compilerFilePath.replace(/bin[\\\/](.*)$/i, "inc");
+ includePaths.push(path);
+ } else if (architecture === "arm") {
+ var path = compilerFilePath.replace(/bin[\\\/](.*)$/i, "include");
+ includePaths.push(path);
+ }
+
+ return {
+ "includePaths": includePaths
+ };
+}
+
function adjustPathsToWindowsSeparators(sourcePaths) {
var resulingPaths = [];
sourcePaths.forEach(function(path) {