diff options
author | Denis Shienkov <denis.shienkov@gmail.com> | 2019-05-15 19:40:12 +0300 |
---|---|---|
committer | Denis Shienkov <denis.shienkov@gmail.com> | 2019-05-16 14:10:38 +0000 |
commit | 67e46f52ee60c3ef2c5a4dba1982f8193ce17bd0 (patch) | |
tree | c5be22b7d7afa3fadadaefa7d656b4ce0064bb5b /share/qbs/modules/cpp/keil.js | |
parent | 4a75e75cec58298783a314ace350cab1347fc887 (diff) | |
download | qbs-67e46f52ee60c3ef2c5a4dba1982f8193ce17bd0.tar.gz |
bare-metal: Implement cpp.compilerIncludePaths for KEIL toolchain
Change-Id: I3a70a4a1045444bf053ebf5ac7f32dbe72c827a5
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'share/qbs/modules/cpp/keil.js')
-rw-r--r-- | share/qbs/modules/cpp/keil.js | 16 |
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) { |