1 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2 // Copyright (C) DIGITEO - 2010 - Allan CORNET
3 // Copyright (C) Scilab Enterprises - 2014 - Antoine ELIAS
5 // Copyright (C) 2012 - 2016 - Scilab Enterprises
7 // This file is hereby licensed under the terms of the GNU GPL v2.0,
8 // pursuant to article 5.3.4 of the CeCILL v.2.1.
9 // This file was originally licensed under the terms of the CeCILL v2.1,
10 // and continues to be available under such terms.
11 // For more information, see the COPYING file which you should have received
12 // along with this program.
14 //=============================================================================
15 function MSCompiler = dlwFindMsVcCompiler()
16 MSCompiler = "unknown"; // unknown
18 // We use always last version of MS compiler
20 val = getenv("SCILAB_PREFERED_MSVC", "");
22 funcs = list(dlwIsVc14Express,dlwIsVc12Pro,dlwIsVc14Express,dlwIsVc12Pro,dlwIsVc11Express,dlwIsVc11Pro,dlwIsVc10Express,dlwIsVc10Pro);
32 idx = find(val == compilers);
42 if dlwIsVc12Express() then
43 MSCompiler = "msvc120express"; // Microsoft Visual 2013 Express
47 if dlwIsVc12Pro() then
48 MSCompiler = "msvc120pro"; // Microsoft Visual 2013 Professional (or more)
52 if dlwIsVc14Express() then
53 MSCompiler = "msvc140express"; // Microsoft Visual 2015 Express
57 if dlwIsVc14Pro() then
58 MSCompiler = "msvc140pro"; // Microsoft Visual 2015 Professional / Community (or more)
62 if dlwIsVc11Express() then
63 MSCompiler = "msvc110express"; // Microsoft Visual 2012 Express
67 if dlwIsVc11Pro() then
68 MSCompiler = "msvc110pro"; // Microsoft Visual 2012 Professional (or more)
72 if dlwIsVc10Pro() & dlwIsVc10Express() then
73 MSCompiler = "msvc100express"; // Microsoft Visual 2010 Express with SDK extension
77 if dlwIsVc10Express() then
78 MSCompiler = "msvc100express"; // Microsoft Visual 2010 Express
82 if dlwIsVc10Pro() then
83 MSCompiler = "msvc100pro"; // Microsoft Visual 2010 Professional (or more)
87 if dlwIsVc90Pro() then
88 MSCompiler = "msvc90pro"; // Microsoft Visual 2008 Studio Professional
92 if dlwIsVc90Std() then
93 MSCompiler = "msvc90std"; // Microsoft Visual 2008 Studio Standard
97 if dlwIsVc90Express() then
98 MSCompiler = "msvc90express"; // Microsoft Visual 2008 Express
102 if dlwIsVc80Pro() then
103 MSCompiler = "msvc80pro"; // Microsoft Visual 2005 Studio Professional
107 if dlwIsVc80Std() then
108 MSCompiler = "msvc80std"; // Microsoft Visual 2005 Studio Standard
112 if dlwIsVc80Express() then
113 MSCompiler = "msvc80express"; // Microsoft Visual 2005 Express
118 MSCompiler = "msvc71"; // Microsoft Visual Studio .NET 2003
123 MSCompiler = "msvc70"; // Microsoft Visual Studio .NET 2002
127 //=============================================================================