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
15a1260b
Kaydet (Commit)
15a1260b
authored
Nis 15, 2011
tarafından
Jan Holesovsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Detect the prefix of the cl.exe -showIncludes output.
üst
4d1bdd7a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
4 deletions
+25
-4
configure.in
configure.in
+16
-1
set_soenv.in
set_soenv.in
+2
-1
filter-showIncludes.pl
solenv/gbuild/filter-showIncludes.pl
+7
-2
No files found.
configure.in
Dosyayı görüntüle @
15a1260b
...
@@ -2113,6 +2113,7 @@ fi
...
@@ -2113,6 +2113,7 @@ fi
dnl ===================================================================
dnl ===================================================================
dnl Check which Microsoft C/C++ or MinGW compiler is used for WINNT
dnl Check which Microsoft C/C++ or MinGW compiler is used for WINNT
dnl ===================================================================
dnl ===================================================================
SHOWINCLUDES_PREFIX=
if test "$_os" = "WINNT"; then
if test "$_os" = "WINNT"; then
if test "$WITH_MINGW" != "yes"; then
if test "$WITH_MINGW" != "yes"; then
AC_MSG_CHECKING([for a friendly Microsoft C/C++ compiler installation path])
AC_MSG_CHECKING([for a friendly Microsoft C/C++ compiler installation path])
...
@@ -2163,7 +2164,7 @@ if test "$_os" = "WINNT"; then
...
@@ -2163,7 +2164,7 @@ if test "$_os" = "WINNT"; then
fi
fi
if test -z "$MSPDB_PATH"; then
if test -z "$MSPDB_PATH"; then
AC_MSG_ERROR([You need a mspdb80.dllor mspdb100.dll, make sure it
'
s in the path or use --with-mspdb-path])
AC_MSG_ERROR([You need a mspdb80.dllor mspdb100.dll, make sure it
i
s in the path or use --with-mspdb-path])
fi
fi
MSPDB_PATH=`cygpath -d "$MSPDB_PATH"`
MSPDB_PATH=`cygpath -d "$MSPDB_PATH"`
MSPDB_PATH=`cygpath -u "$MSPDB_PATH"`
MSPDB_PATH=`cygpath -u "$MSPDB_PATH"`
...
@@ -2222,6 +2223,19 @@ dnl The following find microsoft, matches nn.nn.nnnn then pulls numbers out
...
@@ -2222,6 +2223,19 @@ dnl The following find microsoft, matches nn.nn.nnnn then pulls numbers out
else
else
AC_MSG_ERROR([Microsoft C/C++ Compiler not found. Use --with-cl-home or set path to cl.exe.])
AC_MSG_ERROR([Microsoft C/C++ Compiler not found. Use --with-cl-home or set path to cl.exe.])
fi
fi
dnl We need to guess the prefix of the -showIncludes output, it can be
dnl localized
AC_MSG_CHECKING([the dependency generation prefix (cl.exe -showIncludes)])
echo "#include <stdlib.h>" > conftest.c
SHOWINCLUDES_PREFIX=`$CC -c -showIncludes conftest.c 2>/dev/null | \
grep 'stdlib\.h' | head -n1 | sed 's/ [[[:alpha:]]]:.*//'`
rm -f conftest.c conftest.obj
if test -z "$SHOWINCLUDES_PREFIX" ; then
AC_MSG_ERROR([cannot determine the -showIncludes prefix])
else
AC_MSG_RESULT(["$SHOWINCLUDES_PREFIX"])
fi
else
else
AC_MSG_CHECKING([the MinGW C++ Compiler])
AC_MSG_CHECKING([the MinGW C++ Compiler])
if test `$CC -dumpmachine | $SED -e 's/^.*-//'` = "mingw32"; then
if test `$CC -dumpmachine | $SED -e 's/^.*-//'` = "mingw32"; then
...
@@ -2239,6 +2253,7 @@ fi
...
@@ -2239,6 +2253,7 @@ fi
AC_SUBST(COMEX)
AC_SUBST(COMEX)
AC_SUBST(MSPDB_PATH)
AC_SUBST(MSPDB_PATH)
AC_SUBST(USE_MINGW)
AC_SUBST(USE_MINGW)
AC_SUBST(SHOWINCLUDES_PREFIX)
dnl ===================================================================
dnl ===================================================================
dnl .NET needs special treatment
dnl .NET needs special treatment
...
...
set_soenv.in
Dosyayı görüntüle @
15a1260b
...
@@ -78,7 +78,7 @@ my ( $oldPATH, $SRC_ROOT, $SO_HOME, $JAVA_HOME, $JDK, $JAVAFLAGS, $OOO_SHELL,
...
@@ -78,7 +78,7 @@ my ( $oldPATH, $SRC_ROOT, $SO_HOME, $JAVA_HOME, $JDK, $JAVAFLAGS, $OOO_SHELL,
$SOLARSRC
,
$DEVROOT
,
$SOLARVER
,
$SOLARVERSION
,
$WORKDIR
,
$OUTDIR
,
$SOLARENV
,
$SOLARDEFIMG
,
$SOLARSRC
,
$DEVROOT
,
$SOLARVER
,
$SOLARVERSION
,
$WORKDIR
,
$OUTDIR
,
$SOLARENV
,
$SOLARDEFIMG
,
$STAR_INIROOT
,
$STAR_INIROOTOLD
,
$STAR_STANDLST
,
$STAR_SSCOMMON
,
$STAR_SSOLARINI
,
$STAR_INIROOT
,
$STAR_INIROOTOLD
,
$STAR_STANDLST
,
$STAR_SSCOMMON
,
$STAR_SSOLARINI
,
$DMAKEROOT
,
$CLASSPATH
,
$XCLASSPATH
,
$COMPATH
,
$DMAKEROOT
,
$CLASSPATH
,
$XCLASSPATH
,
$COMPATH
,
$MSPDB_PATH
,
$MIDL_PATH
,
$CSC_PATH
,
$MSPDB_PATH
,
$MIDL_PATH
,
$CSC_PATH
,
$SHOWINCLUDES_PREFIX
,
$PATH
,
$SOLAREXTRAINC
,
$SOLAREXTRALIB
,
$SOLARLIB
,
$JAVALIB
,
$PATH
,
$SOLAREXTRAINC
,
$SOLAREXTRALIB
,
$SOLARLIB
,
$JAVALIB
,
$SOLARINC
,
$LOCALINI
,
$FRAMEWORKSHOME
,
$COMEX
,
$PERL
,
$SOLARINC
,
$LOCALINI
,
$FRAMEWORKSHOME
,
$COMEX
,
$PERL
,
$COMP_ENV
,
$ILIB
,
$JAVAHOME
,
$PSDK_HOME
,
$DIRECTXSDK_LIB
,
$USE_NEW_SDK
,
$FRAME_HOME
,
$COMP_ENV
,
$ILIB
,
$JAVAHOME
,
$PSDK_HOME
,
$DIRECTXSDK_LIB
,
$USE_NEW_SDK
,
$FRAME_HOME
,
...
@@ -659,6 +659,7 @@ elsif ( $platform =~ m/cygwin/ )
...
@@ -659,6 +659,7 @@ elsif ( $platform =~ m/cygwin/ )
$MSPDB_PATH
=
PathFormat
(
'@MSPDB_PATH@'
);
$MSPDB_PATH
=
PathFormat
(
'@MSPDB_PATH@'
);
$MIDL_PATH
=
PathFormat
(
'@MIDL_PATH@'
);
$MIDL_PATH
=
PathFormat
(
'@MIDL_PATH@'
);
$CSC_PATH
=
PathFormat
(
'@CSC_PATH@'
);
$CSC_PATH
=
PathFormat
(
'@CSC_PATH@'
);
$SHOWINCLUDES_PREFIX
=
'@SHOWINCLUDES_PREFIX@'
;
$PSDK_HOME
=
PathFormat
(
'@PSDK_HOME@'
);
$PSDK_HOME
=
PathFormat
(
'@PSDK_HOME@'
);
$DIRECTXSDK_LIB
=
PathFormat
(
'@DIRECTXSDK_LIB@'
);
$DIRECTXSDK_LIB
=
PathFormat
(
'@DIRECTXSDK_LIB@'
);
$USE_DIRECTX5
=
""
;
$USE_DIRECTX5
=
""
;
...
...
solenv/gbuild/filter-showIncludes.pl
Dosyayı görüntüle @
15a1260b
...
@@ -20,14 +20,19 @@ if ( !defined $outfile || !defined $objfile || !defined $srcfile ) {
...
@@ -20,14 +20,19 @@ if ( !defined $outfile || !defined $objfile || !defined $srcfile ) {
die
"Not enough parameters to create dependencies."
;
die
"Not enough parameters to create dependencies."
;
}
}
my
$showincludes_prefix
=
$ENV
{
'SHOWINCLUDES_PREFIX'
};
if
(
!
defined
(
$showincludes_prefix
)
||
$showincludes_prefix
eq
""
)
{
$showincludes_prefix
=
'Note: including file:'
;
}
open
(
OUT
,
"> $outfile"
)
or
die
"Cannot open $outfile for writing."
;
open
(
OUT
,
"> $outfile"
)
or
die
"Cannot open $outfile for writing."
;
print
OUT
"$objfile: \\\n $srcfile"
;
print
OUT
"$objfile: \\\n $srcfile"
;
my
%
seen
;
my
%
seen
;
my
$first_line
=
1
;
my
$first_line
=
1
;
while
(
<
STDIN
>
)
{
while
(
<
STDIN
>
)
{
if
(
/^
Note: including file:
/
)
{
if
(
/^
$showincludes_prefix
/
)
{
s/^
Note: including file:
\s*//
;
s/^
$showincludes_prefix
\s*//
;
s/\r$//
;
s/\r$//
;
chomp
;
chomp
;
...
...
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