Adjust sqlite3 build process to Win64.

This commit is contained in:
Martin v. Löwis 2006-04-04 16:28:14 +00:00
parent 8ddab27182
commit e510bd16ea
2 changed files with 9 additions and 3 deletions

View File

@ -152,7 +152,7 @@
<Tool
Name="VCLinkerTool"
AdditionalOptions=" /MACHINE:IA64 /USELINK:MS_SDK"
AdditionalDependencies="..\..\sqlite-source-3.3.4\sqlite3.lib"
AdditionalDependencies="..\..\sqlite-source-3.3.4\ia64\sqlite3.lib"
OutputFile="./_sqlite3.pyd"
LinkIncremental="1"
SuppressStartupBanner="TRUE"
@ -214,7 +214,7 @@
<Tool
Name="VCLinkerTool"
AdditionalOptions=" /MACHINE:AMD64 /USELINK:MS_SDK"
AdditionalDependencies="..\..\sqlite-source-3.3.4\sqlite3.lib"
AdditionalDependencies="..\..\sqlite-source-3.3.4\amd64\sqlite3.lib"
OutputFile="./_sqlite3.pyd"
LinkIncremental="1"
SuppressStartupBanner="TRUE"

View File

@ -967,7 +967,13 @@ def add_files(db):
for f in glob.glob1(tcldir, "*.dll"):
lib.add_file(f, src=os.path.join(tcldir, f))
# Add sqlite
lib.add_file(srcdir+"/"+sqlite_dir+"/sqlite3.dll")
if msilib.msi_type=="Intel64;1033":
sqlite_arch = "/ia64"
elif msilib.msi_type=="x64;1033":
sqlite_arch = "/amd64"
else:
sqlite_arch = ""
lib.add_file(srcdir+"/"+sqlite_dir+sqlite_arch+"/sqlite3.dll")
# check whether there are any unknown extensions
for f in glob.glob1(srcdir+"/PCBuild", "*.pyd"):
if f.endswith("_d.pyd"): continue # debug version