msvc90freeopts

msvc90freeopts - # # $Revision: 1.1.8.1 $ Copyright 2008...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
# $Revision: 1.1.8.1 $ # Copyright 2008 The MathWorks, Inc. sub msvc90freeopts { my $input = shift; my $default_location = "C:\\Program Files\\Microsoft Visual Studio 9.0"; my $sdk_dir = ""; my $registry_lookup_fcn = $input->{"registry_lookup"}; # Attempt to find the Windows sdk that corresponds to VS2008 my $sdk_dir = &$registry_lookup_fcn("SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows\\" , "CurrentInstallFolder"); my @language_handled = ('C'); my $locate_fcn = sub { my @msvc9_roots = (); my $msvc9_root; # Search the default environment variable location. # Since MSVC 2008 Professional ed. and the Express ed. # use the same environment variable (VS90COMNTOOLS), # use the directory structure to differentiate between the two. if ($ENV{'VS90COMNTOOLS'} ne "" && -e "$ENV{'VS90COMNTOOLS'}\\. .\\. .\\VC\\bin\\cl.exe" && -e "$ENV{'VS90COMNTOOLS'}\\. .\\IDE\\VCExpress.exe"){ $msvc9_root = $ENV{'VS90COMNTOOLS'}; $msvc9_root =~ s|\\+Common7\\+Tools\\*$||i; $oldPath = $ENV{'PATH'}; $ENV{'PATH'} = "$msvc9_root\\Common7\\IDE;$oldPath";
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

msvc90freeopts - # # $Revision: 1.1.8.1 $ Copyright 2008...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online