aboutsummaryrefslogtreecommitdiffstats
path: root/share/qbs/modules/cpp/msvc.js
diff options
context:
space:
mode:
authorWilliam Gallafent <william@gallaf.net>2012-10-18 15:28:33 +0100
committerJoerg Bornemann <joerg.bornemann@digia.com>2012-11-07 18:24:46 +0100
commit7887df22757d7fb85037962b7e44d3015145b8fa (patch)
treeff3ec8c5fe74aff75601bb2ea853a3e097b0acb2 /share/qbs/modules/cpp/msvc.js
parentac2a8b085a2843706afb9013a417129f3a5c5018 (diff)
Add a systemIncludePaths property to the cpp module.
The systemIncludePaths property is used (where compiler support exists) to indicate an include path which should be treated in the same way as system include paths (as opposed to user include paths) are, e.g. using the -isystem flag for GCC and Clang. Change-Id: I746d078119fddf5117bb53e7eaffca5e7b050dcf Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'share/qbs/modules/cpp/msvc.js')
-rw-r--r--share/qbs/modules/cpp/msvc.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/share/qbs/modules/cpp/msvc.js b/share/qbs/modules/cpp/msvc.js
index c67da1861..44d88b232 100644
--- a/share/qbs/modules/cpp/msvc.js
+++ b/share/qbs/modules/cpp/msvc.js
@@ -1,4 +1,4 @@
-function prepareCompiler(product, input, outputs, platformDefines, defines, includePaths, cFlags, cxxFlags)
+function prepareCompiler(product, input, outputs, platformDefines, defines, includePaths, systemIncludePaths, cFlags, cxxFlags)
{
var i;
var optimization = input.module.optimization
@@ -35,6 +35,8 @@ function prepareCompiler(product, input, outputs, platformDefines, defines, incl
args.push('/Wall')
for (i in includePaths)
args.push('/I' + FileInfo.toWindowsSeparators(includePaths[i]))
+ for (i in systemIncludePaths)
+ args.push('/I' + FileInfo.toWindowsSeparators(systemIncludePaths[i]))
for (i in platformDefines)
args.push('/D' + platformDefines[i])
for (i in defines)