Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
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ç
Batuhan Osman TASKAYA
cpython
Commits
5ee89cf1
Kaydet (Commit)
5ee89cf1
authored
Kas 04, 2010
tarafından
Hirokazu Yamamoto
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Updated PC/VS8.0. (mainly to follow r86137: use temporary dir in make_buildinfo.c)
üst
9794a26d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
120 additions
and
95 deletions
+120
-95
bz2.vcproj
PC/VS8.0/bz2.vcproj
+8
-8
make_buildinfo.c
PC/VS8.0/make_buildinfo.c
+32
-10
make_buildinfo.vcproj
PC/VS8.0/make_buildinfo.vcproj
+0
-61
pythoncore.vcproj
PC/VS8.0/pythoncore.vcproj
+80
-16
No files found.
PC/VS8.0/bz2.vcproj
Dosyayı görüntüle @
5ee89cf1
...
...
@@ -43,7 +43,7 @@
<Tool
Name=
"VCCLCompilerTool"
AdditionalIncludeDirectories=
"$(bz2Dir)"
PreprocessorDefinitions=
"WIN32;_FILE_OFFSET_BITS=64"
PreprocessorDefinitions=
"WIN32;_FILE_OFFSET_BITS=64
;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE
"
/>
<Tool
Name=
"VCManagedResourceCompilerTool"
...
...
@@ -105,7 +105,7 @@
<Tool
Name=
"VCCLCompilerTool"
AdditionalIncludeDirectories=
"$(bz2Dir)"
PreprocessorDefinitions=
"WIN32;_FILE_OFFSET_BITS=64"
PreprocessorDefinitions=
"WIN32;_FILE_OFFSET_BITS=64
;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE
"
/>
<Tool
Name=
"VCManagedResourceCompilerTool"
...
...
@@ -167,7 +167,7 @@
<Tool
Name=
"VCCLCompilerTool"
AdditionalIncludeDirectories=
"$(bz2Dir)"
PreprocessorDefinitions=
"WIN32;_FILE_OFFSET_BITS=64"
PreprocessorDefinitions=
"WIN32;_FILE_OFFSET_BITS=64
;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE
"
/>
<Tool
Name=
"VCManagedResourceCompilerTool"
...
...
@@ -230,7 +230,7 @@
<Tool
Name=
"VCCLCompilerTool"
AdditionalIncludeDirectories=
"$(bz2Dir)"
PreprocessorDefinitions=
"WIN32;_FILE_OFFSET_BITS=64"
PreprocessorDefinitions=
"WIN32;_FILE_OFFSET_BITS=64
;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE
"
/>
<Tool
Name=
"VCManagedResourceCompilerTool"
...
...
@@ -292,7 +292,7 @@
<Tool
Name=
"VCCLCompilerTool"
AdditionalIncludeDirectories=
"$(bz2Dir)"
PreprocessorDefinitions=
"WIN32;_FILE_OFFSET_BITS=64"
PreprocessorDefinitions=
"WIN32;_FILE_OFFSET_BITS=64
;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE
"
/>
<Tool
Name=
"VCManagedResourceCompilerTool"
...
...
@@ -355,7 +355,7 @@
<Tool
Name=
"VCCLCompilerTool"
AdditionalIncludeDirectories=
"$(bz2Dir)"
PreprocessorDefinitions=
"WIN32;_FILE_OFFSET_BITS=64"
PreprocessorDefinitions=
"WIN32;_FILE_OFFSET_BITS=64
;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE
"
/>
<Tool
Name=
"VCManagedResourceCompilerTool"
...
...
@@ -418,7 +418,7 @@
<Tool
Name=
"VCCLCompilerTool"
AdditionalIncludeDirectories=
"$(bz2Dir)"
PreprocessorDefinitions=
"WIN32;_FILE_OFFSET_BITS=64"
PreprocessorDefinitions=
"WIN32;_FILE_OFFSET_BITS=64
;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE
"
/>
<Tool
Name=
"VCManagedResourceCompilerTool"
...
...
@@ -481,7 +481,7 @@
<Tool
Name=
"VCCLCompilerTool"
AdditionalIncludeDirectories=
"$(bz2Dir)"
PreprocessorDefinitions=
"WIN32;_FILE_OFFSET_BITS=64"
PreprocessorDefinitions=
"WIN32;_FILE_OFFSET_BITS=64
;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE
"
/>
<Tool
Name=
"VCManagedResourceCompilerTool"
...
...
PC/VS8.0/make_buildinfo.c
Dosyayı görüntüle @
5ee89cf1
...
...
@@ -19,9 +19,15 @@
invoked as a pre-link step for pythoncore, so that overwrites
any previous getbuildinfo.o.
However, if a second argument is provided, this will be used
as a temporary directory where any getbuildinfo2.c and
getbuildinfo.o files are put. This is useful if multiple
configurations are being built in parallel, to avoid them
trampling each other's files.
*/
int
make_buildinfo2
()
int
make_buildinfo2
(
const
char
*
tmppath
)
{
struct
_stat
st
;
HKEY
hTortoise
;
...
...
@@ -46,7 +52,9 @@ int make_buildinfo2()
if
(
_stat
(
command
+
1
,
&
st
)
<
0
)
/* subwcrev.exe not part of the release */
return
0
;
strcat_s
(
command
,
CMD_SIZE
,
"
\"
..
\\
.. ..
\\
..
\\
Modules
\\
getbuildinfo.c getbuildinfo2.c"
);
strcat_s
(
command
,
CMD_SIZE
,
"
\"
..
\\
.. ..
\\
..
\\
Modules
\\
getbuildinfo.c "
);
strcat_s
(
command
,
CMD_SIZE
,
tmppath
);
strcat_s
(
command
,
CMD_SIZE
,
"getbuildinfo2.c"
);
puts
(
command
);
fflush
(
stdout
);
if
(
system
(
command
)
<
0
)
return
0
;
...
...
@@ -55,10 +63,12 @@ int make_buildinfo2()
int
main
(
int
argc
,
char
*
argv
[])
{
char
command
[
500
]
=
"cl.exe -c -D_WIN32 -DUSE_DL_EXPORT -D_WINDOWS -DWIN32 -D_WINDLL "
;
char
command
[
CMD_SIZE
]
=
"cl.exe -c -D_WIN32 -DUSE_DL_EXPORT -D_WINDOWS -DWIN32 -D_WINDLL "
;
char
tmppath
[
CMD_SIZE
]
=
""
;
int
do_unlink
,
result
;
if
(
argc
!=
2
)
{
fprintf
(
stderr
,
"make_buildinfo $(ConfigurationName)
\n
"
);
char
*
tmpdir
=
NULL
;
if
(
argc
<=
2
||
argc
>
3
)
{
fprintf
(
stderr
,
"make_buildinfo $(ConfigurationName) [tmpdir]
\n
"
);
return
EXIT_FAILURE
;
}
if
(
strcmp
(
argv
[
1
],
"Release"
)
==
0
)
{
...
...
@@ -78,16 +88,28 @@ int main(int argc, char*argv[])
fprintf
(
stderr
,
"unsupported configuration %s
\n
"
,
argv
[
1
]);
return
EXIT_FAILURE
;
}
if
(
argc
>
2
)
{
tmpdir
=
argv
[
2
];
strcat_s
(
tmppath
,
_countof
(
tmppath
),
tmpdir
);
strcat_s
(
tmppath
,
_countof
(
tmppath
),
"
\\
"
);
}
if
((
do_unlink
=
make_buildinfo2
()))
if
((
do_unlink
=
make_buildinfo2
(
tmppath
)))
{
strcat_s
(
command
,
CMD_SIZE
,
tmppath
);
strcat_s
(
command
,
CMD_SIZE
,
"getbuildinfo2.c -DSUBWCREV "
);
else
}
else
strcat_s
(
command
,
CMD_SIZE
,
"..
\\
..
\\
Modules
\\
getbuildinfo.c"
);
strcat_s
(
command
,
CMD_SIZE
,
" -Fogetbuildinfo.o -I..
\\
..
\\
Include -I..
\\
..
\\
PC"
);
strcat_s
(
command
,
CMD_SIZE
,
" -Fo"
);
strcat_s
(
command
,
CMD_SIZE
,
tmppath
);
strcat_s
(
command
,
CMD_SIZE
,
"getbuildinfo.o -I..
\\
..
\\
Include -I..
\\
..
\\
PC"
);
puts
(
command
);
fflush
(
stdout
);
result
=
system
(
command
);
if
(
do_unlink
)
_unlink
(
"getbuildinfo2.c"
);
if
(
do_unlink
)
{
command
[
0
]
=
'\0'
;
strcat_s
(
command
,
CMD_SIZE
,
tmppath
);
strcat_s
(
command
,
CMD_SIZE
,
"getbuildinfo2.c"
);
_unlink
(
command
);
}
if
(
result
<
0
)
return
EXIT_FAILURE
;
return
0
;
...
...
PC/VS8.0/make_buildinfo.vcproj
Dosyayı görüntüle @
5ee89cf1
...
...
@@ -12,9 +12,6 @@
<Platform
Name=
"Win32"
/>
<Platform
Name=
"x64"
/>
</Platforms>
<ToolFiles>
</ToolFiles>
...
...
@@ -84,64 +81,6 @@
Name=
"VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name=
"Release|x64"
ConfigurationType=
"1"
InheritedPropertySheets=
".\pyproject.vsprops;.\x64.vsprops;.\release.vsprops"
>
<Tool
Name=
"VCPreBuildEventTool"
/>
<Tool
Name=
"VCCustomBuildTool"
/>
<Tool
Name=
"VCXMLDataGeneratorTool"
/>
<Tool
Name=
"VCWebServiceProxyGeneratorTool"
/>
<Tool
Name=
"VCMIDLTool"
/>
<Tool
Name=
"VCCLCompilerTool"
PreprocessorDefinitions=
"_CONSOLE"
/>
<Tool
Name=
"VCManagedResourceCompilerTool"
/>
<Tool
Name=
"VCResourceCompilerTool"
/>
<Tool
Name=
"VCPreLinkEventTool"
/>
<Tool
Name=
"VCLinkerTool"
/>
<Tool
Name=
"VCALinkTool"
/>
<Tool
Name=
"VCManifestTool"
/>
<Tool
Name=
"VCXDCMakeTool"
/>
<Tool
Name=
"VCBscMakeTool"
/>
<Tool
Name=
"VCFxCopTool"
/>
<Tool
Name=
"VCAppVerifierTool"
/>
<Tool
Name=
"VCPostBuildEventTool"
/>
</Configuration>
</Configurations>
<References>
</References>
...
...
PC/VS8.0/pythoncore.vcproj
Dosyayı görüntüle @
5ee89cf1
...
...
@@ -59,11 +59,11 @@
<Tool
Name=
"VCPreLinkEventTool"
Description=
"Generate build information..."
CommandLine=
""$(SolutionDir)make_buildinfo.exe" Release"
CommandLine=
""$(SolutionDir)make_buildinfo.exe" Release
$(IntDir)
"
/>
<Tool
Name=
"VCLinkerTool"
AdditionalDependencies=
"getbuildinfo.o"
AdditionalDependencies=
"
$(IntDir)\
getbuildinfo.o"
OutputFile=
"$(OutDir)\$(PyDllName).dll"
IgnoreDefaultLibraryNames=
"libc"
ProgramDatabaseFile=
"$(OutDir)$(PyDllName).pdb"
...
...
@@ -134,11 +134,11 @@
<Tool
Name=
"VCPreLinkEventTool"
Description=
"Generate build information..."
CommandLine=
""$(SolutionDir)make_buildinfo.exe" Release"
CommandLine=
""$(SolutionDir)make_buildinfo.exe" Release
$(IntDir)
"
/>
<Tool
Name=
"VCLinkerTool"
AdditionalDependencies=
"getbuildinfo.o"
AdditionalDependencies=
"
$(IntDir)\
getbuildinfo.o"
OutputFile=
"$(OutDir)\$(PyDllName).dll"
IgnoreDefaultLibraryNames=
"libc"
ProgramDatabaseFile=
"$(OutDir)$(PyDllName).pdb"
...
...
@@ -212,11 +212,11 @@
<Tool
Name=
"VCPreLinkEventTool"
Description=
"Generate build information..."
CommandLine=
""$(SolutionDir)make_buildinfo.exe" Debug"
CommandLine=
""$(SolutionDir)make_buildinfo.exe" Debug
$(IntDir)
"
/>
<Tool
Name=
"VCLinkerTool"
AdditionalDependencies=
"getbuildinfo.o"
AdditionalDependencies=
"
$(IntDir)\
getbuildinfo.o"
OutputFile=
"$(OutDir)\$(PyDllName)_d.dll"
IgnoreDefaultLibraryNames=
"libc"
ProgramDatabaseFile=
"$(OutDir)$(PyDllName)_d.pdb"
...
...
@@ -290,11 +290,11 @@
<Tool
Name=
"VCPreLinkEventTool"
Description=
"Generate build information..."
CommandLine=
""$(SolutionDir)make_buildinfo.exe" Debug"
CommandLine=
""$(SolutionDir)make_buildinfo.exe" Debug
$(IntDir)
"
/>
<Tool
Name=
"VCLinkerTool"
AdditionalDependencies=
"getbuildinfo.o"
AdditionalDependencies=
"
$(IntDir)\
getbuildinfo.o"
OutputFile=
"$(OutDir)\$(PyDllName)_d.dll"
IgnoreDefaultLibraryNames=
"libc"
ProgramDatabaseFile=
"$(OutDir)$(PyDllName)_d.pdb"
...
...
@@ -364,11 +364,11 @@
<Tool
Name=
"VCPreLinkEventTool"
Description=
"Generate build information..."
CommandLine=
""$(SolutionDir)make_buildinfo.exe" Release"
CommandLine=
""$(SolutionDir)make_buildinfo.exe" Release
$(IntDir)
"
/>
<Tool
Name=
"VCLinkerTool"
AdditionalDependencies=
"getbuildinfo.o"
AdditionalDependencies=
"
$(IntDir)\
getbuildinfo.o"
OutputFile=
"$(OutDir)\$(PyDllName).dll"
IgnoreDefaultLibraryNames=
"libc"
ProgramDatabaseFile=
"$(OutDir)$(PyDllName).pdb"
...
...
@@ -439,11 +439,11 @@
<Tool
Name=
"VCPreLinkEventTool"
Description=
"Generate build information..."
CommandLine=
""$(SolutionDir)make_buildinfo.exe" Release"
CommandLine=
""$(SolutionDir)make_buildinfo.exe" Release
$(IntDir)
"
/>
<Tool
Name=
"VCLinkerTool"
AdditionalDependencies=
"getbuildinfo.o"
AdditionalDependencies=
"
$(IntDir)\
getbuildinfo.o"
OutputFile=
"$(OutDir)\$(PyDllName).dll"
IgnoreDefaultLibraryNames=
"libc"
ProgramDatabaseFile=
"$(OutDir)$(PyDllName).pdb"
...
...
@@ -514,11 +514,11 @@
<Tool
Name=
"VCPreLinkEventTool"
Description=
"Generate build information..."
CommandLine=
""$(SolutionDir)make_buildinfo.exe" Release"
CommandLine=
""$(SolutionDir)make_buildinfo.exe" Release
($IntDir)
"
/>
<Tool
Name=
"VCLinkerTool"
AdditionalDependencies=
"getbuildinfo.o"
AdditionalDependencies=
"
$(IntDir)\
getbuildinfo.o"
OutputFile=
"$(OutDir)\$(PyDllName).dll"
IgnoreDefaultLibraryNames=
"libc"
ProgramDatabaseFile=
"$(OutDir)$(PyDllName).pdb"
...
...
@@ -589,11 +589,11 @@
<Tool
Name=
"VCPreLinkEventTool"
Description=
"Generate build information..."
CommandLine=
""$(SolutionDir)make_buildinfo.exe" Release"
CommandLine=
""$(SolutionDir)make_buildinfo.exe" Release
$(IntDir)
"
/>
<Tool
Name=
"VCLinkerTool"
AdditionalDependencies=
"getbuildinfo.o"
AdditionalDependencies=
"
$(IntDir)\
getbuildinfo.o"
OutputFile=
"$(OutDir)\$(PyDllName).dll"
IgnoreDefaultLibraryNames=
"libc"
ProgramDatabaseFile=
"$(OutDir)$(PyDllName).pdb"
...
...
@@ -1236,6 +1236,70 @@
<File
RelativePath=
"..\..\Modules\zlib\gzio.c"
>
<FileConfiguration
Name=
"Release|Win32"
>
<Tool
Name=
"VCCLCompilerTool"
PreprocessorDefinitions=
"_CRT_SECURE_NO_DEPRECATE"
/>
</FileConfiguration>
<FileConfiguration
Name=
"Release|Win64"
>
<Tool
Name=
"VCCLCompilerTool"
PreprocessorDefinitions=
"_CRT_SECURE_NO_DEPRECATE"
/>
</FileConfiguration>
<FileConfiguration
Name=
"Debug|Win32"
>
<Tool
Name=
"VCCLCompilerTool"
PreprocessorDefinitions=
"_CRT_SECURE_NO_DEPRECATE"
/>
</FileConfiguration>
<FileConfiguration
Name=
"Debug|Win64"
>
<Tool
Name=
"VCCLCompilerTool"
PreprocessorDefinitions=
"_CRT_SECURE_NO_DEPRECATE"
/>
</FileConfiguration>
<FileConfiguration
Name=
"PGInstrument|Win32"
>
<Tool
Name=
"VCCLCompilerTool"
PreprocessorDefinitions=
"_CRT_SECURE_NO_DEPRECATE"
/>
</FileConfiguration>
<FileConfiguration
Name=
"PGInstrument|Win64"
>
<Tool
Name=
"VCCLCompilerTool"
PreprocessorDefinitions=
"_CRT_SECURE_NO_DEPRECATE"
/>
</FileConfiguration>
<FileConfiguration
Name=
"PGUpdate|Win32"
>
<Tool
Name=
"VCCLCompilerTool"
PreprocessorDefinitions=
"_CRT_SECURE_NO_DEPRECATE"
/>
</FileConfiguration>
<FileConfiguration
Name=
"PGUpdate|Win64"
>
<Tool
Name=
"VCCLCompilerTool"
PreprocessorDefinitions=
"_CRT_SECURE_NO_DEPRECATE"
/>
</FileConfiguration>
</File>
<File
RelativePath=
"..\..\Modules\zlib\infback.c"
...
...
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