Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
13fa5d94
Kaydet (Commit)
13fa5d94
authored
Kas 28, 2012
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Make print_al_home more reliable
Change-Id: Ib979916a32a9a9ea8ae1e711559613e8b6b3dfe9
üst
adcb31d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
16 deletions
+30
-16
oowintool
oowintool
+30
-16
No files found.
oowintool
Dosyayı görüntüle @
13fa5d94
...
...
@@ -2,6 +2,7 @@
# -*- tab-width: 4; cperl-indent-level: 4; indent-tabs-mode: nil -*-
use
File::
Copy
;
use
File::
Glob
;
my
$output_format
=
'u'
;
...
...
@@ -27,17 +28,6 @@ sub reg_get_value($)
return
$value
;
}
sub
reg_find_key
($)
{
# it is believed that the registry moves keys around
# depending on OS version, this will de-mangle that
my
$key
=
shift
;
$key
=~
s
|
|\\
|
;
$key
=
`cd /proc/registry/ ; ls $key 2>/dev/null`
;
return
$key
;
}
sub
print_syntax
()
{
print
"oowintool [option] ...\n"
;
...
...
@@ -99,6 +89,7 @@ sub print_windows_sdk_home()
{
my
(
$value
,
$key
);
# This is for the Windows SDK 8 distributed with MSVS 2012
$value
=
reg_get_value
(
'HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows Kits/Installed Roots/KitsRoot'
);
if
(
!
defined
$value
)
{
...
...
@@ -108,10 +99,13 @@ sub print_windows_sdk_home()
$value
=
reg_get_value
(
'HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/MicrosoftSDK/Directories/Install Dir'
);
}
if
(
!
defined
$value
)
{
$key
=
reg_find_key
(
'HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/MicrosoftSDK/InstalledSDKs/*/Install Dir'
);
$value
=
reg_get_value
(
$key
);
# Unclear whether we ever get here, don't the above match any
# recent Windows SDK?
foreach
$key
(
File::Glob::
bsd_glob
(
'/proc/registry/HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/MicrosoftSDK/InstalledSDKs/*/Install Dir'
))
{
$value
=
reg_get_value
(
$key
);
last
if
defined
$value
;
}
}
defined
$value
||
die
"Windows SDK not found"
;
...
...
@@ -121,12 +115,32 @@ sub print_windows_sdk_home()
sub
print_al_home
()
{
# Called by configure only if al.exe is not in the Windows SDK's
# bin folder, where it AFAIK always is in any recent Windows SDK,
# so whether this will ever be called is unclear...
my
(
$value
,
$key
);
$key
=
reg_find_key
(
'HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Microsoft SDKs/Windows/*/WinSDK-NetFx40Tools/InstallationFolder'
);
foreach
$key
(
File::Glob::
bsd_glob
(
'/proc/registry/HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Microsoft SDKs/Windows/*/WinSDK-NetFx40Tools/InstallationFolder'
))
{
$key
=~
s!^/proc/registry/!!
;
$value
=
reg_get_value
(
$key
);
print
cygpath
(
$value
,
'w'
,
$output_format
);
# Sigh, the same test that configure does for al.exe
# being either directly in it, or in a "bin" subdir... But on
# the other hand we don't want to be mislead by a registry key
# that matches the above but points to a directory that does
# in fact not contain an al.exe. For me,
# HKLM/SOFTWARE/Microsoft/Microsoft SDKs/Windows/v7.0A/WinSDK-NetFx40Tools/InstallationFolder
# contains
# c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\
# but that then does not contain any al.exe.
if
(
-
f
"$value/bin/al.exe"
||
-
f
"$value/al.exe"
)
{
print
cygpath
(
$value
,
'w'
,
$output_format
);
return
;
}
}
die
"Can't find al.exe"
;
}
my
%
msvs
_2008
=
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment