Skip to content

Commit bbb1a8b

Browse files
author
kristjan.jonsson
committed
Complete revamp of PCBuild8 directory. Use subdirectories for each project under the main pcbuild solution. Now make extensive use of property sheets to simplify project configuration. x64 build fully supported, and the process for building PGO version (Profiler Guided Optimization) simplified. All projects are now present, except _ssl, which needs to be reimplemented. Also, some of the projects that require external libraries need extra work to fully compile on x64.
git-svn-id: http://svn.python.org/projects/python/trunk@55024 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent d971749 commit bbb1a8b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+13363
-13677
lines changed

Modules/datetimemodule.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
/* Differentiate between building the core module and building extension
1414
* modules.
1515
*/
16+
#ifndef Py_BUILD_CORE
1617
#define Py_BUILD_CORE
18+
#endif
1719
#include "datetime.h"
1820
#undef Py_BUILD_CORE
1921

Modules/getbuildinfo.c

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@
2020
#endif
2121
#endif
2222

23-
#ifdef SUBWCREV
2423
#define SVNVERSION "$WCRANGE$$WCMODS?M:$"
25-
#endif
26-
2724
const char *
2825
Py_GetBuildInfo(void)
2926
{
@@ -40,9 +37,9 @@ Py_GetBuildInfo(void)
4037
const char *
4138
_Py_svnversion(void)
4239
{
43-
#ifdef SVNVERSION
44-
return SVNVERSION;
45-
#else
40+
/* the following string can be modified by subwcrev.exe */
41+
static const char svnversion[] = SVNVERSION;
42+
if (!strstr(svnversion, "$"))
43+
return svnversion; /* it was interpolated */
4644
return "exported";
47-
#endif
4845
}

PC/make_versioninfo.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,12 @@ int main(int argc, char **argv)
2727
PY_MICRO_VERSION*1000 + PY_RELEASE_LEVEL*10 + PY_RELEASE_SERIAL);
2828
printf("#define MS_DLL_ID \"%d.%d\"\n",
2929
PY_MAJOR_VERSION, PY_MINOR_VERSION);
30+
printf("#ifndef _DEBUG\n");
3031
printf("#define PYTHON_DLL_NAME \"python%d%d.dll\"\n",
3132
PY_MAJOR_VERSION, PY_MINOR_VERSION);
33+
printf("#else\n");
34+
printf("#define PYTHON_DLL_NAME \"python%d%d_d.dll\"\n",
35+
PY_MAJOR_VERSION, PY_MINOR_VERSION);
36+
printf("#endif\n");
3237
return 0;
3338
}

PCbuild8/PGInstrument.vsprops

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="Windows-1252"?>
2+
<VisualStudioPropertySheet
3+
ProjectType="Visual C++"
4+
Version="8.00"
5+
Name="PGInstrument"
6+
OutputDirectory="$(SolutionDir)$(PlatformName)PGO"
7+
IntermediateDirectory="$(PlatformName)PGO"
8+
>
9+
<Tool
10+
Name="VCLinkerTool"
11+
LinkTimeCodeGeneration="2"
12+
/>
13+
</VisualStudioPropertySheet>

PCbuild8/PGUpdate.vsprops

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="Windows-1252"?>
2+
<VisualStudioPropertySheet
3+
ProjectType="Visual C++"
4+
Version="8.00"
5+
Name="PGUpdate"
6+
InheritedPropertySheets=".\PGInstrument.vsprops"
7+
>
8+
<Tool
9+
Name="VCLinkerTool"
10+
LinkTimeCodeGeneration="4"
11+
/>
12+
</VisualStudioPropertySheet>

0 commit comments

Comments
 (0)