mirror of
https://github.com/python/cpython.git
synced 2025-07-30 06:34:15 +00:00
Port to Python 2.5. Drop .DEF file. Change output file names to .pyd.
This commit is contained in:
parent
3c134a2046
commit
449be38305
3 changed files with 7 additions and 12 deletions
|
@ -13,7 +13,7 @@ static PyMethodDef example_methods[] = {
|
||||||
{NULL, NULL}
|
{NULL, NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
void
|
PyMODINIT_FUNC
|
||||||
initexample(void)
|
initexample(void)
|
||||||
{
|
{
|
||||||
Py_InitModule("example", example_methods);
|
Py_InitModule("example", example_methods);
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
EXPORTS
|
|
||||||
initexample
|
|
|
@ -39,12 +39,12 @@
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
AdditionalOptions="/export:initexample"
|
AdditionalOptions="/export:initexample"
|
||||||
AdditionalDependencies="odbc32.lib odbccp32.lib python24.lib"
|
AdditionalDependencies="odbc32.lib odbccp32.lib python25.lib"
|
||||||
OutputFile=".\Release/example.dll"
|
OutputFile=".\Release/example.pyd"
|
||||||
LinkIncremental="1"
|
LinkIncremental="1"
|
||||||
SuppressStartupBanner="TRUE"
|
SuppressStartupBanner="TRUE"
|
||||||
AdditionalLibraryDirectories="..\PCbuild"
|
AdditionalLibraryDirectories="..\PCbuild"
|
||||||
ModuleDefinitionFile=".\example.def"
|
ModuleDefinitionFile=""
|
||||||
ProgramDatabaseFile=".\Release/example.pdb"
|
ProgramDatabaseFile=".\Release/example.pdb"
|
||||||
SubSystem="2"
|
SubSystem="2"
|
||||||
ImportLibrary=".\Release/example.lib"
|
ImportLibrary=".\Release/example.lib"
|
||||||
|
@ -105,12 +105,12 @@
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
AdditionalOptions="/export:initexample"
|
AdditionalOptions="/export:initexample"
|
||||||
AdditionalDependencies="odbc32.lib odbccp32.lib python24_d.lib"
|
AdditionalDependencies="odbc32.lib odbccp32.lib python25_d.lib"
|
||||||
OutputFile=".\Debug/example_d.dll"
|
OutputFile=".\Debug/example_d.pyd"
|
||||||
LinkIncremental="1"
|
LinkIncremental="1"
|
||||||
SuppressStartupBanner="TRUE"
|
SuppressStartupBanner="TRUE"
|
||||||
AdditionalLibraryDirectories="..\PCbuild"
|
AdditionalLibraryDirectories="..\PCbuild"
|
||||||
ModuleDefinitionFile=".\example.def"
|
ModuleDefinitionFile=""
|
||||||
GenerateDebugInformation="TRUE"
|
GenerateDebugInformation="TRUE"
|
||||||
ProgramDatabaseFile=".\Debug/example_d.pdb"
|
ProgramDatabaseFile=".\Debug/example_d.pdb"
|
||||||
SubSystem="2"
|
SubSystem="2"
|
||||||
|
@ -171,9 +171,6 @@
|
||||||
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;$(NoInherit)"/>
|
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;$(NoInherit)"/>
|
||||||
</FileConfiguration>
|
</FileConfiguration>
|
||||||
</File>
|
</File>
|
||||||
<File
|
|
||||||
RelativePath="example.def">
|
|
||||||
</File>
|
|
||||||
</Filter>
|
</Filter>
|
||||||
<Filter
|
<Filter
|
||||||
Name="Header Files"
|
Name="Header Files"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue