msvc90opts - $Revision 1.1.6.3 $ Copyright 2007-2008 The...

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

View Full Document Right Arrow Icon
# $Revision: 1.1.6.3 $ # Copyright 2007-2008 The MathWorks, Inc. sub msvc90opts { my $input = shift; my $found_sdk = 0; 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 SDK directory. if ($ENV{'WINDOWSSDKDIR'} ne "") { $sdk_dir=$ENV{'WINDOWSSDKDIR'}; $found_sdk=1; } if ($found_sdk ne 1) { my $lookedupval = &$registry_lookup_fcn("SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows\\" , "CurrentInstallFolder"); if ($lookedupval ne "") { $sdk_dir = $lookedupval; $found_sdk=1; } } my @language_handled = ('C'); my $locate_fcn = sub { my @msvc9_roots = (); my $msvc9_root; my $oldPath; # If we didn't find the SDK directory before, don't bother looking # for the compiler if ($found_sdk ne 1) { return @msvc9_roots; } # Search the default environment variable location. # Since MSVC 2005 professional ed. and the express ed. # use the same environment variable (VS90COMNTOOLS),
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.

This document was uploaded on 01/17/2011.

Page1 / 3

msvc90opts - $Revision 1.1.6.3 $ Copyright 2007-2008 The...

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