1 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2 // Copyright (C) INRIA - Allan CORNET
3 // Copyright (C) DIGITEO - 2010 - Allan CORNET
5 // This file must be used under the terms of the CeCILL.
6 // This source file is licensed as described in the file COPYING, which
7 // you should have received as part of this distribution. The terms
8 // are also available at
9 // http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
11 //=============================================================================
12 function bOK = detectmsvc64tools()
15 if getos() <> "Windows" then
19 //=============================================================================
21 //=============================================================================
22 function show = displayWarningMsVC()
23 settings_filename = "/.settings_warning_msvc";
24 settings_file = pathconvert(SCIHOME + settings_filename, %f, %t);
25 w = fileinfo(settings_file);
27 if isfile(settings_file) then
28 show = grep(mgetl(settings_file), "displayWarningMSVCx64=no") == [];
31 //=============================================================================
32 function disableWarningMsVC()
33 settings_filename = "/.settings_warning_msvc";
34 settings_file = pathconvert(SCIHOME + settings_filename, %f, %t);
35 mputl("displayWarningMSVCx64=no", settings_file);
37 //=============================================================================
40 // Load dynamic_link Internal lib if it's not already loaded
41 if ~ exists("dynamic_linkwindowslib") then
42 load("SCI/modules/dynamic_link/macros/windows/lib");
46 compiler = findmsvccompiler();
47 supported_compiler = ['msvc110pro', ..
55 if (find(supported_compiler == compiler) <> []) then
56 MSVCBIN64PATH = dlwGet64BitPath();
57 if dlwIsVc11Express() then
58 MSVCBIN64PATH = MSVCBIN64PATH + filesep() + "VC\bin";
60 MSVCBIN64PATH = MSVCBIN64PATH + filesep() + "VC\bin\amd64";
63 if isdir(MSVCBIN64PATH) then
66 show = displayWarningMsVC();
68 TXT = gettext("Microsoft Visual Studio C 2008 (or more recent) x64 Compiler not installed.");
76 show = displayWarningMsVC();
78 TXT = gettext("Microsoft Visual Studio C 2008 (or more recent) Compiler not found.");
88 //=============================================================================