Skip to content

Commit a2a21ee

Browse files
committed
Merged revisions 69489-69490 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r69489 | martin.v.loewis | 2009-02-10 14:09:19 +0100 (Di, 10 Feb 2009) | 1 line Issue python#5134: Silence compiler warnings when compiling sqlite with VC++. ........ r69490 | martin.v.loewis | 2009-02-10 14:12:12 +0100 (Di, 10 Feb 2009) | 1 line Set eol-style to native ........
1 parent 436eb08 commit a2a21ee

3 files changed

Lines changed: 32 additions & 24 deletions

File tree

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,8 @@ Tools/Demos
334334
Build
335335
-----
336336

337+
- Issue #5134: Silence compiler warnings when compiling sqlite with VC++.
338+
337339
- Issue #4494: Fix build with Py_NO_ENABLE_SHARED on Windows.
338340

339341
- Issue #4895: Use _strdup on Windows CE.

PCbuild/sqlite3.vcproj

Lines changed: 16 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<Configuration
2323
Name="Debug|Win32"
2424
ConfigurationType="2"
25-
InheritedPropertySheets=".\pyd_d.vsprops"
25+
InheritedPropertySheets=".\sqlite3.vsprops;.\debug.vsprops"
2626
CharacterSet="0"
2727
>
2828
<Tool
@@ -42,8 +42,7 @@
4242
/>
4343
<Tool
4444
Name="VCCLCompilerTool"
45-
AdditionalIncludeDirectories="$(sqlite3Dir)"
46-
PreprocessorDefinitions="SQLITE_API=__declspec(dllexport)"
45+
AdditionalIncludeDirectories=""
4746
/>
4847
<Tool
4948
Name="VCManagedResourceCompilerTool"
@@ -83,7 +82,7 @@
8382
<Configuration
8483
Name="Debug|x64"
8584
ConfigurationType="2"
86-
InheritedPropertySheets=".\pyd_d.vsprops;.\x64.vsprops"
85+
InheritedPropertySheets=".\x64.vsprops;.\sqlite3.vsprops;.\debug.vsprops"
8786
CharacterSet="0"
8887
>
8988
<Tool
@@ -104,8 +103,7 @@
104103
/>
105104
<Tool
106105
Name="VCCLCompilerTool"
107-
AdditionalIncludeDirectories="$(sqlite3Dir)"
108-
PreprocessorDefinitions="SQLITE_API=__declspec(dllexport)"
106+
AdditionalIncludeDirectories=""
109107
/>
110108
<Tool
111109
Name="VCManagedResourceCompilerTool"
@@ -145,7 +143,7 @@
145143
<Configuration
146144
Name="Release|Win32"
147145
ConfigurationType="2"
148-
InheritedPropertySheets=".\pyd.vsprops"
146+
InheritedPropertySheets=".\sqlite3.vsprops"
149147
CharacterSet="0"
150148
WholeProgramOptimization="1"
151149
>
@@ -166,8 +164,7 @@
166164
/>
167165
<Tool
168166
Name="VCCLCompilerTool"
169-
AdditionalIncludeDirectories="$(sqlite3Dir)"
170-
PreprocessorDefinitions="SQLITE_API=__declspec(dllexport)"
167+
AdditionalIncludeDirectories=""
171168
/>
172169
<Tool
173170
Name="VCManagedResourceCompilerTool"
@@ -207,7 +204,7 @@
207204
<Configuration
208205
Name="Release|x64"
209206
ConfigurationType="2"
210-
InheritedPropertySheets=".\pyd.vsprops;.\x64.vsprops"
207+
InheritedPropertySheets=".\x64.vsprops;.\sqlite3.vsprops"
211208
CharacterSet="0"
212209
WholeProgramOptimization="1"
213210
>
@@ -229,8 +226,7 @@
229226
/>
230227
<Tool
231228
Name="VCCLCompilerTool"
232-
AdditionalIncludeDirectories="$(sqlite3Dir)"
233-
PreprocessorDefinitions="SQLITE_API=__declspec(dllexport)"
229+
AdditionalIncludeDirectories=""
234230
/>
235231
<Tool
236232
Name="VCManagedResourceCompilerTool"
@@ -270,7 +266,7 @@
270266
<Configuration
271267
Name="PGInstrument|Win32"
272268
ConfigurationType="2"
273-
InheritedPropertySheets=".\pyd.vsprops;.\pginstrument.vsprops"
269+
InheritedPropertySheets=".\sqlite3.vsprops;.\pginstrument.vsprops"
274270
CharacterSet="0"
275271
WholeProgramOptimization="1"
276272
>
@@ -291,8 +287,7 @@
291287
/>
292288
<Tool
293289
Name="VCCLCompilerTool"
294-
AdditionalIncludeDirectories="$(sqlite3Dir)"
295-
PreprocessorDefinitions="SQLITE_API=__declspec(dllexport)"
290+
AdditionalIncludeDirectories="&quot;$(sqlite3Dir)&quot;"
296291
/>
297292
<Tool
298293
Name="VCManagedResourceCompilerTool"
@@ -332,7 +327,7 @@
332327
<Configuration
333328
Name="PGInstrument|x64"
334329
ConfigurationType="2"
335-
InheritedPropertySheets=".\pyd.vsprops;.\x64.vsprops;.\pginstrument.vsprops"
330+
InheritedPropertySheets=".\x64.vsprops;.\sqlite3.vsprops;.\pginstrument.vsprops"
336331
CharacterSet="0"
337332
WholeProgramOptimization="1"
338333
>
@@ -354,8 +349,7 @@
354349
/>
355350
<Tool
356351
Name="VCCLCompilerTool"
357-
AdditionalIncludeDirectories="$(sqlite3Dir)"
358-
PreprocessorDefinitions="SQLITE_API=__declspec(dllexport)"
352+
AdditionalIncludeDirectories=""
359353
/>
360354
<Tool
361355
Name="VCManagedResourceCompilerTool"
@@ -394,7 +388,7 @@
394388
<Configuration
395389
Name="PGUpdate|Win32"
396390
ConfigurationType="2"
397-
InheritedPropertySheets=".\pyd.vsprops;.\pgupdate.vsprops"
391+
InheritedPropertySheets=".\sqlite3.vsprops;.\pgupdate.vsprops"
398392
CharacterSet="0"
399393
WholeProgramOptimization="1"
400394
>
@@ -415,8 +409,7 @@
415409
/>
416410
<Tool
417411
Name="VCCLCompilerTool"
418-
AdditionalIncludeDirectories="$(sqlite3Dir)"
419-
PreprocessorDefinitions="SQLITE_API=__declspec(dllexport)"
412+
AdditionalIncludeDirectories=""
420413
/>
421414
<Tool
422415
Name="VCManagedResourceCompilerTool"
@@ -456,7 +449,7 @@
456449
<Configuration
457450
Name="PGUpdate|x64"
458451
ConfigurationType="2"
459-
InheritedPropertySheets=".\pyd.vsprops;.\x64.vsprops;.\pgupdate.vsprops"
452+
InheritedPropertySheets=".\x64.vsprops;.\sqlite3.vsprops;.\pgupdate.vsprops"
460453
CharacterSet="0"
461454
WholeProgramOptimization="1"
462455
>
@@ -478,8 +471,7 @@
478471
/>
479472
<Tool
480473
Name="VCCLCompilerTool"
481-
AdditionalIncludeDirectories="$(sqlite3Dir)"
482-
PreprocessorDefinitions="SQLITE_API=__declspec(dllexport)"
474+
AdditionalIncludeDirectories=""
483475
/>
484476
<Tool
485477
Name="VCManagedResourceCompilerTool"

PCbuild/sqlite3.vsprops

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="Windows-1252"?>
2+
<VisualStudioPropertySheet
3+
ProjectType="Visual C++"
4+
Version="8.00"
5+
Name="sqlite3"
6+
InheritedPropertySheets=".\pyproject.vsprops"
7+
>
8+
<Tool
9+
Name="VCCLCompilerTool"
10+
AdditionalIncludeDirectories="$(sqlite3Dir)"
11+
PreprocessorDefinitions="SQLITE_API=__declspec(dllexport)"
12+
WarningLevel="1"
13+
/>
14+
</VisualStudioPropertySheet>

0 commit comments

Comments
 (0)