aboutsummaryrefslogtreecommitdiffstats
path: root/share/qbs/modules/cpp/iar.qbs
diff options
context:
space:
mode:
authorDenis Shienkov <denis.shienkov@gmail.com>2021-05-19 19:35:17 +0300
committerDenis Shienkov <denis.shienkov@gmail.com>2021-05-25 16:26:11 +0000
commitff04acd64d85d460e0f52a7ead233ae503e616d7 (patch)
tree208e81fee63b63fbca70dabaa2f62389bb2fc6ce /share/qbs/modules/cpp/iar.qbs
parent8ac3865fe9b9cdcd0f58bf0b6e7b08b60a8d374c (diff)
Use separate functions for repetitive actions
It makes sense to minimize the copy-paste errors by moving the repetitive code into the separate functions to the cpp.js file. This will simplify the code and improve the maintenance. Change-Id: Id5a2914ff28619553b855cc6f09810ad370c408c Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
Diffstat (limited to 'share/qbs/modules/cpp/iar.qbs')
-rw-r--r--share/qbs/modules/cpp/iar.qbs8
1 files changed, 8 insertions, 0 deletions
diff --git a/share/qbs/modules/cpp/iar.qbs b/share/qbs/modules/cpp/iar.qbs
index 787ffa2cf..8209c3e57 100644
--- a/share/qbs/modules/cpp/iar.qbs
+++ b/share/qbs/modules/cpp/iar.qbs
@@ -95,6 +95,14 @@ CppModule {
enableExceptions: false
enableRtti: false
+ defineFlag: "-D"
+ includeFlag: "-I"
+ systemIncludeFlag: "-I"
+ preincludeFlag: "--preinclude"
+ libraryDependencyFlag: ""
+ libraryPathFlag: IAR.libraryPathFlag(qbs)
+ linkerScriptFlag: IAR.linkerScriptFlag(qbs)
+
Rule {
id: assembler
inputs: ["asm"]