aboutsummaryrefslogtreecommitdiffstats
path: root/coin/instructions/find_path_to_msvc_compiler.yaml
diff options
context:
space:
mode:
authorSimo Fält <simo.falt@qt.io>2020-02-13 13:22:39 +0200
committerSimo Fält <simo.falt@qt.io>2020-02-27 18:28:08 +0200
commit76544c37745b0ba9ed1b8e35b82abafe99040620 (patch)
tree9c23f7514a1c87722d399b043f120231b22c335d /coin/instructions/find_path_to_msvc_compiler.yaml
parentb2388fc809710655464ed99a5a80a6af35ecf503 (diff)
Split module config instructions
Change-Id: Ia0b47d0e264f00d859e20e18980b7899dddaba98 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit 1dd1c8aba56628ccaca5040a3b54b70ed093606c) Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'coin/instructions/find_path_to_msvc_compiler.yaml')
-rw-r--r--coin/instructions/find_path_to_msvc_compiler.yaml28
1 files changed, 28 insertions, 0 deletions
diff --git a/coin/instructions/find_path_to_msvc_compiler.yaml b/coin/instructions/find_path_to_msvc_compiler.yaml
new file mode 100644
index 000000000..8f9bed82f
--- /dev/null
+++ b/coin/instructions/find_path_to_msvc_compiler.yaml
@@ -0,0 +1,28 @@
+type: Group
+enable_if:
+ condition: property
+ property: host.os
+ equals_value: Windows
+instructions:
+ - type: EnvironmentVariable
+ variableName: VC_SCRIPT
+ variableValue: "%ProgramFiles(x86)%\\Microsoft Visual Studio\\2017\\Professional\\VC\\Auxiliary\\Build\\vcvarsall.bat"
+ enable_if:
+ condition: property
+ property: host.compiler
+ equals_value: MSVC2017
+ - type: EnvironmentVariable
+ variableName: VC_SCRIPT
+ variableValue: "%ProgramFiles(x86)%\\Microsoft Visual Studio\\2019\\Professional\\VC\\Auxiliary\\Build\\vcvarsall.bat"
+ enable_if:
+ condition: property
+ property: host.compiler
+ equals_value: MSVC2019
+ - type: WriteFile
+ fileContents: "call \"{{.Env.VC_SCRIPT}}\" {{.Env.TARGET_ARCHITECTURE}} \r\ncmd /c %*"
+ filename: "c:\\users\\qt\\MSVC.bat"
+ fileMode: 420
+ enable_if:
+ condition: property
+ property: host.os
+ equals_value: Windows