From 5d0c35242bb24605ca9ce6f45806b8997a17799b Mon Sep 17 00:00:00 2001 From: Peter Foley Date: Wed, 22 Aug 2012 21:51:31 -0400 Subject: fix cli_ure build with Win8 SDK Change-Id: I4842d848234a5dc21085a3fd0aa0a79c58c71e8c --- oowintool | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'oowintool') diff --git a/oowintool b/oowintool index 244a3b4d7234..5f7d60321dbe 100755 --- a/oowintool +++ b/oowintool @@ -55,6 +55,7 @@ sub print_syntax() print " --msvs-productdir - print productdir\n"; print " --dotnetsdk-dir - print .NET SDK path\n"; print " --csc-compilerdir - print .NET SDK compiler path\n"; + print " --al-home - print AL.exe install dir\n"; print " --windows-sdk-home - print Windows SDK install dir\n"; print " --jdk-home - print the jdk install dir\n"; print " --help - print this message\n"; @@ -119,6 +120,16 @@ sub print_windows_sdk_home() print cygpath ($value, 'w', $output_format); } +sub print_al_home() +{ + my ($value, $key); + + $key = reg_find_key ('HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Microsoft SDKs/Windows/*/WinSDK-NetFx40Tools/InstallationFolder'); + $value = reg_get_value ($key); + + print cygpath ($value, 'w', $output_format); +} + my %msvs_2008 = ( 'ver' => '9.0', 'key' => 'Microsoft/VisualStudio/9.0/Setup/VS/ProductDir', @@ -373,6 +384,8 @@ while (@commands) { print_csc_compiler_dir(); } elsif ($opt eq '--windows-sdk-home') { print_windows_sdk_home(); + } elsif ($opt eq '--al-home') { + print_al_home(); } elsif ($opt eq '--jdk-home') { print_jdk_dir(); } elsif ($opt eq '--help' || $opt eq '/?') { -- cgit