From 208cdb526b699c2059063a4f87baf1c94e15937b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 31 Mar 2011 16:07:31 +0200 Subject: Add VC++ project/solution files for SQLite --- etc/sqlite/README | 30 +++ etc/sqlite/sqlite3-vc10.sln | 26 +++ etc/sqlite/sqlite3-vc10.vcxproj | 170 +++++++++++++++ etc/sqlite/sqlite3-vc10.vcxproj.filters | 23 ++ etc/sqlite/sqlite3-vc9.sln | 26 +++ etc/sqlite/sqlite3-vc9.vcproj | 367 ++++++++++++++++++++++++++++++++ makefile | 3 +- 7 files changed, 644 insertions(+), 1 deletion(-) create mode 100644 etc/sqlite/README create mode 100644 etc/sqlite/sqlite3-vc10.sln create mode 100644 etc/sqlite/sqlite3-vc10.vcxproj create mode 100644 etc/sqlite/sqlite3-vc10.vcxproj.filters create mode 100644 etc/sqlite/sqlite3-vc9.sln create mode 100644 etc/sqlite/sqlite3-vc9.vcproj diff --git a/etc/sqlite/README b/etc/sqlite/README new file mode 100644 index 0000000..c16c832 --- /dev/null +++ b/etc/sqlite/README @@ -0,0 +1,30 @@ +This directory contains project/solution files for building SQLite libraries +with Microsoft Visual Studio versions 9 and 10. + +To build SQLite, you will need to download two SQLite packages: sqlite- +amalgamation and sqlite-dll. Copy the sqlite3.c and sqlite3.h files from the +first package and the sqlite3.def file from the second package into the +directory with the project/solution files. Then open the solution and build +the desired configurations (Debug/Release) and platforms (Win32/x64). + +The resulting 32-bit DLLs and import libraries are placed into the bin\ and +lib\ sub-directories, respectively. Similarly, the 64-bit DLLs and import +libraries are placed into bin64\ and lib64\. The Release versions of the +import libraries are named sqlite3.lib and the Debug versions are named +sqlite3-d.lib. + +To configure Visual Studio to automatically locate the SQLite header, DLLs, +and import libraries, add the following paths to your VC++ Directories (below +sqlite refers to the build directory): + +Win32: + + Include: ...\sqlite + Library: ...\sqlite\lib + Executable: ...\sqlite\bin + +x64: + + Include: ...\sqlite + Library: ...\sqlite\lib64 + Executable: ...\sqlite\bin64 diff --git a/etc/sqlite/sqlite3-vc10.sln b/etc/sqlite/sqlite3-vc10.sln new file mode 100644 index 0000000..c9c0922 --- /dev/null +++ b/etc/sqlite/sqlite3-vc10.sln @@ -0,0 +1,26 @@ + +Microsoft Visual Studio Solution File, Format Version 11.00 +# Visual Studio 2010 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sqlite3", "sqlite3-vc10.vcxproj", "{3409C5BB-974C-44FC-A9DB-2176837E9035}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Debug|x64 = Debug|x64 + Release|Win32 = Release|Win32 + Release|x64 = Release|x64 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {3409C5BB-974C-44FC-A9DB-2176837E9035}.Debug|Win32.ActiveCfg = Debug|Win32 + {3409C5BB-974C-44FC-A9DB-2176837E9035}.Debug|Win32.Build.0 = Debug|Win32 + {3409C5BB-974C-44FC-A9DB-2176837E9035}.Debug|x64.ActiveCfg = Debug|x64 + {3409C5BB-974C-44FC-A9DB-2176837E9035}.Debug|x64.Build.0 = Debug|x64 + {3409C5BB-974C-44FC-A9DB-2176837E9035}.Release|Win32.ActiveCfg = Release|Win32 + {3409C5BB-974C-44FC-A9DB-2176837E9035}.Release|Win32.Build.0 = Release|Win32 + {3409C5BB-974C-44FC-A9DB-2176837E9035}.Release|x64.ActiveCfg = Release|x64 + {3409C5BB-974C-44FC-A9DB-2176837E9035}.Release|x64.Build.0 = Release|x64 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/etc/sqlite/sqlite3-vc10.vcxproj b/etc/sqlite/sqlite3-vc10.vcxproj new file mode 100644 index 0000000..8d2ba96 --- /dev/null +++ b/etc/sqlite/sqlite3-vc10.vcxproj @@ -0,0 +1,170 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + {3409C5BB-974C-44FC-A9DB-2176837E9035} + Win32Proj + sqlite3 + + + + DynamicLibrary + true + Unicode + + + DynamicLibrary + true + Unicode + + + DynamicLibrary + false + true + Unicode + + + DynamicLibrary + false + true + Unicode + + + + + + + + + + + + + + + + + + + true + bin\ + sqlite3-d + + + true + bin64\ + sqlite3-d + + + false + bin\ + sqlite3 + + + false + bin64\ + sqlite3 + + + + + + Level3 + Disabled + WIN32;_DEBUG;_WINDOWS;_USRDLL;SQLITE_OS_WIN=1;SQLITE_THREADSAFE=1;SQLITE_ENABLE_FTS3=1;SQLITE_ENABLE_RTREE=1;SQLITE_ENABLE_COLUMN_METADATA=1;SQLITE_ENABLE_UNLOCK_NOTIFY=1;%(PreprocessorDefinitions) + + + Windows + true + $(TargetPath) + lib\sqlite3-d.lib + sqlite3.def + /EXPORT:sqlite3_unlock_notify %(AdditionalOptions) + + + + + + + Level3 + Disabled + WIN32;_DEBUG;_WINDOWS;_USRDLL;SQLITE_OS_WIN=1;SQLITE_THREADSAFE=1;SQLITE_ENABLE_FTS3=1;SQLITE_ENABLE_RTREE=1;SQLITE_ENABLE_COLUMN_METADATA=1;SQLITE_ENABLE_UNLOCK_NOTIFY=1;%(PreprocessorDefinitions) + + + Windows + true + $(TargetPath) + lib64\sqlite3-d.lib + sqlite3.def + /EXPORT:sqlite3_unlock_notify %(AdditionalOptions) + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_WINDOWS;_USRDLL;SQLITE_OS_WIN=1;SQLITE_THREADSAFE=1;SQLITE_ENABLE_FTS3=1;SQLITE_ENABLE_RTREE=1;SQLITE_ENABLE_COLUMN_METADATA=1;SQLITE_ENABLE_UNLOCK_NOTIFY=1;%(PreprocessorDefinitions) + + + Windows + true + true + true + $(TargetPath) + lib\sqlite3.lib + sqlite3.def + /EXPORT:sqlite3_unlock_notify %(AdditionalOptions) + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_WINDOWS;_USRDLL;SQLITE_OS_WIN=1;SQLITE_THREADSAFE=1;SQLITE_ENABLE_FTS3=1;SQLITE_ENABLE_RTREE=1;SQLITE_ENABLE_COLUMN_METADATA=1;SQLITE_ENABLE_UNLOCK_NOTIFY=1;%(PreprocessorDefinitions) + + + Windows + true + true + true + $(TargetPath) + lib64\sqlite3.lib + sqlite3.def + /EXPORT:sqlite3_unlock_notify %(AdditionalOptions) + + + + + + + + + + + + diff --git a/etc/sqlite/sqlite3-vc10.vcxproj.filters b/etc/sqlite/sqlite3-vc10.vcxproj.filters new file mode 100644 index 0000000..13685a4 --- /dev/null +++ b/etc/sqlite/sqlite3-vc10.vcxproj.filters @@ -0,0 +1,23 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hpp;hxx;hm;inl;inc;xsd + + + + + Source Files + + + + + Header Files + + + \ No newline at end of file diff --git a/etc/sqlite/sqlite3-vc9.sln b/etc/sqlite/sqlite3-vc9.sln new file mode 100644 index 0000000..4206336 --- /dev/null +++ b/etc/sqlite/sqlite3-vc9.sln @@ -0,0 +1,26 @@ + +Microsoft Visual Studio Solution File, Format Version 10.00 +# Visual Studio 2008 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sqlite3", "sqlite3-vc9.vcproj", "{6AAE1E22-4BE0-4CB4-A94E-B908167D88C2}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Debug|x64 = Debug|x64 + Release|Win32 = Release|Win32 + Release|x64 = Release|x64 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {6AAE1E22-4BE0-4CB4-A94E-B908167D88C2}.Debug|Win32.ActiveCfg = Debug|Win32 + {6AAE1E22-4BE0-4CB4-A94E-B908167D88C2}.Debug|Win32.Build.0 = Debug|Win32 + {6AAE1E22-4BE0-4CB4-A94E-B908167D88C2}.Debug|x64.ActiveCfg = Debug|x64 + {6AAE1E22-4BE0-4CB4-A94E-B908167D88C2}.Debug|x64.Build.0 = Debug|x64 + {6AAE1E22-4BE0-4CB4-A94E-B908167D88C2}.Release|Win32.ActiveCfg = Release|Win32 + {6AAE1E22-4BE0-4CB4-A94E-B908167D88C2}.Release|Win32.Build.0 = Release|Win32 + {6AAE1E22-4BE0-4CB4-A94E-B908167D88C2}.Release|x64.ActiveCfg = Release|x64 + {6AAE1E22-4BE0-4CB4-A94E-B908167D88C2}.Release|x64.Build.0 = Release|x64 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/etc/sqlite/sqlite3-vc9.vcproj b/etc/sqlite/sqlite3-vc9.vcproj new file mode 100644 index 0000000..9a698b7 --- /dev/null +++ b/etc/sqlite/sqlite3-vc9.vcproj @@ -0,0 +1,367 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/makefile b/makefile index 6112879..3904ece 100644 --- a/makefile +++ b/makefile @@ -15,7 +15,8 @@ $(default): $(addprefix $(out_base)/,$(addsuffix /,$(dirs))) $(dist): export dirs := $(dirs) $(dist): export docs := GPLv2 LICENSE README NEWS version -$(dist): data_dist := INSTALL libodb-sqlite-vc9.sln libodb-sqlite-vc10.sln +$(dist): data_dist := INSTALL libodb-sqlite-vc9.sln libodb-sqlite-vc10.sln \ +$(subst $(src_base)/,,$(shell find $(src_base)/etc -type f)) $(dist): exec_dist := bootstrap $(dist): export extra_dist := $(data_dist) $(exec_dist) $(dist): export version = $(shell cat $(src_root)/version) -- cgit v1.1