FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cpython/PCbuild/pyproject.props at 2.7 · python/cpython · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
python
/
cpython
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
35.3k
Star
75.3k
Code
Issues
5k+
Pull requests
2.6k
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
cpython
/
PCbuild
/
pyproject.props
Copy path
More file actions
More file actions
Latest commit
History
History
History
160 lines (151 loc) · 8.98 KB
Breadcrumbs
cpython
/
PCbuild
/
pyproject.props
Copy path
File metadata and controls
160 lines (151 loc) · 8.98 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<
?xm
l versio
n
=
"1.
0
" encodin
g
=
"utf-
8
"?>
<
Project
DefaultTargets
=
"
Build
"
ToolsVersion
=
"
4.0
"
xmlns
=
"
http://schemas.microsoft.com/developer/msbuild/2003
"
>
<
PropertyGroup
Label
=
"
Globals
"
>
<
_ProjectFileVersion
>10.0.30319.1</
_ProjectFileVersion
>
<
VisualStudioVersion
Condition
=
"
'$(VisualStudioVersion)' == ''
"
>10.0</
VisualStudioVersion
>
<
OutDir
>$(BuildPath)</
OutDir
>
<
IntDir
>$(SolutionDir)obj\$(ArchName)_$(Configuration)\$(ProjectName)\</
IntDir
>
<
IntDir
Condition
=
"
'$(Configuration)' == 'PGInstrument' or '$(Configuration)' == 'PGUpdate'
"
>$(SolutionDir)obj\$(ArchName)\$(ProjectName)\</
IntDir
>
<
TargetName
Condition
=
"
'$(TargetName)' == ''
"
>$(ProjectName)</
TargetName
>
<
TargetName
>$(TargetName)$(PyDebugExt)</
TargetName
>
<
GenerateManifest
>false</
GenerateManifest
>
<
EmbedManifest
>false</
EmbedManifest
>
<!--
BasePlatformToolset is for ICC support
-->
<
SupportPGO
Condition
=
"
'$(SupportPGO)' == ''
"
>true</
SupportPGO
>
<
SupportSigning
Condition
=
"
'$(SupportSigning)' == ''
"
>true</
SupportSigning
>
<
SupportSigning
Condition
=
"
'$(Configuration)' == 'Debug'
"
>false</
SupportSigning
>
<
SupportSigning
Condition
=
"
'$(ConfigurationType)' == 'StaticLibrary'
"
>false</
SupportSigning
>
</
PropertyGroup
>
<
PropertyGroup
>
<
_DebugPreprocessorDefinition
>NDEBUG;</
_DebugPreprocessorDefinition
>
<
_DebugPreprocessorDefinition
Condition
=
"
$(Configuration) == 'Debug'
"
>_DEBUG;</
_DebugPreprocessorDefinition
>
<
_PlatformPreprocessorDefinition
>_WIN32;</
_PlatformPreprocessorDefinition
>
<
_PlatformPreprocessorDefinition
Condition
=
"
$(Platform) == 'x64'
"
>_WIN64;_M_X64;</
_PlatformPreprocessorDefinition
>
<
_PydPreprocessorDefinition
Condition
=
"
$(TargetExt) == '.pyd'
"
>Py_BUILD_CORE_MODULE;</
_PydPreprocessorDefinition
>
</
PropertyGroup
>
<
ItemDefinitionGroup
>
<
ClCompile
>
<
AdditionalIncludeDirectories
>$(PySourcePath)Include;$(PySourcePath)PC;%(AdditionalIncludeDirectories)</
AdditionalIncludeDirectories
>
<
PreprocessorDefinitions
>WIN32;$(_PlatformPreprocessorDefinition)$(_DebugPreprocessorDefinition)$(_PydPreprocessorDefinition)%(PreprocessorDefinitions)</
PreprocessorDefinitions
>
<
Optimization
>MaxSpeed</
Optimization
>
<
IntrinsicFunctions
>true</
IntrinsicFunctions
>
<
StringPooling
>true</
StringPooling
>
<
ExceptionHandling
></
ExceptionHandling
>
<
RuntimeLibrary
>MultiThreadedDLL</
RuntimeLibrary
>
<
FunctionLevelLinking
>true</
FunctionLevelLinking
>
<
WarningLevel
>Level3</
WarningLevel
>
<
DebugInformationFormat
>ProgramDatabase</
DebugInformationFormat
>
<
CompileAs
>Default</
CompileAs
>
<
SuppressStartupBanner
>true</
SuppressStartupBanner
>
<
WholeProgramOptimization
>true</
WholeProgramOptimization
>
</
ClCompile
>
<
ClCompile
Condition
=
"
$(Configuration) == 'Debug'
"
>
<
Optimization
>Disabled</
Optimization
>
<
WholeProgramOptimization
>false</
WholeProgramOptimization
>
<
RuntimeLibrary
>MultiThreadedDebugDLL</
RuntimeLibrary
>
</
ClCompile
>
<
ClCompile
Condition
=
"
$(ICCBuild) == 'true'
"
>
<
FloatingPointModel
>Strict</
FloatingPointModel
>
</
ClCompile
>
<
Link
>
<
AdditionalLibraryDirectories
>$(OutDir);%(AdditionalLibraryDirectories)</
AdditionalLibraryDirectories
>
<
GenerateDebugInformation
>true</
GenerateDebugInformation
>
<
ProgramDatabaseFile
>$(OutDir)$(TargetName).pdb</
ProgramDatabaseFile
>
<
SubSystem
>Windows</
SubSystem
>
<
RandomizedBaseAddress
>true</
RandomizedBaseAddress
>
<
DataExecutionPrevention
>true</
DataExecutionPrevention
>
<
SuppressStartupBanner
>true</
SuppressStartupBanner
>
<
IgnoreSpecificDefaultLibraries
>LIBC;%(IgnoreSpecificDefaultLibraries)</
IgnoreSpecificDefaultLibraries
>
<
TargetMachine
>MachineX86</
TargetMachine
>
<
TargetMachine
Condition
=
"
'$(Platform)' == 'x64'
"
>MachineX64</
TargetMachine
>
<
ProfileGuidedDatabase
Condition
=
"
$(SupportPGO)
"
>$(OutDir)$(TargetName).pgd</
ProfileGuidedDatabase
>
<
LinkTimeCodeGeneration
Condition
=
"
$(Configuration) == 'Release'
"
>UseLinkTimeCodeGeneration</
LinkTimeCodeGeneration
>
<
LinkTimeCodeGeneration
Condition
=
"
$(SupportPGO) and $(Configuration) == 'PGInstrument'
"
>PGInstrument</
LinkTimeCodeGeneration
>
<
LinkTimeCodeGeneration
Condition
=
"
$(SupportPGO) and $(Configuration) == 'PGUpdate'
"
>PGUpdate</
LinkTimeCodeGeneration
>
</
Link
>
<
Lib
>
<
LinkTimeCodeGeneration
Condition
=
"
$(Configuration) == 'Release'
"
>true</
LinkTimeCodeGeneration
>
<
LinkTimeCodeGeneration
Condition
=
"
$(SupportPGO) and $(Configuration) == 'PGInstrument'
"
>true</
LinkTimeCodeGeneration
>
<
LinkTimeCodeGeneration
Condition
=
"
$(SupportPGO) and $(Configuration) == 'PGUpdate'
"
>true</
LinkTimeCodeGeneration
>
</
Lib
>
<
ResourceCompile
>
<
AdditionalIncludeDirectories
>$(PySourcePath)PC;$(PySourcePath)Include;%(AdditionalIncludeDirectories)</
AdditionalIncludeDirectories
>
<
PreprocessorDefinitions
>$(_DebugPreprocessorDefinition)%(PreprocessorDefinitions)</
PreprocessorDefinitions
>
<
Culture
>0x0409</
Culture
>
</
ResourceCompile
>
<
Midl
>
<
PreprocessorDefinitions
>$(_DebugPreprocessorDefinition)%(PreprocessorDefinitions)</
PreprocessorDefinitions
>
<
MkTypLibCompatible
>true</
MkTypLibCompatible
>
<
SuppressStartupBanner
>true</
SuppressStartupBanner
>
<
TargetEnvironment
>Win32</
TargetEnvironment
>
<
TargetEnvironment
Condition
=
"
'$(Platform)' == 'x64'
"
>X64</
TargetEnvironment
>
<
TypeLibraryName
>$(OutDir)wininst.tlb</
TypeLibraryName
>
<
HeaderFileName
>
</
HeaderFileName
>
</
Midl
>
</
ItemDefinitionGroup
>
<
Target
Name
=
"
GeneratePythonNtRcH
"
BeforeTargets
=
"
$(MakeVersionInfoBeforeTarget)
"
Inputs
=
"
$(PySourcePath)Include\patchlevel.h
"
Outputs
=
"
$(PySourcePath)PC\pythonnt_rc$(PyDebugExt).h
"
>
<
WriteLinesToFile
File
=
"
$(PySourcePath)PC\pythonnt_rc$(PyDebugExt).h
"
Overwrite
=
"
true
"
Encoding
=
"
ascii
"
Lines
=
'
/* This file created by python.props /t:GeneratePythonNtRcH */
#define FIELD3 $(Field3Value)
#define MS_DLL_ID "$(SysWinVer)"
#define PYTHON_DLL_NAME "$(PyDllName).dll"
'
/>
<
ItemGroup
>
<
FileWrites
Include
=
"
$(PySourcePath)PC\pythonnt_rc$(PyDebugExt).h
"
/>
</
ItemGroup
>
</
Target
>
<
UsingTask
TaskName
=
"
KillPython
"
TaskFactory
=
"
CodeTaskFactory
"
AssemblyFile
=
"
$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll
"
>
<
ParameterGroup
>
<
FileName
Required
=
"
true
"
/>
</
ParameterGroup
>
<
Task
>
<
Code
Type
=
"
Fragment
"
Language
=
"
cs
"
>
<![CDATA[
string fullPath = System.IO.Path.GetFullPath(FileName);
Log.LogMessage("Looking for " + fullPath, MessageImportance.Normal);
foreach (System.Diagnostics.Process p in System.Diagnostics.Process.GetProcesses()) {
try {
Log.LogMessage("Found running process: " + p.MainModule.FileName, MessageImportance.Low);
if (fullPath.Equals(System.IO.Path.GetFullPath(p.MainModule.FileName), StringComparison.OrdinalIgnoreCase)) {
Log.LogMessage("Terminating " + p.MainModule.FileName, MessageImportance.High);
p.Kill();
}
} catch {
}
}
]]>
</
Code
>
</
Task
>
</
UsingTask
>
<
Target
Name
=
"
KillPython
"
BeforeTargets
=
"
PrepareForBuild
"
Condition
=
"
'$(KillPython)' == 'true'
"
>
<
Message
Text
=
"
Killing any running python$(PyDebugExt).exe instances...
"
Importance
=
"
high
"
/>
<
KillPython
FileName
=
"
$(OutDir)python$(PyDebugExt).exe
"
/>
</
Target
>
<!--
A default target to handle msbuild pcbuild.proj /t:CleanAll.
Some externals projects don't respond to /t:Clean, so we invoke
CleanAll on them when we really want to clean up.
-->
<
Target
Name
=
"
CleanAll
"
DependsOnTargets
=
"
Clean
"
>
<
MSBuild
Projects
=
"
@(ProjectReference->'%(FullPath)')
"
Properties
=
"
Configuration=$(Configuration);Platform=$(Platform)
"
BuildInParallel
=
"
true
"
StopOnFirstFailure
=
"
false
"
Condition
=
"
Exists(%(FullPath))
"
Targets
=
"
CleanAll
"
/>
</
Target
>
<
PropertyGroup
Condition
=
"
'$(SigningCertificate)' != '' and $(SupportSigning)
"
>
<
SignToolPath
Condition
=
"
'$(SignToolPath)' == '' or !Exists($(SignToolPath))
"
>$(registry:HKEY_LOCAL_MACHINE\Software\Microsoft\Windows Kits\Installed Roots@KitsRoot81)\bin\x86\signtool.exe</
SignToolPath
>
<
SignToolPath
Condition
=
"
!Exists($(SignToolPath))
"
>$(registry:HKEY_LOCAL_MACHINE\Software\Microsoft\Windows Kits\Installed Roots@KitsRoot)\bin\x86\signtool.exe</
SignToolPath
>
<
SignToolPath
Condition
=
"
!Exists($(SignToolPath))
"
>$(registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.1A@InstallationFolder)\Bin\signtool.exe</
SignToolPath
>
<
_SignCommand
Condition
=
"
Exists($(SignToolPath))
"
>"$(SignToolPath)" sign /q /n "$(SigningCertificate)" /t http://timestamp.verisign.com/scripts/timestamp.dll /d "Python $(PythonVersion)"</
_SignCommand
>
</
PropertyGroup
>
<
Target
Name
=
"
_SignBuild
"
AfterTargets
=
"
AfterBuild
"
Condition
=
"
'$(SigningCertificate)' != '' and $(SupportSigning)
"
>
<
Error
Text
=
"
Unable to locate signtool.exe. Set /p:SignToolPath and rebuild
"
Condition
=
"
'$(_SignCommand)' == ''
"
/>
<
Exec
Command
=
'
$(_SignCommand) "$(TargetPath)" || $(_SignCommand) "$(TargetPath)" || $(_SignCommand) "$(TargetPath)"
'
ContinueOnError
=
"
false
"
/>
</
Target
>
</
Project
>
Back
|
FazBrowse Home
|
New Git URL