📄 msvc60compp.stp
字号:
# $Revision: 1.6 $use msvc_modules_installer;sub msvc60compp { my $input = shift; my $default_location = "C:\\Program Files\\Microsoft Visual Studio"; my $specified_compiler_location = ""; my $language_handled_fcn = sub { my $lang = shift; return $lang eq "C" || $lang eq "CPP"; }; my $locate_fcn = sub { my @msvc6_roots = (); my $msvc6_root; my $registry_lookup_fcn = $input->{"registry_lookup"}; if ($ENV{'MSVCDir'} ne "" && $ENV{'MSVCDir'} =~ /\\VC98$/i && -e "$ENV{'MSVCDir'}\\bin\\cl.exe") { $msvc6_root = $ENV{'MSVCDir'}; $msvc6_root =~ s|\\VC98$||i; push(@msvc6_roots, $msvc6_root); } if ($ENV{'MSDEVDIR'} ne "" && $ENV{'MSDEVDIR'} =~ /\\msdev98$/i && -e "$ENV{'MSDEVDIR'}\\..\\..\\VC98\\bin\\cl.exe") { $msvc6_root = $ENV{'MSDEVDIR'}; $msvc6_root =~ s|\\Common\\msdev98$||i; push(@msvc6_roots, $msvc6_root); } $msvc6_root = &$registry_lookup_fcn("SOFTWARE\\Microsoft\\DevStudio\\6.0\\" . "Products\\Microsoft Visual C++", "ProductDir"); if (-e "$msvc6_root\\bin\\cl.exe") { $msvc6_root =~ s|\\VC98$||i; push(@msvc6_roots, $msvc6_root); } if (-e "$default_location") { push(@msvc6_roots, $default_location); } return @msvc6_roots; }; my $root_val = sub { my $base_directory = shift; $specified_compiler_location = $base_directory; # Remember this for post_setup_hook if (!-d "$base_directory\\Common") { print "Warning: Mbuild requires that the Microsoft Visual C++ 6.0\n" . "directories \"VC98\" and \"Common\" be located within the same parent " . "directory.\n(Expected to find a directory named \"Common\" in the directory '$base_directory'.)"; } # Since the Microsoft Visual C environment variable MSVCDir actually points to the # VC98 subdirectory of MSVC 6.0, we need to tack on the \VC98 to the base compiler # location. return $base_directory . "\\VC98"; }; my $post_setup_hook = sub { my @filetable = (["MATLABWizard.awx", "\\common\\msdev98\\template"], ["MATLABWizard.hlp", "\\common\\msdev98\\template"], ["MATLABAddin.dll", "\\common\\msdev98\\addins"], ["usertype.dat", "\\common\\msdev98\\bin"]); &install_msvc_modules($specified_compiler_location, \@filetable, $input->{'matlab_bin'}); }; return { "vendor_name" => "Microsoft Visual C/C++", "version" => "6.0", "group_id" => "MSVC", "serial" => 3.0, "root_var" => "MSVCDir", "optfile_name" => "msvc60compp.bat", "default_location" => $default_location, "language_handled" => $language_handled_fcn, "root_val" => $root_val, "locate" => $locate_fcn, "post_setup_hook" => $post_setup_hook };}1;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -