diff options
author | Zhang Qiang <qiang.z.zhang@intel.com> | 2012-05-29 12:22:00 +0800 |
---|---|---|
committer | Zhang Qiang <qiang.z.zhang@intel.com> | 2012-05-29 12:22:00 +0800 |
commit | 02f0634ac29e19c68279e5544cac963e7f1203b8 (patch) | |
tree | b983472f94ef063cedf866d8ecfb55939171779d /build_windows | |
parent | e776056ea09ba0b6d9505ced6913c9190a12d632 (diff) | |
download | db4-master.tar.gz db4-master.tar.bz2 db4-master.zip |
Diffstat (limited to 'build_windows')
135 files changed, 22282 insertions, 0 deletions
diff --git a/build_windows/BDB_dotNet.sln b/build_windows/BDB_dotNet.sln new file mode 100644 index 0000000..9901061 --- /dev/null +++ b/build_windows/BDB_dotNet.sln @@ -0,0 +1,143 @@ +
+Microsoft Visual Studio Solution File, Format Version 9.00
+# Visual Studio 2005
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "db", "db.vcproj", "{FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "db_csharp", "db_csharp.vcproj", "{13DE550F-16FD-4AC2-9EC6-B1A18F41476F}"
+ ProjectSection(ProjectDependencies) = postProject
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ EndProjectSection
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "db_dotnet", "..\csharp\db_dotnet.csproj", "{4696FB1E-1E5F-40B9-BD8C-A54D3BDA00F6}"
+ ProjectSection(ProjectDependencies) = postProject
+ {13DE550F-16FD-4AC2-9EC6-B1A18F41476F} = {13DE550F-16FD-4AC2-9EC6-B1A18F41476F}
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ EndProjectSection
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ex_access", "..\examples_csharp\ex_access\ex_access.csproj", "{B7250534-4FB1-450D-865C-59231820EAB5}"
+ ProjectSection(ProjectDependencies) = postProject
+ {13DE550F-16FD-4AC2-9EC6-B1A18F41476F} = {13DE550F-16FD-4AC2-9EC6-B1A18F41476F}
+ {4696FB1E-1E5F-40B9-BD8C-A54D3BDA00F6} = {4696FB1E-1E5F-40B9-BD8C-A54D3BDA00F6}
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ EndProjectSection
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ex_btrec", "..\examples_csharp\ex_btrec\ex_btrec.csproj", "{657FB9CC-16ED-4BAE-97AD-1A359D133F25}"
+ ProjectSection(ProjectDependencies) = postProject
+ {13DE550F-16FD-4AC2-9EC6-B1A18F41476F} = {13DE550F-16FD-4AC2-9EC6-B1A18F41476F}
+ {4696FB1E-1E5F-40B9-BD8C-A54D3BDA00F6} = {4696FB1E-1E5F-40B9-BD8C-A54D3BDA00F6}
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ EndProjectSection
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ex_env", "..\examples_csharp\ex_env\ex_env.csproj", "{617FF132-0566-4F6D-932D-2A1BA3C6A93E}"
+ ProjectSection(ProjectDependencies) = postProject
+ {13DE550F-16FD-4AC2-9EC6-B1A18F41476F} = {13DE550F-16FD-4AC2-9EC6-B1A18F41476F}
+ {4696FB1E-1E5F-40B9-BD8C-A54D3BDA00F6} = {4696FB1E-1E5F-40B9-BD8C-A54D3BDA00F6}
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ EndProjectSection
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ex_sequence", "..\examples_csharp\ex_sequence\ex_sequence.csproj", "{DC306DCB-F42C-4038-91FA-B553FD37CB2E}"
+ ProjectSection(ProjectDependencies) = postProject
+ {13DE550F-16FD-4AC2-9EC6-B1A18F41476F} = {13DE550F-16FD-4AC2-9EC6-B1A18F41476F}
+ {4696FB1E-1E5F-40B9-BD8C-A54D3BDA00F6} = {4696FB1E-1E5F-40B9-BD8C-A54D3BDA00F6}
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ EndProjectSection
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ex_repquote", "..\examples_csharp\ex_repquote\ex_repquote.csproj", "{7BA3D41C-2B70-405E-BEDB-A5A72509D2ED}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotNetTest", "..\test\scr037\DotNetTest.csproj", "{08D940C7-AAF5-413A-95E3-58A46880DC4D}"
+ ProjectSection(ProjectDependencies) = postProject
+ {13DE550F-16FD-4AC2-9EC6-B1A18F41476F} = {13DE550F-16FD-4AC2-9EC6-B1A18F41476F}
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ EndProjectSection
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ex_txn", "..\examples_csharp\ex_txn\ex_txn.csproj", "{D3EEDB47-F622-4E8A-A218-076B49C269F1}"
+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
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}.Debug|Win32.ActiveCfg = Debug|Win32
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}.Debug|Win32.Build.0 = Debug|Win32
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}.Debug|x64.ActiveCfg = Debug|x64
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}.Debug|x64.Build.0 = Debug|x64
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}.Release|Win32.ActiveCfg = Release|Win32
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}.Release|Win32.Build.0 = Release|Win32
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}.Release|x64.ActiveCfg = Release|x64
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}.Release|x64.Build.0 = Release|x64
+ {13DE550F-16FD-4AC2-9EC6-B1A18F41476F}.Debug|Win32.ActiveCfg = Debug|Win32
+ {13DE550F-16FD-4AC2-9EC6-B1A18F41476F}.Debug|Win32.Build.0 = Debug|Win32
+ {13DE550F-16FD-4AC2-9EC6-B1A18F41476F}.Debug|x64.ActiveCfg = Debug|x64
+ {13DE550F-16FD-4AC2-9EC6-B1A18F41476F}.Debug|x64.Build.0 = Debug|x64
+ {13DE550F-16FD-4AC2-9EC6-B1A18F41476F}.Release|Win32.ActiveCfg = Release|Win32
+ {13DE550F-16FD-4AC2-9EC6-B1A18F41476F}.Release|Win32.Build.0 = Release|Win32
+ {13DE550F-16FD-4AC2-9EC6-B1A18F41476F}.Release|x64.ActiveCfg = Release|x64
+ {13DE550F-16FD-4AC2-9EC6-B1A18F41476F}.Release|x64.Build.0 = Release|x64
+ {4696FB1E-1E5F-40B9-BD8C-A54D3BDA00F6}.Debug|Win32.ActiveCfg = Debug|Any CPU
+ {4696FB1E-1E5F-40B9-BD8C-A54D3BDA00F6}.Debug|Win32.Build.0 = Debug|Any CPU
+ {4696FB1E-1E5F-40B9-BD8C-A54D3BDA00F6}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {4696FB1E-1E5F-40B9-BD8C-A54D3BDA00F6}.Debug|x64.Build.0 = Debug|Any CPU
+ {4696FB1E-1E5F-40B9-BD8C-A54D3BDA00F6}.Release|Win32.ActiveCfg = Release|Any CPU
+ {4696FB1E-1E5F-40B9-BD8C-A54D3BDA00F6}.Release|Win32.Build.0 = Release|Any CPU
+ {4696FB1E-1E5F-40B9-BD8C-A54D3BDA00F6}.Release|x64.ActiveCfg = Release|Any CPU
+ {4696FB1E-1E5F-40B9-BD8C-A54D3BDA00F6}.Release|x64.Build.0 = Release|Any CPU
+ {B7250534-4FB1-450D-865C-59231820EAB5}.Debug|Win32.ActiveCfg = Debug|Any CPU
+ {B7250534-4FB1-450D-865C-59231820EAB5}.Debug|Win32.Build.0 = Debug|Any CPU
+ {B7250534-4FB1-450D-865C-59231820EAB5}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {B7250534-4FB1-450D-865C-59231820EAB5}.Debug|x64.Build.0 = Debug|Any CPU
+ {B7250534-4FB1-450D-865C-59231820EAB5}.Release|Win32.ActiveCfg = Release|Any CPU
+ {B7250534-4FB1-450D-865C-59231820EAB5}.Release|Win32.Build.0 = Release|Any CPU
+ {B7250534-4FB1-450D-865C-59231820EAB5}.Release|x64.ActiveCfg = Release|Any CPU
+ {B7250534-4FB1-450D-865C-59231820EAB5}.Release|x64.Build.0 = Release|Any CPU
+ {657FB9CC-16ED-4BAE-97AD-1A359D133F25}.Debug|Win32.ActiveCfg = Debug|Any CPU
+ {657FB9CC-16ED-4BAE-97AD-1A359D133F25}.Debug|Win32.Build.0 = Debug|Any CPU
+ {657FB9CC-16ED-4BAE-97AD-1A359D133F25}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {657FB9CC-16ED-4BAE-97AD-1A359D133F25}.Debug|x64.Build.0 = Debug|Any CPU
+ {657FB9CC-16ED-4BAE-97AD-1A359D133F25}.Release|Win32.ActiveCfg = Release|Any CPU
+ {657FB9CC-16ED-4BAE-97AD-1A359D133F25}.Release|Win32.Build.0 = Release|Any CPU
+ {657FB9CC-16ED-4BAE-97AD-1A359D133F25}.Release|x64.ActiveCfg = Release|Any CPU
+ {657FB9CC-16ED-4BAE-97AD-1A359D133F25}.Release|x64.Build.0 = Release|Any CPU
+ {617FF132-0566-4F6D-932D-2A1BA3C6A93E}.Debug|Win32.ActiveCfg = Debug|Any CPU
+ {617FF132-0566-4F6D-932D-2A1BA3C6A93E}.Debug|Win32.Build.0 = Debug|Any CPU
+ {617FF132-0566-4F6D-932D-2A1BA3C6A93E}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {617FF132-0566-4F6D-932D-2A1BA3C6A93E}.Debug|x64.Build.0 = Debug|Any CPU
+ {617FF132-0566-4F6D-932D-2A1BA3C6A93E}.Release|Win32.ActiveCfg = Release|Any CPU
+ {617FF132-0566-4F6D-932D-2A1BA3C6A93E}.Release|Win32.Build.0 = Release|Any CPU
+ {617FF132-0566-4F6D-932D-2A1BA3C6A93E}.Release|x64.ActiveCfg = Release|Any CPU
+ {617FF132-0566-4F6D-932D-2A1BA3C6A93E}.Release|x64.Build.0 = Release|Any CPU
+ {DC306DCB-F42C-4038-91FA-B553FD37CB2E}.Debug|Win32.ActiveCfg = Debug|Any CPU
+ {DC306DCB-F42C-4038-91FA-B553FD37CB2E}.Debug|Win32.Build.0 = Debug|Any CPU
+ {DC306DCB-F42C-4038-91FA-B553FD37CB2E}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {DC306DCB-F42C-4038-91FA-B553FD37CB2E}.Debug|x64.Build.0 = Debug|Any CPU
+ {DC306DCB-F42C-4038-91FA-B553FD37CB2E}.Release|Win32.ActiveCfg = Release|Any CPU
+ {DC306DCB-F42C-4038-91FA-B553FD37CB2E}.Release|Win32.Build.0 = Release|Any CPU
+ {DC306DCB-F42C-4038-91FA-B553FD37CB2E}.Release|x64.ActiveCfg = Release|Any CPU
+ {DC306DCB-F42C-4038-91FA-B553FD37CB2E}.Release|x64.Build.0 = Release|Any CPU
+ {7BA3D41C-2B70-405E-BEDB-A5A72509D2ED}.Debug|Win32.ActiveCfg = Debug|Any CPU
+ {7BA3D41C-2B70-405E-BEDB-A5A72509D2ED}.Debug|Win32.Build.0 = Debug|Any CPU
+ {7BA3D41C-2B70-405E-BEDB-A5A72509D2ED}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {7BA3D41C-2B70-405E-BEDB-A5A72509D2ED}.Debug|x64.Build.0 = Debug|Any CPU
+ {7BA3D41C-2B70-405E-BEDB-A5A72509D2ED}.Release|Win32.ActiveCfg = Release|Any CPU
+ {7BA3D41C-2B70-405E-BEDB-A5A72509D2ED}.Release|Win32.Build.0 = Release|Any CPU
+ {7BA3D41C-2B70-405E-BEDB-A5A72509D2ED}.Release|x64.ActiveCfg = Release|Any CPU
+ {7BA3D41C-2B70-405E-BEDB-A5A72509D2ED}.Release|x64.Build.0 = Release|Any CPU
+ {08D940C7-AAF5-413A-95E3-58A46880DC4D}.Debug|Win32.ActiveCfg = Debug|Any CPU
+ {08D940C7-AAF5-413A-95E3-58A46880DC4D}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {08D940C7-AAF5-413A-95E3-58A46880DC4D}.Release|Win32.ActiveCfg = Release|Any CPU
+ {08D940C7-AAF5-413A-95E3-58A46880DC4D}.Release|x64.ActiveCfg = Release|Any CPU
+ {D3EEDB47-F622-4E8A-A218-076B49C269F1}.Debug|Win32.ActiveCfg = Debug|Any CPU
+ {D3EEDB47-F622-4E8A-A218-076B49C269F1}.Debug|Win32.Build.0 = Debug|Any CPU
+ {D3EEDB47-F622-4E8A-A218-076B49C269F1}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {D3EEDB47-F622-4E8A-A218-076B49C269F1}.Debug|x64.Build.0 = Debug|Any CPU
+ {D3EEDB47-F622-4E8A-A218-076B49C269F1}.Release|Win32.ActiveCfg = Release|Any CPU
+ {D3EEDB47-F622-4E8A-A218-076B49C269F1}.Release|Win32.Build.0 = Release|Any CPU
+ {D3EEDB47-F622-4E8A-A218-076B49C269F1}.Release|x64.ActiveCfg = Release|Any CPU
+ {D3EEDB47-F622-4E8A-A218-076B49C269F1}.Release|x64.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/build_windows/Berkeley_DB.dsw b/build_windows/Berkeley_DB.dsw new file mode 100644 index 0000000..2423ecb --- /dev/null +++ b/build_windows/Berkeley_DB.dsw @@ -0,0 +1,833 @@ +Microsoft Developer Studio Workspace File, Format Version 6.00
+# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
+
+###############################################################################
+
+Project: "build_all"=.\build_all.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+ Begin Project Dependency
+ Project_Dep_Name db_archive
+ End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name db_checkpoint
+ End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name db_deadlock
+ End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name db_dll
+ End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name db_dump
+ End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name db_hotbackup
+ End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name db_load
+ End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name db_printlog
+ End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name db_recover
+ End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name db_upgrade
+ End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name db_verify
+ End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name ex_access
+ End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name ex_btrec
+ End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name ex_env
+ End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name ex_lock
+ End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name ex_mpool
+ End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name ex_sequence
+ End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name ex_tpcb
+ End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name example_database_load
+ End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name example_database_read
+ End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name excxx_access
+ End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name excxx_btrec
+ End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name excxx_env
+ End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name excxx_lock
+ End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name excxx_mpool
+ End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name excxx_repquote
+ End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name excxx_sequence
+ End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name excxx_tpcb
+ End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name excxx_example_database_load
+ End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name excxx_example_database_read
+ End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name ex_rep_base
+ End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name ex_rep_mgr
+ End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name ex_txnguide
+ End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name ex_txnguide_inmem
+ End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name excxx_txnguide
+ End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name excxx_txnguide_inmem
+ End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name db_stat
+ End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name ex_stream
+ End Project Dependency
+}}}
+
+###############################################################################
+
+Project: "db_archive"=.\db_archive.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+ Begin Project Dependency
+ Project_Dep_Name db_dll
+ End Project Dependency
+}}}
+
+###############################################################################
+
+Project: "db_checkpoint"=.\db_checkpoint.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+ Begin Project Dependency
+ Project_Dep_Name db_dll
+ End Project Dependency
+}}}
+
+###############################################################################
+
+Project: "db_deadlock"=.\db_deadlock.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+ Begin Project Dependency
+ Project_Dep_Name db_dll
+ End Project Dependency
+}}}
+
+###############################################################################
+
+Project: "db_dll"=.\db_dll.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+}}}
+
+###############################################################################
+
+Project: "db_dump"=.\db_dump.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+ Begin Project Dependency
+ Project_Dep_Name db_dll
+ End Project Dependency
+}}}
+
+###############################################################################
+
+Project: "db_hotbackup"=.\db_hotbackup.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+ Begin Project Dependency
+ Project_Dep_Name db_dll
+ End Project Dependency
+}}}
+
+###############################################################################
+
+Project: "db_java"=.\db_java.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+ Begin Project Dependency
+ Project_Dep_Name db_dll
+ End Project Dependency
+}}}
+
+###############################################################################
+
+Project: "db_load"=.\db_load.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+ Begin Project Dependency
+ Project_Dep_Name db_dll
+ End Project Dependency
+}}}
+
+###############################################################################
+
+Project: "db_printlog"=.\db_printlog.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+ Begin Project Dependency
+ Project_Dep_Name db_dll
+ End Project Dependency
+}}}
+
+###############################################################################
+
+Project: "db_recover"=.\db_recover.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+ Begin Project Dependency
+ Project_Dep_Name db_dll
+ End Project Dependency
+}}}
+
+###############################################################################
+
+Project: "db_small"=.\db_small.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+}}}
+
+###############################################################################
+
+Project: "db_stat"=.\db_stat.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+ Begin Project Dependency
+ Project_Dep_Name db_dll
+ End Project Dependency
+}}}
+
+###############################################################################
+
+Project: "db_static"=.\db_static.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+}}}
+
+###############################################################################
+
+Project: "db_tcl"=.\db_tcl.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+ Begin Project Dependency
+ Project_Dep_Name db_dll
+ End Project Dependency
+}}}
+
+###############################################################################
+
+Project: "db_test"=.\db_test.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+ Begin Project Dependency
+ Project_Dep_Name build_all
+ End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name db_tcl
+ End Project Dependency
+}}}
+
+###############################################################################
+
+Project: "db_upgrade"=.\db_upgrade.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+ Begin Project Dependency
+ Project_Dep_Name db_dll
+ End Project Dependency
+}}}
+
+###############################################################################
+
+Project: "db_verify"=.\db_verify.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+ Begin Project Dependency
+ Project_Dep_Name db_dll
+ End Project Dependency
+}}}
+
+###############################################################################
+
+Project: "ex_access"=.\ex_access.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+ Begin Project Dependency
+ Project_Dep_Name db_dll
+ End Project Dependency
+}}}
+
+###############################################################################
+
+Project: "ex_btrec"=.\ex_btrec.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+ Begin Project Dependency
+ Project_Dep_Name db_dll
+ End Project Dependency
+}}}
+
+###############################################################################
+
+Project: "ex_csvcode"=.\ex_csvcode.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+ Begin Project Dependency
+ Project_Dep_Name db_dll
+ End Project Dependency
+}}}
+
+###############################################################################
+
+Project: "ex_csvload"=.\ex_csvload.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+ Begin Project Dependency
+ Project_Dep_Name db_dll
+ End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name ex_csvcode
+ End Project Dependency
+}}}
+
+###############################################################################
+
+Project: "ex_csvquery"=.\ex_csvquery.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+ Begin Project Dependency
+ Project_Dep_Name db_dll
+ End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name ex_csvcode
+ End Project Dependency
+}}}
+
+###############################################################################
+
+Project: "ex_env"=.\ex_env.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+ Begin Project Dependency
+ Project_Dep_Name db_dll
+ End Project Dependency
+}}}
+
+###############################################################################
+
+Project: "ex_lock"=.\ex_lock.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+ Begin Project Dependency
+ Project_Dep_Name db_dll
+ End Project Dependency
+}}}
+
+###############################################################################
+
+Project: "ex_mpool"=.\ex_mpool.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+ Begin Project Dependency
+ Project_Dep_Name db_dll
+ End Project Dependency
+}}}
+
+###############################################################################
+
+Project: "ex_rep_base"=.\ex_rep_base.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+ Begin Project Dependency
+ Project_Dep_Name db_dll
+ End Project Dependency
+}}}
+
+###############################################################################
+
+Project: "ex_rep_mgr"=.\ex_rep_mgr.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+ Begin Project Dependency
+ Project_Dep_Name db_dll
+ End Project Dependency
+}}}
+
+###############################################################################
+
+Project: "ex_sequence"=.\ex_sequence.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+ Begin Project Dependency
+ Project_Dep_Name db_dll
+ End Project Dependency
+}}}
+
+###############################################################################
+
+Project: "ex_stream"=.\ex_stream.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+ Begin Project Dependency
+ Project_Dep_Name db_dll
+ End Project Dependency
+}}}
+
+###############################################################################
+
+Project: "ex_tpcb"=.\ex_tpcb.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+ Begin Project Dependency
+ Project_Dep_Name db_dll
+ End Project Dependency
+}}}
+
+###############################################################################
+
+Project: "ex_txnguide"=.\ex_txnguide.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+ Begin Project Dependency
+ Project_Dep_Name db_dll
+ End Project Dependency
+}}}
+
+###############################################################################
+
+Project: "ex_txnguide_inmem"=.\ex_txnguide_inmem.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+ Begin Project Dependency
+ Project_Dep_Name db_dll
+ End Project Dependency
+}}}
+
+###############################################################################
+
+Project: "example_database_load"=.\example_database_load.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+ Begin Project Dependency
+ Project_Dep_Name db_dll
+ End Project Dependency
+}}}
+
+###############################################################################
+
+Project: "example_database_read"=.\example_database_read.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+ Begin Project Dependency
+ Project_Dep_Name db_dll
+ End Project Dependency
+}}}
+
+###############################################################################
+
+Project: "excxx_access"=.\excxx_access.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+ Begin Project Dependency
+ Project_Dep_Name db_dll
+ End Project Dependency
+}}}
+
+###############################################################################
+
+Project: "excxx_btrec"=.\excxx_btrec.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+ Begin Project Dependency
+ Project_Dep_Name db_dll
+ End Project Dependency
+}}}
+
+###############################################################################
+
+Project: "excxx_env"=.\excxx_env.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+ Begin Project Dependency
+ Project_Dep_Name db_dll
+ End Project Dependency
+}}}
+
+###############################################################################
+
+Project: "excxx_example_database_load"=.\excxx_example_database_load.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+ Begin Project Dependency
+ Project_Dep_Name db_dll
+ End Project Dependency
+}}}
+
+###############################################################################
+
+Project: "excxx_example_database_read"=.\excxx_example_database_read.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+ Begin Project Dependency
+ Project_Dep_Name db_dll
+ End Project Dependency
+}}}
+
+###############################################################################
+
+Project: "excxx_lock"=.\excxx_lock.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+ Begin Project Dependency
+ Project_Dep_Name db_dll
+ End Project Dependency
+}}}
+
+###############################################################################
+
+Project: "excxx_mpool"=.\excxx_mpool.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+ Begin Project Dependency
+ Project_Dep_Name db_dll
+ End Project Dependency
+}}}
+
+###############################################################################
+
+Project: "excxx_repquote"=.\excxx_repquote.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+ Begin Project Dependency
+ Project_Dep_Name db_dll
+ End Project Dependency
+}}}
+
+###############################################################################
+
+Project: "excxx_sequence"=.\excxx_sequence.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+ Begin Project Dependency
+ Project_Dep_Name db_dll
+ End Project Dependency
+}}}
+
+###############################################################################
+
+Project: "excxx_tpcb"=.\excxx_tpcb.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+ Begin Project Dependency
+ Project_Dep_Name db_dll
+ End Project Dependency
+}}}
+
+###############################################################################
+
+Project: "excxx_txnguide"=.\excxx_txnguide.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+ Begin Project Dependency
+ Project_Dep_Name db_dll
+ End Project Dependency
+}}}
+
+###############################################################################
+
+Project: "excxx_txnguide_inmem"=.\excxx_txnguide_inmem.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+ Begin Project Dependency
+ Project_Dep_Name db_dll
+ End Project Dependency
+}}}
+
+###############################################################################
+
+Global:
+
+Package=<5>
+{{{
+}}}
+
+Package=<3>
+{{{
+}}}
+
+###############################################################################
+
diff --git a/build_windows/Berkeley_DB.sln b/build_windows/Berkeley_DB.sln new file mode 100644 index 0000000..198d0d8 --- /dev/null +++ b/build_windows/Berkeley_DB.sln @@ -0,0 +1,689 @@ +Microsoft Visual Studio Solution File, Format Version 9.00
+# Visual Studio 2005
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "db", "db.vcproj", "{FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "db_archive", "db_archive.vcproj", "{56056344-53A1-4FA6-B20B-862C0BA68953}"
+ ProjectSection(ProjectDependencies) = postProject
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "db_checkpoint", "db_checkpoint.vcproj", "{A3BE0163-1E6C-4235-9B6B-3A36ABB5E285}"
+ ProjectSection(ProjectDependencies) = postProject
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "db_deadlock", "db_deadlock.vcproj", "{CD0FD995-B4D1-4907-987B-99CF3304E7E0}"
+ ProjectSection(ProjectDependencies) = postProject
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "db_dump", "db_dump.vcproj", "{DB067D2C-7163-428B-AAF8-642316AB173B}"
+ ProjectSection(ProjectDependencies) = postProject
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "db_hotbackup", "db_hotbackup.vcproj", "{67C0DABC-353A-491F-9A77-8E2E601ED52B}"
+ ProjectSection(ProjectDependencies) = postProject
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "db_java", "db_java.vcproj", "{0052E828-5F10-4973-8729-50B0C5598702}"
+ ProjectSection(ProjectDependencies) = postProject
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "db_load", "db_load.vcproj", "{7640133F-4AB8-42DA-ADB5-95F21447F7D5}"
+ ProjectSection(ProjectDependencies) = postProject
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "db_printlog", "db_printlog.vcproj", "{D505F51B-2B92-4850-A08F-9113D947FF4B}"
+ ProjectSection(ProjectDependencies) = postProject
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "db_recover", "db_recover.vcproj", "{9E03FD51-E387-4EEF-9EEA-E71707A56212}"
+ ProjectSection(ProjectDependencies) = postProject
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "db_stat", "db_stat.vcproj", "{19D3A4CB-1C12-43D4-A94B-D2B387AD43E5}"
+ ProjectSection(ProjectDependencies) = postProject
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "db_static", "db_static.vcproj", "{671539AA-D9A6-4B7B-8044-61B511D6F432}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "db_tcl", "db_tcl.vcproj", "{7F3D3EEE-2ABB-4F0F-A2A7-DE88C1989BE1}"
+ ProjectSection(ProjectDependencies) = postProject
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "db_test", "db_test.vcproj", "{B17B933F-6F75-4095-BE51-12666358163A}"
+ ProjectSection(ProjectDependencies) = postProject
+ {7F3D3EEE-2ABB-4F0F-A2A7-DE88C1989BE1} = {7F3D3EEE-2ABB-4F0F-A2A7-DE88C1989BE1}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "db_upgrade", "db_upgrade.vcproj", "{5F4D66DB-8D75-43D4-A1BB-60A01BC6B32F}"
+ ProjectSection(ProjectDependencies) = postProject
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "db_verify", "db_verify.vcproj", "{12E118CA-CAAE-4F54-AE81-8D9981AA0635}"
+ ProjectSection(ProjectDependencies) = postProject
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ex_access", "ex_access.vcproj", "{75DF98AA-25DF-4183-A022-024CF918480D}"
+ ProjectSection(ProjectDependencies) = postProject
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ex_btrec", "ex_btrec.vcproj", "{5DD66F4B-EB4A-4453-BC31-3FF7B2240634}"
+ ProjectSection(ProjectDependencies) = postProject
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ex_csvcode", "ex_csvcode.vcproj", "{54E6A58D-561D-467E-B378-6BA2EE138880}"
+ ProjectSection(ProjectDependencies) = postProject
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ex_csvload", "ex_csvload.vcproj", "{CEC6CC37-88A3-4573-8957-6BA0CEF94B3D}"
+ ProjectSection(ProjectDependencies) = postProject
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ {54E6A58D-561D-467E-B378-6BA2EE138880} = {54E6A58D-561D-467E-B378-6BA2EE138880}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ex_csvquery", "ex_csvquery.vcproj", "{438BEA9C-A9DF-4EAE-A9F7-A5F35CAF3FB9}"
+ ProjectSection(ProjectDependencies) = postProject
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ {54E6A58D-561D-467E-B378-6BA2EE138880} = {54E6A58D-561D-467E-B378-6BA2EE138880}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ex_env", "ex_env.vcproj", "{443530F5-CCC3-40C8-A89B-AEF6C14D3A41}"
+ ProjectSection(ProjectDependencies) = postProject
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ex_lock", "ex_lock.vcproj", "{B254668F-C28F-4B14-92A5-3BF4B83D02EE}"
+ ProjectSection(ProjectDependencies) = postProject
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ex_mpool", "ex_mpool.vcproj", "{0F6925F0-6243-47E0-A0FF-05F70B15FC2C}"
+ ProjectSection(ProjectDependencies) = postProject
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ex_rep_base", "ex_rep_base.vcproj", "{BDBF0EE2-1551-47A4-ACD0-B22B05DF4D77}"
+ ProjectSection(ProjectDependencies) = postProject
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ex_rep_mgr", "ex_rep_mgr.vcproj", "{365A89B8-B5A5-4EC6-990B-08254028E1A6}"
+ ProjectSection(ProjectDependencies) = postProject
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ex_sequence", "ex_sequence.vcproj", "{4E43DB5C-D050-4003-A4FF-6294D9F498DD}"
+ ProjectSection(ProjectDependencies) = postProject
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ex_tpcb", "ex_tpcb.vcproj", "{8632C58A-CC00-4116-B61A-CBE0F2C11CAD}"
+ ProjectSection(ProjectDependencies) = postProject
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ex_txnguide", "ex_txnguide.vcproj", "{80B961C4-D1D6-48E9-8965-CFCE69BF85E2}"
+ ProjectSection(ProjectDependencies) = postProject
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ex_txnguide_inmem", "ex_txnguide_inmem.vcproj", "{925BD215-6680-4FFF-8345-0741E4627B1F}"
+ ProjectSection(ProjectDependencies) = postProject
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "example_database_load", "example_database_load.vcproj", "{56C01012-66D7-4295-B382-F3815366DB26}"
+ ProjectSection(ProjectDependencies) = postProject
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "example_database_read", "example_database_read.vcproj", "{0D35F7E6-425B-4D09-B805-B6D47A9B4AB3}"
+ ProjectSection(ProjectDependencies) = postProject
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "excxx_access", "excxx_access.vcproj", "{2575F0DD-DAA5-4AE5-AC81-7C47507AD279}"
+ ProjectSection(ProjectDependencies) = postProject
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "excxx_btrec", "excxx_btrec.vcproj", "{38C080B1-7003-48DF-820D-06348BC87B1B}"
+ ProjectSection(ProjectDependencies) = postProject
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "excxx_env", "excxx_env.vcproj", "{E790C029-341D-489B-B987-D35947AD78C3}"
+ ProjectSection(ProjectDependencies) = postProject
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "excxx_example_database_load", "excxx_example_database_load.vcproj", "{A4F42222-FE02-431D-A046-B049E516DEB7}"
+ ProjectSection(ProjectDependencies) = postProject
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "excxx_example_database_read", "excxx_example_database_read.vcproj", "{81C97B03-193C-4021-A78E-F0A2A2AFAA87}"
+ ProjectSection(ProjectDependencies) = postProject
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "excxx_lock", "excxx_lock.vcproj", "{19393F5D-DBBE-450C-9217-EA0C7503E277}"
+ ProjectSection(ProjectDependencies) = postProject
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "excxx_mpool", "excxx_mpool.vcproj", "{DAEDD51B-0FED-4779-A99A-C09E4D2ACB5E}"
+ ProjectSection(ProjectDependencies) = postProject
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "excxx_repquote", "excxx_repquote.vcproj", "{75046027-E052-4E8B-AE87-E27DE9C2BC21}"
+ ProjectSection(ProjectDependencies) = postProject
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "excxx_sequence", "excxx_sequence.vcproj", "{D90AE774-03EF-4945-A3C3-AC76BF90825F}"
+ ProjectSection(ProjectDependencies) = postProject
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "excxx_tpcb", "excxx_tpcb.vcproj", "{77BD278B-7927-4C88-9198-5067C549398D}"
+ ProjectSection(ProjectDependencies) = postProject
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "excxx_txnguide", "excxx_txnguide.vcproj", "{2E9B94E9-024C-4255-9104-BA81FF7F2591}"
+ ProjectSection(ProjectDependencies) = postProject
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "excxx_txnguide_inmem", "excxx_txnguide_inmem.vcproj", "{009413E4-EFDF-42FB-8631-931CFAEAAB72}"
+ ProjectSection(ProjectDependencies) = postProject
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "php_db4", "php_db4.vcproj", "{44AFD8B5-687F-4B9D-B163-1F381CC11794}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "db_stl", "db_stl.vcproj", "{284CC197-0C66-11DE-8C30-0800200C9A66}"
+ ProjectSection(ProjectDependencies) = postProject
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "exstl_access", "exstl_access.vcproj", "{284CC190-0C66-11DE-8C30-0800200C9A66}"
+ ProjectSection(ProjectDependencies) = postProject
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ {284CC197-0C66-11DE-8C30-0800200C9A66} = {284CC197-0C66-11DE-8C30-0800200C9A66}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "exstl_repquote", "exstl_repquote.vcproj", "{284CC191-0C66-11DE-8C30-0800200C9A66}"
+ ProjectSection(ProjectDependencies) = postProject
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ {284CC197-0C66-11DE-8C30-0800200C9A66} = {284CC197-0C66-11DE-8C30-0800200C9A66}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "exstl_tpcb", "exstl_tpcb.vcproj", "{284CC192-0C66-11DE-8C30-0800200C9A66}"
+ ProjectSection(ProjectDependencies) = postProject
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ {284CC197-0C66-11DE-8C30-0800200C9A66} = {284CC197-0C66-11DE-8C30-0800200C9A66}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "exstl_txnguide", "exstl_txnguide.vcproj", "{284CC193-0C66-11DE-8C30-0800200C9A66}"
+ ProjectSection(ProjectDependencies) = postProject
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ {284CC197-0C66-11DE-8C30-0800200C9A66} = {284CC197-0C66-11DE-8C30-0800200C9A66}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "stl_test", "stl_test.vcproj", "{284CC194-0C66-11DE-8C30-0800200C9A66}"
+ ProjectSection(ProjectDependencies) = postProject
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ {284CC197-0C66-11DE-8C30-0800200C9A66} = {284CC197-0C66-11DE-8C30-0800200C9A66}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "db_stl_static", "db_stl_static.vcproj", "{284CC198-0C66-11DE-8C30-0800200C9A66}"
+ ProjectSection(ProjectDependencies) = postProject
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ex_stream", "ex_stream.vcproj", "{8F3D872E-C7F5-4C0D-9974-0F0CB9DAA527}"
+ ProjectSection(ProjectDependencies) = postProject
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "db_sql", "db_sql.vcproj", "{738EE880-0E33-11DE-8C30-0800200C9A66}"
+ ProjectSection(ProjectDependencies) = postProject
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7} = {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "db_small_static", "db_small_static.vcproj", "{FE85C600-38A6-11DE-8A39-0800200C9A66}"
+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
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}.Debug|Win32.ActiveCfg = Debug|Win32
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}.Debug|Win32.Build.0 = Debug|Win32
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}.Debug|x64.ActiveCfg = Debug|x64
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}.Debug|x64.Build.0 = Debug|x64
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}.Release|Win32.ActiveCfg = Release|Win32
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}.Release|Win32.Build.0 = Release|Win32
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}.Release|x64.ActiveCfg = Release|x64
+ {FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}.Release|x64.Build.0 = Release|x64
+ {56056344-53A1-4FA6-B20B-862C0BA68953}.Debug|Win32.ActiveCfg = Debug|Win32
+ {56056344-53A1-4FA6-B20B-862C0BA68953}.Debug|Win32.Build.0 = Debug|Win32
+ {56056344-53A1-4FA6-B20B-862C0BA68953}.Debug|x64.ActiveCfg = Debug|x64
+ {56056344-53A1-4FA6-B20B-862C0BA68953}.Debug|x64.Build.0 = Debug|x64
+ {56056344-53A1-4FA6-B20B-862C0BA68953}.Release|Win32.ActiveCfg = Release|Win32
+ {56056344-53A1-4FA6-B20B-862C0BA68953}.Release|Win32.Build.0 = Release|Win32
+ {56056344-53A1-4FA6-B20B-862C0BA68953}.Release|x64.ActiveCfg = Release|x64
+ {56056344-53A1-4FA6-B20B-862C0BA68953}.Release|x64.Build.0 = Release|x64
+ {A3BE0163-1E6C-4235-9B6B-3A36ABB5E285}.Debug|Win32.ActiveCfg = Debug|Win32
+ {A3BE0163-1E6C-4235-9B6B-3A36ABB5E285}.Debug|Win32.Build.0 = Debug|Win32
+ {A3BE0163-1E6C-4235-9B6B-3A36ABB5E285}.Debug|x64.ActiveCfg = Debug|x64
+ {A3BE0163-1E6C-4235-9B6B-3A36ABB5E285}.Debug|x64.Build.0 = Debug|x64
+ {A3BE0163-1E6C-4235-9B6B-3A36ABB5E285}.Release|Win32.ActiveCfg = Release|Win32
+ {A3BE0163-1E6C-4235-9B6B-3A36ABB5E285}.Release|Win32.Build.0 = Release|Win32
+ {A3BE0163-1E6C-4235-9B6B-3A36ABB5E285}.Release|x64.ActiveCfg = Release|x64
+ {A3BE0163-1E6C-4235-9B6B-3A36ABB5E285}.Release|x64.Build.0 = Release|x64
+ {CD0FD995-B4D1-4907-987B-99CF3304E7E0}.Debug|Win32.ActiveCfg = Debug|Win32
+ {CD0FD995-B4D1-4907-987B-99CF3304E7E0}.Debug|Win32.Build.0 = Debug|Win32
+ {CD0FD995-B4D1-4907-987B-99CF3304E7E0}.Debug|x64.ActiveCfg = Debug|x64
+ {CD0FD995-B4D1-4907-987B-99CF3304E7E0}.Debug|x64.Build.0 = Debug|x64
+ {CD0FD995-B4D1-4907-987B-99CF3304E7E0}.Release|Win32.ActiveCfg = Release|Win32
+ {CD0FD995-B4D1-4907-987B-99CF3304E7E0}.Release|Win32.Build.0 = Release|Win32
+ {CD0FD995-B4D1-4907-987B-99CF3304E7E0}.Release|x64.ActiveCfg = Release|x64
+ {CD0FD995-B4D1-4907-987B-99CF3304E7E0}.Release|x64.Build.0 = Release|x64
+ {DB067D2C-7163-428B-AAF8-642316AB173B}.Debug|Win32.ActiveCfg = Debug|Win32
+ {DB067D2C-7163-428B-AAF8-642316AB173B}.Debug|Win32.Build.0 = Debug|Win32
+ {DB067D2C-7163-428B-AAF8-642316AB173B}.Debug|x64.ActiveCfg = Debug|x64
+ {DB067D2C-7163-428B-AAF8-642316AB173B}.Debug|x64.Build.0 = Debug|x64
+ {DB067D2C-7163-428B-AAF8-642316AB173B}.Release|Win32.ActiveCfg = Release|Win32
+ {DB067D2C-7163-428B-AAF8-642316AB173B}.Release|Win32.Build.0 = Release|Win32
+ {DB067D2C-7163-428B-AAF8-642316AB173B}.Release|x64.ActiveCfg = Release|x64
+ {DB067D2C-7163-428B-AAF8-642316AB173B}.Release|x64.Build.0 = Release|x64
+ {67C0DABC-353A-491F-9A77-8E2E601ED52B}.Debug|Win32.ActiveCfg = Debug|Win32
+ {67C0DABC-353A-491F-9A77-8E2E601ED52B}.Debug|Win32.Build.0 = Debug|Win32
+ {67C0DABC-353A-491F-9A77-8E2E601ED52B}.Debug|x64.ActiveCfg = Debug|x64
+ {67C0DABC-353A-491F-9A77-8E2E601ED52B}.Debug|x64.Build.0 = Debug|x64
+ {67C0DABC-353A-491F-9A77-8E2E601ED52B}.Release|Win32.ActiveCfg = Release|Win32
+ {67C0DABC-353A-491F-9A77-8E2E601ED52B}.Release|Win32.Build.0 = Release|Win32
+ {67C0DABC-353A-491F-9A77-8E2E601ED52B}.Release|x64.ActiveCfg = Release|x64
+ {67C0DABC-353A-491F-9A77-8E2E601ED52B}.Release|x64.Build.0 = Release|x64
+ {0052E828-5F10-4973-8729-50B0C5598702}.Debug|Win32.ActiveCfg = Debug|Win32
+ {0052E828-5F10-4973-8729-50B0C5598702}.Debug|x64.ActiveCfg = Debug|x64
+ {0052E828-5F10-4973-8729-50B0C5598702}.Release|Win32.ActiveCfg = Release|Win32
+ {0052E828-5F10-4973-8729-50B0C5598702}.Release|x64.ActiveCfg = Release|x64
+ {7640133F-4AB8-42DA-ADB5-95F21447F7D5}.Debug|Win32.ActiveCfg = Debug|Win32
+ {7640133F-4AB8-42DA-ADB5-95F21447F7D5}.Debug|Win32.Build.0 = Debug|Win32
+ {7640133F-4AB8-42DA-ADB5-95F21447F7D5}.Debug|x64.ActiveCfg = Debug|x64
+ {7640133F-4AB8-42DA-ADB5-95F21447F7D5}.Debug|x64.Build.0 = Debug|x64
+ {7640133F-4AB8-42DA-ADB5-95F21447F7D5}.Release|Win32.ActiveCfg = Release|Win32
+ {7640133F-4AB8-42DA-ADB5-95F21447F7D5}.Release|Win32.Build.0 = Release|Win32
+ {7640133F-4AB8-42DA-ADB5-95F21447F7D5}.Release|x64.ActiveCfg = Release|x64
+ {7640133F-4AB8-42DA-ADB5-95F21447F7D5}.Release|x64.Build.0 = Release|x64
+ {D505F51B-2B92-4850-A08F-9113D947FF4B}.Debug|Win32.ActiveCfg = Debug|Win32
+ {D505F51B-2B92-4850-A08F-9113D947FF4B}.Debug|Win32.Build.0 = Debug|Win32
+ {D505F51B-2B92-4850-A08F-9113D947FF4B}.Debug|x64.ActiveCfg = Debug|x64
+ {D505F51B-2B92-4850-A08F-9113D947FF4B}.Debug|x64.Build.0 = Debug|x64
+ {D505F51B-2B92-4850-A08F-9113D947FF4B}.Release|Win32.ActiveCfg = Release|Win32
+ {D505F51B-2B92-4850-A08F-9113D947FF4B}.Release|Win32.Build.0 = Release|Win32
+ {D505F51B-2B92-4850-A08F-9113D947FF4B}.Release|x64.ActiveCfg = Release|x64
+ {D505F51B-2B92-4850-A08F-9113D947FF4B}.Release|x64.Build.0 = Release|x64
+ {9E03FD51-E387-4EEF-9EEA-E71707A56212}.Debug|Win32.ActiveCfg = Debug|Win32
+ {9E03FD51-E387-4EEF-9EEA-E71707A56212}.Debug|Win32.Build.0 = Debug|Win32
+ {9E03FD51-E387-4EEF-9EEA-E71707A56212}.Debug|x64.ActiveCfg = Debug|x64
+ {9E03FD51-E387-4EEF-9EEA-E71707A56212}.Debug|x64.Build.0 = Debug|x64
+ {9E03FD51-E387-4EEF-9EEA-E71707A56212}.Release|Win32.ActiveCfg = Release|Win32
+ {9E03FD51-E387-4EEF-9EEA-E71707A56212}.Release|Win32.Build.0 = Release|Win32
+ {9E03FD51-E387-4EEF-9EEA-E71707A56212}.Release|x64.ActiveCfg = Release|x64
+ {9E03FD51-E387-4EEF-9EEA-E71707A56212}.Release|x64.Build.0 = Release|x64
+ {19D3A4CB-1C12-43D4-A94B-D2B387AD43E5}.Debug|Win32.ActiveCfg = Debug|Win32
+ {19D3A4CB-1C12-43D4-A94B-D2B387AD43E5}.Debug|Win32.Build.0 = Debug|Win32
+ {19D3A4CB-1C12-43D4-A94B-D2B387AD43E5}.Debug|x64.ActiveCfg = Debug|x64
+ {19D3A4CB-1C12-43D4-A94B-D2B387AD43E5}.Debug|x64.Build.0 = Debug|x64
+ {19D3A4CB-1C12-43D4-A94B-D2B387AD43E5}.Release|Win32.ActiveCfg = Release|Win32
+ {19D3A4CB-1C12-43D4-A94B-D2B387AD43E5}.Release|Win32.Build.0 = Release|Win32
+ {19D3A4CB-1C12-43D4-A94B-D2B387AD43E5}.Release|x64.ActiveCfg = Release|x64
+ {19D3A4CB-1C12-43D4-A94B-D2B387AD43E5}.Release|x64.Build.0 = Release|x64
+ {671539AA-D9A6-4B7B-8044-61B511D6F432}.Debug|Win32.ActiveCfg = Debug|Win32
+ {671539AA-D9A6-4B7B-8044-61B511D6F432}.Debug|x64.ActiveCfg = Debug|x64
+ {671539AA-D9A6-4B7B-8044-61B511D6F432}.Release|Win32.ActiveCfg = Release|Win32
+ {671539AA-D9A6-4B7B-8044-61B511D6F432}.Release|x64.ActiveCfg = Release|x64
+ {7F3D3EEE-2ABB-4F0F-A2A7-DE88C1989BE1}.Debug|Win32.ActiveCfg = Debug|Win32
+ {7F3D3EEE-2ABB-4F0F-A2A7-DE88C1989BE1}.Debug|x64.ActiveCfg = Debug|x64
+ {7F3D3EEE-2ABB-4F0F-A2A7-DE88C1989BE1}.Release|Win32.ActiveCfg = Release|Win32
+ {7F3D3EEE-2ABB-4F0F-A2A7-DE88C1989BE1}.Release|x64.ActiveCfg = Release|x64
+ {B17B933F-6F75-4095-BE51-12666358163A}.Debug|Win32.ActiveCfg = Debug|Win32
+ {B17B933F-6F75-4095-BE51-12666358163A}.Debug|x64.ActiveCfg = Debug|x64
+ {B17B933F-6F75-4095-BE51-12666358163A}.Release|Win32.ActiveCfg = Release|Win32
+ {B17B933F-6F75-4095-BE51-12666358163A}.Release|x64.ActiveCfg = Release|x64
+ {5F4D66DB-8D75-43D4-A1BB-60A01BC6B32F}.Debug|Win32.ActiveCfg = Debug|Win32
+ {5F4D66DB-8D75-43D4-A1BB-60A01BC6B32F}.Debug|Win32.Build.0 = Debug|Win32
+ {5F4D66DB-8D75-43D4-A1BB-60A01BC6B32F}.Debug|x64.ActiveCfg = Debug|x64
+ {5F4D66DB-8D75-43D4-A1BB-60A01BC6B32F}.Debug|x64.Build.0 = Debug|x64
+ {5F4D66DB-8D75-43D4-A1BB-60A01BC6B32F}.Release|Win32.ActiveCfg = Release|Win32
+ {5F4D66DB-8D75-43D4-A1BB-60A01BC6B32F}.Release|Win32.Build.0 = Release|Win32
+ {5F4D66DB-8D75-43D4-A1BB-60A01BC6B32F}.Release|x64.ActiveCfg = Release|x64
+ {5F4D66DB-8D75-43D4-A1BB-60A01BC6B32F}.Release|x64.Build.0 = Release|x64
+ {12E118CA-CAAE-4F54-AE81-8D9981AA0635}.Debug|Win32.ActiveCfg = Debug|Win32
+ {12E118CA-CAAE-4F54-AE81-8D9981AA0635}.Debug|Win32.Build.0 = Debug|Win32
+ {12E118CA-CAAE-4F54-AE81-8D9981AA0635}.Debug|x64.ActiveCfg = Debug|x64
+ {12E118CA-CAAE-4F54-AE81-8D9981AA0635}.Debug|x64.Build.0 = Debug|x64
+ {12E118CA-CAAE-4F54-AE81-8D9981AA0635}.Release|Win32.ActiveCfg = Release|Win32
+ {12E118CA-CAAE-4F54-AE81-8D9981AA0635}.Release|Win32.Build.0 = Release|Win32
+ {12E118CA-CAAE-4F54-AE81-8D9981AA0635}.Release|x64.ActiveCfg = Release|x64
+ {12E118CA-CAAE-4F54-AE81-8D9981AA0635}.Release|x64.Build.0 = Release|x64
+ {75DF98AA-25DF-4183-A022-024CF918480D}.Debug|Win32.ActiveCfg = Debug|Win32
+ {75DF98AA-25DF-4183-A022-024CF918480D}.Debug|Win32.Build.0 = Debug|Win32
+ {75DF98AA-25DF-4183-A022-024CF918480D}.Debug|x64.ActiveCfg = Debug|x64
+ {75DF98AA-25DF-4183-A022-024CF918480D}.Debug|x64.Build.0 = Debug|x64
+ {75DF98AA-25DF-4183-A022-024CF918480D}.Release|Win32.ActiveCfg = Release|Win32
+ {75DF98AA-25DF-4183-A022-024CF918480D}.Release|Win32.Build.0 = Release|Win32
+ {75DF98AA-25DF-4183-A022-024CF918480D}.Release|x64.ActiveCfg = Release|x64
+ {75DF98AA-25DF-4183-A022-024CF918480D}.Release|x64.Build.0 = Release|x64
+ {5DD66F4B-EB4A-4453-BC31-3FF7B2240634}.Debug|Win32.ActiveCfg = Debug|Win32
+ {5DD66F4B-EB4A-4453-BC31-3FF7B2240634}.Debug|Win32.Build.0 = Debug|Win32
+ {5DD66F4B-EB4A-4453-BC31-3FF7B2240634}.Debug|x64.ActiveCfg = Debug|x64
+ {5DD66F4B-EB4A-4453-BC31-3FF7B2240634}.Debug|x64.Build.0 = Debug|x64
+ {5DD66F4B-EB4A-4453-BC31-3FF7B2240634}.Release|Win32.ActiveCfg = Release|Win32
+ {5DD66F4B-EB4A-4453-BC31-3FF7B2240634}.Release|Win32.Build.0 = Release|Win32
+ {5DD66F4B-EB4A-4453-BC31-3FF7B2240634}.Release|x64.ActiveCfg = Release|x64
+ {5DD66F4B-EB4A-4453-BC31-3FF7B2240634}.Release|x64.Build.0 = Release|x64
+ {54E6A58D-561D-467E-B378-6BA2EE138880}.Debug|Win32.ActiveCfg = Debug|Win32
+ {54E6A58D-561D-467E-B378-6BA2EE138880}.Debug|x64.ActiveCfg = Debug|x64
+ {54E6A58D-561D-467E-B378-6BA2EE138880}.Release|Win32.ActiveCfg = Release|Win32
+ {54E6A58D-561D-467E-B378-6BA2EE138880}.Release|x64.ActiveCfg = Release|x64
+ {CEC6CC37-88A3-4573-8957-6BA0CEF94B3D}.Debug|Win32.ActiveCfg = Debug|Win32
+ {CEC6CC37-88A3-4573-8957-6BA0CEF94B3D}.Debug|x64.ActiveCfg = Debug|x64
+ {CEC6CC37-88A3-4573-8957-6BA0CEF94B3D}.Release|Win32.ActiveCfg = Release|Win32
+ {CEC6CC37-88A3-4573-8957-6BA0CEF94B3D}.Release|x64.ActiveCfg = Release|x64
+ {438BEA9C-A9DF-4EAE-A9F7-A5F35CAF3FB9}.Debug|Win32.ActiveCfg = Debug|Win32
+ {438BEA9C-A9DF-4EAE-A9F7-A5F35CAF3FB9}.Debug|x64.ActiveCfg = Debug|x64
+ {438BEA9C-A9DF-4EAE-A9F7-A5F35CAF3FB9}.Release|Win32.ActiveCfg = Release|Win32
+ {438BEA9C-A9DF-4EAE-A9F7-A5F35CAF3FB9}.Release|x64.ActiveCfg = Release|x64
+ {443530F5-CCC3-40C8-A89B-AEF6C14D3A41}.Debug|Win32.ActiveCfg = Debug|Win32
+ {443530F5-CCC3-40C8-A89B-AEF6C14D3A41}.Debug|Win32.Build.0 = Debug|Win32
+ {443530F5-CCC3-40C8-A89B-AEF6C14D3A41}.Debug|x64.ActiveCfg = Debug|x64
+ {443530F5-CCC3-40C8-A89B-AEF6C14D3A41}.Debug|x64.Build.0 = Debug|x64
+ {443530F5-CCC3-40C8-A89B-AEF6C14D3A41}.Release|Win32.ActiveCfg = Release|Win32
+ {443530F5-CCC3-40C8-A89B-AEF6C14D3A41}.Release|Win32.Build.0 = Release|Win32
+ {443530F5-CCC3-40C8-A89B-AEF6C14D3A41}.Release|x64.ActiveCfg = Release|x64
+ {443530F5-CCC3-40C8-A89B-AEF6C14D3A41}.Release|x64.Build.0 = Release|x64
+ {B254668F-C28F-4B14-92A5-3BF4B83D02EE}.Debug|Win32.ActiveCfg = Debug|Win32
+ {B254668F-C28F-4B14-92A5-3BF4B83D02EE}.Debug|Win32.Build.0 = Debug|Win32
+ {B254668F-C28F-4B14-92A5-3BF4B83D02EE}.Debug|x64.ActiveCfg = Debug|x64
+ {B254668F-C28F-4B14-92A5-3BF4B83D02EE}.Debug|x64.Build.0 = Debug|x64
+ {B254668F-C28F-4B14-92A5-3BF4B83D02EE}.Release|Win32.ActiveCfg = Release|Win32
+ {B254668F-C28F-4B14-92A5-3BF4B83D02EE}.Release|Win32.Build.0 = Release|Win32
+ {B254668F-C28F-4B14-92A5-3BF4B83D02EE}.Release|x64.ActiveCfg = Release|x64
+ {B254668F-C28F-4B14-92A5-3BF4B83D02EE}.Release|x64.Build.0 = Release|x64
+ {0F6925F0-6243-47E0-A0FF-05F70B15FC2C}.Debug|Win32.ActiveCfg = Debug|Win32
+ {0F6925F0-6243-47E0-A0FF-05F70B15FC2C}.Debug|Win32.Build.0 = Debug|Win32
+ {0F6925F0-6243-47E0-A0FF-05F70B15FC2C}.Debug|x64.ActiveCfg = Debug|x64
+ {0F6925F0-6243-47E0-A0FF-05F70B15FC2C}.Debug|x64.Build.0 = Debug|x64
+ {0F6925F0-6243-47E0-A0FF-05F70B15FC2C}.Release|Win32.ActiveCfg = Release|Win32
+ {0F6925F0-6243-47E0-A0FF-05F70B15FC2C}.Release|Win32.Build.0 = Release|Win32
+ {0F6925F0-6243-47E0-A0FF-05F70B15FC2C}.Release|x64.ActiveCfg = Release|x64
+ {0F6925F0-6243-47E0-A0FF-05F70B15FC2C}.Release|x64.Build.0 = Release|x64
+ {BDBF0EE2-1551-47A4-ACD0-B22B05DF4D77}.Debug|Win32.ActiveCfg = Debug|Win32
+ {BDBF0EE2-1551-47A4-ACD0-B22B05DF4D77}.Debug|Win32.Build.0 = Debug|Win32
+ {BDBF0EE2-1551-47A4-ACD0-B22B05DF4D77}.Debug|x64.ActiveCfg = Debug|x64
+ {BDBF0EE2-1551-47A4-ACD0-B22B05DF4D77}.Debug|x64.Build.0 = Debug|x64
+ {BDBF0EE2-1551-47A4-ACD0-B22B05DF4D77}.Release|Win32.ActiveCfg = Release|Win32
+ {BDBF0EE2-1551-47A4-ACD0-B22B05DF4D77}.Release|Win32.Build.0 = Release|Win32
+ {BDBF0EE2-1551-47A4-ACD0-B22B05DF4D77}.Release|x64.ActiveCfg = Release|x64
+ {BDBF0EE2-1551-47A4-ACD0-B22B05DF4D77}.Release|x64.Build.0 = Release|x64
+ {365A89B8-B5A5-4EC6-990B-08254028E1A6}.Debug|Win32.ActiveCfg = Debug|Win32
+ {365A89B8-B5A5-4EC6-990B-08254028E1A6}.Debug|Win32.Build.0 = Debug|Win32
+ {365A89B8-B5A5-4EC6-990B-08254028E1A6}.Debug|x64.ActiveCfg = Debug|x64
+ {365A89B8-B5A5-4EC6-990B-08254028E1A6}.Debug|x64.Build.0 = Debug|x64
+ {365A89B8-B5A5-4EC6-990B-08254028E1A6}.Release|Win32.ActiveCfg = Release|Win32
+ {365A89B8-B5A5-4EC6-990B-08254028E1A6}.Release|Win32.Build.0 = Release|Win32
+ {365A89B8-B5A5-4EC6-990B-08254028E1A6}.Release|x64.ActiveCfg = Release|x64
+ {365A89B8-B5A5-4EC6-990B-08254028E1A6}.Release|x64.Build.0 = Release|x64
+ {4E43DB5C-D050-4003-A4FF-6294D9F498DD}.Debug|Win32.ActiveCfg = Debug|Win32
+ {4E43DB5C-D050-4003-A4FF-6294D9F498DD}.Debug|Win32.Build.0 = Debug|Win32
+ {4E43DB5C-D050-4003-A4FF-6294D9F498DD}.Debug|x64.ActiveCfg = Debug|x64
+ {4E43DB5C-D050-4003-A4FF-6294D9F498DD}.Debug|x64.Build.0 = Debug|x64
+ {4E43DB5C-D050-4003-A4FF-6294D9F498DD}.Release|Win32.ActiveCfg = Release|Win32
+ {4E43DB5C-D050-4003-A4FF-6294D9F498DD}.Release|Win32.Build.0 = Release|Win32
+ {4E43DB5C-D050-4003-A4FF-6294D9F498DD}.Release|x64.ActiveCfg = Release|x64
+ {4E43DB5C-D050-4003-A4FF-6294D9F498DD}.Release|x64.Build.0 = Release|x64
+ {8632C58A-CC00-4116-B61A-CBE0F2C11CAD}.Debug|Win32.ActiveCfg = Debug|Win32
+ {8632C58A-CC00-4116-B61A-CBE0F2C11CAD}.Debug|Win32.Build.0 = Debug|Win32
+ {8632C58A-CC00-4116-B61A-CBE0F2C11CAD}.Debug|x64.ActiveCfg = Debug|x64
+ {8632C58A-CC00-4116-B61A-CBE0F2C11CAD}.Debug|x64.Build.0 = Debug|x64
+ {8632C58A-CC00-4116-B61A-CBE0F2C11CAD}.Release|Win32.ActiveCfg = Release|Win32
+ {8632C58A-CC00-4116-B61A-CBE0F2C11CAD}.Release|Win32.Build.0 = Release|Win32
+ {8632C58A-CC00-4116-B61A-CBE0F2C11CAD}.Release|x64.ActiveCfg = Release|x64
+ {8632C58A-CC00-4116-B61A-CBE0F2C11CAD}.Release|x64.Build.0 = Release|x64
+ {80B961C4-D1D6-48E9-8965-CFCE69BF85E2}.Debug|Win32.ActiveCfg = Debug|Win32
+ {80B961C4-D1D6-48E9-8965-CFCE69BF85E2}.Debug|Win32.Build.0 = Debug|Win32
+ {80B961C4-D1D6-48E9-8965-CFCE69BF85E2}.Debug|x64.ActiveCfg = Debug|x64
+ {80B961C4-D1D6-48E9-8965-CFCE69BF85E2}.Debug|x64.Build.0 = Debug|x64
+ {80B961C4-D1D6-48E9-8965-CFCE69BF85E2}.Release|Win32.ActiveCfg = Release|Win32
+ {80B961C4-D1D6-48E9-8965-CFCE69BF85E2}.Release|Win32.Build.0 = Release|Win32
+ {80B961C4-D1D6-48E9-8965-CFCE69BF85E2}.Release|x64.ActiveCfg = Release|x64
+ {80B961C4-D1D6-48E9-8965-CFCE69BF85E2}.Release|x64.Build.0 = Release|x64
+ {925BD215-6680-4FFF-8345-0741E4627B1F}.Debug|Win32.ActiveCfg = Debug|Win32
+ {925BD215-6680-4FFF-8345-0741E4627B1F}.Debug|Win32.Build.0 = Debug|Win32
+ {925BD215-6680-4FFF-8345-0741E4627B1F}.Debug|x64.ActiveCfg = Debug|x64
+ {925BD215-6680-4FFF-8345-0741E4627B1F}.Debug|x64.Build.0 = Debug|x64
+ {925BD215-6680-4FFF-8345-0741E4627B1F}.Release|Win32.ActiveCfg = Release|Win32
+ {925BD215-6680-4FFF-8345-0741E4627B1F}.Release|Win32.Build.0 = Release|Win32
+ {925BD215-6680-4FFF-8345-0741E4627B1F}.Release|x64.ActiveCfg = Release|x64
+ {925BD215-6680-4FFF-8345-0741E4627B1F}.Release|x64.Build.0 = Release|x64
+ {56C01012-66D7-4295-B382-F3815366DB26}.Debug|Win32.ActiveCfg = Debug|Win32
+ {56C01012-66D7-4295-B382-F3815366DB26}.Debug|Win32.Build.0 = Debug|Win32
+ {56C01012-66D7-4295-B382-F3815366DB26}.Debug|x64.ActiveCfg = Debug|x64
+ {56C01012-66D7-4295-B382-F3815366DB26}.Debug|x64.Build.0 = Debug|x64
+ {56C01012-66D7-4295-B382-F3815366DB26}.Release|Win32.ActiveCfg = Release|Win32
+ {56C01012-66D7-4295-B382-F3815366DB26}.Release|Win32.Build.0 = Release|Win32
+ {56C01012-66D7-4295-B382-F3815366DB26}.Release|x64.ActiveCfg = Release|x64
+ {56C01012-66D7-4295-B382-F3815366DB26}.Release|x64.Build.0 = Release|x64
+ {0D35F7E6-425B-4D09-B805-B6D47A9B4AB3}.Debug|Win32.ActiveCfg = Debug|Win32
+ {0D35F7E6-425B-4D09-B805-B6D47A9B4AB3}.Debug|Win32.Build.0 = Debug|Win32
+ {0D35F7E6-425B-4D09-B805-B6D47A9B4AB3}.Debug|x64.ActiveCfg = Debug|x64
+ {0D35F7E6-425B-4D09-B805-B6D47A9B4AB3}.Debug|x64.Build.0 = Debug|x64
+ {0D35F7E6-425B-4D09-B805-B6D47A9B4AB3}.Release|Win32.ActiveCfg = Release|Win32
+ {0D35F7E6-425B-4D09-B805-B6D47A9B4AB3}.Release|Win32.Build.0 = Release|Win32
+ {0D35F7E6-425B-4D09-B805-B6D47A9B4AB3}.Release|x64.ActiveCfg = Release|x64
+ {0D35F7E6-425B-4D09-B805-B6D47A9B4AB3}.Release|x64.Build.0 = Release|x64
+ {2575F0DD-DAA5-4AE5-AC81-7C47507AD279}.Debug|Win32.ActiveCfg = Debug|Win32
+ {2575F0DD-DAA5-4AE5-AC81-7C47507AD279}.Debug|Win32.Build.0 = Debug|Win32
+ {2575F0DD-DAA5-4AE5-AC81-7C47507AD279}.Debug|x64.ActiveCfg = Debug|x64
+ {2575F0DD-DAA5-4AE5-AC81-7C47507AD279}.Debug|x64.Build.0 = Debug|x64
+ {2575F0DD-DAA5-4AE5-AC81-7C47507AD279}.Release|Win32.ActiveCfg = Release|Win32
+ {2575F0DD-DAA5-4AE5-AC81-7C47507AD279}.Release|Win32.Build.0 = Release|Win32
+ {2575F0DD-DAA5-4AE5-AC81-7C47507AD279}.Release|x64.ActiveCfg = Release|x64
+ {2575F0DD-DAA5-4AE5-AC81-7C47507AD279}.Release|x64.Build.0 = Release|x64
+ {38C080B1-7003-48DF-820D-06348BC87B1B}.Debug|Win32.ActiveCfg = Debug|Win32
+ {38C080B1-7003-48DF-820D-06348BC87B1B}.Debug|Win32.Build.0 = Debug|Win32
+ {38C080B1-7003-48DF-820D-06348BC87B1B}.Debug|x64.ActiveCfg = Debug|x64
+ {38C080B1-7003-48DF-820D-06348BC87B1B}.Debug|x64.Build.0 = Debug|x64
+ {38C080B1-7003-48DF-820D-06348BC87B1B}.Release|Win32.ActiveCfg = Release|Win32
+ {38C080B1-7003-48DF-820D-06348BC87B1B}.Release|Win32.Build.0 = Release|Win32
+ {38C080B1-7003-48DF-820D-06348BC87B1B}.Release|x64.ActiveCfg = Release|x64
+ {38C080B1-7003-48DF-820D-06348BC87B1B}.Release|x64.Build.0 = Release|x64
+ {E790C029-341D-489B-B987-D35947AD78C3}.Debug|Win32.ActiveCfg = Debug|Win32
+ {E790C029-341D-489B-B987-D35947AD78C3}.Debug|Win32.Build.0 = Debug|Win32
+ {E790C029-341D-489B-B987-D35947AD78C3}.Debug|x64.ActiveCfg = Debug|x64
+ {E790C029-341D-489B-B987-D35947AD78C3}.Debug|x64.Build.0 = Debug|x64
+ {E790C029-341D-489B-B987-D35947AD78C3}.Release|Win32.ActiveCfg = Release|Win32
+ {E790C029-341D-489B-B987-D35947AD78C3}.Release|Win32.Build.0 = Release|Win32
+ {E790C029-341D-489B-B987-D35947AD78C3}.Release|x64.ActiveCfg = Release|x64
+ {E790C029-341D-489B-B987-D35947AD78C3}.Release|x64.Build.0 = Release|x64
+ {A4F42222-FE02-431D-A046-B049E516DEB7}.Debug|Win32.ActiveCfg = Debug|Win32
+ {A4F42222-FE02-431D-A046-B049E516DEB7}.Debug|Win32.Build.0 = Debug|Win32
+ {A4F42222-FE02-431D-A046-B049E516DEB7}.Debug|x64.ActiveCfg = Debug|x64
+ {A4F42222-FE02-431D-A046-B049E516DEB7}.Debug|x64.Build.0 = Debug|x64
+ {A4F42222-FE02-431D-A046-B049E516DEB7}.Release|Win32.ActiveCfg = Release|Win32
+ {A4F42222-FE02-431D-A046-B049E516DEB7}.Release|Win32.Build.0 = Release|Win32
+ {A4F42222-FE02-431D-A046-B049E516DEB7}.Release|x64.ActiveCfg = Release|x64
+ {A4F42222-FE02-431D-A046-B049E516DEB7}.Release|x64.Build.0 = Release|x64
+ {81C97B03-193C-4021-A78E-F0A2A2AFAA87}.Debug|Win32.ActiveCfg = Debug|Win32
+ {81C97B03-193C-4021-A78E-F0A2A2AFAA87}.Debug|Win32.Build.0 = Debug|Win32
+ {81C97B03-193C-4021-A78E-F0A2A2AFAA87}.Debug|x64.ActiveCfg = Debug|x64
+ {81C97B03-193C-4021-A78E-F0A2A2AFAA87}.Debug|x64.Build.0 = Debug|x64
+ {81C97B03-193C-4021-A78E-F0A2A2AFAA87}.Release|Win32.ActiveCfg = Release|Win32
+ {81C97B03-193C-4021-A78E-F0A2A2AFAA87}.Release|Win32.Build.0 = Release|Win32
+ {81C97B03-193C-4021-A78E-F0A2A2AFAA87}.Release|x64.ActiveCfg = Release|x64
+ {81C97B03-193C-4021-A78E-F0A2A2AFAA87}.Release|x64.Build.0 = Release|x64
+ {19393F5D-DBBE-450C-9217-EA0C7503E277}.Debug|Win32.ActiveCfg = Debug|Win32
+ {19393F5D-DBBE-450C-9217-EA0C7503E277}.Debug|Win32.Build.0 = Debug|Win32
+ {19393F5D-DBBE-450C-9217-EA0C7503E277}.Debug|x64.ActiveCfg = Debug|x64
+ {19393F5D-DBBE-450C-9217-EA0C7503E277}.Debug|x64.Build.0 = Debug|x64
+ {19393F5D-DBBE-450C-9217-EA0C7503E277}.Release|Win32.ActiveCfg = Release|Win32
+ {19393F5D-DBBE-450C-9217-EA0C7503E277}.Release|Win32.Build.0 = Release|Win32
+ {19393F5D-DBBE-450C-9217-EA0C7503E277}.Release|x64.ActiveCfg = Release|x64
+ {19393F5D-DBBE-450C-9217-EA0C7503E277}.Release|x64.Build.0 = Release|x64
+ {DAEDD51B-0FED-4779-A99A-C09E4D2ACB5E}.Debug|Win32.ActiveCfg = Debug|Win32
+ {DAEDD51B-0FED-4779-A99A-C09E4D2ACB5E}.Debug|Win32.Build.0 = Debug|Win32
+ {DAEDD51B-0FED-4779-A99A-C09E4D2ACB5E}.Debug|x64.ActiveCfg = Debug|x64
+ {DAEDD51B-0FED-4779-A99A-C09E4D2ACB5E}.Debug|x64.Build.0 = Debug|x64
+ {DAEDD51B-0FED-4779-A99A-C09E4D2ACB5E}.Release|Win32.ActiveCfg = Release|Win32
+ {DAEDD51B-0FED-4779-A99A-C09E4D2ACB5E}.Release|Win32.Build.0 = Release|Win32
+ {DAEDD51B-0FED-4779-A99A-C09E4D2ACB5E}.Release|x64.ActiveCfg = Release|x64
+ {DAEDD51B-0FED-4779-A99A-C09E4D2ACB5E}.Release|x64.Build.0 = Release|x64
+ {75046027-E052-4E8B-AE87-E27DE9C2BC21}.Debug|Win32.ActiveCfg = Debug|Win32
+ {75046027-E052-4E8B-AE87-E27DE9C2BC21}.Debug|Win32.Build.0 = Debug|Win32
+ {75046027-E052-4E8B-AE87-E27DE9C2BC21}.Debug|x64.ActiveCfg = Debug|x64
+ {75046027-E052-4E8B-AE87-E27DE9C2BC21}.Debug|x64.Build.0 = Debug|x64
+ {75046027-E052-4E8B-AE87-E27DE9C2BC21}.Release|Win32.ActiveCfg = Release|Win32
+ {75046027-E052-4E8B-AE87-E27DE9C2BC21}.Release|Win32.Build.0 = Release|Win32
+ {75046027-E052-4E8B-AE87-E27DE9C2BC21}.Release|x64.ActiveCfg = Release|x64
+ {75046027-E052-4E8B-AE87-E27DE9C2BC21}.Release|x64.Build.0 = Release|x64
+ {D90AE774-03EF-4945-A3C3-AC76BF90825F}.Debug|Win32.ActiveCfg = Debug|Win32
+ {D90AE774-03EF-4945-A3C3-AC76BF90825F}.Debug|Win32.Build.0 = Debug|Win32
+ {D90AE774-03EF-4945-A3C3-AC76BF90825F}.Debug|x64.ActiveCfg = Debug|x64
+ {D90AE774-03EF-4945-A3C3-AC76BF90825F}.Debug|x64.Build.0 = Debug|x64
+ {D90AE774-03EF-4945-A3C3-AC76BF90825F}.Release|Win32.ActiveCfg = Release|Win32
+ {D90AE774-03EF-4945-A3C3-AC76BF90825F}.Release|Win32.Build.0 = Release|Win32
+ {D90AE774-03EF-4945-A3C3-AC76BF90825F}.Release|x64.ActiveCfg = Release|x64
+ {D90AE774-03EF-4945-A3C3-AC76BF90825F}.Release|x64.Build.0 = Release|x64
+ {77BD278B-7927-4C88-9198-5067C549398D}.Debug|Win32.ActiveCfg = Debug|Win32
+ {77BD278B-7927-4C88-9198-5067C549398D}.Debug|Win32.Build.0 = Debug|Win32
+ {77BD278B-7927-4C88-9198-5067C549398D}.Debug|x64.ActiveCfg = Debug|x64
+ {77BD278B-7927-4C88-9198-5067C549398D}.Debug|x64.Build.0 = Debug|x64
+ {77BD278B-7927-4C88-9198-5067C549398D}.Release|Win32.ActiveCfg = Release|Win32
+ {77BD278B-7927-4C88-9198-5067C549398D}.Release|Win32.Build.0 = Release|Win32
+ {77BD278B-7927-4C88-9198-5067C549398D}.Release|x64.ActiveCfg = Release|x64
+ {77BD278B-7927-4C88-9198-5067C549398D}.Release|x64.Build.0 = Release|x64
+ {2E9B94E9-024C-4255-9104-BA81FF7F2591}.Debug|Win32.ActiveCfg = Debug|Win32
+ {2E9B94E9-024C-4255-9104-BA81FF7F2591}.Debug|Win32.Build.0 = Debug|Win32
+ {2E9B94E9-024C-4255-9104-BA81FF7F2591}.Debug|x64.ActiveCfg = Debug|x64
+ {2E9B94E9-024C-4255-9104-BA81FF7F2591}.Debug|x64.Build.0 = Debug|x64
+ {2E9B94E9-024C-4255-9104-BA81FF7F2591}.Release|Win32.ActiveCfg = Release|Win32
+ {2E9B94E9-024C-4255-9104-BA81FF7F2591}.Release|Win32.Build.0 = Release|Win32
+ {2E9B94E9-024C-4255-9104-BA81FF7F2591}.Release|x64.ActiveCfg = Release|x64
+ {2E9B94E9-024C-4255-9104-BA81FF7F2591}.Release|x64.Build.0 = Release|x64
+ {009413E4-EFDF-42FB-8631-931CFAEAAB72}.Debug|Win32.ActiveCfg = Debug|Win32
+ {009413E4-EFDF-42FB-8631-931CFAEAAB72}.Debug|Win32.Build.0 = Debug|Win32
+ {009413E4-EFDF-42FB-8631-931CFAEAAB72}.Debug|x64.ActiveCfg = Debug|x64
+ {009413E4-EFDF-42FB-8631-931CFAEAAB72}.Debug|x64.Build.0 = Debug|x64
+ {009413E4-EFDF-42FB-8631-931CFAEAAB72}.Release|Win32.ActiveCfg = Release|Win32
+ {009413E4-EFDF-42FB-8631-931CFAEAAB72}.Release|Win32.Build.0 = Release|Win32
+ {009413E4-EFDF-42FB-8631-931CFAEAAB72}.Release|x64.ActiveCfg = Release|x64
+ {009413E4-EFDF-42FB-8631-931CFAEAAB72}.Release|x64.Build.0 = Release|x64
+ {44AFD8B5-687F-4B9D-B163-1F381CC11794}.Debug|Win32.ActiveCfg = Debug|Win32
+ {44AFD8B5-687F-4B9D-B163-1F381CC11794}.Debug|x64.ActiveCfg = Debug|x64
+ {44AFD8B5-687F-4B9D-B163-1F381CC11794}.Release|Win32.ActiveCfg = Release|Win32
+ {44AFD8B5-687F-4B9D-B163-1F381CC11794}.Release|x64.ActiveCfg = Release|x64
+ {284CC197-0C66-11DE-8C30-0800200C9A66}.Debug|Win32.ActiveCfg = Debug|Win32
+ {284CC197-0C66-11DE-8C30-0800200C9A66}.Debug|Win32.Build.0 = Debug|Win32
+ {284CC197-0C66-11DE-8C30-0800200C9A66}.Debug|x64.ActiveCfg = Debug|x64
+ {284CC197-0C66-11DE-8C30-0800200C9A66}.Debug|x64.Build.0 = Debug|x64
+ {284CC197-0C66-11DE-8C30-0800200C9A66}.Release|Win32.ActiveCfg = Release|Win32
+ {284CC197-0C66-11DE-8C30-0800200C9A66}.Release|Win32.Build.0 = Release|Win32
+ {284CC197-0C66-11DE-8C30-0800200C9A66}.Release|x64.ActiveCfg = Release|x64
+ {284CC197-0C66-11DE-8C30-0800200C9A66}.Release|x64.Build.0 = Release|x64
+ {284CC190-0C66-11DE-8C30-0800200C9A66}.Debug|Win32.ActiveCfg = Debug|Win32
+ {284CC190-0C66-11DE-8C30-0800200C9A66}.Debug|Win32.Build.0 = Debug|Win32
+ {284CC190-0C66-11DE-8C30-0800200C9A66}.Debug|x64.ActiveCfg = Debug|x64
+ {284CC190-0C66-11DE-8C30-0800200C9A66}.Debug|x64.Build.0 = Debug|x64
+ {284CC190-0C66-11DE-8C30-0800200C9A66}.Release|Win32.ActiveCfg = Release|Win32
+ {284CC190-0C66-11DE-8C30-0800200C9A66}.Release|Win32.Build.0 = Release|Win32
+ {284CC190-0C66-11DE-8C30-0800200C9A66}.Release|x64.ActiveCfg = Release|x64
+ {284CC190-0C66-11DE-8C30-0800200C9A66}.Release|x64.Build.0 = Release|x64
+ {284CC191-0C66-11DE-8C30-0800200C9A66}.Debug|Win32.ActiveCfg = Debug|Win32
+ {284CC191-0C66-11DE-8C30-0800200C9A66}.Debug|Win32.Build.0 = Debug|Win32
+ {284CC191-0C66-11DE-8C30-0800200C9A66}.Debug|x64.ActiveCfg = Debug|x64
+ {284CC191-0C66-11DE-8C30-0800200C9A66}.Debug|x64.Build.0 = Debug|x64
+ {284CC191-0C66-11DE-8C30-0800200C9A66}.Release|Win32.ActiveCfg = Release|Win32
+ {284CC191-0C66-11DE-8C30-0800200C9A66}.Release|Win32.Build.0 = Release|Win32
+ {284CC191-0C66-11DE-8C30-0800200C9A66}.Release|x64.ActiveCfg = Release|x64
+ {284CC191-0C66-11DE-8C30-0800200C9A66}.Release|x64.Build.0 = Release|x64
+ {284CC192-0C66-11DE-8C30-0800200C9A66}.Debug|Win32.ActiveCfg = Debug|Win32
+ {284CC192-0C66-11DE-8C30-0800200C9A66}.Debug|Win32.Build.0 = Debug|Win32
+ {284CC192-0C66-11DE-8C30-0800200C9A66}.Debug|x64.ActiveCfg = Debug|x64
+ {284CC192-0C66-11DE-8C30-0800200C9A66}.Debug|x64.Build.0 = Debug|x64
+ {284CC192-0C66-11DE-8C30-0800200C9A66}.Release|Win32.ActiveCfg = Release|Win32
+ {284CC192-0C66-11DE-8C30-0800200C9A66}.Release|Win32.Build.0 = Release|Win32
+ {284CC192-0C66-11DE-8C30-0800200C9A66}.Release|x64.ActiveCfg = Release|x64
+ {284CC192-0C66-11DE-8C30-0800200C9A66}.Release|x64.Build.0 = Release|x64
+ {284CC193-0C66-11DE-8C30-0800200C9A66}.Debug|Win32.ActiveCfg = Debug|Win32
+ {284CC193-0C66-11DE-8C30-0800200C9A66}.Debug|Win32.Build.0 = Debug|Win32
+ {284CC193-0C66-11DE-8C30-0800200C9A66}.Debug|x64.ActiveCfg = Debug|x64
+ {284CC193-0C66-11DE-8C30-0800200C9A66}.Debug|x64.Build.0 = Debug|x64
+ {284CC193-0C66-11DE-8C30-0800200C9A66}.Release|Win32.ActiveCfg = Release|Win32
+ {284CC193-0C66-11DE-8C30-0800200C9A66}.Release|Win32.Build.0 = Release|Win32
+ {284CC193-0C66-11DE-8C30-0800200C9A66}.Release|x64.ActiveCfg = Release|x64
+ {284CC193-0C66-11DE-8C30-0800200C9A66}.Release|x64.Build.0 = Release|x64
+ {284CC194-0C66-11DE-8C30-0800200C9A66}.Debug|Win32.ActiveCfg = Debug|Win32
+ {284CC194-0C66-11DE-8C30-0800200C9A66}.Debug|Win32.Build.0 = Debug|Win32
+ {284CC194-0C66-11DE-8C30-0800200C9A66}.Debug|x64.ActiveCfg = Debug|x64
+ {284CC194-0C66-11DE-8C30-0800200C9A66}.Debug|x64.Build.0 = Debug|x64
+ {284CC194-0C66-11DE-8C30-0800200C9A66}.Release|Win32.ActiveCfg = Release|Win32
+ {284CC194-0C66-11DE-8C30-0800200C9A66}.Release|Win32.Build.0 = Release|Win32
+ {284CC194-0C66-11DE-8C30-0800200C9A66}.Release|x64.ActiveCfg = Release|x64
+ {284CC194-0C66-11DE-8C30-0800200C9A66}.Release|x64.Build.0 = Release|x64
+ {284CC198-0C66-11DE-8C30-0800200C9A66}.Debug|Win32.ActiveCfg = Debug|Win32
+ {284CC198-0C66-11DE-8C30-0800200C9A66}.Debug|Win32.Build.0 = Debug|Win32
+ {284CC198-0C66-11DE-8C30-0800200C9A66}.Debug|x64.ActiveCfg = Debug|x64
+ {284CC198-0C66-11DE-8C30-0800200C9A66}.Debug|x64.Build.0 = Debug|x64
+ {284CC198-0C66-11DE-8C30-0800200C9A66}.Release|Win32.ActiveCfg = Release|Win32
+ {284CC198-0C66-11DE-8C30-0800200C9A66}.Release|Win32.Build.0 = Release|Win32
+ {284CC198-0C66-11DE-8C30-0800200C9A66}.Release|x64.ActiveCfg = Release|x64
+ {284CC198-0C66-11DE-8C30-0800200C9A66}.Release|x64.Build.0 = Release|x64
+ {8F3D872E-C7F5-4C0D-9974-0F0CB9DAA527}.Debug|Win32.ActiveCfg = Debug|Win32
+ {8F3D872E-C7F5-4C0D-9974-0F0CB9DAA527}.Debug|Win32.Build.0 = Debug|Win32
+ {8F3D872E-C7F5-4C0D-9974-0F0CB9DAA527}.Debug|x64.ActiveCfg = Debug|x64
+ {8F3D872E-C7F5-4C0D-9974-0F0CB9DAA527}.Debug|x64.Build.0 = Debug|x64
+ {8F3D872E-C7F5-4C0D-9974-0F0CB9DAA527}.Release|Win32.ActiveCfg = Release|Win32
+ {8F3D872E-C7F5-4C0D-9974-0F0CB9DAA527}.Release|Win32.Build.0 = Release|Win32
+ {8F3D872E-C7F5-4C0D-9974-0F0CB9DAA527}.Release|x64.ActiveCfg = Release|x64
+ {8F3D872E-C7F5-4C0D-9974-0F0CB9DAA527}.Release|x64.Build.0 = Release|x64
+ {738EE880-0E33-11DE-8C30-0800200C9A66}.Debug|Win32.ActiveCfg = Debug|Win32
+ {738EE880-0E33-11DE-8C30-0800200C9A66}.Debug|Win32.Build.0 = Debug|Win32
+ {738EE880-0E33-11DE-8C30-0800200C9A66}.Debug|x64.ActiveCfg = Debug|x64
+ {738EE880-0E33-11DE-8C30-0800200C9A66}.Debug|x64.Build.0 = Debug|x64
+ {738EE880-0E33-11DE-8C30-0800200C9A66}.Release|Win32.ActiveCfg = Release|Win32
+ {738EE880-0E33-11DE-8C30-0800200C9A66}.Release|Win32.Build.0 = Release|Win32
+ {738EE880-0E33-11DE-8C30-0800200C9A66}.Release|x64.ActiveCfg = Release|x64
+ {738EE880-0E33-11DE-8C30-0800200C9A66}.Release|x64.Build.0 = Release|x64
+ {FE85C600-38A6-11DE-8A39-0800200C9A66}.Debug|Win32.ActiveCfg = Debug|Win32
+ {FE85C600-38A6-11DE-8A39-0800200C9A66}.Debug|x64.ActiveCfg = Debug|x64
+ {FE85C600-38A6-11DE-8A39-0800200C9A66}.Release|Win32.ActiveCfg = Release|Win32
+ {FE85C600-38A6-11DE-8A39-0800200C9A66}.Release|x64.ActiveCfg = Release|x64
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/build_windows/app_dsp.src b/build_windows/app_dsp.src new file mode 100644 index 0000000..b385cb8 --- /dev/null +++ b/build_windows/app_dsp.src @@ -0,0 +1,93 @@ +# Microsoft Developer Studio Project File - Name="@project_name@" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=@project_name@ - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "@project_name@.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "@project_name@.mak" CFG="@project_name@ - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "@project_name@ - Win32 Release x86" (based on "Win32 (x86) Console Application")
+!MESSAGE "@project_name@ - Win32 Debug x86" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "@project_name@ - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32/Release"
+# PROP BASE Intermediate_Dir "Win32/Release/@project_name@"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32/Release"
+# PROP Intermediate_Dir "Win32/Release/@project_name@"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" @extra_cppflags@ /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" @extra_cppflags@ /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 @release_libs@ kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 libdb@DB_VERSION_MAJOR@@DB_VERSION_MINOR@.lib @release_libs@ kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386 /nodefaultlib:"libcmt" /libpath:"$(OUTDIR)"
+@POST_BUILD@
+
+!ELSEIF "$(CFG)" == "@project_name@ - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32/Debug"
+# PROP BASE Intermediate_Dir "Win32/Debug/@project_name@"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32/Debug"
+# PROP Intermediate_Dir "Win32/Debug/@project_name@"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" @extra_cppflags@ /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" @extra_cppflags@ /FD /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 @debug_libs@ kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 libdb@DB_VERSION_MAJOR@@DB_VERSION_MINOR@d.lib @debug_libs@ kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /nodefaultlib:"libcmtd" /fixed:no /libpath:"$(OUTDIR)"
+@POST_BUILD@
+
+!ENDIF
+
+# Begin Target
+
+# Name "@project_name@ - Win32 Release x86"
+# Name "@project_name@ - Win32 Debug x86"
+@SOURCE_FILES@
+# Begin Source File
+
+SOURCE=..\clib\getopt.c
+# End Source File
+# End Target
+# End Project
diff --git a/build_windows/build_all.dsp b/build_windows/build_all.dsp new file mode 100644 index 0000000..2b991ba --- /dev/null +++ b/build_windows/build_all.dsp @@ -0,0 +1,70 @@ +# Microsoft Developer Studio Project File - Name="build_all" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) External Target" 0x0106
+
+CFG=build_all - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "build_all.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "build_all.mak" CFG="build_all - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "build_all - Win32 Release x86" (based on "Win32 (x86) External Target")
+!MESSAGE "build_all - Win32 Debug x86" (based on "Win32 (x86) External Target")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+
+!IF "$(CFG)" == "build_all - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32\Release"
+# PROP BASE Intermediate_Dir "Win32\Release"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32\Release"
+# PROP Intermediate_Dir "Win32\Release"
+# PROP Cmd_Line "echo DB Release version built."
+# PROP Target_Dir ""
+
+!ELSEIF "$(CFG)" == "build_all - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32\Debug"
+# PROP BASE Intermediate_Dir "Win32\Debug"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32\Debug"
+# PROP Intermediate_Dir "Win32\Debug"
+# PROP Cmd_Line "echo DB Debug version built."
+# PROP Target_Dir ""
+
+!ENDIF
+
+# Begin Target
+
+# Name "build_all - Win32 Release x86"
+# Name "build_all - Win32 Debug x86"
+
+!IF "$(CFG)" == "build_all - Win32 Release x86"
+!ELSEIF "$(CFG)" == "build_all - Win32 Debug x86"
+
+!ENDIF
+
+# End Target
+# End Project
diff --git a/build_windows/clib_port.h b/build_windows/clib_port.h new file mode 100644 index 0000000..df0a374 --- /dev/null +++ b/build_windows/clib_port.h @@ -0,0 +1,276 @@ +/* DO NOT EDIT: automatically built from dist/clib_port.in. */ +/* + * Minimum/maximum values for various types. + */ +#ifndef UINT16_MAX /* Maximum 16-bit unsigned. */ +#define UINT16_MAX 65535 +#endif +#ifndef UINT32_MAX /* Maximum 32-bit unsigned. */ +#define UINT32_MAX 4294967295U +#endif + +#ifndef INT_MAX +#if SIZEOF_INT == 4 +#define INT_MAX 2147483647 +#endif +#if SIZEOF_INT == 8 +#define INT_MAX 9223372036854775807 +#endif +#endif + +#ifndef INT_MIN /* minimum (signed) int value */ +#define INT_MIN (-INT_MAX-1) +#endif + +#ifndef UINT_MAX /* maximum (signed) int value */ +#if SIZEOF_INT == 4 +#define UINT_MAX 4294967295U +#endif +#if SIZEOF_INT == 8 +#define UINT_MAX 18446744073709551615U +#endif +#endif + +#ifndef LONG_MAX /* maximum (signed) long value */ +#if SIZEOF_LONG == 4 +#define LONG_MAX 2147483647 +#endif +#if SIZEOF_LONG == 8 +#define LONG_MAX 9223372036854775807L +#endif +#endif + +#ifndef LONG_MIN /* minimum (signed) long value */ +#define LONG_MIN (-LONG_MAX-1) +#endif + +#ifndef ULONG_MAX /* maximum (unsigned) long value */ +#if SIZEOF_LONG == 4 +#define ULONG_MAX 4294967295U +#endif +#if SIZEOF_LONG == 8 +#define ULONG_MAX 18446744073709551615UL +#endif +#endif + +#if defined(HAVE_64BIT_TYPES) +/* + * Override the system's 64-bit min/max constants. AIX's 32-bit compiler can + * handle 64-bit values, but the system's constants don't include the LL/ULL + * suffix, and so can't be compiled using the 32-bit compiler. + */ +#undef INT64_MAX +#undef INT64_MIN +#undef UINT64_MAX + +#ifdef DB_WIN32 +#define INT64_MAX _I64_MAX +#define INT64_MIN _I64_MIN +#define UINT64_MAX _UI64_MAX +#else +#define INT64_MAX 9223372036854775807LL +#define INT64_MIN (-INT64_MAX-1) +#define UINT64_MAX 18446744073709551615ULL +#endif /* DB_WIN32 */ + +#define INT64_FMT "%I64d" +#define UINT64_FMT "%I64u" +#endif /* HAVE_64BIT_TYPES */ + +/* + * Exit success/failure macros. + */ +#ifndef HAVE_EXIT_SUCCESS +#define EXIT_FAILURE 1 +#define EXIT_SUCCESS 0 +#endif + +/* + * File modes. + */ +#ifdef DB_WIN32 +#ifndef S_IREAD /* WinCE doesn't have S_IREAD. */ +#define S_IREAD 0 +#endif +#ifndef S_IWRITE /* WinCE doesn't have S_IWRITE. */ +#define S_IWRITE 0 +#endif +#ifndef S_IRUSR +#define S_IRUSR S_IREAD /* R for owner */ +#endif +#ifndef S_IWUSR +#define S_IWUSR S_IWRITE /* W for owner */ +#endif +#ifndef S_IXUSR +#define S_IXUSR 0 /* X for owner */ +#endif +#ifndef S_IRGRP +#define S_IRGRP 0 /* R for group */ +#endif +#ifndef S_IWGRP +#define S_IWGRP 0 /* W for group */ +#endif +#ifndef S_IXGRP +#define S_IXGRP 0 /* X for group */ +#endif +#ifndef S_IROTH +#define S_IROTH 0 /* R for other */ +#endif +#ifndef S_IWOTH +#define S_IWOTH 0 /* W for other */ +#endif +#ifndef S_IXOTH +#define S_IXOTH 0 /* X for other */ +#endif +#else /* !DB_WIN32 */ +#ifndef S_IRUSR +#define S_IRUSR 0000400 /* R for owner */ +#endif +#ifndef S_IWUSR +#define S_IWUSR 0000200 /* W for owner */ +#endif +#ifndef S_IXUSR +#define S_IXUSR 0000100 /* X for owner */ +#endif +#ifndef S_IRGRP +#define S_IRGRP 0000040 /* R for group */ +#endif +#ifndef S_IWGRP +#define S_IWGRP 0000020 /* W for group */ +#endif +#ifndef S_IXGRP +#define S_IXGRP 0000010 /* X for group */ +#endif +#ifndef S_IROTH +#define S_IROTH 0000004 /* R for other */ +#endif +#ifndef S_IWOTH +#define S_IWOTH 0000002 /* W for other */ +#endif +#ifndef S_IXOTH +#define S_IXOTH 0000001 /* X for other */ +#endif +#endif /* !DB_WIN32 */ + +/* + * Don't step on the namespace. Other libraries may have their own + * implementations of these functions, we don't want to use their + * implementations or force them to use ours based on the load order. + */ +#ifndef HAVE_ATOI +#define atoi __db_Catoi +#endif +#ifndef HAVE_ATOL +#define atol __db_Catol +#endif +#ifndef HAVE_FCLOSE +#define fclose __db_Cfclose +#endif +#ifndef HAVE_FGETC +#define fgetc __db_Cfgetc +#endif +#ifndef HAVE_FGETS +#define fgets __db_Cfgets +#endif +#ifndef HAVE_FOPEN +#define fopen __db_Cfopen +#endif +#ifndef HAVE_FWRITE +#define fwrite __db_Cfwrite +#endif +#ifndef HAVE_GETADDRINFO +#define freeaddrinfo(a) __db_Cfreeaddrinfo(a) +#define getaddrinfo(a, b, c, d) __db_Cgetaddrinfo(a, b, c, d) +#endif +#ifndef HAVE_GETCWD +#define getcwd __db_Cgetcwd +#endif +#ifndef HAVE_GETOPT +#define getopt __db_Cgetopt +#define optarg __db_Coptarg +#define opterr __db_Copterr +#define optind __db_Coptind +#define optopt __db_Coptopt +#define optreset __db_Coptreset +#endif +#ifndef HAVE_ISALPHA +#define isalpha __db_Cisalpha +#endif +#ifndef HAVE_ISDIGIT +#define isdigit __db_Cisdigit +#endif +#ifndef HAVE_ISPRINT +#define isprint __db_Cisprint +#endif +#ifndef HAVE_ISSPACE +#define isspace __db_Cisspace +#endif +#ifndef HAVE_LOCALTIME +#define localtime __db_Clocaltime +#endif +#ifndef HAVE_MEMCMP +#define memcmp __db_Cmemcmp +#endif +#ifndef HAVE_MEMCPY +#define memcpy __db_Cmemcpy +#endif +#ifndef HAVE_MEMMOVE +#define memmove __db_Cmemmove +#endif +#ifndef HAVE_PRINTF +#define printf __db_Cprintf +#define fprintf __db_Cfprintf +#endif +#ifndef HAVE_QSORT +#define qsort __db_Cqsort +#endif +#ifndef HAVE_RAISE +#define raise __db_Craise +#endif +#ifndef HAVE_RAND +#define rand __db_Crand +#define srand __db_Csrand +#endif +#ifndef HAVE_SNPRINTF +#define snprintf __db_Csnprintf +#endif +#ifndef HAVE_STRCASECMP +#define strcasecmp __db_Cstrcasecmp +#define strncasecmp __db_Cstrncasecmp +#endif +#ifndef HAVE_STRCAT +#define strcat __db_Cstrcat +#endif +#ifndef HAVE_STRCHR +#define strchr __db_Cstrchr +#endif +#ifndef HAVE_STRDUP +#define strdup __db_Cstrdup +#endif +#ifndef HAVE_STRERROR +#define strerror __db_Cstrerror +#endif +#ifndef HAVE_STRNCAT +#define strncat __db_Cstrncat +#endif +#ifndef HAVE_STRNCMP +#define strncmp __db_Cstrncmp +#endif +#ifndef HAVE_STRRCHR +#define strrchr __db_Cstrrchr +#endif +#ifndef HAVE_STRSEP +#define strsep __db_Cstrsep +#endif +#ifndef HAVE_STRTOL +#define strtol __db_Cstrtol +#endif +#ifndef HAVE_STRTOUL +#define strtoul __db_Cstrtoul +#endif +#ifndef HAVE_TIME +#define time __db_Ctime +#endif +#ifndef HAVE_VSNPRINTF +#define vsnprintf __db_Cvsnprintf +#endif diff --git a/build_windows/db.h b/build_windows/db.h new file mode 100644 index 0000000..274dba6 --- /dev/null +++ b/build_windows/db.h @@ -0,0 +1,2730 @@ +/* DO NOT EDIT: automatically built by dist/s_windows. */ +/* + * See the file LICENSE for redistribution information. + * + * Copyright (c) 1996-2009 Oracle. All rights reserved. + * + * $Id$ + * + * db.h include file layout: + * General. + * Database Environment. + * Locking subsystem. + * Logging subsystem. + * Shared buffer cache (mpool) subsystem. + * Transaction subsystem. + * Access methods. + * Access method cursors. + * Dbm/Ndbm, Hsearch historic interfaces. + */ + +#ifndef _DB_H_ +#define _DB_H_ + +#ifndef __NO_SYSTEM_INCLUDES +#include <sys/types.h> +#include <stddef.h> +#include <stdio.h> +#endif + +/* + * Turn off inappropriate compiler warnings + */ +#ifdef _MSC_VER +/* + * This warning is explicitly disabled in Visual C++ by default. + * It is necessary to explicitly enable the /Wall flag to generate this + * warning. + * Since this is a shared include file it should compile without warnings + * at the highest warning level, so third party applications can use + * higher warning levels cleanly. + * + * 4820: 'bytes' bytes padding added after member 'member' + * The type and order of elements caused the compiler to + * add padding to the end of a struct. + */ +#pragma warning(push) +#pragma warning(disable: 4820) +#endif /* _MSC_VER */ +#if defined(__cplusplus) +extern "C" { +#endif + + +#undef __P +#define __P(protos) protos + +/* + * Berkeley DB version information. + */ +#define DB_VERSION_MAJOR 4 +#define DB_VERSION_MINOR 8 +#define DB_VERSION_PATCH 30 +#define DB_VERSION_STRING "Berkeley DB 4.8.30: (April 9, 2010)" + +/* + * !!! + * Berkeley DB uses specifically sized types. If they're not provided by + * the system, typedef them here. + * + * We protect them against multiple inclusion using __BIT_TYPES_DEFINED__, + * as does BIND and Kerberos, since we don't know for sure what #include + * files the user is using. + * + * !!! + * We also provide the standard u_int, u_long etc., if they're not provided + * by the system. + */ +#ifndef __BIT_TYPES_DEFINED__ +#define __BIT_TYPES_DEFINED__ +typedef unsigned char u_int8_t; +typedef short int16_t; +typedef unsigned short u_int16_t; +typedef int int32_t; +typedef unsigned int u_int32_t; +typedef __int64 int64_t; +typedef unsigned __int64 u_int64_t; +#endif + +#ifndef _WINSOCKAPI_ +typedef unsigned char u_char; +typedef unsigned int u_int; +typedef unsigned long u_long; +#endif +typedef unsigned short u_short; + +/* + * Missing ANSI types. + * + * uintmax_t -- + * Largest unsigned type, used to align structures in memory. We don't store + * floating point types in structures, so integral types should be sufficient + * (and we don't have to worry about systems that store floats in other than + * power-of-2 numbers of bytes). Additionally this fixes compilers that rewrite + * structure assignments and ANSI C memcpy calls to be in-line instructions + * that happen to require alignment. + * + * uintptr_t -- + * Unsigned type that's the same size as a pointer. There are places where + * DB modifies pointers by discarding the bottom bits to guarantee alignment. + * We can't use uintmax_t, it may be larger than the pointer, and compilers + * get upset about that. So far we haven't run on any machine where there's + * no unsigned type the same size as a pointer -- here's hoping. + */ +#if defined(_MSC_VER) && _MSC_VER < 1300 +typedef u_int32_t uintmax_t; +#else +typedef u_int64_t uintmax_t; +#endif +#ifdef _WIN64 +typedef u_int64_t uintptr_t; +#else +typedef u_int32_t uintptr_t; +#endif + +/* + * Windows defines off_t to long (i.e., 32 bits). We need to pass 64-bit + * file offsets, so we declare our own. + */ +#define off_t __db_off_t +typedef int64_t off_t; +typedef int pid_t; +#ifdef _WIN64 +typedef int64_t ssize_t; +#else +typedef int32_t ssize_t; +#endif + +/* + * Sequences are only available on machines with 64-bit integral types. + */ +typedef int64_t db_seq_t; + +/* Thread and process identification. */ +typedef u_int32_t db_threadid_t; + +/* Basic types that are exported or quasi-exported. */ +typedef u_int32_t db_pgno_t; /* Page number type. */ +typedef u_int16_t db_indx_t; /* Page offset type. */ +#define DB_MAX_PAGES 0xffffffff /* >= # of pages in a file */ + +typedef u_int32_t db_recno_t; /* Record number type. */ +#define DB_MAX_RECORDS 0xffffffff /* >= # of records in a tree */ + +typedef u_int32_t db_timeout_t; /* Type of a timeout. */ + +/* + * Region offsets are the difference between a pointer in a region and the + * region's base address. With private environments, both addresses are the + * result of calling malloc, and we can't assume anything about what malloc + * will return, so region offsets have to be able to hold differences between + * arbitrary pointers. + */ +typedef uintptr_t roff_t; + +/* + * Forward structure declarations, so we can declare pointers and + * applications can get type checking. + */ +struct __db; typedef struct __db DB; +struct __db_bt_stat; typedef struct __db_bt_stat DB_BTREE_STAT; +struct __db_cipher; typedef struct __db_cipher DB_CIPHER; +struct __db_compact; typedef struct __db_compact DB_COMPACT; +struct __db_dbt; typedef struct __db_dbt DBT; +struct __db_distab; typedef struct __db_distab DB_DISTAB; +struct __db_env; typedef struct __db_env DB_ENV; +struct __db_h_stat; typedef struct __db_h_stat DB_HASH_STAT; +struct __db_ilock; typedef struct __db_ilock DB_LOCK_ILOCK; +struct __db_lock_hstat; typedef struct __db_lock_hstat DB_LOCK_HSTAT; +struct __db_lock_pstat; typedef struct __db_lock_pstat DB_LOCK_PSTAT; +struct __db_lock_stat; typedef struct __db_lock_stat DB_LOCK_STAT; +struct __db_lock_u; typedef struct __db_lock_u DB_LOCK; +struct __db_locker; typedef struct __db_locker DB_LOCKER; +struct __db_lockreq; typedef struct __db_lockreq DB_LOCKREQ; +struct __db_locktab; typedef struct __db_locktab DB_LOCKTAB; +struct __db_log; typedef struct __db_log DB_LOG; +struct __db_log_cursor; typedef struct __db_log_cursor DB_LOGC; +struct __db_log_stat; typedef struct __db_log_stat DB_LOG_STAT; +struct __db_lsn; typedef struct __db_lsn DB_LSN; +struct __db_mpool; typedef struct __db_mpool DB_MPOOL; +struct __db_mpool_fstat;typedef struct __db_mpool_fstat DB_MPOOL_FSTAT; +struct __db_mpool_stat; typedef struct __db_mpool_stat DB_MPOOL_STAT; +struct __db_mpoolfile; typedef struct __db_mpoolfile DB_MPOOLFILE; +struct __db_mutex_stat; typedef struct __db_mutex_stat DB_MUTEX_STAT; +struct __db_mutex_t; typedef struct __db_mutex_t DB_MUTEX; +struct __db_mutexmgr; typedef struct __db_mutexmgr DB_MUTEXMGR; +struct __db_preplist; typedef struct __db_preplist DB_PREPLIST; +struct __db_qam_stat; typedef struct __db_qam_stat DB_QUEUE_STAT; +struct __db_rep; typedef struct __db_rep DB_REP; +struct __db_rep_stat; typedef struct __db_rep_stat DB_REP_STAT; +struct __db_repmgr_site;typedef struct __db_repmgr_site DB_REPMGR_SITE; +struct __db_repmgr_stat;typedef struct __db_repmgr_stat DB_REPMGR_STAT; +struct __db_seq_record; typedef struct __db_seq_record DB_SEQ_RECORD; +struct __db_seq_stat; typedef struct __db_seq_stat DB_SEQUENCE_STAT; +struct __db_sequence; typedef struct __db_sequence DB_SEQUENCE; +struct __db_thread_info;typedef struct __db_thread_info DB_THREAD_INFO; +struct __db_txn; typedef struct __db_txn DB_TXN; +struct __db_txn_active; typedef struct __db_txn_active DB_TXN_ACTIVE; +struct __db_txn_stat; typedef struct __db_txn_stat DB_TXN_STAT; +struct __db_txnmgr; typedef struct __db_txnmgr DB_TXNMGR; +struct __dbc; typedef struct __dbc DBC; +struct __dbc_internal; typedef struct __dbc_internal DBC_INTERNAL; +struct __env; typedef struct __env ENV; +struct __fh_t; typedef struct __fh_t DB_FH; +struct __fname; typedef struct __fname FNAME; +struct __key_range; typedef struct __key_range DB_KEY_RANGE; +struct __mpoolfile; typedef struct __mpoolfile MPOOLFILE; + +/* + * The Berkeley DB API flags are automatically-generated -- the following flag + * names are no longer used, but remain for compatibility reasons. + */ +#define DB_DEGREE_2 DB_READ_COMMITTED +#define DB_DIRTY_READ DB_READ_UNCOMMITTED +#define DB_JOINENV 0x0 + +/* Key/data structure -- a Data-Base Thang. */ +struct __db_dbt { + void *data; /* Key/data */ + u_int32_t size; /* key/data length */ + + u_int32_t ulen; /* RO: length of user buffer. */ + u_int32_t dlen; /* RO: get/put record length. */ + u_int32_t doff; /* RO: get/put record offset. */ + + void *app_data; + +#define DB_DBT_APPMALLOC 0x001 /* Callback allocated memory. */ +#define DB_DBT_BULK 0x002 /* Internal: Insert if duplicate. */ +#define DB_DBT_DUPOK 0x004 /* Internal: Insert if duplicate. */ +#define DB_DBT_ISSET 0x008 /* Lower level calls set value. */ +#define DB_DBT_MALLOC 0x010 /* Return in malloc'd memory. */ +#define DB_DBT_MULTIPLE 0x020 /* References multiple records. */ +#define DB_DBT_PARTIAL 0x040 /* Partial put/get. */ +#define DB_DBT_REALLOC 0x080 /* Return in realloc'd memory. */ +#define DB_DBT_STREAMING 0x100 /* Internal: DBT is being streamed. */ +#define DB_DBT_USERCOPY 0x200 /* Use the user-supplied callback. */ +#define DB_DBT_USERMEM 0x400 /* Return in user's memory. */ + u_int32_t flags; +}; + +/******************************************************* + * Mutexes. + *******************************************************/ +typedef u_int32_t db_mutex_t; + +struct __db_mutex_stat { + /* The following fields are maintained in the region's copy. */ + u_int32_t st_mutex_align; /* Mutex alignment */ + u_int32_t st_mutex_tas_spins; /* Mutex test-and-set spins */ + u_int32_t st_mutex_cnt; /* Mutex count */ + u_int32_t st_mutex_free; /* Available mutexes */ + u_int32_t st_mutex_inuse; /* Mutexes in use */ + u_int32_t st_mutex_inuse_max; /* Maximum mutexes ever in use */ + + /* The following fields are filled-in from other places. */ +#ifndef __TEST_DB_NO_STATISTICS + uintmax_t st_region_wait; /* Region lock granted after wait. */ + uintmax_t st_region_nowait; /* Region lock granted without wait. */ + roff_t st_regsize; /* Region size. */ +#endif +}; + +/* This is the length of the buffer passed to DB_ENV->thread_id_string() */ +#define DB_THREADID_STRLEN 128 + +/******************************************************* + * Locking. + *******************************************************/ +#define DB_LOCKVERSION 1 + +#define DB_FILE_ID_LEN 20 /* Unique file ID length. */ + +/* + * Deadlock detector modes; used in the DB_ENV structure to configure the + * locking subsystem. + */ +#define DB_LOCK_NORUN 0 +#define DB_LOCK_DEFAULT 1 /* Default policy. */ +#define DB_LOCK_EXPIRE 2 /* Only expire locks, no detection. */ +#define DB_LOCK_MAXLOCKS 3 /* Select locker with max locks. */ +#define DB_LOCK_MAXWRITE 4 /* Select locker with max writelocks. */ +#define DB_LOCK_MINLOCKS 5 /* Select locker with min locks. */ +#define DB_LOCK_MINWRITE 6 /* Select locker with min writelocks. */ +#define DB_LOCK_OLDEST 7 /* Select oldest locker. */ +#define DB_LOCK_RANDOM 8 /* Select random locker. */ +#define DB_LOCK_YOUNGEST 9 /* Select youngest locker. */ + +/* + * Simple R/W lock modes and for multi-granularity intention locking. + * + * !!! + * These values are NOT random, as they are used as an index into the lock + * conflicts arrays, i.e., DB_LOCK_IWRITE must be == 3, and DB_LOCK_IREAD + * must be == 4. + */ +typedef enum { + DB_LOCK_NG=0, /* Not granted. */ + DB_LOCK_READ=1, /* Shared/read. */ + DB_LOCK_WRITE=2, /* Exclusive/write. */ + DB_LOCK_WAIT=3, /* Wait for event */ + DB_LOCK_IWRITE=4, /* Intent exclusive/write. */ + DB_LOCK_IREAD=5, /* Intent to share/read. */ + DB_LOCK_IWR=6, /* Intent to read and write. */ + DB_LOCK_READ_UNCOMMITTED=7, /* Degree 1 isolation. */ + DB_LOCK_WWRITE=8 /* Was Written. */ +} db_lockmode_t; + +/* + * Request types. + */ +typedef enum { + DB_LOCK_DUMP=0, /* Display held locks. */ + DB_LOCK_GET=1, /* Get the lock. */ + DB_LOCK_GET_TIMEOUT=2, /* Get lock with a timeout. */ + DB_LOCK_INHERIT=3, /* Pass locks to parent. */ + DB_LOCK_PUT=4, /* Release the lock. */ + DB_LOCK_PUT_ALL=5, /* Release locker's locks. */ + DB_LOCK_PUT_OBJ=6, /* Release locker's locks on obj. */ + DB_LOCK_PUT_READ=7, /* Release locker's read locks. */ + DB_LOCK_TIMEOUT=8, /* Force a txn to timeout. */ + DB_LOCK_TRADE=9, /* Trade locker ids on a lock. */ + DB_LOCK_UPGRADE_WRITE=10 /* Upgrade writes for dirty reads. */ +} db_lockop_t; + +/* + * Status of a lock. + */ +typedef enum { + DB_LSTAT_ABORTED=1, /* Lock belongs to an aborted txn. */ + DB_LSTAT_EXPIRED=2, /* Lock has expired. */ + DB_LSTAT_FREE=3, /* Lock is unallocated. */ + DB_LSTAT_HELD=4, /* Lock is currently held. */ + DB_LSTAT_PENDING=5, /* Lock was waiting and has been + * promoted; waiting for the owner + * to run and upgrade it to held. */ + DB_LSTAT_WAITING=6 /* Lock is on the wait queue. */ +}db_status_t; + +/* Lock statistics structure. */ +struct __db_lock_stat { + u_int32_t st_id; /* Last allocated locker ID. */ + u_int32_t st_cur_maxid; /* Current maximum unused ID. */ + u_int32_t st_maxlocks; /* Maximum number of locks in table. */ + u_int32_t st_maxlockers; /* Maximum num of lockers in table. */ + u_int32_t st_maxobjects; /* Maximum num of objects in table. */ + u_int32_t st_partitions; /* number of partitions. */ + int st_nmodes; /* Number of lock modes. */ + u_int32_t st_nlockers; /* Current number of lockers. */ +#ifndef __TEST_DB_NO_STATISTICS + u_int32_t st_nlocks; /* Current number of locks. */ + u_int32_t st_maxnlocks; /* Maximum number of locks so far. */ + u_int32_t st_maxhlocks; /* Maximum number of locks in any bucket. */ + uintmax_t st_locksteals; /* Number of lock steals so far. */ + uintmax_t st_maxlsteals; /* Maximum number steals in any partition. */ + u_int32_t st_maxnlockers; /* Maximum number of lockers so far. */ + u_int32_t st_nobjects; /* Current number of objects. */ + u_int32_t st_maxnobjects; /* Maximum number of objects so far. */ + u_int32_t st_maxhobjects; /* Maximum number of objectsin any bucket. */ + uintmax_t st_objectsteals; /* Number of objects steals so far. */ + uintmax_t st_maxosteals; /* Maximum number of steals in any partition. */ + uintmax_t st_nrequests; /* Number of lock gets. */ + uintmax_t st_nreleases; /* Number of lock puts. */ + uintmax_t st_nupgrade; /* Number of lock upgrades. */ + uintmax_t st_ndowngrade; /* Number of lock downgrades. */ + uintmax_t st_lock_wait; /* Lock conflicts w/ subsequent wait */ + uintmax_t st_lock_nowait; /* Lock conflicts w/o subsequent wait */ + uintmax_t st_ndeadlocks; /* Number of lock deadlocks. */ + db_timeout_t st_locktimeout; /* Lock timeout. */ + uintmax_t st_nlocktimeouts; /* Number of lock timeouts. */ + db_timeout_t st_txntimeout; /* Transaction timeout. */ + uintmax_t st_ntxntimeouts; /* Number of transaction timeouts. */ + uintmax_t st_part_wait; /* Partition lock granted after wait. */ + uintmax_t st_part_nowait; /* Partition lock granted without wait. */ + uintmax_t st_part_max_wait; /* Max partition lock granted after wait. */ + uintmax_t st_part_max_nowait; /* Max partition lock granted without wait. */ + uintmax_t st_objs_wait; /* Object lock granted after wait. */ + uintmax_t st_objs_nowait; /* Object lock granted without wait. */ + uintmax_t st_lockers_wait; /* Locker lock granted after wait. */ + uintmax_t st_lockers_nowait; /* Locker lock granted without wait. */ + uintmax_t st_region_wait; /* Region lock granted after wait. */ + uintmax_t st_region_nowait; /* Region lock granted without wait. */ + u_int32_t st_hash_len; /* Max length of bucket. */ + roff_t st_regsize; /* Region size. */ +#endif +}; + +struct __db_lock_hstat { + uintmax_t st_nrequests; /* Number of lock gets. */ + uintmax_t st_nreleases; /* Number of lock puts. */ + uintmax_t st_nupgrade; /* Number of lock upgrades. */ + uintmax_t st_ndowngrade; /* Number of lock downgrades. */ + u_int32_t st_nlocks; /* Current number of locks. */ + u_int32_t st_maxnlocks; /* Maximum number of locks so far. */ + u_int32_t st_nobjects; /* Current number of objects. */ + u_int32_t st_maxnobjects; /* Maximum number of objects so far. */ + uintmax_t st_lock_wait; /* Lock conflicts w/ subsequent wait */ + uintmax_t st_lock_nowait; /* Lock conflicts w/o subsequent wait */ + uintmax_t st_nlocktimeouts; /* Number of lock timeouts. */ + uintmax_t st_ntxntimeouts; /* Number of transaction timeouts. */ + u_int32_t st_hash_len; /* Max length of bucket. */ +}; + +struct __db_lock_pstat { + u_int32_t st_nlocks; /* Current number of locks. */ + u_int32_t st_maxnlocks; /* Maximum number of locks so far. */ + u_int32_t st_nobjects; /* Current number of objects. */ + u_int32_t st_maxnobjects; /* Maximum number of objects so far. */ + uintmax_t st_locksteals; /* Number of lock steals so far. */ + uintmax_t st_objectsteals; /* Number of objects steals so far. */ +}; + +/* + * DB_LOCK_ILOCK -- + * Internal DB access method lock. + */ +struct __db_ilock { + db_pgno_t pgno; /* Page being locked. */ + u_int8_t fileid[DB_FILE_ID_LEN];/* File id. */ +#define DB_HANDLE_LOCK 1 +#define DB_RECORD_LOCK 2 +#define DB_PAGE_LOCK 3 + u_int32_t type; /* Type of lock. */ +}; + +/* + * DB_LOCK -- + * The structure is allocated by the caller and filled in during a + * lock_get request (or a lock_vec/DB_LOCK_GET). + */ +struct __db_lock_u { + roff_t off; /* Offset of the lock in the region */ + u_int32_t ndx; /* Index of the object referenced by + * this lock; used for locking. */ + u_int32_t gen; /* Generation number of this lock. */ + db_lockmode_t mode; /* mode of this lock. */ +}; + +/* Lock request structure. */ +struct __db_lockreq { + db_lockop_t op; /* Operation. */ + db_lockmode_t mode; /* Requested mode. */ + db_timeout_t timeout; /* Time to expire lock. */ + DBT *obj; /* Object being locked. */ + DB_LOCK lock; /* Lock returned. */ +}; + +/******************************************************* + * Logging. + *******************************************************/ +#define DB_LOGVERSION 16 /* Current log version. */ +#define DB_LOGVERSION_LATCHING 15 /* Log version using latching. */ +#define DB_LOGCHKSUM 12 /* Check sum headers. */ +#define DB_LOGOLDVER 8 /* Oldest log version supported. */ +#define DB_LOGMAGIC 0x040988 + +/* + * A DB_LSN has two parts, a fileid which identifies a specific file, and an + * offset within that file. The fileid is an unsigned 4-byte quantity that + * uniquely identifies a file within the log directory -- currently a simple + * counter inside the log. The offset is also an unsigned 4-byte value. The + * log manager guarantees the offset is never more than 4 bytes by switching + * to a new log file before the maximum length imposed by an unsigned 4-byte + * offset is reached. + */ +struct __db_lsn { + u_int32_t file; /* File ID. */ + u_int32_t offset; /* File offset. */ +}; + +/* + * Application-specified log record types start at DB_user_BEGIN, and must not + * equal or exceed DB_debug_FLAG. + * + * DB_debug_FLAG is the high-bit of the u_int32_t that specifies a log record + * type. If the flag is set, it's a log record that was logged for debugging + * purposes only, even if it reflects a database change -- the change was part + * of a non-durable transaction. + */ +#define DB_user_BEGIN 10000 +#define DB_debug_FLAG 0x80000000 + +/* + * DB_LOGC -- + * Log cursor. + */ +struct __db_log_cursor { + ENV *env; /* Environment */ + + DB_FH *fhp; /* File handle. */ + DB_LSN lsn; /* Cursor: LSN */ + u_int32_t len; /* Cursor: record length */ + u_int32_t prev; /* Cursor: previous record's offset */ + + DBT dbt; /* Return DBT. */ + DB_LSN p_lsn; /* Persist LSN. */ + u_int32_t p_version; /* Persist version. */ + + u_int8_t *bp; /* Allocated read buffer. */ + u_int32_t bp_size; /* Read buffer length in bytes. */ + u_int32_t bp_rlen; /* Read buffer valid data length. */ + DB_LSN bp_lsn; /* Read buffer first byte LSN. */ + + u_int32_t bp_maxrec; /* Max record length in the log file. */ + + /* DB_LOGC PUBLIC HANDLE LIST BEGIN */ + int (*close) __P((DB_LOGC *, u_int32_t)); + int (*get) __P((DB_LOGC *, DB_LSN *, DBT *, u_int32_t)); + int (*version) __P((DB_LOGC *, u_int32_t *, u_int32_t)); + /* DB_LOGC PUBLIC HANDLE LIST END */ + +#define DB_LOG_DISK 0x01 /* Log record came from disk. */ +#define DB_LOG_LOCKED 0x02 /* Log region already locked */ +#define DB_LOG_SILENT_ERR 0x04 /* Turn-off error messages. */ + u_int32_t flags; +}; + +/* Log statistics structure. */ +struct __db_log_stat { + u_int32_t st_magic; /* Log file magic number. */ + u_int32_t st_version; /* Log file version number. */ + int st_mode; /* Log file permissions mode. */ + u_int32_t st_lg_bsize; /* Log buffer size. */ + u_int32_t st_lg_size; /* Log file size. */ + u_int32_t st_wc_bytes; /* Bytes to log since checkpoint. */ + u_int32_t st_wc_mbytes; /* Megabytes to log since checkpoint. */ +#ifndef __TEST_DB_NO_STATISTICS + uintmax_t st_record; /* Records entered into the log. */ + u_int32_t st_w_bytes; /* Bytes to log. */ + u_int32_t st_w_mbytes; /* Megabytes to log. */ + uintmax_t st_wcount; /* Total I/O writes to the log. */ + uintmax_t st_wcount_fill; /* Overflow writes to the log. */ + uintmax_t st_rcount; /* Total I/O reads from the log. */ + uintmax_t st_scount; /* Total syncs to the log. */ + uintmax_t st_region_wait; /* Region lock granted after wait. */ + uintmax_t st_region_nowait; /* Region lock granted without wait. */ + u_int32_t st_cur_file; /* Current log file number. */ + u_int32_t st_cur_offset; /* Current log file offset. */ + u_int32_t st_disk_file; /* Known on disk log file number. */ + u_int32_t st_disk_offset; /* Known on disk log file offset. */ + u_int32_t st_maxcommitperflush; /* Max number of commits in a flush. */ + u_int32_t st_mincommitperflush; /* Min number of commits in a flush. */ + roff_t st_regsize; /* Region size. */ +#endif +}; + +/* + * We need to record the first log record of a transaction. For user + * defined logging this macro returns the place to put that information, + * if it is need in rlsnp, otherwise it leaves it unchanged. We also + * need to track the last record of the transaction, this returns the + * place to put that info. + */ +#define DB_SET_TXN_LSNP(txn, blsnp, llsnp) \ + ((txn)->set_txn_lsnp(txn, blsnp, llsnp)) + +/******************************************************* + * Shared buffer cache (mpool). + *******************************************************/ +/* Priority values for DB_MPOOLFILE->{put,set_priority}. */ +typedef enum { + DB_PRIORITY_UNCHANGED=0, + DB_PRIORITY_VERY_LOW=1, + DB_PRIORITY_LOW=2, + DB_PRIORITY_DEFAULT=3, + DB_PRIORITY_HIGH=4, + DB_PRIORITY_VERY_HIGH=5 +} DB_CACHE_PRIORITY; + +/* Per-process DB_MPOOLFILE information. */ +struct __db_mpoolfile { + DB_FH *fhp; /* Underlying file handle. */ + + /* + * !!! + * The ref, pinref and q fields are protected by the region lock. + */ + u_int32_t ref; /* Reference count. */ + + u_int32_t pinref; /* Pinned block reference count. */ + + /* + * !!! + * Explicit representations of structures from queue.h. + * TAILQ_ENTRY(__db_mpoolfile) q; + */ + struct { + struct __db_mpoolfile *tqe_next; + struct __db_mpoolfile **tqe_prev; + } q; /* Linked list of DB_MPOOLFILE's. */ + + /* + * !!! + * The rest of the fields (with the exception of the MP_FLUSH flag) + * are not thread-protected, even when they may be modified at any + * time by the application. The reason is the DB_MPOOLFILE handle + * is single-threaded from the viewpoint of the application, and so + * the only fields needing to be thread-protected are those accessed + * by checkpoint or sync threads when using DB_MPOOLFILE structures + * to flush buffers from the cache. + */ + ENV *env; /* Environment */ + MPOOLFILE *mfp; /* Underlying MPOOLFILE. */ + + u_int32_t clear_len; /* Cleared length on created pages. */ + u_int8_t /* Unique file ID. */ + fileid[DB_FILE_ID_LEN]; + int ftype; /* File type. */ + int32_t lsn_offset; /* LSN offset in page. */ + u_int32_t gbytes, bytes; /* Maximum file size. */ + DBT *pgcookie; /* Byte-string passed to pgin/pgout. */ + int32_t priority; /* Cache priority. */ + + void *addr; /* Address of mmap'd region. */ + size_t len; /* Length of mmap'd region. */ + + u_int32_t config_flags; /* Flags to DB_MPOOLFILE->set_flags. */ + + /* DB_MPOOLFILE PUBLIC HANDLE LIST BEGIN */ + int (*close) __P((DB_MPOOLFILE *, u_int32_t)); + int (*get) + __P((DB_MPOOLFILE *, db_pgno_t *, DB_TXN *, u_int32_t, void *)); + int (*get_clear_len) __P((DB_MPOOLFILE *, u_int32_t *)); + int (*get_fileid) __P((DB_MPOOLFILE *, u_int8_t *)); + int (*get_flags) __P((DB_MPOOLFILE *, u_int32_t *)); + int (*get_ftype) __P((DB_MPOOLFILE *, int *)); + int (*get_last_pgno) __P((DB_MPOOLFILE *, db_pgno_t *)); + int (*get_lsn_offset) __P((DB_MPOOLFILE *, int32_t *)); + int (*get_maxsize) __P((DB_MPOOLFILE *, u_int32_t *, u_int32_t *)); + int (*get_pgcookie) __P((DB_MPOOLFILE *, DBT *)); + int (*get_priority) __P((DB_MPOOLFILE *, DB_CACHE_PRIORITY *)); + int (*open) __P((DB_MPOOLFILE *, const char *, u_int32_t, int, size_t)); + int (*put) __P((DB_MPOOLFILE *, void *, DB_CACHE_PRIORITY, u_int32_t)); + int (*set_clear_len) __P((DB_MPOOLFILE *, u_int32_t)); + int (*set_fileid) __P((DB_MPOOLFILE *, u_int8_t *)); + int (*set_flags) __P((DB_MPOOLFILE *, u_int32_t, int)); + int (*set_ftype) __P((DB_MPOOLFILE *, int)); + int (*set_lsn_offset) __P((DB_MPOOLFILE *, int32_t)); + int (*set_maxsize) __P((DB_MPOOLFILE *, u_int32_t, u_int32_t)); + int (*set_pgcookie) __P((DB_MPOOLFILE *, DBT *)); + int (*set_priority) __P((DB_MPOOLFILE *, DB_CACHE_PRIORITY)); + int (*sync) __P((DB_MPOOLFILE *)); + /* DB_MPOOLFILE PUBLIC HANDLE LIST END */ + + /* + * MP_FILEID_SET, MP_OPEN_CALLED and MP_READONLY do not need to be + * thread protected because they are initialized before the file is + * linked onto the per-process lists, and never modified. + * + * MP_FLUSH is thread protected because it is potentially read/set by + * multiple threads of control. + */ +#define MP_FILEID_SET 0x001 /* Application supplied a file ID. */ +#define MP_FLUSH 0x002 /* Was opened to flush a buffer. */ +#define MP_MULTIVERSION 0x004 /* Opened for multiversion access. */ +#define MP_OPEN_CALLED 0x008 /* File opened. */ +#define MP_READONLY 0x010 /* File is readonly. */ +#define MP_DUMMY 0x020 /* File is dummy for __memp_fput. */ + u_int32_t flags; +}; + +/* Mpool statistics structure. */ +struct __db_mpool_stat { + u_int32_t st_gbytes; /* Total cache size: GB. */ + u_int32_t st_bytes; /* Total cache size: B. */ + u_int32_t st_ncache; /* Number of cache regions. */ + u_int32_t st_max_ncache; /* Maximum number of regions. */ + size_t st_mmapsize; /* Maximum file size for mmap. */ + int st_maxopenfd; /* Maximum number of open fd's. */ + int st_maxwrite; /* Maximum buffers to write. */ + db_timeout_t st_maxwrite_sleep; /* Sleep after writing max buffers. */ + u_int32_t st_pages; /* Total number of pages. */ +#ifndef __TEST_DB_NO_STATISTICS + u_int32_t st_map; /* Pages from mapped files. */ + uintmax_t st_cache_hit; /* Pages found in the cache. */ + uintmax_t st_cache_miss; /* Pages not found in the cache. */ + uintmax_t st_page_create; /* Pages created in the cache. */ + uintmax_t st_page_in; /* Pages read in. */ + uintmax_t st_page_out; /* Pages written out. */ + uintmax_t st_ro_evict; /* Clean pages forced from the cache. */ + uintmax_t st_rw_evict; /* Dirty pages forced from the cache. */ + uintmax_t st_page_trickle; /* Pages written by memp_trickle. */ + u_int32_t st_page_clean; /* Clean pages. */ + u_int32_t st_page_dirty; /* Dirty pages. */ + u_int32_t st_hash_buckets; /* Number of hash buckets. */ + u_int32_t st_pagesize; /* Assumed page size. */ + u_int32_t st_hash_searches; /* Total hash chain searches. */ + u_int32_t st_hash_longest; /* Longest hash chain searched. */ + uintmax_t st_hash_examined; /* Total hash entries searched. */ + uintmax_t st_hash_nowait; /* Hash lock granted with nowait. */ + uintmax_t st_hash_wait; /* Hash lock granted after wait. */ + uintmax_t st_hash_max_nowait; /* Max hash lock granted with nowait. */ + uintmax_t st_hash_max_wait; /* Max hash lock granted after wait. */ + uintmax_t st_region_nowait; /* Region lock granted with nowait. */ + uintmax_t st_region_wait; /* Region lock granted after wait. */ + uintmax_t st_mvcc_frozen; /* Buffers frozen. */ + uintmax_t st_mvcc_thawed; /* Buffers thawed. */ + uintmax_t st_mvcc_freed; /* Frozen buffers freed. */ + uintmax_t st_alloc; /* Number of page allocations. */ + uintmax_t st_alloc_buckets; /* Buckets checked during allocation. */ + uintmax_t st_alloc_max_buckets;/* Max checked during allocation. */ + uintmax_t st_alloc_pages; /* Pages checked during allocation. */ + uintmax_t st_alloc_max_pages; /* Max checked during allocation. */ + uintmax_t st_io_wait; /* Thread waited on buffer I/O. */ + uintmax_t st_sync_interrupted; /* Number of times sync interrupted. */ + roff_t st_regsize; /* Region size. */ +#endif +}; + +/* Mpool file statistics structure. */ +struct __db_mpool_fstat { + char *file_name; /* File name. */ + u_int32_t st_pagesize; /* Page size. */ +#ifndef __TEST_DB_NO_STATISTICS + u_int32_t st_map; /* Pages from mapped files. */ + uintmax_t st_cache_hit; /* Pages found in the cache. */ + uintmax_t st_cache_miss; /* Pages not found in the cache. */ + uintmax_t st_page_create; /* Pages created in the cache. */ + uintmax_t st_page_in; /* Pages read in. */ + uintmax_t st_page_out; /* Pages written out. */ +#endif +}; + +/******************************************************* + * Transactions and recovery. + *******************************************************/ +#define DB_TXNVERSION 1 + +typedef enum { + DB_TXN_ABORT=0, /* Public. */ + DB_TXN_APPLY=1, /* Public. */ + DB_TXN_BACKWARD_ROLL=3, /* Public. */ + DB_TXN_FORWARD_ROLL=4, /* Public. */ + DB_TXN_OPENFILES=5, /* Internal. */ + DB_TXN_POPENFILES=6, /* Internal. */ + DB_TXN_PRINT=7 /* Public. */ +} db_recops; + +/* + * BACKWARD_ALLOC is used during the forward pass to pick up any aborted + * allocations for files that were created during the forward pass. + * The main difference between _ALLOC and _ROLL is that the entry for + * the file not exist during the rollforward pass. + */ +#define DB_UNDO(op) ((op) == DB_TXN_ABORT || (op) == DB_TXN_BACKWARD_ROLL) +#define DB_REDO(op) ((op) == DB_TXN_FORWARD_ROLL || (op) == DB_TXN_APPLY) + +struct __db_txn { + DB_TXNMGR *mgrp; /* Pointer to transaction manager. */ + DB_TXN *parent; /* Pointer to transaction's parent. */ + DB_THREAD_INFO *thread_info; /* Pointer to thread information. */ + + u_int32_t txnid; /* Unique transaction id. */ + char *name; /* Transaction name. */ + DB_LOCKER *locker; /* Locker for this txn. */ + + void *td; /* Detail structure within region. */ + db_timeout_t lock_timeout; /* Timeout for locks for this txn. */ + db_timeout_t expire; /* Time transaction expires. */ + void *txn_list; /* Undo information for parent. */ + + /* + * !!! + * Explicit representations of structures from queue.h. + * TAILQ_ENTRY(__db_txn) links; + */ + struct { + struct __db_txn *tqe_next; + struct __db_txn **tqe_prev; + } links; /* Links transactions off manager. */ + + /* + * !!! + * Explicit representations of structures from queue.h. + * TAILQ_HEAD(__kids, __db_txn) kids; + */ + struct __kids { + struct __db_txn *tqh_first; + struct __db_txn **tqh_last; + } kids; + + /* + * !!! + * Explicit representations of structures from queue.h. + * TAILQ_HEAD(__events, __txn_event) events; + */ + struct { + struct __txn_event *tqh_first; + struct __txn_event **tqh_last; + } events; /* Links deferred events. */ + + /* + * !!! + * Explicit representations of structures from queue.h. + * STAILQ_HEAD(__logrec, __txn_logrec) logs; + */ + struct { + struct __txn_logrec *stqh_first; + struct __txn_logrec **stqh_last; + } logs; /* Links in memory log records. */ + + /* + * !!! + * Explicit representations of structures from queue.h. + * TAILQ_ENTRY(__db_txn) klinks; + */ + struct { + struct __db_txn *tqe_next; + struct __db_txn **tqe_prev; + } klinks; + + void *api_internal; /* C++ API private. */ + void *xml_internal; /* XML API private. */ + + u_int32_t cursors; /* Number of cursors open for txn */ + + /* DB_TXN PUBLIC HANDLE LIST BEGIN */ + int (*abort) __P((DB_TXN *)); + int (*commit) __P((DB_TXN *, u_int32_t)); + int (*discard) __P((DB_TXN *, u_int32_t)); + int (*get_name) __P((DB_TXN *, const char **)); + u_int32_t (*id) __P((DB_TXN *)); + int (*prepare) __P((DB_TXN *, u_int8_t *)); + int (*set_name) __P((DB_TXN *, const char *)); + int (*set_timeout) __P((DB_TXN *, db_timeout_t, u_int32_t)); + /* DB_TXN PUBLIC HANDLE LIST END */ + + /* DB_TXN PRIVATE HANDLE LIST BEGIN */ + void (*set_txn_lsnp) __P((DB_TXN *txn, DB_LSN **, DB_LSN **)); + /* DB_TXN PRIVATE HANDLE LIST END */ + +#define TXN_CHILDCOMMIT 0x0001 /* Txn has committed. */ +#define TXN_CDSGROUP 0x0002 /* CDS group handle. */ +#define TXN_COMPENSATE 0x0004 /* Compensating transaction. */ +#define TXN_DEADLOCK 0x0008 /* Txn has deadlocked. */ +#define TXN_LOCKTIMEOUT 0x0010 /* Txn has a lock timeout. */ +#define TXN_MALLOC 0x0020 /* Structure allocated by TXN system. */ +#define TXN_NOSYNC 0x0040 /* Do not sync on prepare and commit. */ +#define TXN_NOWAIT 0x0080 /* Do not wait on locks. */ +#define TXN_PRIVATE 0x0100 /* Txn owned by cursor.. */ +#define TXN_READ_COMMITTED 0x0200 /* Txn has degree 2 isolation. */ +#define TXN_READ_UNCOMMITTED 0x0400 /* Txn has degree 1 isolation. */ +#define TXN_RESTORED 0x0800 /* Txn has been restored. */ +#define TXN_SNAPSHOT 0x1000 /* Snapshot Isolation. */ +#define TXN_SYNC 0x2000 /* Write and sync on prepare/commit. */ +#define TXN_WRITE_NOSYNC 0x4000 /* Write only on prepare/commit. */ + u_int32_t flags; +}; + +#define TXN_SYNC_FLAGS (TXN_SYNC | TXN_NOSYNC | TXN_WRITE_NOSYNC) + +/* + * Structure used for two phase commit interface. + * We set the size of our global transaction id (gid) to be 128 in order + * to match that defined by the XA X/Open standard. + */ +#define DB_GID_SIZE 128 +struct __db_preplist { + DB_TXN *txn; + u_int8_t gid[DB_GID_SIZE]; +}; + +/* Transaction statistics structure. */ +struct __db_txn_active { + u_int32_t txnid; /* Transaction ID */ + u_int32_t parentid; /* Transaction ID of parent */ + pid_t pid; /* Process owning txn ID */ + db_threadid_t tid; /* Thread owning txn ID */ + + DB_LSN lsn; /* LSN when transaction began */ + + DB_LSN read_lsn; /* Read LSN for MVCC */ + u_int32_t mvcc_ref; /* MVCC reference count */ + +#define TXN_ABORTED 1 +#define TXN_COMMITTED 2 +#define TXN_PREPARED 3 +#define TXN_RUNNING 4 + u_int32_t status; /* Status of the transaction */ + + u_int8_t gid[DB_GID_SIZE]; /* Global transaction ID */ + char name[51]; /* 50 bytes of name, nul termination */ +}; + +struct __db_txn_stat { + u_int32_t st_nrestores; /* number of restored transactions + after recovery. */ +#ifndef __TEST_DB_NO_STATISTICS + DB_LSN st_last_ckp; /* lsn of the last checkpoint */ + time_t st_time_ckp; /* time of last checkpoint */ + u_int32_t st_last_txnid; /* last transaction id given out */ + u_int32_t st_maxtxns; /* maximum txns possible */ + uintmax_t st_naborts; /* number of aborted transactions */ + uintmax_t st_nbegins; /* number of begun transactions */ + uintmax_t st_ncommits; /* number of committed transactions */ + u_int32_t st_nactive; /* number of active transactions */ + u_int32_t st_nsnapshot; /* number of snapshot transactions */ + u_int32_t st_maxnactive; /* maximum active transactions */ + u_int32_t st_maxnsnapshot; /* maximum snapshot transactions */ + DB_TXN_ACTIVE *st_txnarray; /* array of active transactions */ + uintmax_t st_region_wait; /* Region lock granted after wait. */ + uintmax_t st_region_nowait; /* Region lock granted without wait. */ + roff_t st_regsize; /* Region size. */ +#endif +}; + +/******************************************************* + * Replication. + *******************************************************/ +/* Special, out-of-band environment IDs. */ +#define DB_EID_BROADCAST -1 +#define DB_EID_INVALID -2 + +#define DB_REP_DEFAULT_PRIORITY 100 + +/* Acknowledgement policies. */ +#define DB_REPMGR_ACKS_ALL 1 +#define DB_REPMGR_ACKS_ALL_PEERS 2 +#define DB_REPMGR_ACKS_NONE 3 +#define DB_REPMGR_ACKS_ONE 4 +#define DB_REPMGR_ACKS_ONE_PEER 5 +#define DB_REPMGR_ACKS_QUORUM 6 + +/* Replication timeout configuration values. */ +#define DB_REP_ACK_TIMEOUT 1 /* RepMgr acknowledgements. */ +#define DB_REP_CHECKPOINT_DELAY 2 /* Master checkpoint delay. */ +#define DB_REP_CONNECTION_RETRY 3 /* RepMgr connections. */ +#define DB_REP_ELECTION_RETRY 4 /* RepMgr elect retries. */ +#define DB_REP_ELECTION_TIMEOUT 5 /* Rep normal elections. */ +#define DB_REP_FULL_ELECTION_TIMEOUT 6 /* Rep full elections. */ +#define DB_REP_HEARTBEAT_MONITOR 7 /* RepMgr client HB monitor. */ +#define DB_REP_HEARTBEAT_SEND 8 /* RepMgr master send freq. */ +#define DB_REP_LEASE_TIMEOUT 9 /* Master leases. */ + +/* Event notification types. */ +#define DB_EVENT_NO_SUCH_EVENT 0 /* out-of-band sentinel value */ +#define DB_EVENT_PANIC 1 +#define DB_EVENT_REG_ALIVE 2 +#define DB_EVENT_REG_PANIC 3 +#define DB_EVENT_REP_CLIENT 4 +#define DB_EVENT_REP_ELECTED 5 +#define DB_EVENT_REP_MASTER 6 +#define DB_EVENT_REP_NEWMASTER 7 +#define DB_EVENT_REP_PERM_FAILED 8 +#define DB_EVENT_REP_STARTUPDONE 9 +#define DB_EVENT_WRITE_FAILED 10 + +/* Replication Manager site status. */ +struct __db_repmgr_site { + int eid; + char *host; + u_int port; + +#define DB_REPMGR_CONNECTED 0x01 +#define DB_REPMGR_DISCONNECTED 0x02 + u_int32_t status; +}; + +/* Replication statistics. */ +struct __db_rep_stat { + /* !!! + * Many replication statistics fields cannot be protected by a mutex + * without an unacceptable performance penalty, since most message + * processing is done without the need to hold a region-wide lock. + * Fields whose comments end with a '+' may be updated without holding + * the replication or log mutexes (as appropriate), and thus may be + * off somewhat (or, on unreasonable architectures under unlucky + * circumstances, garbaged). + */ + uintmax_t st_log_queued; /* Log records currently queued.+ */ + u_int32_t st_startup_complete; /* Site completed client sync-up. */ +#ifndef __TEST_DB_NO_STATISTICS + u_int32_t st_status; /* Current replication status. */ + DB_LSN st_next_lsn; /* Next LSN to use or expect. */ + DB_LSN st_waiting_lsn; /* LSN we're awaiting, if any. */ + DB_LSN st_max_perm_lsn; /* Maximum permanent LSN. */ + db_pgno_t st_next_pg; /* Next pg we expect. */ + db_pgno_t st_waiting_pg; /* pg we're awaiting, if any. */ + + u_int32_t st_dupmasters; /* # of times a duplicate master + condition was detected.+ */ + int st_env_id; /* Current environment ID. */ + u_int32_t st_env_priority; /* Current environment priority. */ + uintmax_t st_bulk_fills; /* Bulk buffer fills. */ + uintmax_t st_bulk_overflows; /* Bulk buffer overflows. */ + uintmax_t st_bulk_records; /* Bulk records stored. */ + uintmax_t st_bulk_transfers; /* Transfers of bulk buffers. */ + uintmax_t st_client_rerequests;/* Number of forced rerequests. */ + uintmax_t st_client_svc_req; /* Number of client service requests + received by this client. */ + uintmax_t st_client_svc_miss; /* Number of client service requests + missing on this client. */ + u_int32_t st_gen; /* Current generation number. */ + u_int32_t st_egen; /* Current election gen number. */ + uintmax_t st_log_duplicated; /* Log records received multiply.+ */ + uintmax_t st_log_queued_max; /* Max. log records queued at once.+ */ + uintmax_t st_log_queued_total; /* Total # of log recs. ever queued.+ */ + uintmax_t st_log_records; /* Log records received and put.+ */ + uintmax_t st_log_requested; /* Log recs. missed and requested.+ */ + int st_master; /* Env. ID of the current master. */ + uintmax_t st_master_changes; /* # of times we've switched masters. */ + uintmax_t st_msgs_badgen; /* Messages with a bad generation #.+ */ + uintmax_t st_msgs_processed; /* Messages received and processed.+ */ + uintmax_t st_msgs_recover; /* Messages ignored because this site + was a client in recovery.+ */ + uintmax_t st_msgs_send_failures;/* # of failed message sends.+ */ + uintmax_t st_msgs_sent; /* # of successful message sends.+ */ + uintmax_t st_newsites; /* # of NEWSITE msgs. received.+ */ + u_int32_t st_nsites; /* Current number of sites we will + assume during elections. */ + uintmax_t st_nthrottles; /* # of times we were throttled. */ + uintmax_t st_outdated; /* # of times we detected and returned + an OUTDATED condition.+ */ + uintmax_t st_pg_duplicated; /* Pages received multiply.+ */ + uintmax_t st_pg_records; /* Pages received and stored.+ */ + uintmax_t st_pg_requested; /* Pages missed and requested.+ */ + uintmax_t st_txns_applied; /* # of transactions applied.+ */ + uintmax_t st_startsync_delayed;/* # of STARTSYNC msgs delayed.+ */ + + /* Elections generally. */ + uintmax_t st_elections; /* # of elections held.+ */ + uintmax_t st_elections_won; /* # of elections won by this site.+ */ + + /* Statistics about an in-progress election. */ + int st_election_cur_winner; /* Current front-runner. */ + u_int32_t st_election_gen; /* Election generation number. */ + DB_LSN st_election_lsn; /* Max. LSN of current winner. */ + u_int32_t st_election_nsites; /* # of "registered voters". */ + u_int32_t st_election_nvotes; /* # of "registered voters" needed. */ + u_int32_t st_election_priority; /* Current election priority. */ + int st_election_status; /* Current election status. */ + u_int32_t st_election_tiebreaker;/* Election tiebreaker value. */ + u_int32_t st_election_votes; /* Votes received in this round. */ + u_int32_t st_election_sec; /* Last election time seconds. */ + u_int32_t st_election_usec; /* Last election time useconds. */ + u_int32_t st_max_lease_sec; /* Maximum lease timestamp seconds. */ + u_int32_t st_max_lease_usec; /* Maximum lease timestamp useconds. */ + + /* Undocumented statistics only used by the test system. */ +#ifdef CONFIG_TEST + u_int32_t st_filefail_cleanups; /* # of FILE_FAIL cleanups done. */ +#endif +#endif +}; + +/* Replication Manager statistics. */ +struct __db_repmgr_stat { + uintmax_t st_perm_failed; /* # of insufficiently ack'ed msgs. */ + uintmax_t st_msgs_queued; /* # msgs queued for network delay. */ + uintmax_t st_msgs_dropped; /* # msgs discarded due to excessive + queue length. */ + uintmax_t st_connection_drop; /* Existing connections dropped. */ + uintmax_t st_connect_fail; /* Failed new connection attempts. */ +}; + +/******************************************************* + * Sequences. + *******************************************************/ +/* + * The storage record for a sequence. + */ +struct __db_seq_record { + u_int32_t seq_version; /* Version size/number. */ + u_int32_t flags; /* DB_SEQ_XXX Flags. */ + db_seq_t seq_value; /* Current value. */ + db_seq_t seq_max; /* Max permitted. */ + db_seq_t seq_min; /* Min permitted. */ +}; + +/* + * Handle for a sequence object. + */ +struct __db_sequence { + DB *seq_dbp; /* DB handle for this sequence. */ + db_mutex_t mtx_seq; /* Mutex if sequence is threaded. */ + DB_SEQ_RECORD *seq_rp; /* Pointer to current data. */ + DB_SEQ_RECORD seq_record; /* Data from DB_SEQUENCE. */ + int32_t seq_cache_size; /* Number of values cached. */ + db_seq_t seq_last_value; /* Last value cached. */ + DBT seq_key; /* DBT pointing to sequence key. */ + DBT seq_data; /* DBT pointing to seq_record. */ + + /* API-private structure: used by C++ and Java. */ + void *api_internal; + + /* DB_SEQUENCE PUBLIC HANDLE LIST BEGIN */ + int (*close) __P((DB_SEQUENCE *, u_int32_t)); + int (*get) __P((DB_SEQUENCE *, + DB_TXN *, int32_t, db_seq_t *, u_int32_t)); + int (*get_cachesize) __P((DB_SEQUENCE *, int32_t *)); + int (*get_db) __P((DB_SEQUENCE *, DB **)); + int (*get_flags) __P((DB_SEQUENCE *, u_int32_t *)); + int (*get_key) __P((DB_SEQUENCE *, DBT *)); + int (*get_range) __P((DB_SEQUENCE *, + db_seq_t *, db_seq_t *)); + int (*initial_value) __P((DB_SEQUENCE *, db_seq_t)); + int (*open) __P((DB_SEQUENCE *, + DB_TXN *, DBT *, u_int32_t)); + int (*remove) __P((DB_SEQUENCE *, DB_TXN *, u_int32_t)); + int (*set_cachesize) __P((DB_SEQUENCE *, int32_t)); + int (*set_flags) __P((DB_SEQUENCE *, u_int32_t)); + int (*set_range) __P((DB_SEQUENCE *, db_seq_t, db_seq_t)); + int (*stat) __P((DB_SEQUENCE *, + DB_SEQUENCE_STAT **, u_int32_t)); + int (*stat_print) __P((DB_SEQUENCE *, u_int32_t)); + /* DB_SEQUENCE PUBLIC HANDLE LIST END */ +}; + +struct __db_seq_stat { + uintmax_t st_wait; /* Sequence lock granted w/o wait. */ + uintmax_t st_nowait; /* Sequence lock granted after wait. */ + db_seq_t st_current; /* Current value in db. */ + db_seq_t st_value; /* Current cached value. */ + db_seq_t st_last_value; /* Last cached value. */ + db_seq_t st_min; /* Minimum value. */ + db_seq_t st_max; /* Maximum value. */ + int32_t st_cache_size; /* Cache size. */ + u_int32_t st_flags; /* Flag value. */ +}; + +/******************************************************* + * Access methods. + *******************************************************/ +typedef enum { + DB_BTREE=1, + DB_HASH=2, + DB_RECNO=3, + DB_QUEUE=4, + DB_UNKNOWN=5 /* Figure it out on open. */ +} DBTYPE; + +#define DB_RENAMEMAGIC 0x030800 /* File has been renamed. */ + +#define DB_BTREEVERSION 9 /* Current btree version. */ +#define DB_BTREEOLDVER 8 /* Oldest btree version supported. */ +#define DB_BTREEMAGIC 0x053162 + +#define DB_HASHVERSION 9 /* Current hash version. */ +#define DB_HASHOLDVER 7 /* Oldest hash version supported. */ +#define DB_HASHMAGIC 0x061561 + +#define DB_QAMVERSION 4 /* Current queue version. */ +#define DB_QAMOLDVER 3 /* Oldest queue version supported. */ +#define DB_QAMMAGIC 0x042253 + +#define DB_SEQUENCE_VERSION 2 /* Current sequence version. */ +#define DB_SEQUENCE_OLDVER 1 /* Oldest sequence version supported. */ + +/* + * DB access method and cursor operation values. Each value is an operation + * code to which additional bit flags are added. + */ +#define DB_AFTER 1 /* Dbc.put */ +#define DB_APPEND 2 /* Db.put */ +#define DB_BEFORE 3 /* Dbc.put */ +#define DB_CONSUME 4 /* Db.get */ +#define DB_CONSUME_WAIT 5 /* Db.get */ +#define DB_CURRENT 6 /* Dbc.get, Dbc.put, DbLogc.get */ +#define DB_FIRST 7 /* Dbc.get, DbLogc->get */ +#define DB_GET_BOTH 8 /* Db.get, Dbc.get */ +#define DB_GET_BOTHC 9 /* Dbc.get (internal) */ +#define DB_GET_BOTH_RANGE 10 /* Db.get, Dbc.get */ +#define DB_GET_RECNO 11 /* Dbc.get */ +#define DB_JOIN_ITEM 12 /* Dbc.get; don't do primary lookup */ +#define DB_KEYFIRST 13 /* Dbc.put */ +#define DB_KEYLAST 14 /* Dbc.put */ +#define DB_LAST 15 /* Dbc.get, DbLogc->get */ +#define DB_NEXT 16 /* Dbc.get, DbLogc->get */ +#define DB_NEXT_DUP 17 /* Dbc.get */ +#define DB_NEXT_NODUP 18 /* Dbc.get */ +#define DB_NODUPDATA 19 /* Db.put, Dbc.put */ +#define DB_NOOVERWRITE 20 /* Db.put */ +#define DB_NOSYNC 21 /* Db.close */ +#define DB_OVERWRITE_DUP 22 /* Dbc.put, Db.put; no DB_KEYEXIST */ +#define DB_POSITION 23 /* Dbc.dup */ +#define DB_PREV 24 /* Dbc.get, DbLogc->get */ +#define DB_PREV_DUP 25 /* Dbc.get */ +#define DB_PREV_NODUP 26 /* Dbc.get */ +#define DB_SET 27 /* Dbc.get, DbLogc->get */ +#define DB_SET_RANGE 28 /* Dbc.get */ +#define DB_SET_RECNO 29 /* Db.get, Dbc.get */ +#define DB_UPDATE_SECONDARY 30 /* Dbc.get, Dbc.del (internal) */ +#define DB_SET_LTE 31 /* Dbc.get (internal) */ +#define DB_GET_BOTH_LTE 32 /* Dbc.get (internal) */ + +/* This has to change when the max opcode hits 255. */ +#define DB_OPFLAGS_MASK 0x000000ff /* Mask for operations flags. */ + +/* + * DB (user visible) error return codes. + * + * !!! + * We don't want our error returns to conflict with other packages where + * possible, so pick a base error value that's hopefully not common. We + * document that we own the error name space from -30,800 to -30,999. + */ +/* DB (public) error return codes. */ +#define DB_BUFFER_SMALL (-30999)/* User memory too small for return. */ +#define DB_DONOTINDEX (-30998)/* "Null" return from 2ndary callbk. */ +#define DB_FOREIGN_CONFLICT (-30997)/* A foreign db constraint triggered. */ +#define DB_KEYEMPTY (-30996)/* Key/data deleted or never created. */ +#define DB_KEYEXIST (-30995)/* The key/data pair already exists. */ +#define DB_LOCK_DEADLOCK (-30994)/* Deadlock. */ +#define DB_LOCK_NOTGRANTED (-30993)/* Lock unavailable. */ +#define DB_LOG_BUFFER_FULL (-30992)/* In-memory log buffer full. */ +#define DB_NOSERVER (-30991)/* Server panic return. */ +#define DB_NOSERVER_HOME (-30990)/* Bad home sent to server. */ +#define DB_NOSERVER_ID (-30989)/* Bad ID sent to server. */ +#define DB_NOTFOUND (-30988)/* Key/data pair not found (EOF). */ +#define DB_OLD_VERSION (-30987)/* Out-of-date version. */ +#define DB_PAGE_NOTFOUND (-30986)/* Requested page not found. */ +#define DB_REP_DUPMASTER (-30985)/* There are two masters. */ +#define DB_REP_HANDLE_DEAD (-30984)/* Rolled back a commit. */ +#define DB_REP_HOLDELECTION (-30983)/* Time to hold an election. */ +#define DB_REP_IGNORE (-30982)/* This msg should be ignored.*/ +#define DB_REP_ISPERM (-30981)/* Cached not written perm written.*/ +#define DB_REP_JOIN_FAILURE (-30980)/* Unable to join replication group. */ +#define DB_REP_LEASE_EXPIRED (-30979)/* Master lease has expired. */ +#define DB_REP_LOCKOUT (-30978)/* API/Replication lockout now. */ +#define DB_REP_NEWSITE (-30977)/* New site entered system. */ +#define DB_REP_NOTPERM (-30976)/* Permanent log record not written. */ +#define DB_REP_UNAVAIL (-30975)/* Site cannot currently be reached. */ +#define DB_RUNRECOVERY (-30974)/* Panic return. */ +#define DB_SECONDARY_BAD (-30973)/* Secondary index corrupt. */ +#define DB_VERIFY_BAD (-30972)/* Verify failed; bad format. */ +#define DB_VERSION_MISMATCH (-30971)/* Environment version mismatch. */ + +/* DB (private) error return codes. */ +#define DB_ALREADY_ABORTED (-30899) +#define DB_DELETED (-30898)/* Recovery file marked deleted. */ +#define DB_EVENT_NOT_HANDLED (-30897)/* Forward event to application. */ +#define DB_NEEDSPLIT (-30896)/* Page needs to be split. */ +#define DB_REP_BULKOVF (-30895)/* Rep bulk buffer overflow. */ +#define DB_REP_EGENCHG (-30894)/* Egen changed while in election. */ +#define DB_REP_LOGREADY (-30893)/* Rep log ready for recovery. */ +#define DB_REP_NEWMASTER (-30892)/* We have learned of a new master. */ +#define DB_REP_PAGEDONE (-30891)/* This page was already done. */ +#define DB_REP_PAGELOCKED (-30890)/* Page we want is locked. */ +#define DB_SURPRISE_KID (-30889)/* Child commit where parent + didn't know it was a parent. */ +#define DB_SWAPBYTES (-30888)/* Database needs byte swapping. */ +#define DB_TIMEOUT (-30887)/* Timed out waiting for election. */ +#define DB_TXN_CKP (-30886)/* Encountered ckp record in log. */ +#define DB_VERIFY_FATAL (-30885)/* DB->verify cannot proceed. */ + +/* Database handle. */ +struct __db { + /******************************************************* + * Public: owned by the application. + *******************************************************/ + u_int32_t pgsize; /* Database logical page size. */ + DB_CACHE_PRIORITY priority; /* Database priority in cache. */ + + /* Callbacks. */ + int (*db_append_recno) __P((DB *, DBT *, db_recno_t)); + void (*db_feedback) __P((DB *, int, int)); + int (*dup_compare) __P((DB *, const DBT *, const DBT *)); + + void *app_private; /* Application-private handle. */ + + /******************************************************* + * Private: owned by DB. + *******************************************************/ + DB_ENV *dbenv; /* Backing public environment. */ + ENV *env; /* Backing private environment. */ + + DBTYPE type; /* DB access method type. */ + + DB_MPOOLFILE *mpf; /* Backing buffer pool. */ + + db_mutex_t mutex; /* Synchronization for free threading */ + + char *fname, *dname; /* File/database passed to DB->open. */ + const char *dirname; /* Direcory of DB file. */ + u_int32_t open_flags; /* Flags passed to DB->open. */ + + u_int8_t fileid[DB_FILE_ID_LEN];/* File's unique ID for locking. */ + + u_int32_t adj_fileid; /* File's unique ID for curs. adj. */ + +#define DB_LOGFILEID_INVALID -1 + FNAME *log_filename; /* File's naming info for logging. */ + + db_pgno_t meta_pgno; /* Meta page number */ + DB_LOCKER *locker; /* Locker for handle locking. */ + DB_LOCKER *cur_locker; /* Current handle lock holder. */ + DB_TXN *cur_txn; /* Opening transaction. */ + DB_LOCKER *associate_locker; /* Locker for DB->associate call. */ + DB_LOCK handle_lock; /* Lock held on this handle. */ + + u_int cl_id; /* RPC: remote client id. */ + + time_t timestamp; /* Handle timestamp for replication. */ + u_int32_t fid_gen; /* Rep generation number for fids. */ + + /* + * Returned data memory for DB->get() and friends. + */ + DBT my_rskey; /* Secondary key. */ + DBT my_rkey; /* [Primary] key. */ + DBT my_rdata; /* Data. */ + + /* + * !!! + * Some applications use DB but implement their own locking outside of + * DB. If they're using fcntl(2) locking on the underlying database + * file, and we open and close a file descriptor for that file, we will + * discard their locks. The DB_FCNTL_LOCKING flag to DB->open is an + * undocumented interface to support this usage which leaves any file + * descriptors we open until DB->close. This will only work with the + * DB->open interface and simple caches, e.g., creating a transaction + * thread may open/close file descriptors this flag doesn't protect. + * Locking with fcntl(2) on a file that you don't own is a very, very + * unsafe thing to do. 'Nuff said. + */ + DB_FH *saved_open_fhp; /* Saved file handle. */ + + /* + * Linked list of DBP's, linked from the ENV, used to keep track + * of all open db handles for cursor adjustment. + * + * !!! + * Explicit representations of structures from queue.h. + * TAILQ_ENTRY(__db) dblistlinks; + */ + struct { + struct __db *tqe_next; + struct __db **tqe_prev; + } dblistlinks; + + /* + * Cursor queues. + * + * !!! + * Explicit representations of structures from queue.h. + * TAILQ_HEAD(__cq_fq, __dbc) free_queue; + * TAILQ_HEAD(__cq_aq, __dbc) active_queue; + * TAILQ_HEAD(__cq_jq, __dbc) join_queue; + */ + struct __cq_fq { + struct __dbc *tqh_first; + struct __dbc **tqh_last; + } free_queue; + struct __cq_aq { + struct __dbc *tqh_first; + struct __dbc **tqh_last; + } active_queue; + struct __cq_jq { + struct __dbc *tqh_first; + struct __dbc **tqh_last; + } join_queue; + + /* + * Secondary index support. + * + * Linked list of secondary indices -- set in the primary. + * + * !!! + * Explicit representations of structures from queue.h. + * LIST_HEAD(s_secondaries, __db); + */ + struct { + struct __db *lh_first; + } s_secondaries; + + /* + * List entries for secondaries, and reference count of how many + * threads are updating this secondary (see Dbc.put). + * + * !!! + * Note that these are synchronized by the primary's mutex, but + * filled in in the secondaries. + * + * !!! + * Explicit representations of structures from queue.h. + * LIST_ENTRY(__db) s_links; + */ + struct { + struct __db *le_next; + struct __db **le_prev; + } s_links; + u_int32_t s_refcnt; + + /* Secondary callback and free functions -- set in the secondary. */ + int (*s_callback) __P((DB *, const DBT *, const DBT *, DBT *)); + + /* Reference to primary -- set in the secondary. */ + DB *s_primary; + +#define DB_ASSOC_IMMUTABLE_KEY 0x00000001 /* Secondary key is immutable. */ + + /* Flags passed to associate -- set in the secondary. */ + u_int32_t s_assoc_flags; + + /* + * Foreign key support. + * + * Linked list of primary dbs -- set in the foreign db + * + * !!! + * Explicit representations of structures from queue.h. + * LIST_HEAD(f_primaries, __db); + */ + struct { + struct __db_foreign_info *lh_first; + } f_primaries; + + /* Reference to foreign -- set in the secondary. */ + DB *s_foreign; + + /* API-private structure: used by DB 1.85, C++, Java, Perl and Tcl */ + void *api_internal; + + /* Subsystem-private structure. */ + void *bt_internal; /* Btree/Recno access method. */ + void *h_internal; /* Hash access method. */ + void *p_internal; /* Partition informaiton. */ + void *q_internal; /* Queue access method. */ + + /* DB PUBLIC HANDLE LIST BEGIN */ + int (*associate) __P((DB *, DB_TXN *, DB *, + int (*)(DB *, const DBT *, const DBT *, DBT *), u_int32_t)); + int (*associate_foreign) __P((DB *, DB *, + int (*)(DB *, const DBT *, DBT *, const DBT *, int *), + u_int32_t)); + int (*close) __P((DB *, u_int32_t)); + int (*compact) __P((DB *, + DB_TXN *, DBT *, DBT *, DB_COMPACT *, u_int32_t, DBT *)); + int (*cursor) __P((DB *, DB_TXN *, DBC **, u_int32_t)); + int (*del) __P((DB *, DB_TXN *, DBT *, u_int32_t)); + void (*err) __P((DB *, int, const char *, ...)); + void (*errx) __P((DB *, const char *, ...)); + int (*exists) __P((DB *, DB_TXN *, DBT *, u_int32_t)); + int (*fd) __P((DB *, int *)); + int (*get) __P((DB *, DB_TXN *, DBT *, DBT *, u_int32_t)); + int (*get_alloc) __P((DB *, void *(**)(size_t), + void *(**)(void *, size_t), void (**)(void *))); + int (*get_append_recno) __P((DB *, int (**)(DB *, DBT *, db_recno_t))); + int (*get_bt_compare) + __P((DB *, int (**)(DB *, const DBT *, const DBT *))); + int (*get_bt_compress) __P((DB *, + int (**)(DB *, + const DBT *, const DBT *, const DBT *, const DBT *, DBT *), + int (**)(DB *, const DBT *, const DBT *, DBT *, DBT *, DBT *))); + int (*get_bt_minkey) __P((DB *, u_int32_t *)); + int (*get_bt_prefix) + __P((DB *, size_t (**)(DB *, const DBT *, const DBT *))); + int (*get_byteswapped) __P((DB *, int *)); + int (*get_cachesize) __P((DB *, u_int32_t *, u_int32_t *, int *)); + int (*get_create_dir) __P((DB *, const char **)); + int (*get_dbname) __P((DB *, const char **, const char **)); + int (*get_dup_compare) + __P((DB *, int (**)(DB *, const DBT *, const DBT *))); + int (*get_encrypt_flags) __P((DB *, u_int32_t *)); + DB_ENV *(*get_env) __P((DB *)); + void (*get_errcall) __P((DB *, + void (**)(const DB_ENV *, const char *, const char *))); + void (*get_errfile) __P((DB *, FILE **)); + void (*get_errpfx) __P((DB *, const char **)); + int (*get_feedback) __P((DB *, void (**)(DB *, int, int))); + int (*get_flags) __P((DB *, u_int32_t *)); + int (*get_h_compare) + __P((DB *, int (**)(DB *, const DBT *, const DBT *))); + int (*get_h_ffactor) __P((DB *, u_int32_t *)); + int (*get_h_hash) + __P((DB *, u_int32_t (**)(DB *, const void *, u_int32_t))); + int (*get_h_nelem) __P((DB *, u_int32_t *)); + int (*get_lorder) __P((DB *, int *)); + DB_MPOOLFILE *(*get_mpf) __P((DB *)); + void (*get_msgcall) __P((DB *, + void (**)(const DB_ENV *, const char *))); + void (*get_msgfile) __P((DB *, FILE **)); + int (*get_multiple) __P((DB *)); + int (*get_open_flags) __P((DB *, u_int32_t *)); + int (*get_pagesize) __P((DB *, u_int32_t *)); + int (*get_partition_callback) __P((DB *, + u_int32_t *, u_int32_t (**)(DB *, DBT *key))); + int (*get_partition_dirs) __P((DB *, const char ***)); + int (*get_partition_keys) __P((DB *, u_int32_t *, DBT **)); + int (*get_priority) __P((DB *, DB_CACHE_PRIORITY *)); + int (*get_q_extentsize) __P((DB *, u_int32_t *)); + int (*get_re_delim) __P((DB *, int *)); + int (*get_re_len) __P((DB *, u_int32_t *)); + int (*get_re_pad) __P((DB *, int *)); + int (*get_re_source) __P((DB *, const char **)); + int (*get_transactional) __P((DB *)); + int (*get_type) __P((DB *, DBTYPE *)); + int (*join) __P((DB *, DBC **, DBC **, u_int32_t)); + int (*key_range) + __P((DB *, DB_TXN *, DBT *, DB_KEY_RANGE *, u_int32_t)); + int (*open) __P((DB *, + DB_TXN *, const char *, const char *, DBTYPE, u_int32_t, int)); + int (*pget) __P((DB *, DB_TXN *, DBT *, DBT *, DBT *, u_int32_t)); + int (*put) __P((DB *, DB_TXN *, DBT *, DBT *, u_int32_t)); + int (*remove) __P((DB *, const char *, const char *, u_int32_t)); + int (*rename) __P((DB *, + const char *, const char *, const char *, u_int32_t)); + int (*set_alloc) __P((DB *, void *(*)(size_t), + void *(*)(void *, size_t), void (*)(void *))); + int (*set_append_recno) __P((DB *, int (*)(DB *, DBT *, db_recno_t))); + int (*set_bt_compare) + __P((DB *, int (*)(DB *, const DBT *, const DBT *))); + int (*set_bt_compress) __P((DB *, + int (*)(DB *, const DBT *, const DBT *, const DBT *, const DBT *, DBT *), + int (*)(DB *, const DBT *, const DBT *, DBT *, DBT *, DBT *))); + int (*set_bt_minkey) __P((DB *, u_int32_t)); + int (*set_bt_prefix) + __P((DB *, size_t (*)(DB *, const DBT *, const DBT *))); + int (*set_cachesize) __P((DB *, u_int32_t, u_int32_t, int)); + int (*set_create_dir) __P((DB *, const char *)); + int (*set_dup_compare) + __P((DB *, int (*)(DB *, const DBT *, const DBT *))); + int (*set_encrypt) __P((DB *, const char *, u_int32_t)); + void (*set_errcall) __P((DB *, + void (*)(const DB_ENV *, const char *, const char *))); + void (*set_errfile) __P((DB *, FILE *)); + void (*set_errpfx) __P((DB *, const char *)); + int (*set_feedback) __P((DB *, void (*)(DB *, int, int))); + int (*set_flags) __P((DB *, u_int32_t)); + int (*set_h_compare) + __P((DB *, int (*)(DB *, const DBT *, const DBT *))); + int (*set_h_ffactor) __P((DB *, u_int32_t)); + int (*set_h_hash) + __P((DB *, u_int32_t (*)(DB *, const void *, u_int32_t))); + int (*set_h_nelem) __P((DB *, u_int32_t)); + int (*set_lorder) __P((DB *, int)); + void (*set_msgcall) __P((DB *, void (*)(const DB_ENV *, const char *))); + void (*set_msgfile) __P((DB *, FILE *)); + int (*set_pagesize) __P((DB *, u_int32_t)); + int (*set_paniccall) __P((DB *, void (*)(DB_ENV *, int))); + int (*set_partition) __P((DB *, + u_int32_t, DBT *, u_int32_t (*)(DB *, DBT *key))); + int (*set_partition_dirs) __P((DB *, const char **)); + int (*set_priority) __P((DB *, DB_CACHE_PRIORITY)); + int (*set_q_extentsize) __P((DB *, u_int32_t)); + int (*set_re_delim) __P((DB *, int)); + int (*set_re_len) __P((DB *, u_int32_t)); + int (*set_re_pad) __P((DB *, int)); + int (*set_re_source) __P((DB *, const char *)); + int (*sort_multiple) __P((DB *, DBT *, DBT *, u_int32_t)); + int (*stat) __P((DB *, DB_TXN *, void *, u_int32_t)); + int (*stat_print) __P((DB *, u_int32_t)); + int (*sync) __P((DB *, u_int32_t)); + int (*truncate) __P((DB *, DB_TXN *, u_int32_t *, u_int32_t)); + int (*upgrade) __P((DB *, const char *, u_int32_t)); + int (*verify) + __P((DB *, const char *, const char *, FILE *, u_int32_t)); + /* DB PUBLIC HANDLE LIST END */ + + /* DB PRIVATE HANDLE LIST BEGIN */ + int (*dump) __P((DB *, const char *, + int (*)(void *, const void *), void *, int, int)); + int (*db_am_remove) __P((DB *, DB_THREAD_INFO *, + DB_TXN *, const char *, const char *, u_int32_t)); + int (*db_am_rename) __P((DB *, DB_THREAD_INFO *, + DB_TXN *, const char *, const char *, const char *)); + /* DB PRIVATE HANDLE LIST END */ + + /* + * Never called; these are a place to save function pointers + * so that we can undo an associate. + */ + int (*stored_get) __P((DB *, DB_TXN *, DBT *, DBT *, u_int32_t)); + int (*stored_close) __P((DB *, u_int32_t)); + +#define DB_OK_BTREE 0x01 +#define DB_OK_HASH 0x02 +#define DB_OK_QUEUE 0x04 +#define DB_OK_RECNO 0x08 + u_int32_t am_ok; /* Legal AM choices. */ + + /* + * This field really ought to be an AM_FLAG, but we have + * have run out of bits. If/when we decide to split up + * the flags, we can incorporate it. + */ + int preserve_fid; /* Do not free fileid on close. */ + +#define DB_AM_CHKSUM 0x00000001 /* Checksumming */ +#define DB_AM_COMPENSATE 0x00000002 /* Created by compensating txn */ +#define DB_AM_COMPRESS 0x00000004 /* Compressed BTree */ +#define DB_AM_CREATED 0x00000008 /* Database was created upon open */ +#define DB_AM_CREATED_MSTR 0x00000010 /* Encompassing file was created */ +#define DB_AM_DBM_ERROR 0x00000020 /* Error in DBM/NDBM database */ +#define DB_AM_DELIMITER 0x00000040 /* Variable length delimiter set */ +#define DB_AM_DISCARD 0x00000080 /* Discard any cached pages */ +#define DB_AM_DUP 0x00000100 /* DB_DUP */ +#define DB_AM_DUPSORT 0x00000200 /* DB_DUPSORT */ +#define DB_AM_ENCRYPT 0x00000400 /* Encryption */ +#define DB_AM_FIXEDLEN 0x00000800 /* Fixed-length records */ +#define DB_AM_INMEM 0x00001000 /* In-memory; no sync on close */ +#define DB_AM_INORDER 0x00002000 /* DB_INORDER */ +#define DB_AM_IN_RENAME 0x00004000 /* File is being renamed */ +#define DB_AM_NOT_DURABLE 0x00008000 /* Do not log changes */ +#define DB_AM_OPEN_CALLED 0x00010000 /* DB->open called */ +#define DB_AM_PAD 0x00020000 /* Fixed-length record pad */ +#define DB_AM_PGDEF 0x00040000 /* Page size was defaulted */ +#define DB_AM_RDONLY 0x00080000 /* Database is readonly */ +#define DB_AM_READ_UNCOMMITTED 0x00100000 /* Support degree 1 isolation */ +#define DB_AM_RECNUM 0x00200000 /* DB_RECNUM */ +#define DB_AM_RECOVER 0x00400000 /* DB opened by recovery routine */ +#define DB_AM_RENUMBER 0x00800000 /* DB_RENUMBER */ +#define DB_AM_REVSPLITOFF 0x01000000 /* DB_REVSPLITOFF */ +#define DB_AM_SECONDARY 0x02000000 /* Database is a secondary index */ +#define DB_AM_SNAPSHOT 0x04000000 /* DB_SNAPSHOT */ +#define DB_AM_SUBDB 0x08000000 /* Subdatabases supported */ +#define DB_AM_SWAP 0x10000000 /* Pages need to be byte-swapped */ +#define DB_AM_TXN 0x20000000 /* Opened in a transaction */ +#define DB_AM_VERIFYING 0x40000000 /* DB handle is in the verifier */ + u_int32_t orig_flags; /* Flags at open, for refresh */ + u_int32_t flags; +}; + +/* + * Macros for bulk operations. These are only intended for the C API. + * For C++, use DbMultiple*Iterator or DbMultiple*Builder. + * + * Bulk operations store multiple entries into a single DBT structure. The + * following macros assist with creating and reading these Multiple DBTs. + * + * The basic layout for single data items is: + * + * ------------------------------------------------------------------------- + * | data1 | ... | dataN | ..... |-1 | dNLen | dNOff | ... | d1Len | d1Off | + * ------------------------------------------------------------------------- + * + * For the DB_MULTIPLE_KEY* macros, the items are in key/data pairs, so data1 + * would be a key, and data2 its corresponding value (N is always even). + * + * For the DB_MULTIPLE_RECNO* macros, the record number is stored along with + * the len/off pair in the "header" section, and the list is zero terminated + * (since -1 is a valid record number): + * + * -------------------------------------------------------------------------- + * | d1 |..| dN |..| 0 | dNLen | dNOff | recnoN |..| d1Len | d1Off | recno1 | + * -------------------------------------------------------------------------- + */ +#define DB_MULTIPLE_INIT(pointer, dbt) \ + (pointer = (u_int8_t *)(dbt)->data + \ + (dbt)->ulen - sizeof(u_int32_t)) + +#define DB_MULTIPLE_NEXT(pointer, dbt, retdata, retdlen) \ + do { \ + u_int32_t *__p = (u_int32_t *)(pointer); \ + if (*__p == (u_int32_t)-1) { \ + retdata = NULL; \ + pointer = NULL; \ + break; \ + } \ + retdata = (u_int8_t *)(dbt)->data + *__p--; \ + retdlen = *__p--; \ + pointer = __p; \ + if (retdlen == 0 && retdata == (u_int8_t *)(dbt)->data) \ + retdata = NULL; \ + } while (0) + +#define DB_MULTIPLE_KEY_NEXT(pointer, dbt, retkey, retklen, retdata, retdlen) \ + do { \ + u_int32_t *__p = (u_int32_t *)(pointer); \ + if (*__p == (u_int32_t)-1) { \ + retdata = NULL; \ + retkey = NULL; \ + pointer = NULL; \ + break; \ + } \ + retkey = (u_int8_t *)(dbt)->data + *__p--; \ + retklen = *__p--; \ + retdata = (u_int8_t *)(dbt)->data + *__p--; \ + retdlen = *__p--; \ + pointer = __p; \ + } while (0) + +#define DB_MULTIPLE_RECNO_NEXT(pointer, dbt, recno, retdata, retdlen) \ + do { \ + u_int32_t *__p = (u_int32_t *)(pointer); \ + if (*__p == (u_int32_t)0) { \ + recno = 0; \ + retdata = NULL; \ + pointer = NULL; \ + break; \ + } \ + recno = *__p--; \ + retdata = (u_int8_t *)(dbt)->data + *__p--; \ + retdlen = *__p--; \ + pointer = __p; \ + } while (0) + +#define DB_MULTIPLE_WRITE_INIT(pointer, dbt) \ + do { \ + (dbt)->flags |= DB_DBT_BULK; \ + pointer = (u_int8_t *)(dbt)->data + \ + (dbt)->ulen - sizeof(u_int32_t); \ + *(u_int32_t *)(pointer) = (u_int32_t)-1; \ + } while (0) + +#define DB_MULTIPLE_RESERVE_NEXT(pointer, dbt, writedata, writedlen) \ + do { \ + u_int32_t *__p = (u_int32_t *)(pointer); \ + u_int32_t __off = ((pointer) == (u_int8_t *)(dbt)->data +\ + (dbt)->ulen - sizeof(u_int32_t)) ? 0 : __p[1] + __p[2];\ + if ((u_int8_t *)(dbt)->data + __off + (writedlen) > \ + (u_int8_t *)(__p - 2)) \ + writedata = NULL; \ + else { \ + writedata = (u_int8_t *)(dbt)->data + __off; \ + __p[0] = __off; \ + __p[-1] = (writedlen); \ + __p[-2] = (u_int32_t)-1; \ + pointer = __p - 2; \ + } \ + } while (0) + +#define DB_MULTIPLE_WRITE_NEXT(pointer, dbt, writedata, writedlen) \ + do { \ + void *__destd; \ + DB_MULTIPLE_RESERVE_NEXT((pointer), (dbt), \ + __destd, (writedlen)); \ + if (__destd == NULL) \ + pointer = NULL; \ + else \ + memcpy(__destd, (writedata), (writedlen)); \ + } while (0) + +#define DB_MULTIPLE_KEY_RESERVE_NEXT(pointer, dbt, writekey, writeklen, writedata, writedlen) \ + do { \ + u_int32_t *__p = (u_int32_t *)(pointer); \ + u_int32_t __off = ((pointer) == (u_int8_t *)(dbt)->data +\ + (dbt)->ulen - sizeof(u_int32_t)) ? 0 : __p[1] + __p[2];\ + if ((u_int8_t *)(dbt)->data + __off + (writeklen) + \ + (writedlen) > (u_int8_t *)(__p - 4)) { \ + writekey = NULL; \ + writedata = NULL; \ + } else { \ + writekey = (u_int8_t *)(dbt)->data + __off; \ + __p[0] = __off; \ + __p[-1] = (writeklen); \ + __p -= 2; \ + __off += (writeklen); \ + writedata = (u_int8_t *)(dbt)->data + __off; \ + __p[0] = __off; \ + __p[-1] = (writedlen); \ + __p[-2] = (u_int32_t)-1; \ + pointer = __p - 2; \ + } \ + } while (0) + +#define DB_MULTIPLE_KEY_WRITE_NEXT(pointer, dbt, writekey, writeklen, writedata, writedlen) \ + do { \ + void *__destk, *__destd; \ + DB_MULTIPLE_KEY_RESERVE_NEXT((pointer), (dbt), \ + __destk, (writeklen), __destd, (writedlen)); \ + if (__destk == NULL) \ + pointer = NULL; \ + else { \ + memcpy(__destk, (writekey), (writeklen)); \ + if (__destd != NULL) \ + memcpy(__destd, (writedata), (writedlen));\ + } \ + } while (0) + +#define DB_MULTIPLE_RECNO_WRITE_INIT(pointer, dbt) \ + do { \ + (dbt)->flags |= DB_DBT_BULK; \ + pointer = (u_int8_t *)(dbt)->data + \ + (dbt)->ulen - sizeof(u_int32_t); \ + *(u_int32_t *)(pointer) = 0; \ + } while (0) + +#define DB_MULTIPLE_RECNO_RESERVE_NEXT(pointer, dbt, recno, writedata, writedlen) \ + do { \ + u_int32_t *__p = (u_int32_t *)(pointer); \ + u_int32_t __off = ((pointer) == (u_int8_t *)(dbt)->data +\ + (dbt)->ulen - sizeof(u_int32_t)) ? 0 : __p[1] + __p[2]; \ + if (((u_int8_t *)(dbt)->data + __off) + (writedlen) > \ + (u_int8_t *)(__p - 3)) \ + writedata = NULL; \ + else { \ + writedata = (u_int8_t *)(dbt)->data + __off; \ + __p[0] = (u_int32_t)(recno); \ + __p[-1] = __off; \ + __p[-2] = (writedlen); \ + __p[-3] = 0; \ + pointer = __p - 3; \ + } \ + } while (0) + +#define DB_MULTIPLE_RECNO_WRITE_NEXT(pointer, dbt, recno, writedata, writedlen)\ + do { \ + void *__destd; \ + DB_MULTIPLE_RECNO_RESERVE_NEXT((pointer), (dbt), \ + (recno), __destd, (writedlen)); \ + if (__destd == NULL) \ + pointer = NULL; \ + else if ((writedlen) != 0) \ + memcpy(__destd, (writedata), (writedlen)); \ + } while (0) + +/******************************************************* + * Access method cursors. + *******************************************************/ +struct __dbc { + DB *dbp; /* Backing database */ + DB_ENV *dbenv; /* Backing environment */ + ENV *env; /* Backing environment */ + + DB_THREAD_INFO *thread_info; /* Thread that owns this cursor. */ + DB_TXN *txn; /* Associated transaction. */ + DB_CACHE_PRIORITY priority; /* Priority in cache. */ + + /* + * Active/free cursor queues. + * + * !!! + * Explicit representations of structures from queue.h. + * TAILQ_ENTRY(__dbc) links; + */ + struct { + DBC *tqe_next; + DBC **tqe_prev; + } links; + + /* + * The DBT *'s below are used by the cursor routines to return + * data to the user when DBT flags indicate that DB should manage + * the returned memory. They point at a DBT containing the buffer + * and length that will be used, and "belonging" to the handle that + * should "own" this memory. This may be a "my_*" field of this + * cursor--the default--or it may be the corresponding field of + * another cursor, a DB handle, a join cursor, etc. In general, it + * will be whatever handle the user originally used for the current + * DB interface call. + */ + DBT *rskey; /* Returned secondary key. */ + DBT *rkey; /* Returned [primary] key. */ + DBT *rdata; /* Returned data. */ + + DBT my_rskey; /* Space for returned secondary key. */ + DBT my_rkey; /* Space for returned [primary] key. */ + DBT my_rdata; /* Space for returned data. */ + + DB_LOCKER *lref; /* Reference to default locker. */ + DB_LOCKER *locker; /* Locker for this operation. */ + DBT lock_dbt; /* DBT referencing lock. */ + DB_LOCK_ILOCK lock; /* Object to be locked. */ + DB_LOCK mylock; /* CDB lock held on this cursor. */ + + u_int cl_id; /* Remote client id. */ + + DBTYPE dbtype; /* Cursor type. */ + + DBC_INTERNAL *internal; /* Access method private. */ + + /* DBC PUBLIC HANDLE LIST BEGIN */ + int (*close) __P((DBC *)); + int (*cmp) __P((DBC *, DBC *, int *, u_int32_t)); + int (*count) __P((DBC *, db_recno_t *, u_int32_t)); + int (*del) __P((DBC *, u_int32_t)); + int (*dup) __P((DBC *, DBC **, u_int32_t)); + int (*get) __P((DBC *, DBT *, DBT *, u_int32_t)); + int (*get_priority) __P((DBC *, DB_CACHE_PRIORITY *)); + int (*pget) __P((DBC *, DBT *, DBT *, DBT *, u_int32_t)); + int (*put) __P((DBC *, DBT *, DBT *, u_int32_t)); + int (*set_priority) __P((DBC *, DB_CACHE_PRIORITY)); + /* DBC PUBLIC HANDLE LIST END */ + + /* The following are the method names deprecated in the 4.6 release. */ + int (*c_close) __P((DBC *)); + int (*c_count) __P((DBC *, db_recno_t *, u_int32_t)); + int (*c_del) __P((DBC *, u_int32_t)); + int (*c_dup) __P((DBC *, DBC **, u_int32_t)); + int (*c_get) __P((DBC *, DBT *, DBT *, u_int32_t)); + int (*c_pget) __P((DBC *, DBT *, DBT *, DBT *, u_int32_t)); + int (*c_put) __P((DBC *, DBT *, DBT *, u_int32_t)); + + /* DBC PRIVATE HANDLE LIST BEGIN */ + int (*am_bulk) __P((DBC *, DBT *, u_int32_t)); + int (*am_close) __P((DBC *, db_pgno_t, int *)); + int (*am_del) __P((DBC *, u_int32_t)); + int (*am_destroy) __P((DBC *)); + int (*am_get) __P((DBC *, DBT *, DBT *, u_int32_t, db_pgno_t *)); + int (*am_put) __P((DBC *, DBT *, DBT *, u_int32_t, db_pgno_t *)); + int (*am_writelock) __P((DBC *)); + /* DBC PRIVATE HANDLE LIST END */ + +/* + * DBC_DONTLOCK and DBC_RECOVER are used during recovery and transaction + * abort. If a transaction is being aborted or recovered then DBC_RECOVER + * will be set and locking and logging will be disabled on this cursor. If + * we are performing a compensating transaction (e.g. free page processing) + * then DB_DONTLOCK will be set to inhibit locking, but logging will still + * be required. DB_DONTLOCK is also used if the whole database is locked. + */ +#define DBC_ACTIVE 0x00001 /* Cursor in use. */ +#define DBC_BULK 0x00002 /* Bulk update cursor. */ +#define DBC_DONTLOCK 0x00004 /* Don't lock on this cursor. */ +#define DBC_DOWNREV 0x00008 /* Down rev replication master. */ +#define DBC_DUPLICATE 0x00010 /* Create a duplicate cursor. */ +#define DBC_FROM_DB_GET 0x00020 /* Called from the DB->get() method. */ +#define DBC_MULTIPLE 0x00040 /* Return Multiple data. */ +#define DBC_MULTIPLE_KEY 0x00080 /* Return Multiple keys and data. */ +#define DBC_OPD 0x00100 /* Cursor references off-page dups. */ +#define DBC_OWN_LID 0x00200 /* Free lock id on destroy. */ +#define DBC_PARTITIONED 0x00400 /* Cursor for a partitioned db. */ +#define DBC_READ_COMMITTED 0x00800 /* Cursor has degree 2 isolation. */ +#define DBC_READ_UNCOMMITTED 0x01000 /* Cursor has degree 1 isolation. */ +#define DBC_RECOVER 0x02000 /* Recovery cursor; don't log/lock. */ +#define DBC_RMW 0x04000 /* Acquire write flag in read op. */ +#define DBC_TRANSIENT 0x08000 /* Cursor is transient. */ +#define DBC_WAS_READ_COMMITTED 0x10000 /* Cursor holds a read commited lock. */ +#define DBC_WRITECURSOR 0x20000 /* Cursor may be used to write (CDB). */ +#define DBC_WRITER 0x40000 /* Cursor immediately writing (CDB). */ + u_int32_t flags; +}; + +/* Key range statistics structure */ +struct __key_range { + double less; + double equal; + double greater; +}; + +/* Btree/Recno statistics structure. */ +struct __db_bt_stat { + u_int32_t bt_magic; /* Magic number. */ + u_int32_t bt_version; /* Version number. */ + u_int32_t bt_metaflags; /* Metadata flags. */ + u_int32_t bt_nkeys; /* Number of unique keys. */ + u_int32_t bt_ndata; /* Number of data items. */ + u_int32_t bt_pagecnt; /* Page count. */ + u_int32_t bt_pagesize; /* Page size. */ + u_int32_t bt_minkey; /* Minkey value. */ + u_int32_t bt_re_len; /* Fixed-length record length. */ + u_int32_t bt_re_pad; /* Fixed-length record pad. */ + u_int32_t bt_levels; /* Tree levels. */ + u_int32_t bt_int_pg; /* Internal pages. */ + u_int32_t bt_leaf_pg; /* Leaf pages. */ + u_int32_t bt_dup_pg; /* Duplicate pages. */ + u_int32_t bt_over_pg; /* Overflow pages. */ + u_int32_t bt_empty_pg; /* Empty pages. */ + u_int32_t bt_free; /* Pages on the free list. */ + uintmax_t bt_int_pgfree; /* Bytes free in internal pages. */ + uintmax_t bt_leaf_pgfree; /* Bytes free in leaf pages. */ + uintmax_t bt_dup_pgfree; /* Bytes free in duplicate pages. */ + uintmax_t bt_over_pgfree; /* Bytes free in overflow pages. */ +}; + +struct __db_compact { + /* Input Parameters. */ + u_int32_t compact_fillpercent; /* Desired fillfactor: 1-100 */ + db_timeout_t compact_timeout; /* Lock timeout. */ + u_int32_t compact_pages; /* Max pages to process. */ + /* Output Stats. */ + u_int32_t compact_pages_free; /* Number of pages freed. */ + u_int32_t compact_pages_examine; /* Number of pages examine. */ + u_int32_t compact_levels; /* Number of levels removed. */ + u_int32_t compact_deadlock; /* Number of deadlocks. */ + db_pgno_t compact_pages_truncated; /* Pages truncated to OS. */ + /* Internal. */ + db_pgno_t compact_truncate; /* Page number for truncation */ +}; + +/* Hash statistics structure. */ +struct __db_h_stat { + u_int32_t hash_magic; /* Magic number. */ + u_int32_t hash_version; /* Version number. */ + u_int32_t hash_metaflags; /* Metadata flags. */ + u_int32_t hash_nkeys; /* Number of unique keys. */ + u_int32_t hash_ndata; /* Number of data items. */ + u_int32_t hash_pagecnt; /* Page count. */ + u_int32_t hash_pagesize; /* Page size. */ + u_int32_t hash_ffactor; /* Fill factor specified at create. */ + u_int32_t hash_buckets; /* Number of hash buckets. */ + u_int32_t hash_free; /* Pages on the free list. */ + uintmax_t hash_bfree; /* Bytes free on bucket pages. */ + u_int32_t hash_bigpages; /* Number of big key/data pages. */ + uintmax_t hash_big_bfree; /* Bytes free on big item pages. */ + u_int32_t hash_overflows; /* Number of overflow pages. */ + uintmax_t hash_ovfl_free; /* Bytes free on ovfl pages. */ + u_int32_t hash_dup; /* Number of dup pages. */ + uintmax_t hash_dup_free; /* Bytes free on duplicate pages. */ +}; + +/* Queue statistics structure. */ +struct __db_qam_stat { + u_int32_t qs_magic; /* Magic number. */ + u_int32_t qs_version; /* Version number. */ + u_int32_t qs_metaflags; /* Metadata flags. */ + u_int32_t qs_nkeys; /* Number of unique keys. */ + u_int32_t qs_ndata; /* Number of data items. */ + u_int32_t qs_pagesize; /* Page size. */ + u_int32_t qs_extentsize; /* Pages per extent. */ + u_int32_t qs_pages; /* Data pages. */ + u_int32_t qs_re_len; /* Fixed-length record length. */ + u_int32_t qs_re_pad; /* Fixed-length record pad. */ + u_int32_t qs_pgfree; /* Bytes free in data pages. */ + u_int32_t qs_first_recno; /* First not deleted record. */ + u_int32_t qs_cur_recno; /* Next available record number. */ +}; + +/******************************************************* + * Environment. + *******************************************************/ +#define DB_REGION_MAGIC 0x120897 /* Environment magic number. */ + +/* + * Database environment structure. + * + * This is the public database environment handle. The private environment + * handle is the ENV structure. The user owns this structure, the library + * owns the ENV structure. The reason there are two structures is because + * the user's configuration outlives any particular DB_ENV->open call, and + * separate structures allows us to easily discard internal information without + * discarding the user's configuration. + * + * Fields in the DB_ENV structure should normally be set only by application + * DB_ENV handle methods. + */ +struct __db_env { + ENV *env; /* Linked ENV structure */ + + /* + * The DB_ENV structure can be used concurrently, so field access is + * protected. + */ + db_mutex_t mtx_db_env; /* DB_ENV structure mutex */ + + /* Error message callback */ + void (*db_errcall) __P((const DB_ENV *, const char *, const char *)); + FILE *db_errfile; /* Error message file stream */ + const char *db_errpfx; /* Error message prefix */ + + /* Other message callback */ + void (*db_msgcall) __P((const DB_ENV *, const char *)); + FILE *db_msgfile; /* Other message file stream */ + + /* Other application callback functions */ + int (*app_dispatch) __P((DB_ENV *, DBT *, DB_LSN *, db_recops)); + void (*db_event_func) __P((DB_ENV *, u_int32_t, void *)); + void (*db_feedback) __P((DB_ENV *, int, int)); + void (*db_free) __P((void *)); + void (*db_paniccall) __P((DB_ENV *, int)); + void *(*db_malloc) __P((size_t)); + void *(*db_realloc) __P((void *, size_t)); + int (*is_alive) __P((DB_ENV *, pid_t, db_threadid_t, u_int32_t)); + void (*thread_id) __P((DB_ENV *, pid_t *, db_threadid_t *)); + char *(*thread_id_string) __P((DB_ENV *, pid_t, db_threadid_t, char *)); + + /* Application specified paths */ + char *db_log_dir; /* Database log file directory */ + char *db_tmp_dir; /* Database tmp file directory */ + + char *db_create_dir; /* Create directory for data files */ + char **db_data_dir; /* Database data file directories */ + int data_cnt; /* Database data file slots */ + int data_next; /* Next database data file slot */ + + char *intermediate_dir_mode; /* Intermediate directory perms */ + + long shm_key; /* shmget key */ + + char *passwd; /* Cryptography support */ + size_t passwd_len; + + void *cl_handle; /* RPC: remote client handle */ + u_int cl_id; /* RPC: remote client env id */ + + /* Private handle references */ + void *app_private; /* Application-private handle */ + void *api1_internal; /* C++, Perl API private */ + void *api2_internal; /* Java API private */ + + u_int32_t verbose; /* DB_VERB_XXX flags */ + + /* Mutex configuration */ + u_int32_t mutex_align; /* Mutex alignment */ + u_int32_t mutex_cnt; /* Number of mutexes to configure */ + u_int32_t mutex_inc; /* Number of mutexes to add */ + u_int32_t mutex_tas_spins;/* Test-and-set spin count */ + + /* Locking configuration */ + u_int8_t *lk_conflicts; /* Two dimensional conflict matrix */ + int lk_modes; /* Number of lock modes in table */ + u_int32_t lk_detect; /* Deadlock detect on all conflicts */ + u_int32_t lk_max; /* Maximum number of locks */ + u_int32_t lk_max_lockers;/* Maximum number of lockers */ + u_int32_t lk_max_objects;/* Maximum number of locked objects */ + u_int32_t lk_partitions ;/* Number of object partitions */ + db_timeout_t lk_timeout; /* Lock timeout period */ + + /* Logging configuration */ + u_int32_t lg_bsize; /* Buffer size */ + int lg_filemode; /* Log file permission mode */ + u_int32_t lg_regionmax; /* Region size */ + u_int32_t lg_size; /* Log file size */ + u_int32_t lg_flags; /* Log configuration */ + + /* Memory pool configuration */ + u_int32_t mp_gbytes; /* Cache size: GB */ + u_int32_t mp_bytes; /* Cache size: bytes */ + u_int32_t mp_max_gbytes; /* Maximum cache size: GB */ + u_int32_t mp_max_bytes; /* Maximum cache size: bytes */ + size_t mp_mmapsize; /* Maximum file size for mmap */ + int mp_maxopenfd; /* Maximum open file descriptors */ + int mp_maxwrite; /* Maximum buffers to write */ + u_int mp_ncache; /* Initial number of cache regions */ + u_int32_t mp_pagesize; /* Average page size */ + u_int32_t mp_tablesize; /* Approximate hash table size */ + /* Sleep after writing max buffers */ + db_timeout_t mp_maxwrite_sleep; + + /* Transaction configuration */ + u_int32_t tx_max; /* Maximum number of transactions */ + time_t tx_timestamp; /* Recover to specific timestamp */ + db_timeout_t tx_timeout; /* Timeout for transactions */ + + /* Thread tracking configuration */ + u_int32_t thr_max; /* Thread count */ + + /* + * The following fields are not strictly user-owned, but they outlive + * the ENV structure, and so are stored here. + */ + DB_FH *registry; /* DB_REGISTER file handle */ + u_int32_t registry_off; /* + * Offset of our slot. We can't use + * off_t because its size depends on + * build settings. + */ + db_timeout_t envreg_timeout; /* DB_REGISTER wait timeout */ + +#define DB_ENV_AUTO_COMMIT 0x00000001 /* DB_AUTO_COMMIT */ +#define DB_ENV_CDB_ALLDB 0x00000002 /* CDB environment wide locking */ +#define DB_ENV_FAILCHK 0x00000004 /* Failchk is running */ +#define DB_ENV_DIRECT_DB 0x00000008 /* DB_DIRECT_DB set */ +#define DB_ENV_DSYNC_DB 0x00000010 /* DB_DSYNC_DB set */ +#define DB_ENV_MULTIVERSION 0x00000020 /* DB_MULTIVERSION set */ +#define DB_ENV_NOLOCKING 0x00000040 /* DB_NOLOCKING set */ +#define DB_ENV_NOMMAP 0x00000080 /* DB_NOMMAP set */ +#define DB_ENV_NOPANIC 0x00000100 /* Okay if panic set */ +#define DB_ENV_OVERWRITE 0x00000200 /* DB_OVERWRITE set */ +#define DB_ENV_REGION_INIT 0x00000400 /* DB_REGION_INIT set */ +#define DB_ENV_RPCCLIENT 0x00000800 /* DB_RPCCLIENT set */ +#define DB_ENV_RPCCLIENT_GIVEN 0x00001000 /* User-supplied RPC client struct */ +#define DB_ENV_TIME_NOTGRANTED 0x00002000 /* DB_TIME_NOTGRANTED set */ +#define DB_ENV_TXN_NOSYNC 0x00004000 /* DB_TXN_NOSYNC set */ +#define DB_ENV_TXN_NOWAIT 0x00008000 /* DB_TXN_NOWAIT set */ +#define DB_ENV_TXN_SNAPSHOT 0x00010000 /* DB_TXN_SNAPSHOT set */ +#define DB_ENV_TXN_WRITE_NOSYNC 0x00020000 /* DB_TXN_WRITE_NOSYNC set */ +#define DB_ENV_YIELDCPU 0x00040000 /* DB_YIELDCPU set */ + u_int32_t flags; + + /* DB_ENV PUBLIC HANDLE LIST BEGIN */ + int (*add_data_dir) __P((DB_ENV *, const char *)); + int (*cdsgroup_begin) __P((DB_ENV *, DB_TXN **)); + int (*close) __P((DB_ENV *, u_int32_t)); + int (*dbremove) __P((DB_ENV *, + DB_TXN *, const char *, const char *, u_int32_t)); + int (*dbrename) __P((DB_ENV *, + DB_TXN *, const char *, const char *, const char *, u_int32_t)); + void (*err) __P((const DB_ENV *, int, const char *, ...)); + void (*errx) __P((const DB_ENV *, const char *, ...)); + int (*failchk) __P((DB_ENV *, u_int32_t)); + int (*fileid_reset) __P((DB_ENV *, const char *, u_int32_t)); + int (*get_alloc) __P((DB_ENV *, void *(**)(size_t), + void *(**)(void *, size_t), void (**)(void *))); + int (*get_app_dispatch) + __P((DB_ENV *, int (**)(DB_ENV *, DBT *, DB_LSN *, db_recops))); + int (*get_cache_max) __P((DB_ENV *, u_int32_t *, u_int32_t *)); + int (*get_cachesize) __P((DB_ENV *, u_int32_t *, u_int32_t *, int *)); + int (*get_create_dir) __P((DB_ENV *, const char **)); + int (*get_data_dirs) __P((DB_ENV *, const char ***)); + int (*get_encrypt_flags) __P((DB_ENV *, u_int32_t *)); + void (*get_errcall) __P((DB_ENV *, + void (**)(const DB_ENV *, const char *, const char *))); + void (*get_errfile) __P((DB_ENV *, FILE **)); + void (*get_errpfx) __P((DB_ENV *, const char **)); + int (*get_flags) __P((DB_ENV *, u_int32_t *)); + int (*get_feedback) __P((DB_ENV *, void (**)(DB_ENV *, int, int))); + int (*get_home) __P((DB_ENV *, const char **)); + int (*get_intermediate_dir_mode) __P((DB_ENV *, const char **)); + int (*get_isalive) __P((DB_ENV *, + int (**)(DB_ENV *, pid_t, db_threadid_t, u_int32_t))); + int (*get_lg_bsize) __P((DB_ENV *, u_int32_t *)); + int (*get_lg_dir) __P((DB_ENV *, const char **)); + int (*get_lg_filemode) __P((DB_ENV *, int *)); + int (*get_lg_max) __P((DB_ENV *, u_int32_t *)); + int (*get_lg_regionmax) __P((DB_ENV *, u_int32_t *)); + int (*get_lk_conflicts) __P((DB_ENV *, const u_int8_t **, int *)); + int (*get_lk_detect) __P((DB_ENV *, u_int32_t *)); + int (*get_lk_max_lockers) __P((DB_ENV *, u_int32_t *)); + int (*get_lk_max_locks) __P((DB_ENV *, u_int32_t *)); + int (*get_lk_max_objects) __P((DB_ENV *, u_int32_t *)); + int (*get_lk_partitions) __P((DB_ENV *, u_int32_t *)); + int (*get_mp_max_openfd) __P((DB_ENV *, int *)); + int (*get_mp_max_write) __P((DB_ENV *, int *, db_timeout_t *)); + int (*get_mp_mmapsize) __P((DB_ENV *, size_t *)); + int (*get_mp_pagesize) __P((DB_ENV *, u_int32_t *)); + int (*get_mp_tablesize) __P((DB_ENV *, u_int32_t *)); + void (*get_msgcall) + __P((DB_ENV *, void (**)(const DB_ENV *, const char *))); + void (*get_msgfile) __P((DB_ENV *, FILE **)); + int (*get_open_flags) __P((DB_ENV *, u_int32_t *)); + int (*get_shm_key) __P((DB_ENV *, long *)); + int (*get_thread_count) __P((DB_ENV *, u_int32_t *)); + int (*get_thread_id_fn) + __P((DB_ENV *, void (**)(DB_ENV *, pid_t *, db_threadid_t *))); + int (*get_thread_id_string_fn) __P((DB_ENV *, + char *(**)(DB_ENV *, pid_t, db_threadid_t, char *))); + int (*get_timeout) __P((DB_ENV *, db_timeout_t *, u_int32_t)); + int (*get_tmp_dir) __P((DB_ENV *, const char **)); + int (*get_tx_max) __P((DB_ENV *, u_int32_t *)); + int (*get_tx_timestamp) __P((DB_ENV *, time_t *)); + int (*get_verbose) __P((DB_ENV *, u_int32_t, int *)); + int (*is_bigendian) __P((void)); + int (*lock_detect) __P((DB_ENV *, u_int32_t, u_int32_t, int *)); + int (*lock_get) __P((DB_ENV *, + u_int32_t, u_int32_t, DBT *, db_lockmode_t, DB_LOCK *)); + int (*lock_id) __P((DB_ENV *, u_int32_t *)); + int (*lock_id_free) __P((DB_ENV *, u_int32_t)); + int (*lock_put) __P((DB_ENV *, DB_LOCK *)); + int (*lock_stat) __P((DB_ENV *, DB_LOCK_STAT **, u_int32_t)); + int (*lock_stat_print) __P((DB_ENV *, u_int32_t)); + int (*lock_vec) __P((DB_ENV *, + u_int32_t, u_int32_t, DB_LOCKREQ *, int, DB_LOCKREQ **)); + int (*log_archive) __P((DB_ENV *, char **[], u_int32_t)); + int (*log_cursor) __P((DB_ENV *, DB_LOGC **, u_int32_t)); + int (*log_file) __P((DB_ENV *, const DB_LSN *, char *, size_t)); + int (*log_flush) __P((DB_ENV *, const DB_LSN *)); + int (*log_get_config) __P((DB_ENV *, u_int32_t, int *)); + int (*log_printf) __P((DB_ENV *, DB_TXN *, const char *, ...)); + int (*log_put) __P((DB_ENV *, DB_LSN *, const DBT *, u_int32_t)); + int (*log_set_config) __P((DB_ENV *, u_int32_t, int)); + int (*log_stat) __P((DB_ENV *, DB_LOG_STAT **, u_int32_t)); + int (*log_stat_print) __P((DB_ENV *, u_int32_t)); + int (*lsn_reset) __P((DB_ENV *, const char *, u_int32_t)); + int (*memp_fcreate) __P((DB_ENV *, DB_MPOOLFILE **, u_int32_t)); + int (*memp_register) __P((DB_ENV *, int, int (*)(DB_ENV *, db_pgno_t, + void *, DBT *), int (*)(DB_ENV *, db_pgno_t, void *, DBT *))); + int (*memp_stat) __P((DB_ENV *, + DB_MPOOL_STAT **, DB_MPOOL_FSTAT ***, u_int32_t)); + int (*memp_stat_print) __P((DB_ENV *, u_int32_t)); + int (*memp_sync) __P((DB_ENV *, DB_LSN *)); + int (*memp_trickle) __P((DB_ENV *, int, int *)); + int (*mutex_alloc) __P((DB_ENV *, u_int32_t, db_mutex_t *)); + int (*mutex_free) __P((DB_ENV *, db_mutex_t)); + int (*mutex_get_align) __P((DB_ENV *, u_int32_t *)); + int (*mutex_get_increment) __P((DB_ENV *, u_int32_t *)); + int (*mutex_get_max) __P((DB_ENV *, u_int32_t *)); + int (*mutex_get_tas_spins) __P((DB_ENV *, u_int32_t *)); + int (*mutex_lock) __P((DB_ENV *, db_mutex_t)); + int (*mutex_set_align) __P((DB_ENV *, u_int32_t)); + int (*mutex_set_increment) __P((DB_ENV *, u_int32_t)); + int (*mutex_set_max) __P((DB_ENV *, u_int32_t)); + int (*mutex_set_tas_spins) __P((DB_ENV *, u_int32_t)); + int (*mutex_stat) __P((DB_ENV *, DB_MUTEX_STAT **, u_int32_t)); + int (*mutex_stat_print) __P((DB_ENV *, u_int32_t)); + int (*mutex_unlock) __P((DB_ENV *, db_mutex_t)); + int (*open) __P((DB_ENV *, const char *, u_int32_t, int)); + int (*remove) __P((DB_ENV *, const char *, u_int32_t)); + int (*rep_elect) __P((DB_ENV *, u_int32_t, u_int32_t, u_int32_t)); + int (*rep_flush) __P((DB_ENV *)); + int (*rep_get_clockskew) __P((DB_ENV *, u_int32_t *, u_int32_t *)); + int (*rep_get_config) __P((DB_ENV *, u_int32_t, int *)); + int (*rep_get_limit) __P((DB_ENV *, u_int32_t *, u_int32_t *)); + int (*rep_get_nsites) __P((DB_ENV *, u_int32_t *)); + int (*rep_get_priority) __P((DB_ENV *, u_int32_t *)); + int (*rep_get_request) __P((DB_ENV *, u_int32_t *, u_int32_t *)); + int (*rep_get_timeout) __P((DB_ENV *, int, u_int32_t *)); + int (*rep_process_message) + __P((DB_ENV *, DBT *, DBT *, int, DB_LSN *)); + int (*rep_set_clockskew) __P((DB_ENV *, u_int32_t, u_int32_t)); + int (*rep_set_config) __P((DB_ENV *, u_int32_t, int)); + int (*rep_set_limit) __P((DB_ENV *, u_int32_t, u_int32_t)); + int (*rep_set_nsites) __P((DB_ENV *, u_int32_t)); + int (*rep_set_priority) __P((DB_ENV *, u_int32_t)); + int (*rep_set_request) __P((DB_ENV *, u_int32_t, u_int32_t)); + int (*rep_set_timeout) __P((DB_ENV *, int, db_timeout_t)); + int (*rep_set_transport) __P((DB_ENV *, int, int (*)(DB_ENV *, + const DBT *, const DBT *, const DB_LSN *, int, u_int32_t))); + int (*rep_start) __P((DB_ENV *, DBT *, u_int32_t)); + int (*rep_stat) __P((DB_ENV *, DB_REP_STAT **, u_int32_t)); + int (*rep_stat_print) __P((DB_ENV *, u_int32_t)); + int (*rep_sync) __P((DB_ENV *, u_int32_t)); + int (*repmgr_add_remote_site) + __P((DB_ENV *, const char *, u_int, int *, u_int32_t)); + int (*repmgr_get_ack_policy) __P((DB_ENV *, int *)); + int (*repmgr_set_ack_policy) __P((DB_ENV *, int)); + int (*repmgr_set_local_site) + __P((DB_ENV *, const char *, u_int, u_int32_t)); + int (*repmgr_site_list) + __P((DB_ENV *, u_int *, DB_REPMGR_SITE **)); + int (*repmgr_start) __P((DB_ENV *, int, u_int32_t)); + int (*repmgr_stat) __P((DB_ENV *, DB_REPMGR_STAT **, u_int32_t)); + int (*repmgr_stat_print) __P((DB_ENV *, u_int32_t)); + int (*set_alloc) __P((DB_ENV *, void *(*)(size_t), + void *(*)(void *, size_t), void (*)(void *))); + int (*set_app_dispatch) + __P((DB_ENV *, int (*)(DB_ENV *, DBT *, DB_LSN *, db_recops))); + int (*set_cache_max) __P((DB_ENV *, u_int32_t, u_int32_t)); + int (*set_cachesize) __P((DB_ENV *, u_int32_t, u_int32_t, int)); + int (*set_create_dir) __P((DB_ENV *, const char *)); + int (*set_data_dir) __P((DB_ENV *, const char *)); + int (*set_encrypt) __P((DB_ENV *, const char *, u_int32_t)); + void (*set_errcall) __P((DB_ENV *, + void (*)(const DB_ENV *, const char *, const char *))); + void (*set_errfile) __P((DB_ENV *, FILE *)); + void (*set_errpfx) __P((DB_ENV *, const char *)); + int (*set_event_notify) + __P((DB_ENV *, void (*)(DB_ENV *, u_int32_t, void *))); + int (*set_feedback) __P((DB_ENV *, void (*)(DB_ENV *, int, int))); + int (*set_flags) __P((DB_ENV *, u_int32_t, int)); + int (*set_intermediate_dir_mode) __P((DB_ENV *, const char *)); + int (*set_isalive) __P((DB_ENV *, + int (*)(DB_ENV *, pid_t, db_threadid_t, u_int32_t))); + int (*set_lg_bsize) __P((DB_ENV *, u_int32_t)); + int (*set_lg_dir) __P((DB_ENV *, const char *)); + int (*set_lg_filemode) __P((DB_ENV *, int)); + int (*set_lg_max) __P((DB_ENV *, u_int32_t)); + int (*set_lg_regionmax) __P((DB_ENV *, u_int32_t)); + int (*set_lk_conflicts) __P((DB_ENV *, u_int8_t *, int)); + int (*set_lk_detect) __P((DB_ENV *, u_int32_t)); + int (*set_lk_max_lockers) __P((DB_ENV *, u_int32_t)); + int (*set_lk_max_locks) __P((DB_ENV *, u_int32_t)); + int (*set_lk_max_objects) __P((DB_ENV *, u_int32_t)); + int (*set_lk_partitions) __P((DB_ENV *, u_int32_t)); + int (*set_mp_max_openfd) __P((DB_ENV *, int)); + int (*set_mp_max_write) __P((DB_ENV *, int, db_timeout_t)); + int (*set_mp_mmapsize) __P((DB_ENV *, size_t)); + int (*set_mp_pagesize) __P((DB_ENV *, u_int32_t)); + int (*set_mp_tablesize) __P((DB_ENV *, u_int32_t)); + void (*set_msgcall) + __P((DB_ENV *, void (*)(const DB_ENV *, const char *))); + void (*set_msgfile) __P((DB_ENV *, FILE *)); + int (*set_paniccall) __P((DB_ENV *, void (*)(DB_ENV *, int))); + int (*set_rpc_server) + __P((DB_ENV *, void *, const char *, long, long, u_int32_t)); + int (*set_shm_key) __P((DB_ENV *, long)); + int (*set_thread_count) __P((DB_ENV *, u_int32_t)); + int (*set_thread_id) + __P((DB_ENV *, void (*)(DB_ENV *, pid_t *, db_threadid_t *))); + int (*set_thread_id_string) __P((DB_ENV *, + char *(*)(DB_ENV *, pid_t, db_threadid_t, char *))); + int (*set_timeout) __P((DB_ENV *, db_timeout_t, u_int32_t)); + int (*set_tmp_dir) __P((DB_ENV *, const char *)); + int (*set_tx_max) __P((DB_ENV *, u_int32_t)); + int (*set_tx_timestamp) __P((DB_ENV *, time_t *)); + int (*set_verbose) __P((DB_ENV *, u_int32_t, int)); + int (*stat_print) __P((DB_ENV *, u_int32_t)); + int (*txn_begin) __P((DB_ENV *, DB_TXN *, DB_TXN **, u_int32_t)); + int (*txn_checkpoint) __P((DB_ENV *, u_int32_t, u_int32_t, u_int32_t)); + int (*txn_recover) __P((DB_ENV *, + DB_PREPLIST *, u_int32_t, u_int32_t *, u_int32_t)); + int (*txn_stat) __P((DB_ENV *, DB_TXN_STAT **, u_int32_t)); + int (*txn_stat_print) __P((DB_ENV *, u_int32_t)); + /* DB_ENV PUBLIC HANDLE LIST END */ + + /* DB_ENV PRIVATE HANDLE LIST BEGIN */ + int (*prdbt) __P((DBT *, + int, const char *, void *, int (*)(void *, const void *), int)); + /* DB_ENV PRIVATE HANDLE LIST END */ +}; + +/* + * Dispatch structure for recovery and print routines. Since internal and + * external routines take different arguments (ENV versus DB_ENV), we need + * something more elaborate than a single pointer and size. + */ +struct __db_distab { + int (**int_dispatch) __P((ENV *, DBT *, DB_LSN *, db_recops, void *)); + size_t int_size; + int (**ext_dispatch) __P((DB_ENV *, DBT *, DB_LSN *, db_recops)); + size_t ext_size; +}; + +#ifndef DB_DBM_HSEARCH +#define DB_DBM_HSEARCH 0 /* No historic interfaces by default. */ +#endif +#if DB_DBM_HSEARCH != 0 +/******************************************************* + * Dbm/Ndbm historic interfaces. + *******************************************************/ +typedef struct __db DBM; + +#define DBM_INSERT 0 /* Flags to dbm_store(). */ +#define DBM_REPLACE 1 + +/* + * The DB support for ndbm(3) always appends this suffix to the + * file name to avoid overwriting the user's original database. + */ +#define DBM_SUFFIX ".db" + +#if defined(_XPG4_2) +typedef struct { + char *dptr; + size_t dsize; +} datum; +#else +typedef struct { + char *dptr; + int dsize; +} datum; +#endif + +/* + * Translate NDBM calls into DB calls so that DB doesn't step on the + * application's name space. + */ +#define dbm_clearerr(a) __db_ndbm_clearerr(a) +#define dbm_close(a) __db_ndbm_close(a) +#define dbm_delete(a, b) __db_ndbm_delete(a, b) +#define dbm_dirfno(a) __db_ndbm_dirfno(a) +#define dbm_error(a) __db_ndbm_error(a) +#define dbm_fetch(a, b) __db_ndbm_fetch(a, b) +#define dbm_firstkey(a) __db_ndbm_firstkey(a) +#define dbm_nextkey(a) __db_ndbm_nextkey(a) +#define dbm_open(a, b, c) __db_ndbm_open(a, b, c) +#define dbm_pagfno(a) __db_ndbm_pagfno(a) +#define dbm_rdonly(a) __db_ndbm_rdonly(a) +#define dbm_store(a, b, c, d) \ + __db_ndbm_store(a, b, c, d) + +/* + * Translate DBM calls into DB calls so that DB doesn't step on the + * application's name space. + * + * The global variables dbrdonly, dirf and pagf were not retained when 4BSD + * replaced the dbm interface with ndbm, and are not supported here. + */ +#define dbminit(a) __db_dbm_init(a) +#define dbmclose __db_dbm_close +#if !defined(__cplusplus) +#define delete(a) __db_dbm_delete(a) +#endif +#define fetch(a) __db_dbm_fetch(a) +#define firstkey __db_dbm_firstkey +#define nextkey(a) __db_dbm_nextkey(a) +#define store(a, b) __db_dbm_store(a, b) + +/******************************************************* + * Hsearch historic interface. + *******************************************************/ +typedef enum { + FIND, ENTER +} ACTION; + +typedef struct entry { + char *key; + char *data; +} ENTRY; + +#define hcreate(a) __db_hcreate(a) +#define hdestroy __db_hdestroy +#define hsearch(a, b) __db_hsearch(a, b) + +#endif /* DB_DBM_HSEARCH */ + +#if defined(__cplusplus) +} +#endif + +/* Restore default compiler warnings */ +#ifdef _MSC_VER +#pragma warning(pop) +#endif +#endif /* !_DB_H_ */ +/* DO NOT EDIT: automatically built by dist/s_apiflags. */ +#define DB_AGGRESSIVE 0x00000001 +#define DB_ARCH_ABS 0x00000001 +#define DB_ARCH_DATA 0x00000002 +#define DB_ARCH_LOG 0x00000004 +#define DB_ARCH_REMOVE 0x00000008 +#define DB_AUTO_COMMIT 0x00000100 +#define DB_CDB_ALLDB 0x00000040 +#define DB_CHKSUM 0x00000008 +#define DB_CKP_INTERNAL 0x00000002 +#define DB_CREATE 0x00000001 +#define DB_CURSOR_BULK 0x00000001 +#define DB_CURSOR_TRANSIENT 0x00000004 +#define DB_CXX_NO_EXCEPTIONS 0x00000002 +#define DB_DIRECT 0x00000010 +#define DB_DIRECT_DB 0x00000080 +#define DB_DSYNC_DB 0x00000200 +#define DB_DUP 0x00000010 +#define DB_DUPSORT 0x00000004 +#define DB_DURABLE_UNKNOWN 0x00000020 +#define DB_ENCRYPT 0x00000001 +#define DB_ENCRYPT_AES 0x00000001 +#define DB_EXCL 0x00000040 +#define DB_EXTENT 0x00000040 +#define DB_FAILCHK 0x00000020 +#define DB_FAST_STAT 0x00000001 +#define DB_FCNTL_LOCKING 0x00000800 +#define DB_FLUSH 0x00000001 +#define DB_FORCE 0x00000001 +#define DB_FOREIGN_ABORT 0x00000001 +#define DB_FOREIGN_CASCADE 0x00000002 +#define DB_FOREIGN_NULLIFY 0x00000004 +#define DB_FREELIST_ONLY 0x00000001 +#define DB_FREE_SPACE 0x00000002 +#define DB_IGNORE_LEASE 0x00002000 +#define DB_IMMUTABLE_KEY 0x00000002 +#define DB_INIT_CDB 0x00000040 +#define DB_INIT_LOCK 0x00000080 +#define DB_INIT_LOG 0x00000100 +#define DB_INIT_MPOOL 0x00000200 +#define DB_INIT_REP 0x00000400 +#define DB_INIT_TXN 0x00000800 +#define DB_INORDER 0x00000020 +#define DB_JOIN_NOSORT 0x00000001 +#define DB_LOCKDOWN 0x00001000 +#define DB_LOCK_NOWAIT 0x00000001 +#define DB_LOCK_RECORD 0x00000002 +#define DB_LOCK_SET_TIMEOUT 0x00000004 +#define DB_LOCK_SWITCH 0x00000008 +#define DB_LOCK_UPGRADE 0x00000010 +#define DB_LOG_AUTO_REMOVE 0x00000001 +#define DB_LOG_CHKPNT 0x00000002 +#define DB_LOG_COMMIT 0x00000004 +#define DB_LOG_DIRECT 0x00000002 +#define DB_LOG_DSYNC 0x00000004 +#define DB_LOG_IN_MEMORY 0x00000008 +#define DB_LOG_NOCOPY 0x00000008 +#define DB_LOG_NOT_DURABLE 0x00000010 +#define DB_LOG_WRNOSYNC 0x00000020 +#define DB_LOG_ZERO 0x00000010 +#define DB_MPOOL_CREATE 0x00000001 +#define DB_MPOOL_DIRTY 0x00000002 +#define DB_MPOOL_DISCARD 0x00000001 +#define DB_MPOOL_EDIT 0x00000004 +#define DB_MPOOL_FREE 0x00000008 +#define DB_MPOOL_LAST 0x00000010 +#define DB_MPOOL_NEW 0x00000020 +#define DB_MPOOL_NOFILE 0x00000001 +#define DB_MPOOL_NOLOCK 0x00000002 +#define DB_MPOOL_TRY 0x00000040 +#define DB_MPOOL_UNLINK 0x00000002 +#define DB_MULTIPLE 0x00000800 +#define DB_MULTIPLE_KEY 0x00004000 +#define DB_MULTIVERSION 0x00000004 +#define DB_MUTEX_ALLOCATED 0x00000001 +#define DB_MUTEX_LOCKED 0x00000002 +#define DB_MUTEX_LOGICAL_LOCK 0x00000004 +#define DB_MUTEX_PROCESS_ONLY 0x00000008 +#define DB_MUTEX_SELF_BLOCK 0x00000010 +#define DB_MUTEX_SHARED 0x00000020 +#define DB_NOLOCKING 0x00000400 +#define DB_NOMMAP 0x00000008 +#define DB_NOORDERCHK 0x00000002 +#define DB_NOPANIC 0x00000800 +#define DB_NO_AUTO_COMMIT 0x00001000 +#define DB_ODDFILESIZE 0x00000080 +#define DB_ORDERCHKONLY 0x00000004 +#define DB_OVERWRITE 0x00001000 +#define DB_PANIC_ENVIRONMENT 0x00002000 +#define DB_PRINTABLE 0x00000008 +#define DB_PRIVATE 0x00002000 +#define DB_PR_PAGE 0x00000010 +#define DB_PR_RECOVERYTEST 0x00000020 +#define DB_RDONLY 0x00000400 +#define DB_RDWRMASTER 0x00002000 +#define DB_READ_COMMITTED 0x00000400 +#define DB_READ_UNCOMMITTED 0x00000200 +#define DB_RECNUM 0x00000040 +#define DB_RECOVER 0x00000002 +#define DB_RECOVER_FATAL 0x00004000 +#define DB_REGION_INIT 0x00004000 +#define DB_REGISTER 0x00008000 +#define DB_RENUMBER 0x00000080 +#define DB_REPMGR_CONF_2SITE_STRICT 0x00000001 +#define DB_REPMGR_PEER 0x00000001 +#define DB_REP_ANYWHERE 0x00000001 +#define DB_REP_CLIENT 0x00000001 +#define DB_REP_CONF_BULK 0x00000002 +#define DB_REP_CONF_DELAYCLIENT 0x00000004 +#define DB_REP_CONF_INMEM 0x00000008 +#define DB_REP_CONF_LEASE 0x00000010 +#define DB_REP_CONF_NOAUTOINIT 0x00000020 +#define DB_REP_CONF_NOWAIT 0x00000040 +#define DB_REP_ELECTION 0x00000004 +#define DB_REP_MASTER 0x00000002 +#define DB_REP_NOBUFFER 0x00000002 +#define DB_REP_PERMANENT 0x00000004 +#define DB_REP_REREQUEST 0x00000008 +#define DB_REVSPLITOFF 0x00000100 +#define DB_RMW 0x00001000 +#define DB_RPCCLIENT 0x00000001 +#define DB_SALVAGE 0x00000040 +#define DB_SA_SKIPFIRSTKEY 0x00000080 +#define DB_SA_UNKNOWNKEY 0x00000100 +#define DB_SEQ_DEC 0x00000001 +#define DB_SEQ_INC 0x00000002 +#define DB_SEQ_RANGE_SET 0x00000004 +#define DB_SEQ_WRAP 0x00000008 +#define DB_SEQ_WRAPPED 0x00000010 +#define DB_SET_LOCK_TIMEOUT 0x00000001 +#define DB_SET_REG_TIMEOUT 0x00000004 +#define DB_SET_TXN_NOW 0x00000008 +#define DB_SET_TXN_TIMEOUT 0x00000002 +#define DB_SHALLOW_DUP 0x00000100 +#define DB_SNAPSHOT 0x00000200 +#define DB_STAT_ALL 0x00000004 +#define DB_STAT_CLEAR 0x00000001 +#define DB_STAT_LOCK_CONF 0x00000008 +#define DB_STAT_LOCK_LOCKERS 0x00000010 +#define DB_STAT_LOCK_OBJECTS 0x00000020 +#define DB_STAT_LOCK_PARAMS 0x00000040 +#define DB_STAT_MEMP_HASH 0x00000008 +#define DB_STAT_MEMP_NOERROR 0x00000010 +#define DB_STAT_SUBSYSTEM 0x00000002 +#define DB_ST_DUPOK 0x00000200 +#define DB_ST_DUPSET 0x00000400 +#define DB_ST_DUPSORT 0x00000800 +#define DB_ST_IS_RECNO 0x00001000 +#define DB_ST_OVFL_LEAF 0x00002000 +#define DB_ST_RECNUM 0x00004000 +#define DB_ST_RELEN 0x00008000 +#define DB_ST_TOPLEVEL 0x00010000 +#define DB_SYSTEM_MEM 0x00010000 +#define DB_THREAD 0x00000010 +#define DB_TIME_NOTGRANTED 0x00008000 +#define DB_TRUNCATE 0x00004000 +#define DB_TXN_NOSYNC 0x00000001 +#define DB_TXN_NOT_DURABLE 0x00000002 +#define DB_TXN_NOWAIT 0x00000010 +#define DB_TXN_SNAPSHOT 0x00000002 +#define DB_TXN_SYNC 0x00000004 +#define DB_TXN_WAIT 0x00000008 +#define DB_TXN_WRITE_NOSYNC 0x00000020 +#define DB_UNREF 0x00020000 +#define DB_UPGRADE 0x00000001 +#define DB_USE_ENVIRON 0x00000004 +#define DB_USE_ENVIRON_ROOT 0x00000008 +#define DB_VERB_DEADLOCK 0x00000001 +#define DB_VERB_FILEOPS 0x00000002 +#define DB_VERB_FILEOPS_ALL 0x00000004 +#define DB_VERB_RECOVERY 0x00000008 +#define DB_VERB_REGISTER 0x00000010 +#define DB_VERB_REPLICATION 0x00000020 +#define DB_VERB_REPMGR_CONNFAIL 0x00000040 +#define DB_VERB_REPMGR_MISC 0x00000080 +#define DB_VERB_REP_ELECT 0x00000100 +#define DB_VERB_REP_LEASE 0x00000200 +#define DB_VERB_REP_MISC 0x00000400 +#define DB_VERB_REP_MSGS 0x00000800 +#define DB_VERB_REP_SYNC 0x00001000 +#define DB_VERB_REP_TEST 0x00002000 +#define DB_VERB_WAITSFOR 0x00004000 +#define DB_VERIFY 0x00000002 +#define DB_VERIFY_PARTITION 0x00040000 +#define DB_WRITECURSOR 0x00000008 +#define DB_WRITELOCK 0x00000010 +#define DB_WRITEOPEN 0x00008000 +#define DB_YIELDCPU 0x00010000 + +/* DO NOT EDIT: automatically built by dist/s_include. */ +#ifndef _DB_EXT_PROT_IN_ +#define _DB_EXT_PROT_IN_ + +#if defined(__cplusplus) +extern "C" { +#endif + +int db_create __P((DB **, DB_ENV *, u_int32_t)); +char *db_strerror __P((int)); +int db_env_set_func_close __P((int (*)(int))); +int db_env_set_func_dirfree __P((void (*)(char **, int))); +int db_env_set_func_dirlist __P((int (*)(const char *, char ***, int *))); +int db_env_set_func_exists __P((int (*)(const char *, int *))); +int db_env_set_func_free __P((void (*)(void *))); +int db_env_set_func_fsync __P((int (*)(int))); +int db_env_set_func_ftruncate __P((int (*)(int, off_t))); +int db_env_set_func_ioinfo __P((int (*)(const char *, int, u_int32_t *, u_int32_t *, u_int32_t *))); +int db_env_set_func_malloc __P((void *(*)(size_t))); +int db_env_set_func_file_map __P((int (*)(DB_ENV *, char *, size_t, int, void **), int (*)(DB_ENV *, void *))); +int db_env_set_func_region_map __P((int (*)(DB_ENV *, char *, size_t, int *, void **), int (*)(DB_ENV *, void *))); +int db_env_set_func_pread __P((ssize_t (*)(int, void *, size_t, off_t))); +int db_env_set_func_pwrite __P((ssize_t (*)(int, const void *, size_t, off_t))); +int db_env_set_func_open __P((int (*)(const char *, int, ...))); +int db_env_set_func_read __P((ssize_t (*)(int, void *, size_t))); +int db_env_set_func_realloc __P((void *(*)(void *, size_t))); +int db_env_set_func_rename __P((int (*)(const char *, const char *))); +int db_env_set_func_seek __P((int (*)(int, off_t, int))); +int db_env_set_func_unlink __P((int (*)(const char *))); +int db_env_set_func_write __P((ssize_t (*)(int, const void *, size_t))); +int db_env_set_func_yield __P((int (*)(u_long, u_long))); +int db_env_create __P((DB_ENV **, u_int32_t)); +char *db_version __P((int *, int *, int *)); +int log_compare __P((const DB_LSN *, const DB_LSN *)); +int db_sequence_create __P((DB_SEQUENCE **, DB *, u_int32_t)); +#if DB_DBM_HSEARCH != 0 +int __db_ndbm_clearerr __P((DBM *)); +void __db_ndbm_close __P((DBM *)); +int __db_ndbm_delete __P((DBM *, datum)); +int __db_ndbm_dirfno __P((DBM *)); +int __db_ndbm_error __P((DBM *)); +datum __db_ndbm_fetch __P((DBM *, datum)); +datum __db_ndbm_firstkey __P((DBM *)); +datum __db_ndbm_nextkey __P((DBM *)); +DBM *__db_ndbm_open __P((const char *, int, int)); +int __db_ndbm_pagfno __P((DBM *)); +int __db_ndbm_rdonly __P((DBM *)); +int __db_ndbm_store __P((DBM *, datum, datum, int)); +int __db_dbm_close __P((void)); +int __db_dbm_delete __P((datum)); +datum __db_dbm_fetch __P((datum)); +datum __db_dbm_firstkey __P((void)); +int __db_dbm_init __P((char *)); +datum __db_dbm_nextkey __P((datum)); +int __db_dbm_store __P((datum, datum)); +#endif +#if DB_DBM_HSEARCH != 0 +int __db_hcreate __P((size_t)); +ENTRY *__db_hsearch __P((ENTRY, ACTION)); +void __db_hdestroy __P((void)); +#endif + +#if defined(__cplusplus) +} +#endif +#endif /* !_DB_EXT_PROT_IN_ */ diff --git a/build_windows/db.vcproj b/build_windows/db.vcproj new file mode 100644 index 0000000..730142e --- /dev/null +++ b/build_windows/db.vcproj @@ -0,0 +1,332 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="db" ProjectGUID="{FD045D60-ABAD-4A6C-9794-9BFB085FC3E7}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db" ConfigurationType="2" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;DB_CREATE_DLL;WIN32;_UNICODE;UNICODE;DIAGNOSTIC;CONFIG_TEST;_USRDLL" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db.pch" AssemblerListingLocation="$(OutDir)/db/" ObjectFile="$(OutDir)/db/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86 /FIXED:NO /export:__db_assert" AdditionalDependencies="ws2_32.lib" AdditionalLibraryDirectories="" OutputFile="$(OutDir)/libdb48d.dll" ProgramDatabaseFile="$(OutDir)/libdb48d.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" ImportLibrary="$(OutDir)/libdb48d.lib" ModuleDefinitionFile="..\build_windows\libdb.def" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db" ConfigurationType="2" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;DB_CREATE_DLL;WIN32;_UNICODE;UNICODE;_USRDLL" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db.pch" AssemblerListingLocation="$(OutDir)/db/" ObjectFile="$(OutDir)/db/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="ws2_32.lib" AdditionalLibraryDirectories="" OutputFile="$(OutDir)/libdb48.dll" ProgramDatabaseFile="$(OutDir)/libdb48.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" ImportLibrary="$(OutDir)/libdb48.lib" ModuleDefinitionFile="..\build_windows\libdb.def" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db" ConfigurationType="2" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;DB_CREATE_DLL;WIN32;_UNICODE;UNICODE;DIAGNOSTIC;CONFIG_TEST;_USRDLL" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db.pch" AssemblerListingLocation="$(OutDir)/db/" ObjectFile="$(OutDir)/db/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64 /FIXED:NO /export:__db_assert" AdditionalDependencies="ws2_32.lib" AdditionalLibraryDirectories="" OutputFile="$(OutDir)/libdb48d.dll" ProgramDatabaseFile="$(OutDir)/libdb48d.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" ImportLibrary="$(OutDir)/libdb48d.lib" ModuleDefinitionFile="..\build_windows\libdb.def" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db" ConfigurationType="2" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;DB_CREATE_DLL;WIN32;_UNICODE;UNICODE;_USRDLL" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db.pch" AssemblerListingLocation="$(OutDir)/db/" ObjectFile="$(OutDir)/db/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="ws2_32.lib" AdditionalLibraryDirectories="" OutputFile="$(OutDir)/libdb48.dll" ProgramDatabaseFile="$(OutDir)/libdb48.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" ImportLibrary="$(OutDir)/libdb48.lib" ModuleDefinitionFile="..\build_windows\libdb.def" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db" ConfigurationType="2" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;DB_CREATE_DLL;WIN32;_UNICODE;UNICODE;DIAGNOSTIC;CONFIG_TEST;_USRDLL" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db.pch" AssemblerListingLocation="$(OutDir)/db/" ObjectFile="$(OutDir)/db/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64 /FIXED:NO /export:__db_assert" AdditionalDependencies="ws2_32.lib" AdditionalLibraryDirectories="" OutputFile="$(OutDir)/libdb48d.dll" ProgramDatabaseFile="$(OutDir)/libdb48d.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" ImportLibrary="$(OutDir)/libdb48d.lib" ModuleDefinitionFile="..\build_windows\libdb.def" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db" ConfigurationType="2" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;DB_CREATE_DLL;WIN32;_UNICODE;UNICODE;_USRDLL" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db.pch" AssemblerListingLocation="$(OutDir)/db/" ObjectFile="$(OutDir)/db/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="ws2_32.lib" AdditionalLibraryDirectories="" OutputFile="$(OutDir)/libdb48.dll" ProgramDatabaseFile="$(OutDir)/libdb48.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" ImportLibrary="$(OutDir)/libdb48.lib" ModuleDefinitionFile="..\build_windows\libdb.def" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\crypto\aes_method.c"/> + <File RelativePath="..\btree\bt_compact.c"/> + <File RelativePath="..\btree\bt_compare.c"/> + <File RelativePath="..\btree\bt_compress.c"/> + <File RelativePath="..\btree\bt_conv.c"/> + <File RelativePath="..\btree\bt_curadj.c"/> + <File RelativePath="..\btree\bt_cursor.c"/> + <File RelativePath="..\btree\bt_delete.c"/> + <File RelativePath="..\btree\bt_method.c"/> + <File RelativePath="..\btree\bt_open.c"/> + <File RelativePath="..\btree\bt_put.c"/> + <File RelativePath="..\btree\bt_rec.c"/> + <File RelativePath="..\btree\bt_reclaim.c"/> + <File RelativePath="..\btree\bt_recno.c"/> + <File RelativePath="..\btree\bt_rsearch.c"/> + <File RelativePath="..\btree\bt_search.c"/> + <File RelativePath="..\btree\bt_split.c"/> + <File RelativePath="..\btree\bt_stat.c"/> + <File RelativePath="..\btree\bt_upgrade.c"/> + <File RelativePath="..\btree\bt_verify.c"/> + <File RelativePath="..\btree\btree_auto.c"/> + <File RelativePath="..\db\crdel_auto.c"/> + <File RelativePath="..\db\crdel_rec.c"/> + <File RelativePath="..\crypto\crypto.c"/> + <File RelativePath="..\cxx\cxx_db.cpp"/> + <File RelativePath="..\cxx\cxx_dbc.cpp"/> + <File RelativePath="..\cxx\cxx_dbt.cpp"/> + <File RelativePath="..\cxx\cxx_env.cpp"/> + <File RelativePath="..\cxx\cxx_except.cpp"/> + <File RelativePath="..\cxx\cxx_lock.cpp"/> + <File RelativePath="..\cxx\cxx_logc.cpp"/> + <File RelativePath="..\cxx\cxx_mpool.cpp"/> + <File RelativePath="..\cxx\cxx_multi.cpp"/> + <File RelativePath="..\cxx\cxx_seq.cpp"/> + <File RelativePath="..\cxx\cxx_txn.cpp"/> + <File RelativePath="..\db\db.c"/> + <File RelativePath="..\db\db_am.c"/> + <File RelativePath="..\db\db_auto.c"/> + <File RelativePath="..\common\db_byteorder.c"/> + <File RelativePath="..\db\db_cam.c"/> + <File RelativePath="..\db\db_cds.c"/> + <File RelativePath="..\db\db_conv.c"/> + <File RelativePath="..\db\db_dispatch.c"/> + <File RelativePath="..\db\db_dup.c"/> + <File RelativePath="..\common\db_err.c"/> + <File RelativePath="..\common\db_getlong.c"/> + <File RelativePath="..\common\db_idspace.c"/> + <File RelativePath="..\common\db_compint.c"/> + <File RelativePath="..\db\db_iface.c"/> + <File RelativePath="..\db\db_join.c"/> + <File RelativePath="..\common\db_log2.c"/> + <File RelativePath="..\db\db_meta.c"/> + <File RelativePath="..\db\db_method.c"/> + <File RelativePath="..\db\db_open.c"/> + <File RelativePath="..\db\db_overflow.c"/> + <File RelativePath="..\db\db_ovfl_vrfy.c"/> + <File RelativePath="..\db\db_pr.c"/> + <File RelativePath="..\db\db_rec.c"/> + <File RelativePath="..\db\db_reclaim.c"/> + <File RelativePath="..\db\db_remove.c"/> + <File RelativePath="..\db\db_rename.c"/> + <File RelativePath="..\db\db_ret.c"/> + <File RelativePath="..\db\db_setid.c"/> + <File RelativePath="..\db\db_setlsn.c"/> + <File RelativePath="..\common\db_shash.c"/> + <File RelativePath="..\db\db_sort_multiple.c"/> + <File RelativePath="..\db\db_stati.c"/> + <File RelativePath="..\db\db_truncate.c"/> + <File RelativePath="..\db\db_upg.c"/> + <File RelativePath="..\db\db_upg_opd.c"/> + <File RelativePath="..\db\db_vrfy.c"/> + <File RelativePath="..\db\db_vrfyutil.c"/> + <File RelativePath="..\db\partition.c"/> + <File RelativePath="..\dbm\dbm.c"/> + <File RelativePath="..\dbreg\dbreg.c"/> + <File RelativePath="..\dbreg\dbreg_auto.c"/> + <File RelativePath="..\dbreg\dbreg_rec.c"/> + <File RelativePath="..\dbreg\dbreg_stat.c"/> + <File RelativePath="..\dbreg\dbreg_util.c"/> + <File RelativePath="..\common\dbt.c"/> + <File RelativePath="..\env\env_alloc.c"/> + <File RelativePath="..\env\env_config.c"/> + <File RelativePath="..\env\env_failchk.c"/> + <File RelativePath="..\env\env_file.c"/> + <File RelativePath="..\env\env_globals.c"/> + <File RelativePath="..\env\env_method.c"/> + <File RelativePath="..\env\env_name.c"/> + <File RelativePath="..\env\env_open.c"/> + <File RelativePath="..\env\env_recover.c"/> + <File RelativePath="..\env\env_region.c"/> + <File RelativePath="..\env\env_register.c"/> + <File RelativePath="..\env\env_sig.c"/> + <File RelativePath="..\env\env_stat.c"/> + <File RelativePath="..\fileops\fileops_auto.c"/> + <File RelativePath="..\fileops\fop_basic.c"/> + <File RelativePath="..\fileops\fop_rec.c"/> + <File RelativePath="..\fileops\fop_util.c"/> + <File RelativePath="..\hash\hash.c"/> + <File RelativePath="..\hash\hash_auto.c"/> + <File RelativePath="..\hash\hash_conv.c"/> + <File RelativePath="..\hash\hash_dup.c"/> + <File RelativePath="..\hash\hash_func.c"/> + <File RelativePath="..\hash\hash_meta.c"/> + <File RelativePath="..\hash\hash_method.c"/> + <File RelativePath="..\hash\hash_open.c"/> + <File RelativePath="..\hash\hash_page.c"/> + <File RelativePath="..\hash\hash_rec.c"/> + <File RelativePath="..\hash\hash_reclaim.c"/> + <File RelativePath="..\hash\hash_stat.c"/> + <File RelativePath="..\hash\hash_upgrade.c"/> + <File RelativePath="..\hash\hash_verify.c"/> + <File RelativePath="..\hmac\hmac.c"/> + <File RelativePath="..\hsearch\hsearch.c"/> + <File RelativePath="..\build_windows\libdb.def"/> + <File RelativePath="..\build_windows\libdb.rc"> + <FileConfiguration Name="Debug|Win32"><Tool Name="VCResourceCompilerTool" PreprocessorDefinitions="_DEBUG;$(NoInherit))"/> + </FileConfiguration> + <FileConfiguration Name="Release|Win32"><Tool Name="VCResourceCompilerTool" PreprocessorDefinitions="NDEBUG;$(NoInherit))"/> + </FileConfiguration> + <FileConfiguration Name="Debug|x64"><Tool Name="VCResourceCompilerTool" PreprocessorDefinitions="_DEBUG;$(NoInherit))"/> + </FileConfiguration> + <FileConfiguration Name="Release|x64"><Tool Name="VCResourceCompilerTool" PreprocessorDefinitions="NDEBUG;$(NoInherit))"/> + </FileConfiguration> + <FileConfiguration Name="Debug|IA64"><Tool Name="VCResourceCompilerTool" PreprocessorDefinitions="_DEBUG;$(NoInherit))"/> + </FileConfiguration> + <FileConfiguration Name="Release|IA64"><Tool Name="VCResourceCompilerTool" PreprocessorDefinitions="NDEBUG;$(NoInherit))"/> + </FileConfiguration> + </File> + <File RelativePath="..\lock\lock.c"/> + <File RelativePath="..\lock\lock_deadlock.c"/> + <File RelativePath="..\lock\lock_failchk.c"/> + <File RelativePath="..\lock\lock_id.c"/> + <File RelativePath="..\lock\lock_list.c"/> + <File RelativePath="..\lock\lock_method.c"/> + <File RelativePath="..\lock\lock_region.c"/> + <File RelativePath="..\lock\lock_stat.c"/> + <File RelativePath="..\lock\lock_timer.c"/> + <File RelativePath="..\lock\lock_util.c"/> + <File RelativePath="..\log\log.c"/> + <File RelativePath="..\log\log_archive.c"/> + <File RelativePath="..\log\log_compare.c"/> + <File RelativePath="..\log\log_debug.c"/> + <File RelativePath="..\log\log_get.c"/> + <File RelativePath="..\log\log_method.c"/> + <File RelativePath="..\log\log_put.c"/> + <File RelativePath="..\log\log_stat.c"/> + <File RelativePath="..\common\mkpath.c"/> + <File RelativePath="..\mp\mp_alloc.c"/> + <File RelativePath="..\mp\mp_bh.c"/> + <File RelativePath="..\mp\mp_fget.c"/> + <File RelativePath="..\mp\mp_fmethod.c"/> + <File RelativePath="..\mp\mp_fopen.c"/> + <File RelativePath="..\mp\mp_fput.c"/> + <File RelativePath="..\mp\mp_fset.c"/> + <File RelativePath="..\mp\mp_method.c"/> + <File RelativePath="..\mp\mp_mvcc.c"/> + <File RelativePath="..\mp\mp_region.c"/> + <File RelativePath="..\mp\mp_register.c"/> + <File RelativePath="..\mp\mp_resize.c"/> + <File RelativePath="..\mp\mp_stat.c"/> + <File RelativePath="..\mp\mp_sync.c"/> + <File RelativePath="..\mp\mp_trickle.c"/> + <File RelativePath="..\crypto\mersenne\mt19937db.c"/> + <File RelativePath="..\mutex\mut_alloc.c"/> + <File RelativePath="..\mutex\mut_failchk.c"/> + <File RelativePath="..\mutex\mut_method.c"/> + <File RelativePath="..\mutex\mut_region.c"/> + <File RelativePath="..\mutex\mut_stat.c"/> + <File RelativePath="..\mutex\mut_win32.c"/> + <File RelativePath="..\common\openflags.c"/> + <File RelativePath="..\os\os_abort.c"/> + <File RelativePath="..\os\os_addrinfo.c"/> + <File RelativePath="..\os_windows\os_abs.c"/> + <File RelativePath="..\os\os_alloc.c"/> + <File RelativePath="..\os_windows\os_clock.c"/> + <File RelativePath="..\os_windows\os_config.c"/> + <File RelativePath="..\os_windows\os_cpu.c"/> + <File RelativePath="..\os\os_ctime.c"/> + <File RelativePath="..\os_windows\os_dir.c"/> + <File RelativePath="..\os_windows\os_errno.c"/> + <File RelativePath="..\os_windows\os_fid.c"/> + <File RelativePath="..\os_windows\os_flock.c"/> + <File RelativePath="..\os_windows\os_fsync.c"/> + <File RelativePath="..\os_windows\os_getenv.c"/> + <File RelativePath="..\os_windows\os_handle.c"/> + <File RelativePath="..\os_windows\os_map.c"/> + <File RelativePath="..\os_windows\os_mkdir.c"/> + <File RelativePath="..\os_windows\os_open.c"/> + <File RelativePath="..\os\os_pid.c"/> + <File RelativePath="..\os_windows\os_rename.c"/> + <File RelativePath="..\os\os_root.c"/> + <File RelativePath="..\os\os_rpath.c"/> + <File RelativePath="..\os_windows\os_rw.c"/> + <File RelativePath="..\os_windows\os_seek.c"/> + <File RelativePath="..\os\os_stack.c"/> + <File RelativePath="..\os_windows\os_stat.c"/> + <File RelativePath="..\os\os_tmpdir.c"/> + <File RelativePath="..\os_windows\os_truncate.c"/> + <File RelativePath="..\os\os_uid.c"/> + <File RelativePath="..\os_windows\os_unlink.c"/> + <File RelativePath="..\os_windows\os_yield.c"/> + <File RelativePath="..\qam\qam.c"/> + <File RelativePath="..\qam\qam_auto.c"/> + <File RelativePath="..\qam\qam_conv.c"/> + <File RelativePath="..\qam\qam_files.c"/> + <File RelativePath="..\qam\qam_method.c"/> + <File RelativePath="..\qam\qam_open.c"/> + <File RelativePath="..\qam\qam_rec.c"/> + <File RelativePath="..\qam\qam_stat.c"/> + <File RelativePath="..\qam\qam_upgrade.c"/> + <File RelativePath="..\qam\qam_verify.c"/> + <File RelativePath="..\rep\rep_auto.c"/> + <File RelativePath="..\rep\rep_backup.c"/> + <File RelativePath="..\rep\rep_elect.c"/> + <File RelativePath="..\rep\rep_lease.c"/> + <File RelativePath="..\rep\rep_log.c"/> + <File RelativePath="..\rep\rep_method.c"/> + <File RelativePath="..\rep\rep_record.c"/> + <File RelativePath="..\rep\rep_region.c"/> + <File RelativePath="..\rep\rep_stat.c"/> + <File RelativePath="..\rep\rep_util.c"/> + <File RelativePath="..\rep\rep_verify.c"/> + <File RelativePath="..\repmgr\repmgr_auto.c"/> + <File RelativePath="..\repmgr\repmgr_elect.c"/> + <File RelativePath="..\repmgr\repmgr_method.c"/> + <File RelativePath="..\repmgr\repmgr_msg.c"/> + <File RelativePath="..\repmgr\repmgr_net.c"/> + <File RelativePath="..\repmgr\repmgr_queue.c"/> + <File RelativePath="..\repmgr\repmgr_sel.c"/> + <File RelativePath="..\repmgr\repmgr_stat.c"/> + <File RelativePath="..\repmgr\repmgr_util.c"/> + <File RelativePath="..\repmgr\repmgr_windows.c"/> + <File RelativePath="..\crypto\rijndael\rijndael-alg-fst.c"/> + <File RelativePath="..\crypto\rijndael\rijndael-api-fst.c"/> + <File RelativePath="..\sequence\seq_stat.c"/> + <File RelativePath="..\sequence\sequence.c"/> + <File RelativePath="..\hmac\sha1.c"/> + <File RelativePath="..\clib\strsep.c"/> + <File RelativePath="..\txn\txn.c"/> + <File RelativePath="..\txn\txn_auto.c"/> + <File RelativePath="..\txn\txn_chkpt.c"/> + <File RelativePath="..\txn\txn_failchk.c"/> + <File RelativePath="..\txn\txn_method.c"/> + <File RelativePath="..\txn\txn_rec.c"/> + <File RelativePath="..\txn\txn_recover.c"/> + <File RelativePath="..\txn\txn_region.c"/> + <File RelativePath="..\txn\txn_stat.c"/> + <File RelativePath="..\txn\txn_util.c"/> + <File RelativePath="..\common\os_method.c"/> + <File RelativePath="..\common\util_cache.c"/> + <File RelativePath="..\common\util_log.c"/> + <File RelativePath="..\common\util_sig.c"/> + <File RelativePath="..\common\zerofill.c"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/db_archive.dsp b/build_windows/db_archive.dsp new file mode 100644 index 0000000..26586e5 --- /dev/null +++ b/build_windows/db_archive.dsp @@ -0,0 +1,94 @@ +# Microsoft Developer Studio Project File - Name="db_archive" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=db_archive - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "db_archive.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "db_archive.mak" CFG="db_archive - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "db_archive - Win32 Release x86" (based on "Win32 (x86) Console Application")
+!MESSAGE "db_archive - Win32 Debug x86" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "db_archive - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32/Release"
+# PROP BASE Intermediate_Dir "Win32/Release/db_archive"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32/Release"
+# PROP Intermediate_Dir "Win32/Release/db_archive"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 libdb48.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386 /nodefaultlib:"libcmt" /libpath:"$(OUTDIR)"
+
+!ELSEIF "$(CFG)" == "db_archive - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32/Debug"
+# PROP BASE Intermediate_Dir "Win32/Debug/db_archive"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32/Debug"
+# PROP Intermediate_Dir "Win32/Debug/db_archive"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 libdb48d.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /nodefaultlib:"libcmtd" /fixed:no /libpath:"$(OUTDIR)"
+
+!ENDIF
+
+# Begin Target
+
+# Name "db_archive - Win32 Release x86"
+# Name "db_archive - Win32 Debug x86"
+# Begin Source File
+
+SOURCE=..\db_archive\db_archive.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\clib\getopt.c
+# End Source File
+# End Target
+# End Project
diff --git a/build_windows/db_archive.vcproj b/build_windows/db_archive.vcproj new file mode 100644 index 0000000..ea91041 --- /dev/null +++ b/build_windows/db_archive.vcproj @@ -0,0 +1,81 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="db_archive" ProjectGUID="{56056344-53A1-4FA6-B20B-862C0BA68953}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_archive" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_archive.pch" AssemblerListingLocation="$(OutDir)/db_archive/" ObjectFile="$(OutDir)/db_archive/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_archive.exe" ProgramDatabaseFile="$(OutDir)/db_archive.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_archive" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_archive.pch" AssemblerListingLocation="$(OutDir)/db_archive/" ObjectFile="$(OutDir)/db_archive/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_archive.exe" ProgramDatabaseFile="$(OutDir)/db_archive.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_archive" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_archive.pch" AssemblerListingLocation="$(OutDir)/db_archive/" ObjectFile="$(OutDir)/db_archive/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_archive.exe" ProgramDatabaseFile="$(OutDir)/db_archive.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_archive" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_archive.pch" AssemblerListingLocation="$(OutDir)/db_archive/" ObjectFile="$(OutDir)/db_archive/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_archive.exe" ProgramDatabaseFile="$(OutDir)/db_archive.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_archive" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_archive.pch" AssemblerListingLocation="$(OutDir)/db_archive/" ObjectFile="$(OutDir)/db_archive/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_archive.exe" ProgramDatabaseFile="$(OutDir)/db_archive.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_archive" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_archive.pch" AssemblerListingLocation="$(OutDir)/db_archive/" ObjectFile="$(OutDir)/db_archive/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_archive.exe" ProgramDatabaseFile="$(OutDir)/db_archive.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\db_archive\db_archive.c"/> + <File RelativePath="..\clib\getopt.c"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/db_checkpoint.dsp b/build_windows/db_checkpoint.dsp new file mode 100644 index 0000000..cfa85d5 --- /dev/null +++ b/build_windows/db_checkpoint.dsp @@ -0,0 +1,94 @@ +# Microsoft Developer Studio Project File - Name="db_checkpoint" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=db_checkpoint - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "db_checkpoint.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "db_checkpoint.mak" CFG="db_checkpoint - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "db_checkpoint - Win32 Release x86" (based on "Win32 (x86) Console Application")
+!MESSAGE "db_checkpoint - Win32 Debug x86" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "db_checkpoint - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32/Release"
+# PROP BASE Intermediate_Dir "Win32/Release/db_checkpoint"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32/Release"
+# PROP Intermediate_Dir "Win32/Release/db_checkpoint"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 libdb48.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386 /nodefaultlib:"libcmt" /libpath:"$(OUTDIR)"
+
+!ELSEIF "$(CFG)" == "db_checkpoint - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32/Debug"
+# PROP BASE Intermediate_Dir "Win32/Debug/db_checkpoint"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32/Debug"
+# PROP Intermediate_Dir "Win32/Debug/db_checkpoint"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 libdb48d.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /nodefaultlib:"libcmtd" /fixed:no /libpath:"$(OUTDIR)"
+
+!ENDIF
+
+# Begin Target
+
+# Name "db_checkpoint - Win32 Release x86"
+# Name "db_checkpoint - Win32 Debug x86"
+# Begin Source File
+
+SOURCE=..\db_checkpoint\db_checkpoint.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\clib\getopt.c
+# End Source File
+# End Target
+# End Project
diff --git a/build_windows/db_checkpoint.vcproj b/build_windows/db_checkpoint.vcproj new file mode 100644 index 0000000..9a869ac --- /dev/null +++ b/build_windows/db_checkpoint.vcproj @@ -0,0 +1,81 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="db_checkpoint" ProjectGUID="{A3BE0163-1E6C-4235-9B6B-3A36ABB5E285}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_checkpoint" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_checkpoint.pch" AssemblerListingLocation="$(OutDir)/db_checkpoint/" ObjectFile="$(OutDir)/db_checkpoint/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_checkpoint.exe" ProgramDatabaseFile="$(OutDir)/db_checkpoint.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_checkpoint" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_checkpoint.pch" AssemblerListingLocation="$(OutDir)/db_checkpoint/" ObjectFile="$(OutDir)/db_checkpoint/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_checkpoint.exe" ProgramDatabaseFile="$(OutDir)/db_checkpoint.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_checkpoint" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_checkpoint.pch" AssemblerListingLocation="$(OutDir)/db_checkpoint/" ObjectFile="$(OutDir)/db_checkpoint/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_checkpoint.exe" ProgramDatabaseFile="$(OutDir)/db_checkpoint.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_checkpoint" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_checkpoint.pch" AssemblerListingLocation="$(OutDir)/db_checkpoint/" ObjectFile="$(OutDir)/db_checkpoint/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_checkpoint.exe" ProgramDatabaseFile="$(OutDir)/db_checkpoint.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_checkpoint" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_checkpoint.pch" AssemblerListingLocation="$(OutDir)/db_checkpoint/" ObjectFile="$(OutDir)/db_checkpoint/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_checkpoint.exe" ProgramDatabaseFile="$(OutDir)/db_checkpoint.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_checkpoint" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_checkpoint.pch" AssemblerListingLocation="$(OutDir)/db_checkpoint/" ObjectFile="$(OutDir)/db_checkpoint/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_checkpoint.exe" ProgramDatabaseFile="$(OutDir)/db_checkpoint.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\db_checkpoint\db_checkpoint.c"/> + <File RelativePath="..\clib\getopt.c"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/db_config.h b/build_windows/db_config.h new file mode 100644 index 0000000..e00ed68 --- /dev/null +++ b/build_windows/db_config.h @@ -0,0 +1,617 @@ +/* DO NOT EDIT: automatically built by dist/s_windows. */ +/* Define to 1 if you want to build a version for running the test suite. */ +/* #undef CONFIG_TEST */ + +/* We use DB_WIN32 much as one would use _WIN32 -- to specify that we're using + an operating system environment that supports Win32 calls and semantics. We + don't use _WIN32 because Cygwin/GCC also defines _WIN32, even though + Cygwin/GCC closely emulates the Unix environment. */ +#define DB_WIN32 1 + +/* Define to 1 if you want a debugging version. */ +#if defined(_DEBUG) +#if !defined(DEBUG) +#define DEBUG 1 +#endif +#endif + +/* Define to 1 if you want a version that logs read operations. */ +/* #undef DEBUG_ROP */ + +/* Define to 1 if you want a version that logs write operations. */ +/* #undef DEBUG_WOP */ + +/* Define to 1 if you want a version with run-time diagnostic checking. */ +/* #undef DIAGNOSTIC */ + +/* Define to 1 if 64-bit types are available. */ +#define HAVE_64BIT_TYPES 1 + +/* Define to 1 if you have the `abort' function. */ +#define HAVE_ABORT 1 + +/* Define to 1 if you have the `atoi' function. */ +#define HAVE_ATOI 1 + +/* Define to 1 if you have the `atol' function. */ +#define HAVE_ATOL 1 + +/* Define to 1 to use Solaris library routes for atomic operations. */ +/* #undef HAVE_ATOMIC_SOLARIS */ + +/* Define to 1 to use native atomic operations. */ +#define HAVE_ATOMIC_SUPPORT 1 + +/* Define to 1 to use GCC and x86 or x86_64 assemlby language atomic + operations. */ +/* #undef HAVE_ATOMIC_X86_GCC_ASSEMBLY */ + +/* Define to 1 if you have the `backtrace' function. */ +/* Define to 1 if you have the `backtrace' function. */ +/* #undef HAVE_BACKTRACE */ + +/* Define to 1 if you have the `backtrace_symbols' function. */ +/* #undef HAVE_BACKTRACE_SYMBOLS */ + +/* Define to 1 if building BREW. */ +/* #undef HAVE_BREW */ + +/* Define to 1 if building on BREW (SDK2). */ +/* #undef HAVE_BREW_SDK2 */ + +/* Define to 1 if you have the `clock_gettime' function. */ +/* #undef HAVE_CLOCK_GETTIME */ + +/* Define to 1 if clock_gettime supports CLOCK_MONOTONIC. */ +/* #undef HAVE_CLOCK_MONOTONIC */ + +/* Define to 1 if building compression support. */ +#ifndef HAVE_SMALLBUILD +#define HAVE_COMPRESSION 1 +#endif + +/* Define to 1 if Berkeley DB release includes strong cryptography. */ +#ifndef HAVE_SMALLBUILD +#define HAVE_CRYPTO 1 +#endif + +/* Define to 1 if you have the `ctime_r' function. */ +/* #undef HAVE_CTIME_R */ + +/* Define to 1 if ctime_r takes a buffer length as a third argument. */ +/* #undef HAVE_CTIME_R_3ARG */ + +/* Define to 1 if you have the `directio' function. */ +/* #undef HAVE_DIRECTIO */ + +/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'. + */ +/* #undef HAVE_DIRENT_H */ + +/* Define to 1 if you have the <dlfcn.h> header file. */ +/* #undef HAVE_DLFCN_H */ + +/* Define to 1 if you have the <execinfo.h> header file. */ +/* #undef HAVE_EXECINFO_H */ + +/* Define to 1 if you have EXIT_SUCCESS/EXIT_FAILURE #defines. */ +#define HAVE_EXIT_SUCCESS 1 + +/* Define to 1 if you have the `fchmod' function. */ +/* #undef HAVE_FCHMOD */ + +/* Define to 1 if you have the `fclose' function. */ +#define HAVE_FCLOSE 1 + +/* Define to 1 if you have the `fcntl' function. */ +/* #undef HAVE_FCNTL */ + +/* Define to 1 if fcntl/F_SETFD denies child access to file descriptors. */ +/* #undef HAVE_FCNTL_F_SETFD */ + +/* Define to 1 if you have the `fdatasync' function. */ +/* #undef HAVE_FDATASYNC */ + +/* Define to 1 if you have the `fgetc' function. */ +#define HAVE_FGETC 1 + +/* Define to 1 if you have the `fgets' function. */ +#define HAVE_FGETS 1 + +/* Define to 1 if allocated filesystem blocks are not zeroed. */ +#define HAVE_FILESYSTEM_NOTZERO 1 + +/* Define to 1 if you have the `fopen' function. */ +#define HAVE_FOPEN 1 + +/* Define to 1 if you have the `ftruncate' function. */ +#define HAVE_FTRUNCATE 1 + +/* Define to 1 if you have the `fwrite' function. */ +#define HAVE_FWRITE 1 + +/* Define to 1 if you have the `getaddrinfo' function. */ +/* #undef HAVE_GETADDRINFO */ + +/* Define to 1 if you have the `getcwd' function. */ +#define HAVE_GETCWD 1 + +/* Define to 1 if you have the `getenv' function. */ +#define HAVE_GETENV 1 + +/* Define to 1 if you have the `getgid' function. */ +/* #undef HAVE_GETGID */ + +/* Define to 1 if you have the `getopt' function. */ +/* + * Windows does not have the getopt function, but as Berkeley DB example + * programs require getopt, we handle it outside of this configuration. + */ +#define HAVE_GETOPT 1 + +/* Define to 1 if getopt supports the optreset variable. */ +#define HAVE_GETOPT_OPTRESET 1 + +/* Define to 1 if you have the `getrusage' function. */ +/* #undef HAVE_GETRUSAGE */ + +/* Define to 1 if you have the `gettimeofday' function. */ +/* #undef HAVE_GETTIMEOFDAY */ + +/* Define to 1 if you have the `getuid' function. */ +/* #undef HAVE_GETUID */ + +/* Define to 1 if building Hash access method. */ +#ifndef HAVE_SMALLBUILD +#define HAVE_HASH 1 +#endif + +/* Define to 1 if you have the `hstrerror' function. */ +/* #undef HAVE_HSTRERROR */ + +/* Define to 1 if you have the <inttypes.h> header file. */ +/* #undef HAVE_INTTYPES_H */ + +/* Define to 1 if you have the `isalpha' function. */ +#define HAVE_ISALPHA 1 + +/* Define to 1 if you have the `isdigit' function. */ +#define HAVE_ISDIGIT 1 + +/* Define to 1 if you have the `isprint' function. */ +#define HAVE_ISPRINT 1 + +/* Define to 1 if you have the `localtime' function. */ +#define HAVE_LOCALTIME 1 + +/* Define to 1 if you have the `isspace' function. */ +#define HAVE_ISSPACE 1 + +/* Define to 1 if you have the `memcmp' function. */ +#define HAVE_MEMCMP 1 + +/* Define to 1 if you have the `memcpy' function. */ +#define HAVE_MEMCPY 1 + +/* Define to 1 if you have the `memmove' function. */ +#define HAVE_MEMMOVE 1 + +/* Define to 1 if you have the <memory.h> header file. */ +#define HAVE_MEMORY_H 1 + +/* Define to 1 if you have the `mlock' function. */ +/* #undef HAVE_MLOCK */ + +/* Define to 1 if you have the `mmap' function. */ +/* #undef HAVE_MMAP */ + +/* Define to 1 if you have the `mprotect' function. */ +/* #undef HAVE_MPROTECT */ + +/* Define to 1 if you have the `munlock' function. */ +/* #undef HAVE_MUNLOCK */ + +/* Define to 1 if you have the `munmap' function. */ +/* #undef HAVE_MUNMAP */ + +/* Define to 1 to use the GCC compiler and 68K assembly language mutexes. */ +/* #undef HAVE_MUTEX_68K_GCC_ASSEMBLY */ + +/* Define to 1 to use the AIX _check_lock mutexes. */ +/* #undef HAVE_MUTEX_AIX_CHECK_LOCK */ + +/* Define to 1 to use the GCC compiler and Alpha assembly language mutexes. */ +/* #undef HAVE_MUTEX_ALPHA_GCC_ASSEMBLY */ + +/* Define to 1 to use the GCC compiler and ARM assembly language mutexes. */ +/* #undef HAVE_MUTEX_ARM_GCC_ASSEMBLY */ + +/* Define to 1 to use the Apple/Darwin _spin_lock_try mutexes. */ +/* #undef HAVE_MUTEX_DARWIN_SPIN_LOCK_TRY */ + +/* Define to 1 to use the UNIX fcntl system call mutexes. */ +/* #undef HAVE_MUTEX_FCNTL */ + +/* Define to 1 to use the GCC compiler and PaRisc assembly language mutexes. + */ +/* #undef HAVE_MUTEX_HPPA_GCC_ASSEMBLY */ + +/* Define to 1 to use the msem_XXX mutexes on HP-UX. */ +/* #undef HAVE_MUTEX_HPPA_MSEM_INIT */ + +/* Define to 1 to use test-and-set mutexes with blocking mutexes. */ +/* #undef HAVE_MUTEX_HYBRID */ + +/* Define to 1 to use the GCC compiler and IA64 assembly language mutexes. */ +/* #undef HAVE_MUTEX_IA64_GCC_ASSEMBLY */ + +/* Define to 1 to use the GCC compiler and MIPS assembly language mutexes. */ +/* #undef HAVE_MUTEX_MIPS_GCC_ASSEMBLY */ + +/* Define to 1 to use the msem_XXX mutexes on systems other than HP-UX. */ +/* #undef HAVE_MUTEX_MSEM_INIT */ + +/* Define to 1 to use the GCC compiler and PowerPC assembly language mutexes. + */ +/* #undef HAVE_MUTEX_PPC_GCC_ASSEMBLY */ + +/* Define to 1 to use POSIX 1003.1 pthread_XXX mutexes. */ +/* #undef HAVE_MUTEX_PTHREADS */ + +/* Define to 1 to use Reliant UNIX initspin mutexes. */ +/* #undef HAVE_MUTEX_RELIANTUNIX_INITSPIN */ + +/* Define to 1 to use the IBM C compiler and S/390 assembly language mutexes. + */ +/* #undef HAVE_MUTEX_S390_CC_ASSEMBLY */ + +/* Define to 1 to use the GCC compiler and S/390 assembly language mutexes. */ +/* #undef HAVE_MUTEX_S390_GCC_ASSEMBLY */ + +/* Define to 1 to use the SCO compiler and x86 assembly language mutexes. */ +/* #undef HAVE_MUTEX_SCO_X86_CC_ASSEMBLY */ + +/* Define to 1 to use the obsolete POSIX 1003.1 sema_XXX mutexes. */ +/* #undef HAVE_MUTEX_SEMA_INIT */ + +/* Define to 1 to use the SGI XXX_lock mutexes. */ +/* #undef HAVE_MUTEX_SGI_INIT_LOCK */ + +/* Define to 1 to use the Solaris _lock_XXX mutexes. */ +/* #undef HAVE_MUTEX_SOLARIS_LOCK_TRY */ + +/* Define to 1 to use the Solaris lwp threads mutexes. */ +/* #undef HAVE_MUTEX_SOLARIS_LWP */ + +/* Define to 1 to use the GCC compiler and Sparc assembly language mutexes. */ +/* #undef HAVE_MUTEX_SPARC_GCC_ASSEMBLY */ + +/* Define to 1 if the Berkeley DB library should support mutexes. */ +#define HAVE_MUTEX_SUPPORT 1 + +/* Define to 1 if mutexes hold system resources. */ +/* #undef HAVE_MUTEX_SYSTEM_RESOURCES */ + +/* Define to 1 to configure mutexes intra-process only. */ +/* #undef HAVE_MUTEX_THREAD_ONLY */ + +/* Define to 1 to use the CC compiler and Tru64 assembly language mutexes. */ +/* #undef HAVE_MUTEX_TRU64_CC_ASSEMBLY */ + +/* Define to 1 to use the UNIX International mutexes. */ +/* #undef HAVE_MUTEX_UI_THREADS */ + +/* Define to 1 to use the UTS compiler and assembly language mutexes. */ +/* #undef HAVE_MUTEX_UTS_CC_ASSEMBLY */ + +/* Define to 1 to use VMS mutexes. */ +/* #undef HAVE_MUTEX_VMS */ + +/* Define to 1 to use VxWorks mutexes. */ +/* #undef HAVE_MUTEX_VXWORKS */ + +/* Define to 1 to use the MSVC compiler and Windows mutexes. */ +#define HAVE_MUTEX_WIN32 1 + +/* Define to 1 to use the GCC compiler and Windows mutexes. */ +/* #undef HAVE_MUTEX_WIN32_GCC */ + +/* Define to 1 to use the GCC compiler and 64-bit x86 assembly language + mutexes. */ +/* #undef HAVE_MUTEX_X86_64_GCC_ASSEMBLY */ + +/* Define to 1 to use the GCC compiler and 32-bit x86 assembly language + mutexes. */ +/* #undef HAVE_MUTEX_X86_GCC_ASSEMBLY */ + +/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */ +/* #undef HAVE_NDIR_H */ + +/* Define to 1 if you have the O_DIRECT flag. */ +/* #undef HAVE_O_DIRECT */ + +/* Define to 1 if building partitioned database support. */ +#define HAVE_PARTITION 1 + +/* Define to 1 if you have the `pread' function. */ +/* #undef HAVE_PREAD */ + +/* Define to 1 if you have the `printf' function. */ +#define HAVE_PRINTF 1 + +/* Define to 1 if you have the `pstat_getdynamic' function. */ +/* #undef HAVE_PSTAT_GETDYNAMIC */ + +/* Define to 1 if you have the `pthread_self' function. */ +/* #undef HAVE_PTHREAD_SELF */ + +/* Define to 1 if you have the `pthread_yield' function. */ +/* #undef HAVE_PTHREAD_YIELD */ + +/* Define to 1 if you have the `pwrite' function. */ +/* #undef HAVE_PWRITE */ + +/* Define to 1 if building on QNX. */ +/* #undef HAVE_QNX */ + +/* Define to 1 if you have the `qsort' function. */ +#define HAVE_QSORT 1 + +/* Define to 1 if building Queue access method. */ +#ifndef HAVE_SMALLBUILD +#define HAVE_QUEUE 1 +#endif + +/* Define to 1 if you have the `raise' function. */ +#define HAVE_RAISE 1 + +/* Define to 1 if you have the `rand' function. */ +#define HAVE_RAND 1 + +/* Define to 1 if you have the `random' function. */ +/* #undef HAVE_RANDOM */ + +/* Define to 1 if building replication support. */ +#ifndef HAVE_SMALLBUILD +#define HAVE_REPLICATION 1 +#endif + +/* Define to 1 if building the Berkeley DB replication framework. */ +#ifndef HAVE_SMALLBUILD +#define HAVE_REPLICATION_THREADS 1 +#endif + +/* Define to 1 if building RPC client/server. */ +/* #undef HAVE_RPC */ + +/* Define to 1 if building on S60. */ +/* #undef HAVE_S60 */ + +/* Define to 1 if you have the `sched_yield' function. */ +/* #undef HAVE_SCHED_YIELD */ + +/* Define to 1 if you have the `select' function. */ +/* #undef HAVE_SELECT */ + +/* Define to 1 if you have the `setgid' function. */ +/* #undef HAVE_SETGID */ + +/* Define to 1 if you have the `setuid' function. */ +#define HAVE_SETUID 1 + +/* Define to 1 to configure Berkeley DB to use shared, read/write latches. */ +#define HAVE_SHARED_LATCHES 1 + +/* Define to 1 if shmctl/SHM_LOCK locks down shared memory segments. */ +/* #undef HAVE_SHMCTL_SHM_LOCK */ + +/* Define to 1 if you have the `shmget' function. */ +/* #undef HAVE_SHMGET */ + +/* Define to 1 if you have the `sigaction' function. */ +/* #undef HAVE_SIGACTION */ + +/* Define to 1 if thread identifier type db_threadid_t is integral. */ +#define HAVE_SIMPLE_THREAD_TYPE 1 + +/* Define to 1 if you have the `snprintf' function. */ +#define HAVE_SNPRINTF 1 + +/* Define to 1 if you have the `stat' function. */ +#define HAVE_STAT 1 + +/* Define to 1 if building statistics support. */ +#define HAVE_STATISTICS 1 + +/* Define to 1 if you have the <stdint.h> header file. */ +/* #undef HAVE_STDINT_H */ + +/* Define to 1 if you have the <stdlib.h> header file. */ +#define HAVE_STDLIB_H 1 + +/* Define to 1 if you have the `strcasecmp' function. */ +#define HAVE_STRCASECMP 1 + +/* Define to 1 if you have the `strcat' function. */ +#define HAVE_STRCAT 1 + +/* Define to 1 if you have the `strchr' function. */ +#define HAVE_STRCHR 1 + +/* Define to 1 if you have the `strdup' function. */ +#define HAVE_STRDUP 1 + +/* Define to 1 if you have the `strerror' function. */ +#define HAVE_STRERROR 1 + +/* Define to 1 if you have the `strftime' function. */ +#define HAVE_STRFTIME 1 + +/* Define to 1 if you have the <strings.h> header file. */ +#define HAVE_STRINGS_H 1 + +/* Define to 1 if you have the <string.h> header file. */ +#define HAVE_STRING_H 1 + +/* Define to 1 if you have the `strncat' function. */ +#define HAVE_STRNCAT 1 + +/* Define to 1 if you have the `strncmp' function. */ +#define HAVE_STRNCMP 1 + +/* Define to 1 if you have the `strrchr' function. */ +#define HAVE_STRRCHR 1 + +/* Define to 1 if you have the `strsep' function. */ +/* #undef HAVE_STRSEP */ + +/* Define to 1 if you have the `strtol' function. */ +#define HAVE_STRTOL 1 + +/* Define to 1 if you have the `strtoul' function. */ +#define HAVE_STRTOUL 1 + +/* Define to 1 if `st_blksize' is member of `struct stat'. */ +/* #undef HAVE_STRUCT_STAT_ST_BLKSIZE */ + +/* Define to 1 if you have the `sysconf' function. */ +/* #undef HAVE_SYSCONF */ + +/* Define to 1 if port includes files in the Berkeley DB source code. */ +/* #undef HAVE_SYSTEM_INCLUDE_FILES */ + +/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'. + */ +/* #undef HAVE_SYS_DIR_H */ + +/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'. + */ +/* #undef HAVE_SYS_NDIR_H */ + +/* Define to 1 if you have the <sys/select.h> header file. */ +/* #undef HAVE_SYS_SELECT_H */ + +/* Define to 1 if you have the <sys/socket.h> header file. */ +/* #undef HAVE_SYS_SOCKET_H */ + +/* Define to 1 if you have the <sys/stat.h> header file. */ +#define HAVE_SYS_STAT_H 1 + +/* Define to 1 if you have the <sys/time.h> header file. */ +/* #undef HAVE_SYS_TIME_H */ + +/* Define to 1 if you have the <sys/types.h> header file. */ +#define HAVE_SYS_TYPES_H 1 + +/* Define to 1 if you have the `time' function. */ +#define HAVE_TIME 1 + +/* Define to 1 if you have the <unistd.h> header file. */ +/* #undef HAVE_UNISTD_H */ + +/* Define to 1 if unlink of file with open file descriptors will fail. */ +/* #undef HAVE_UNLINK_WITH_OPEN_FAILURE */ + +/* Define to 1 if port includes historic database upgrade support. */ +#define HAVE_UPGRADE_SUPPORT 1 + +/* Define to 1 if building access method verification support. */ +#ifndef HAVE_SMALLBUILD +#define HAVE_VERIFY 1 +#endif + +/* Define to 1 if you have the `vsnprintf' function. */ +#define HAVE_VSNPRINTF 1 + +/* Define to 1 if building VxWorks. */ +/* #undef HAVE_VXWORKS */ + +/* Define to 1 if you have the `yield' function. */ +/* #undef HAVE_YIELD */ + +/* Define to 1 if you have the `_fstati64' function. */ +#define HAVE__FSTATI64 1 + +/* Define to the sub-directory in which libtool stores uninstalled libraries. */ +/* #undef LT_OBJDIR */ + +/* Define to the address where bug reports for this package should be sent. */ +#define PACKAGE_BUGREPORT "Oracle Technology Network Berkeley DB forum" + +/* Define to the full name of this package. */ +#define PACKAGE_NAME "Berkeley DB" + +/* Define to the full name and version of this package. */ +#define PACKAGE_STRING "Berkeley DB 4.8.30" + +/* Define to the one symbol short name of this package. */ +#define PACKAGE_TARNAME "db-4.8.30" + +/* Define to the version of this package. */ +#define PACKAGE_VERSION "4.8.30" + +/* The size of a `char', as computed by sizeof. */ +/* #undef SIZEOF_CHAR */ + +/* The size of a `char *', as computed by sizeof. */ +/* #undef SIZEOF_CHAR_P */ + +/* The size of a `int', as computed by sizeof. */ +/* #undef SIZEOF_INT */ + +/* The size of a `long', as computed by sizeof. */ +/* #undef SIZEOF_LONG */ + +/* The size of a `long long', as computed by sizeof. */ +/* #undef SIZEOF_LONG_LONG */ + +/* The size of a `short', as computed by sizeof. */ +/* #undef SIZEOF_SHORT */ + +/* The size of a `size_t', as computed by sizeof. */ +/* #undef SIZEOF_SIZE_T */ + +/* The size of a `unsigned char', as computed by sizeof. */ +/* #undef SIZEOF_UNSIGNED_CHAR */ + +/* The size of a `unsigned int', as computed by sizeof. */ +/* #undef SIZEOF_UNSIGNED_INT */ + +/* The size of a `unsigned long', as computed by sizeof. */ +/* #undef SIZEOF_UNSIGNED_LONG */ + +/* The size of a `unsigned long long', as computed by sizeof. */ +/* #undef SIZEOF_UNSIGNED_LONG_LONG */ + +/* The size of a `unsigned short', as computed by sizeof. */ +/* #undef SIZEOF_UNSIGNED_SHORT */ + +/* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */ +/* #undef STAT_MACROS_BROKEN */ + +/* Define to 1 if you have the ANSI C header files. */ +#define STDC_HEADERS 1 + +/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */ +/* #undef TIME_WITH_SYS_TIME */ + +/* Define to 1 to mask harmless uninitialized memory read/writes. */ +/* #undef UMRW */ + +/* Number of bits in a file offset, on hosts where this is settable. */ +/* #undef _FILE_OFFSET_BITS */ + +/* Define for large files, on AIX-style hosts. */ +/* #undef _LARGE_FILES */ + +/* Define to empty if `const' does not conform to ANSI C. */ +/* #undef const */ + +/* Define to `__inline__' or `__inline' if that's what the C compiler + calls it, or to nothing if 'inline' is not supported under any name. */ +#ifndef __cplusplus +#define inline __inline +#endif + +/* type to use in place of socklen_t if not defined */ +/* #undef socklen_t */ diff --git a/build_windows/db_csharp.vcproj b/build_windows/db_csharp.vcproj new file mode 100644 index 0000000..a6af28b --- /dev/null +++ b/build_windows/db_csharp.vcproj @@ -0,0 +1,80 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="db_csharp" ProjectGUID="{13DE550F-16FD-4AC2-9EC6-B1A18F41476F}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_csharp" ConfigurationType="2" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;DB_CREATE_DLL;_UNICODE;UNICODE;_USRDLL" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_csharp.pch" AssemblerListingLocation="$(OutDir)/db_csharp/" ObjectFile="$(OutDir)/db_csharp/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/libdb_csharp48d.dll" ProgramDatabaseFile="$(OutDir)/libdb_csharp48d.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" ImportLibrary="$(OutDir)/libdb_csharp48d.lib" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_csharp" ConfigurationType="2" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;DB_CREATE_DLL;_UNICODE;UNICODE;_USRDLL" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_csharp.pch" AssemblerListingLocation="$(OutDir)/db_csharp/" ObjectFile="$(OutDir)/db_csharp/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/libdb_csharp48.dll" ProgramDatabaseFile="$(OutDir)/libdb_csharp48.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" ImportLibrary="$(OutDir)/libdb_csharp48.lib" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_csharp" ConfigurationType="2" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;DB_CREATE_DLL;_UNICODE;UNICODE;_USRDLL" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_csharp.pch" AssemblerListingLocation="$(OutDir)/db_csharp/" ObjectFile="$(OutDir)/db_csharp/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/libdb_csharp48d.dll" ProgramDatabaseFile="$(OutDir)/libdb_csharp48d.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" ImportLibrary="$(OutDir)/libdb_csharp48d.lib" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_csharp" ConfigurationType="2" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;DB_CREATE_DLL;_UNICODE;UNICODE;_USRDLL" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_csharp.pch" AssemblerListingLocation="$(OutDir)/db_csharp/" ObjectFile="$(OutDir)/db_csharp/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/libdb_csharp48.dll" ProgramDatabaseFile="$(OutDir)/libdb_csharp48.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" ImportLibrary="$(OutDir)/libdb_csharp48.lib" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_csharp" ConfigurationType="2" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;DB_CREATE_DLL;_UNICODE;UNICODE;_USRDLL" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_csharp.pch" AssemblerListingLocation="$(OutDir)/db_csharp/" ObjectFile="$(OutDir)/db_csharp/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/libdb_csharp48d.dll" ProgramDatabaseFile="$(OutDir)/libdb_csharp48d.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" ImportLibrary="$(OutDir)/libdb_csharp48d.lib" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_csharp" ConfigurationType="2" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;DB_CREATE_DLL;_UNICODE;UNICODE;_USRDLL" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_csharp.pch" AssemblerListingLocation="$(OutDir)/db_csharp/" ObjectFile="$(OutDir)/db_csharp/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/libdb_csharp48.dll" ProgramDatabaseFile="$(OutDir)/libdb_csharp48.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" ImportLibrary="$(OutDir)/libdb_csharp48.lib" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\libdb_csharp\db_csharp_wrap.c"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/db_cxx.h b/build_windows/db_cxx.h new file mode 100644 index 0000000..8e8689e --- /dev/null +++ b/build_windows/db_cxx.h @@ -0,0 +1,1366 @@ +/* DO NOT EDIT: automatically built by dist/s_windows. */ +/*- + * See the file LICENSE for redistribution information. + * + * Copyright (c) 1997-2009 Oracle. All rights reserved. + * + * $Id$ + */ + +#ifndef _DB_CXX_H_ +#define _DB_CXX_H_ +// +// C++ assumptions: +// +// To ensure portability to many platforms, both new and old, we make +// few assumptions about the C++ compiler and library. For example, +// we do not expect STL, templates or namespaces to be available. The +// "newest" C++ feature used is exceptions, which are used liberally +// to transmit error information. Even the use of exceptions can be +// disabled at runtime, to do so, use the DB_CXX_NO_EXCEPTIONS flags +// with the DbEnv or Db constructor. +// +// C++ naming conventions: +// +// - All top level class names start with Db. +// - All class members start with lower case letter. +// - All private data members are suffixed with underscore. +// - Use underscores to divide names into multiple words. +// - Simple data accessors are named with get_ or set_ prefix. +// - All method names are taken from names of functions in the C +// layer of db (usually by dropping a prefix like "db_"). +// These methods have the same argument types and order, +// other than dropping the explicit arg that acts as "this". +// +// As a rule, each DbFoo object has exactly one underlying DB_FOO struct +// (defined in db.h) associated with it. In some cases, we inherit directly +// from the DB_FOO structure to make this relationship explicit. Often, +// the underlying C layer allocates and deallocates these structures, so +// there is no easy way to add any data to the DbFoo class. When you see +// a comment about whether data is permitted to be added, this is what +// is going on. Of course, if we need to add data to such C++ classes +// in the future, we will arrange to have an indirect pointer to the +// DB_FOO struct (as some of the classes already have). +// + +//////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////// +// +// Forward declarations +// + +#include <stdarg.h> + +#define HAVE_CXX_STDHEADERS 1 +#ifdef HAVE_CXX_STDHEADERS +#include <iostream> +#include <exception> +#define __DB_STD(x) std::x +#else +#include <iostream.h> +#include <exception.h> +#define __DB_STD(x) x +#endif + +#include "db.h" + +class Db; // forward +class Dbc; // forward +class DbEnv; // forward +class DbInfo; // forward +class DbLock; // forward +class DbLogc; // forward +class DbLsn; // forward +class DbMpoolFile; // forward +class DbPreplist; // forward +class DbSequence; // forward +class Dbt; // forward +class DbTxn; // forward + +class DbMultipleIterator; // forward +class DbMultipleKeyDataIterator; // forward +class DbMultipleRecnoDataIterator; // forward +class DbMultipleDataIterator; // forward + +class DbException; // forward +class DbDeadlockException; // forward +class DbLockNotGrantedException; // forward +class DbMemoryException; // forward +class DbRepHandleDeadException; // forward +class DbRunRecoveryException; // forward + +//////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////// +// +// Turn off inappropriate compiler warnings +// + +#ifdef _MSC_VER + +// These are level 4 warnings that are explicitly disabled. +// With Visual C++, by default you do not see above level 3 unless +// you use /W4. But we like to compile with the highest level +// warnings to catch other errors. +// +// 4201: nameless struct/union +// triggered by standard include file <winnt.h> +// +// 4514: unreferenced inline function has been removed +// certain include files in MSVC define methods that are not called +// +#pragma warning(push) +#pragma warning(disable: 4201 4514) + +#endif + +//////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////// +// +// Mechanisms for declaring classes +// + +// +// Every class defined in this file has an _exported next to the class name. +// This is needed for WinTel machines so that the class methods can +// be exported or imported in a DLL as appropriate. Users of the DLL +// use the define DB_USE_DLL. When the DLL is built, DB_CREATE_DLL +// must be defined. +// +#if defined(_MSC_VER) + +# if defined(DB_CREATE_DLL) +# define _exported __declspec(dllexport) // creator of dll +# elif defined(DB_USE_DLL) +# define _exported __declspec(dllimport) // user of dll +# else +# define _exported // static lib creator or user +# endif + +#else /* _MSC_VER */ + +# define _exported + +#endif /* _MSC_VER */ + +// Some interfaces can be customized by allowing users to define +// callback functions. For performance and logistical reasons, some +// callback functions must be declared in extern "C" blocks. For others, +// we allow you to declare the callbacks in C++ or C (or an extern "C" +// block) as you wish. See the set methods for the callbacks for +// the choices. +// +extern "C" { + typedef void * (*db_malloc_fcn_type) + (size_t); + typedef void * (*db_realloc_fcn_type) + (void *, size_t); + typedef void (*db_free_fcn_type) + (void *); + typedef int (*bt_compare_fcn_type) /*C++ version available*/ + (DB *, const DBT *, const DBT *); + typedef size_t (*bt_prefix_fcn_type) /*C++ version available*/ + (DB *, const DBT *, const DBT *); + typedef int (*dup_compare_fcn_type) /*C++ version available*/ + (DB *, const DBT *, const DBT *); + typedef int (*h_compare_fcn_type) /*C++ version available*/ + (DB *, const DBT *, const DBT *); + typedef u_int32_t (*h_hash_fcn_type) /*C++ version available*/ + (DB *, const void *, u_int32_t); + typedef int (*pgin_fcn_type) + (DB_ENV *dbenv, db_pgno_t pgno, void *pgaddr, DBT *pgcookie); + typedef int (*pgout_fcn_type) + (DB_ENV *dbenv, db_pgno_t pgno, void *pgaddr, DBT *pgcookie); +} + +// +// Represents a database table = a set of keys with associated values. +// +class _exported Db +{ + friend class DbEnv; + +public: + Db(DbEnv*, u_int32_t); // Create a Db object. + virtual ~Db(); // Calls close() if the user hasn't. + + // These methods exactly match those in the C interface. + // + virtual int associate(DbTxn *txn, Db *secondary, int (*callback) + (Db *, const Dbt *, const Dbt *, Dbt *), u_int32_t flags); + virtual int associate_foreign(Db *foreign, int (*callback) + (Db *, const Dbt *, Dbt *, const Dbt *, int *), u_int32_t flags); + virtual int close(u_int32_t flags); + virtual int compact(DbTxn *txnid, Dbt *start, + Dbt *stop, DB_COMPACT *c_data, u_int32_t flags, Dbt *end); + virtual int cursor(DbTxn *txnid, Dbc **cursorp, u_int32_t flags); + virtual int del(DbTxn *txnid, Dbt *key, u_int32_t flags); + virtual void err(int, const char *, ...); + virtual void errx(const char *, ...); + virtual int exists(DbTxn *txnid, Dbt *key, u_int32_t flags); + virtual int fd(int *fdp); + virtual int get(DbTxn *txnid, Dbt *key, Dbt *data, u_int32_t flags); + virtual int get_alloc( + db_malloc_fcn_type *, db_realloc_fcn_type *, db_free_fcn_type *); + virtual int get_append_recno(int (**)(Db *, Dbt *, db_recno_t)); + virtual int get_bt_compare(int (**)(Db *, const Dbt *, const Dbt *)); + virtual int get_bt_compress( + int (**)( + Db *, const Dbt *, const Dbt *, const Dbt *, const Dbt *, Dbt *), + int (**)(Db *, const Dbt *, const Dbt *, Dbt *, Dbt *, Dbt *)); + virtual int get_bt_minkey(u_int32_t *); + virtual int get_bt_prefix(size_t (**)(Db *, const Dbt *, const Dbt *)); + virtual int get_byteswapped(int *); + virtual int get_cachesize(u_int32_t *, u_int32_t *, int *); + virtual int get_create_dir(const char **); + virtual int get_dbname(const char **, const char **); + virtual int get_dup_compare(int (**)(Db *, const Dbt *, const Dbt *)); + virtual int get_encrypt_flags(u_int32_t *); + virtual void get_errcall( + void (**)(const DbEnv *, const char *, const char *)); + virtual void get_errfile(FILE **); + virtual void get_errpfx(const char **); + virtual int get_feedback(void (**)(Db *, int, int)); + virtual int get_flags(u_int32_t *); + virtual int get_h_compare(int (**)(Db *, const Dbt *, const Dbt *)); + virtual int get_h_ffactor(u_int32_t *); + virtual int get_h_hash(u_int32_t (**)(Db *, const void *, u_int32_t)); + virtual int get_h_nelem(u_int32_t *); + virtual int get_lorder(int *); + virtual void get_msgcall(void (**)(const DbEnv *, const char *)); + virtual void get_msgfile(FILE **); + virtual int get_multiple(); + virtual int get_open_flags(u_int32_t *); + virtual int get_pagesize(u_int32_t *); + virtual int get_partition_callback( + u_int32_t *, u_int32_t (**)(Db *, Dbt *key)); + virtual int get_partition_dirs(const char ***); + virtual int get_partition_keys(u_int32_t *, Dbt **); + virtual int get_priority(DB_CACHE_PRIORITY *); + virtual int get_q_extentsize(u_int32_t *); + virtual int get_re_delim(int *); + virtual int get_re_len(u_int32_t *); + virtual int get_re_pad(int *); + virtual int get_re_source(const char **); + virtual int get_transactional(); + virtual int get_type(DBTYPE *); + virtual int join(Dbc **curslist, Dbc **dbcp, u_int32_t flags); + virtual int key_range(DbTxn *, Dbt *, DB_KEY_RANGE *, u_int32_t); + virtual int open(DbTxn *txnid, + const char *, const char *subname, DBTYPE, u_int32_t, int); + virtual int pget(DbTxn *txnid, + Dbt *key, Dbt *pkey, Dbt *data, u_int32_t flags); + virtual int put(DbTxn *, Dbt *, Dbt *, u_int32_t); + virtual int remove(const char *, const char *, u_int32_t); + virtual int rename(const char *, const char *, const char *, u_int32_t); + virtual int set_alloc( + db_malloc_fcn_type, db_realloc_fcn_type, db_free_fcn_type); + virtual void set_app_private(void *); + virtual int set_append_recno(int (*)(Db *, Dbt *, db_recno_t)); + virtual int set_bt_compare(bt_compare_fcn_type); /*deprecated*/ + virtual int set_bt_compare(int (*)(Db *, const Dbt *, const Dbt *)); + virtual int set_bt_compress( + int (*) + (Db *, const Dbt *, const Dbt *, const Dbt *, const Dbt *, Dbt *), + int (*)(Db *, const Dbt *, const Dbt *, Dbt *, Dbt *, Dbt *)); + virtual int set_bt_minkey(u_int32_t); + virtual int set_bt_prefix(bt_prefix_fcn_type); /*deprecated*/ + virtual int set_bt_prefix(size_t (*)(Db *, const Dbt *, const Dbt *)); + virtual int set_cachesize(u_int32_t, u_int32_t, int); + virtual int set_create_dir(const char *); + virtual int set_dup_compare(dup_compare_fcn_type); /*deprecated*/ + virtual int set_dup_compare(int (*)(Db *, const Dbt *, const Dbt *)); + virtual int set_encrypt(const char *, u_int32_t); + virtual void set_errcall( + void (*)(const DbEnv *, const char *, const char *)); + virtual void set_errfile(FILE *); + virtual void set_errpfx(const char *); + virtual int set_feedback(void (*)(Db *, int, int)); + virtual int set_flags(u_int32_t); + virtual int set_h_compare(h_compare_fcn_type); /*deprecated*/ + virtual int set_h_compare(int (*)(Db *, const Dbt *, const Dbt *)); + virtual int set_h_ffactor(u_int32_t); + virtual int set_h_hash(h_hash_fcn_type); /*deprecated*/ + virtual int set_h_hash(u_int32_t (*)(Db *, const void *, u_int32_t)); + virtual int set_h_nelem(u_int32_t); + virtual int set_lorder(int); + virtual void set_msgcall(void (*)(const DbEnv *, const char *)); + virtual void set_msgfile(FILE *); + virtual int set_pagesize(u_int32_t); + virtual int set_paniccall(void (*)(DbEnv *, int)); + virtual int set_partition( + u_int32_t, Dbt *, u_int32_t (*)(Db *, Dbt *)); + virtual int set_partition_dirs(const char **); + virtual int set_priority(DB_CACHE_PRIORITY); + virtual int set_q_extentsize(u_int32_t); + virtual int set_re_delim(int); + virtual int set_re_len(u_int32_t); + virtual int set_re_pad(int); + virtual int set_re_source(const char *); + virtual int sort_multiple(Dbt *, Dbt *, u_int32_t); + virtual int stat(DbTxn *, void *sp, u_int32_t flags); + virtual int stat_print(u_int32_t flags); + virtual int sync(u_int32_t flags); + virtual int truncate(DbTxn *, u_int32_t *, u_int32_t); + virtual int upgrade(const char *name, u_int32_t flags); + virtual int verify( + const char *, const char *, __DB_STD(ostream) *, u_int32_t); + + // These additional methods are not in the C interface, and + // are only available for C++. + // + virtual void *get_app_private() const; + virtual __DB_STD(ostream) *get_error_stream(); + virtual void set_error_stream(__DB_STD(ostream) *); + virtual __DB_STD(ostream) *get_message_stream(); + virtual void set_message_stream(__DB_STD(ostream) *); + + virtual DbEnv *get_env(); + virtual DbMpoolFile *get_mpf(); + + virtual ENV *get_ENV() + { + return imp_->env; + } + + virtual DB *get_DB() + { + return imp_; + } + + virtual const DB *get_const_DB() const + { + return imp_; + } + + static Db* get_Db(DB *db) + { + return (Db *)db->api_internal; + } + + static const Db* get_const_Db(const DB *db) + { + return (const Db *)db->api_internal; + } + + u_int32_t get_create_flags() const + { + return construct_flags_; + } + +private: + // no copying + Db(const Db &); + Db &operator = (const Db &); + + void cleanup(); + int initialize(); + int error_policy(); + + // instance data + DB *imp_; + DbEnv *dbenv_; + DbMpoolFile *mpf_; + int construct_error_; + u_int32_t flags_; + u_int32_t construct_flags_; + +public: + // These are public only because they need to be called + // via C callback functions. They should never be used by + // external users of this class. + // + int (*append_recno_callback_)(Db *, Dbt *, db_recno_t); + int (*associate_callback_)(Db *, const Dbt *, const Dbt *, Dbt *); + int (*associate_foreign_callback_) + (Db *, const Dbt *, Dbt *, const Dbt *, int *); + int (*bt_compare_callback_)(Db *, const Dbt *, const Dbt *); + int (*bt_compress_callback_)( + Db *, const Dbt *, const Dbt *, const Dbt *, const Dbt *, Dbt *); + int (*bt_decompress_callback_)( + Db *, const Dbt *, const Dbt *, Dbt *, Dbt *, Dbt *); + size_t (*bt_prefix_callback_)(Db *, const Dbt *, const Dbt *); + u_int32_t (*db_partition_callback_)(Db *, Dbt *); + int (*dup_compare_callback_)(Db *, const Dbt *, const Dbt *); + void (*feedback_callback_)(Db *, int, int); + int (*h_compare_callback_)(Db *, const Dbt *, const Dbt *); + u_int32_t (*h_hash_callback_)(Db *, const void *, u_int32_t); +}; + +// +// Cursor +// +class _exported Dbc : protected DBC +{ + friend class Db; + +public: + int close(); + int cmp(Dbc *other_csr, int *result, u_int32_t flags); + int count(db_recno_t *countp, u_int32_t flags); + int del(u_int32_t flags); + int dup(Dbc** cursorp, u_int32_t flags); + int get(Dbt* key, Dbt *data, u_int32_t flags); + int get_priority(DB_CACHE_PRIORITY *priorityp); + int pget(Dbt* key, Dbt* pkey, Dbt *data, u_int32_t flags); + int put(Dbt* key, Dbt *data, u_int32_t flags); + int set_priority(DB_CACHE_PRIORITY priority); + +private: + // No data is permitted in this class (see comment at top) + + // Note: use Db::cursor() to get pointers to a Dbc, + // and call Dbc::close() rather than delete to release them. + // + Dbc(); + ~Dbc(); + + // no copying + Dbc(const Dbc &); + Dbc &operator = (const Dbc &); +}; + +// +// Berkeley DB environment class. Provides functions for opening databases. +// User of this library can use this class as a starting point for +// developing a DB application - derive their application class from +// this one, add application control logic. +// +// Note that if you use the default constructor, you must explicitly +// call appinit() before any other db activity (e.g. opening files) +// +class _exported DbEnv +{ + friend class Db; + friend class DbLock; + friend class DbMpoolFile; + +public: + // After using this constructor, you can set any needed + // parameters for the environment using the set_* methods. + // Then call open() to finish initializing the environment + // and attaching it to underlying files. + // + DbEnv(u_int32_t flags); + + virtual ~DbEnv(); + + // These methods match those in the C interface. + // + virtual int add_data_dir(const char *); + virtual int cdsgroup_begin(DbTxn **tid); + virtual int close(u_int32_t); + virtual int dbremove(DbTxn *txn, const char *name, const char *subdb, + u_int32_t flags); + virtual int dbrename(DbTxn *txn, const char *name, const char *subdb, + const char *newname, u_int32_t flags); + virtual void err(int, const char *, ...); + virtual void errx(const char *, ...); + virtual int failchk(u_int32_t); + virtual int fileid_reset(const char *, u_int32_t); + virtual int get_alloc(db_malloc_fcn_type *, db_realloc_fcn_type *, + db_free_fcn_type *); + virtual void *get_app_private() const; + virtual int get_home(const char **); + virtual int get_open_flags(u_int32_t *); + virtual int open(const char *, u_int32_t, int); + virtual int remove(const char *, u_int32_t); + virtual int stat_print(u_int32_t flags); + + virtual int set_alloc(db_malloc_fcn_type, db_realloc_fcn_type, + db_free_fcn_type); + virtual void set_app_private(void *); + virtual int get_cachesize(u_int32_t *, u_int32_t *, int *); + virtual int set_cachesize(u_int32_t, u_int32_t, int); + virtual int get_cache_max(u_int32_t *, u_int32_t *); + virtual int set_cache_max(u_int32_t, u_int32_t); + virtual int get_create_dir(const char **); + virtual int set_create_dir(const char *); + virtual int get_data_dirs(const char ***); + virtual int set_data_dir(const char *); + virtual int get_encrypt_flags(u_int32_t *); + virtual int get_intermediate_dir_mode(const char **); + virtual int set_intermediate_dir_mode(const char *); + virtual int get_isalive( + int (**)(DbEnv *, pid_t, db_threadid_t, u_int32_t)); + virtual int set_isalive( + int (*)(DbEnv *, pid_t, db_threadid_t, u_int32_t)); + virtual int set_encrypt(const char *, u_int32_t); + virtual void get_errcall( + void (**)(const DbEnv *, const char *, const char *)); + virtual void set_errcall( + void (*)(const DbEnv *, const char *, const char *)); + virtual void get_errfile(FILE **); + virtual void set_errfile(FILE *); + virtual void get_errpfx(const char **); + virtual void set_errpfx(const char *); + virtual int set_event_notify(void (*)(DbEnv *, u_int32_t, void *)); + virtual int get_flags(u_int32_t *); + virtual int set_flags(u_int32_t, int); + virtual bool is_bigendian(); + virtual int lsn_reset(const char *, u_int32_t); + virtual int get_feedback(void (**)(DbEnv *, int, int)); + virtual int set_feedback(void (*)(DbEnv *, int, int)); + virtual int get_lg_bsize(u_int32_t *); + virtual int set_lg_bsize(u_int32_t); + virtual int get_lg_dir(const char **); + virtual int set_lg_dir(const char *); + virtual int get_lg_filemode(int *); + virtual int set_lg_filemode(int); + virtual int get_lg_max(u_int32_t *); + virtual int set_lg_max(u_int32_t); + virtual int get_lg_regionmax(u_int32_t *); + virtual int set_lg_regionmax(u_int32_t); + virtual int get_lk_conflicts(const u_int8_t **, int *); + virtual int set_lk_conflicts(u_int8_t *, int); + virtual int get_lk_detect(u_int32_t *); + virtual int set_lk_detect(u_int32_t); + virtual int get_lk_max_lockers(u_int32_t *); + virtual int set_lk_max_lockers(u_int32_t); + virtual int get_lk_max_locks(u_int32_t *); + virtual int set_lk_max_locks(u_int32_t); + virtual int get_lk_max_objects(u_int32_t *); + virtual int set_lk_max_objects(u_int32_t); + virtual int get_lk_partitions(u_int32_t *); + virtual int set_lk_partitions(u_int32_t); + virtual int get_mp_mmapsize(size_t *); + virtual int set_mp_mmapsize(size_t); + virtual int get_mp_max_openfd(int *); + virtual int set_mp_max_openfd(int); + virtual int get_mp_max_write(int *, db_timeout_t *); + virtual int set_mp_max_write(int, db_timeout_t); + virtual int get_mp_pagesize(u_int32_t *); + virtual int set_mp_pagesize(u_int32_t); + virtual int get_mp_tablesize(u_int32_t *); + virtual int set_mp_tablesize(u_int32_t); + virtual void get_msgcall(void (**)(const DbEnv *, const char *)); + virtual void set_msgcall(void (*)(const DbEnv *, const char *)); + virtual void get_msgfile(FILE **); + virtual void set_msgfile(FILE *); + virtual int set_paniccall(void (*)(DbEnv *, int)); + virtual int set_rpc_server(void *, char *, long, long, u_int32_t); + virtual int get_shm_key(long *); + virtual int set_shm_key(long); + virtual int get_timeout(db_timeout_t *, u_int32_t); + virtual int set_timeout(db_timeout_t, u_int32_t); + virtual int get_tmp_dir(const char **); + virtual int set_tmp_dir(const char *); + virtual int get_tx_max(u_int32_t *); + virtual int set_tx_max(u_int32_t); + virtual int get_app_dispatch( + int (**)(DbEnv *, Dbt *, DbLsn *, db_recops)); + virtual int set_app_dispatch(int (*)(DbEnv *, + Dbt *, DbLsn *, db_recops)); + virtual int get_tx_timestamp(time_t *); + virtual int set_tx_timestamp(time_t *); + virtual int get_verbose(u_int32_t which, int *); + virtual int set_verbose(u_int32_t which, int); + + // Version information. A static method so it can be obtained anytime. + // + static char *version(int *major, int *minor, int *patch); + + // Convert DB errors to strings + static char *strerror(int); + + // If an error is detected and the error call function + // or stream is set, a message is dispatched or printed. + // If a prefix is set, each message is prefixed. + // + // You can use set_errcall() or set_errfile() above to control + // error functionality. Alternatively, you can call + // set_error_stream() to force all errors to a C++ stream. + // It is unwise to mix these approaches. + // + virtual __DB_STD(ostream) *get_error_stream(); + virtual void set_error_stream(__DB_STD(ostream) *); + virtual __DB_STD(ostream) *get_message_stream(); + virtual void set_message_stream(__DB_STD(ostream) *); + + // used internally + static void runtime_error(DbEnv *dbenv, const char *caller, int err, + int error_policy); + static void runtime_error_dbt(DbEnv *dbenv, const char *caller, Dbt *dbt, + int error_policy); + static void runtime_error_lock_get(DbEnv *dbenv, const char *caller, + int err, db_lockop_t op, db_lockmode_t mode, + Dbt *obj, DbLock lock, int index, + int error_policy); + + // Lock functions + // + virtual int lock_detect(u_int32_t flags, u_int32_t atype, int *aborted); + virtual int lock_get(u_int32_t locker, u_int32_t flags, Dbt *obj, + db_lockmode_t lock_mode, DbLock *lock); + virtual int lock_id(u_int32_t *idp); + virtual int lock_id_free(u_int32_t id); + virtual int lock_put(DbLock *lock); + virtual int lock_stat(DB_LOCK_STAT **statp, u_int32_t flags); + virtual int lock_stat_print(u_int32_t flags); + virtual int lock_vec(u_int32_t locker, u_int32_t flags, + DB_LOCKREQ list[], int nlist, DB_LOCKREQ **elistp); + + // Log functions + // + virtual int log_archive(char **list[], u_int32_t flags); + static int log_compare(const DbLsn *lsn0, const DbLsn *lsn1); + virtual int log_cursor(DbLogc **cursorp, u_int32_t flags); + virtual int log_file(DbLsn *lsn, char *namep, size_t len); + virtual int log_flush(const DbLsn *lsn); + virtual int log_get_config(u_int32_t, int *); + virtual int log_put(DbLsn *lsn, const Dbt *data, u_int32_t flags); + virtual int log_printf(DbTxn *, const char *, ...); + virtual int log_set_config(u_int32_t, int); + virtual int log_stat(DB_LOG_STAT **spp, u_int32_t flags); + virtual int log_stat_print(u_int32_t flags); + + // Mpool functions + // + virtual int memp_fcreate(DbMpoolFile **dbmfp, u_int32_t flags); + virtual int memp_register(int ftype, + pgin_fcn_type pgin_fcn, + pgout_fcn_type pgout_fcn); + virtual int memp_stat(DB_MPOOL_STAT + **gsp, DB_MPOOL_FSTAT ***fsp, u_int32_t flags); + virtual int memp_stat_print(u_int32_t flags); + virtual int memp_sync(DbLsn *lsn); + virtual int memp_trickle(int pct, int *nwrotep); + + // Mpool functions + // + virtual int mutex_alloc(u_int32_t, db_mutex_t *); + virtual int mutex_free(db_mutex_t); + virtual int mutex_get_align(u_int32_t *); + virtual int mutex_get_increment(u_int32_t *); + virtual int mutex_get_max(u_int32_t *); + virtual int mutex_get_tas_spins(u_int32_t *); + virtual int mutex_lock(db_mutex_t); + virtual int mutex_set_align(u_int32_t); + virtual int mutex_set_increment(u_int32_t); + virtual int mutex_set_max(u_int32_t); + virtual int mutex_set_tas_spins(u_int32_t); + virtual int mutex_stat(DB_MUTEX_STAT **, u_int32_t); + virtual int mutex_stat_print(u_int32_t); + virtual int mutex_unlock(db_mutex_t); + + // Transaction functions + // + virtual int txn_begin(DbTxn *pid, DbTxn **tid, u_int32_t flags); + virtual int txn_checkpoint(u_int32_t kbyte, u_int32_t min, + u_int32_t flags); + virtual int txn_recover(DbPreplist *preplist, u_int32_t count, + u_int32_t *retp, u_int32_t flags); + virtual int txn_stat(DB_TXN_STAT **statp, u_int32_t flags); + virtual int txn_stat_print(u_int32_t flags); + + // Replication functions + // + virtual int rep_elect(u_int32_t, u_int32_t, u_int32_t); + virtual int rep_flush(); + virtual int rep_process_message(Dbt *, Dbt *, int, DbLsn *); + virtual int rep_start(Dbt *, u_int32_t); + virtual int rep_stat(DB_REP_STAT **statp, u_int32_t flags); + virtual int rep_stat_print(u_int32_t flags); + virtual int rep_get_clockskew(u_int32_t *, u_int32_t *); + virtual int rep_set_clockskew(u_int32_t, u_int32_t); + virtual int rep_get_limit(u_int32_t *, u_int32_t *); + virtual int rep_set_limit(u_int32_t, u_int32_t); + virtual int rep_set_transport(int, int (*)(DbEnv *, + const Dbt *, const Dbt *, const DbLsn *, int, u_int32_t)); + virtual int rep_set_request(u_int32_t, u_int32_t); + virtual int rep_get_request(u_int32_t *, u_int32_t *); + virtual int get_thread_count(u_int32_t *); + virtual int set_thread_count(u_int32_t); + virtual int get_thread_id_fn( + void (**)(DbEnv *, pid_t *, db_threadid_t *)); + virtual int set_thread_id(void (*)(DbEnv *, pid_t *, db_threadid_t *)); + virtual int get_thread_id_string_fn( + char *(**)(DbEnv *, pid_t, db_threadid_t, char *)); + virtual int set_thread_id_string(char *(*)(DbEnv *, + pid_t, db_threadid_t, char *)); + virtual int rep_set_config(u_int32_t, int); + virtual int rep_get_config(u_int32_t, int *); + virtual int rep_sync(u_int32_t flags); + + // Advanced replication functions + // + virtual int rep_get_nsites(u_int32_t *n); + virtual int rep_set_nsites(u_int32_t n); + virtual int rep_get_priority(u_int32_t *priorityp); + virtual int rep_set_priority(u_int32_t priority); + virtual int rep_get_timeout(int which, db_timeout_t *timeout); + virtual int rep_set_timeout(int which, db_timeout_t timeout); + virtual int repmgr_add_remote_site(const char * host, u_int16_t port, + int *eidp, u_int32_t flags); + virtual int repmgr_get_ack_policy(int *policy); + virtual int repmgr_set_ack_policy(int policy); + virtual int repmgr_set_local_site(const char * host, u_int16_t port, + u_int32_t flags); + virtual int repmgr_site_list(u_int *countp, DB_REPMGR_SITE **listp); + virtual int repmgr_start(int nthreads, u_int32_t flags); + virtual int repmgr_stat(DB_REPMGR_STAT **statp, u_int32_t flags); + virtual int repmgr_stat_print(u_int32_t flags); + + // Conversion functions + // + virtual ENV *get_ENV() + { + return imp_->env; + } + + virtual DB_ENV *get_DB_ENV() + { + return imp_; + } + + virtual const DB_ENV *get_const_DB_ENV() const + { + return imp_; + } + + static DbEnv* get_DbEnv(DB_ENV *dbenv) + { + return dbenv ? (DbEnv *)dbenv->api1_internal : 0; + } + + static const DbEnv* get_const_DbEnv(const DB_ENV *dbenv) + { + return dbenv ? (const DbEnv *)dbenv->api1_internal : 0; + } + + u_int32_t get_create_flags() const + { + return construct_flags_; + } + + // For internal use only. + static DbEnv* wrap_DB_ENV(DB_ENV *dbenv); + + // These are public only because they need to be called + // via C functions. They should never be called by users + // of this class. + // + static int _app_dispatch_intercept(DB_ENV *dbenv, DBT *dbt, DB_LSN *lsn, + db_recops op); + static void _paniccall_intercept(DB_ENV *dbenv, int errval); + static void _feedback_intercept(DB_ENV *dbenv, int opcode, int pct); + static void _event_func_intercept(DB_ENV *dbenv, u_int32_t, void *); + static int _isalive_intercept(DB_ENV *dbenv, pid_t pid, + db_threadid_t thrid, u_int32_t flags); + static int _rep_send_intercept(DB_ENV *dbenv, const DBT *cntrl, + const DBT *data, const DB_LSN *lsn, int id, u_int32_t flags); + static void _stream_error_function(const DB_ENV *dbenv, + const char *prefix, const char *message); + static void _stream_message_function(const DB_ENV *dbenv, + const char *message); + static void _thread_id_intercept(DB_ENV *dbenv, pid_t *pidp, + db_threadid_t *thridp); + static char *_thread_id_string_intercept(DB_ENV *dbenv, pid_t pid, + db_threadid_t thrid, char *buf); + +private: + void cleanup(); + int initialize(DB_ENV *dbenv); + int error_policy(); + + // For internal use only. + DbEnv(DB_ENV *, u_int32_t flags); + + // no copying + DbEnv(const DbEnv &); + void operator = (const DbEnv &); + + // instance data + DB_ENV *imp_; + int construct_error_; + u_int32_t construct_flags_; + __DB_STD(ostream) *error_stream_; + __DB_STD(ostream) *message_stream_; + + int (*app_dispatch_callback_)(DbEnv *, Dbt *, DbLsn *, db_recops); + int (*isalive_callback_)(DbEnv *, pid_t, db_threadid_t, u_int32_t); + void (*error_callback_)(const DbEnv *, const char *, const char *); + void (*feedback_callback_)(DbEnv *, int, int); + void (*message_callback_)(const DbEnv *, const char *); + void (*paniccall_callback_)(DbEnv *, int); + void (*event_func_callback_)(DbEnv *, u_int32_t, void *); + int (*rep_send_callback_)(DbEnv *, const Dbt *, const Dbt *, + const DbLsn *, int, u_int32_t); + void (*thread_id_callback_)(DbEnv *, pid_t *, db_threadid_t *); + char *(*thread_id_string_callback_)(DbEnv *, pid_t, db_threadid_t, + char *); +}; + +// +// Lock +// +class _exported DbLock +{ + friend class DbEnv; + +public: + DbLock(); + DbLock(const DbLock &); + DbLock &operator = (const DbLock &); + +protected: + // We can add data to this class if needed + // since its contained class is not allocated by db. + // (see comment at top) + + DbLock(DB_LOCK); + DB_LOCK lock_; +}; + +// +// Log cursor +// +class _exported DbLogc : protected DB_LOGC +{ + friend class DbEnv; + +public: + int close(u_int32_t _flags); + int get(DbLsn *lsn, Dbt *data, u_int32_t _flags); + int version(u_int32_t *versionp, u_int32_t _flags); + +private: + // No data is permitted in this class (see comment at top) + + // Note: use Db::cursor() to get pointers to a Dbc, + // and call Dbc::close() rather than delete to release them. + // + DbLogc(); + ~DbLogc(); + + // no copying + DbLogc(const Dbc &); + DbLogc &operator = (const Dbc &); +}; + +// +// Log sequence number +// +class _exported DbLsn : public DB_LSN +{ + friend class DbEnv; // friendship needed to cast to base class + friend class DbLogc; // friendship needed to cast to base class +}; + +// +// Memory pool file +// +class _exported DbMpoolFile +{ + friend class DbEnv; + friend class Db; + +public: + int close(u_int32_t flags); + int get(db_pgno_t *pgnoaddr, DbTxn *txn, u_int32_t flags, void *pagep); + int get_clear_len(u_int32_t *len); + int get_fileid(u_int8_t *fileid); + int get_flags(u_int32_t *flagsp); + int get_ftype(int *ftype); + int get_last_pgno(db_pgno_t *pgnop); + int get_lsn_offset(int32_t *offsetp); + int get_maxsize(u_int32_t *gbytes, u_int32_t *bytes); + int get_pgcookie(DBT *dbt); + int get_priority(DB_CACHE_PRIORITY *priorityp); + int get_transactional(void); + int open(const char *file, u_int32_t flags, int mode, size_t pagesize); + int put(void *pgaddr, DB_CACHE_PRIORITY priority, u_int32_t flags); + int set_clear_len(u_int32_t len); + int set_fileid(u_int8_t *fileid); + int set_flags(u_int32_t flags, int onoff); + int set_ftype(int ftype); + int set_lsn_offset(int32_t offset); + int set_maxsize(u_int32_t gbytes, u_int32_t bytes); + int set_pgcookie(DBT *dbt); + int set_priority(DB_CACHE_PRIORITY priority); + int sync(); + + virtual DB_MPOOLFILE *get_DB_MPOOLFILE() + { + return imp_; + } + + virtual const DB_MPOOLFILE *get_const_DB_MPOOLFILE() const + { + return imp_; + } + +private: + DB_MPOOLFILE *imp_; + + // We can add data to this class if needed + // since it is implemented via a pointer. + // (see comment at top) + + // Note: use DbEnv::memp_fcreate() to get pointers to a DbMpoolFile, + // and call DbMpoolFile::close() rather than delete to release them. + // + DbMpoolFile(); + + // Shut g++ up. +protected: + virtual ~DbMpoolFile(); + +private: + // no copying + DbMpoolFile(const DbMpoolFile &); + void operator = (const DbMpoolFile &); +}; + +// +// This is filled in and returned by the DbEnv::txn_recover() method. +// +class _exported DbPreplist +{ +public: + DbTxn *txn; + u_int8_t gid[DB_GID_SIZE]; +}; + +// +// A sequence record in a database +// +class _exported DbSequence +{ +public: + DbSequence(Db *db, u_int32_t flags); + virtual ~DbSequence(); + + int open(DbTxn *txnid, Dbt *key, u_int32_t flags); + int initial_value(db_seq_t value); + int close(u_int32_t flags); + int remove(DbTxn *txnid, u_int32_t flags); + int stat(DB_SEQUENCE_STAT **sp, u_int32_t flags); + int stat_print(u_int32_t flags); + + int get(DbTxn *txnid, int32_t delta, db_seq_t *retp, u_int32_t flags); + int get_cachesize(int32_t *sizep); + int set_cachesize(int32_t size); + int get_flags(u_int32_t *flagsp); + int set_flags(u_int32_t flags); + int get_range(db_seq_t *minp, db_seq_t *maxp); + int set_range(db_seq_t min, db_seq_t max); + + Db *get_db(); + Dbt *get_key(); + + virtual DB_SEQUENCE *get_DB_SEQUENCE() + { + return imp_; + } + + virtual const DB_SEQUENCE *get_const_DB_SEQUENCE() const + { + return imp_; + } + + static DbSequence* get_DbSequence(DB_SEQUENCE *seq) + { + return (DbSequence *)seq->api_internal; + } + + static const DbSequence* get_const_DbSequence(const DB_SEQUENCE *seq) + { + return (const DbSequence *)seq->api_internal; + } + + // For internal use only. + static DbSequence* wrap_DB_SEQUENCE(DB_SEQUENCE *seq); + +private: + DbSequence(DB_SEQUENCE *seq); + // no copying + DbSequence(const DbSequence &); + DbSequence &operator = (const DbSequence &); + + DB_SEQUENCE *imp_; + DBT key_; +}; + +// +// Transaction +// +class _exported DbTxn +{ + friend class DbEnv; + +public: + int abort(); + int commit(u_int32_t flags); + int discard(u_int32_t flags); + u_int32_t id(); + int get_name(const char **namep); + int prepare(u_int8_t *gid); + int set_name(const char *name); + int set_timeout(db_timeout_t timeout, u_int32_t flags); + + virtual DB_TXN *get_DB_TXN() + { + return imp_; + } + + virtual const DB_TXN *get_const_DB_TXN() const + { + return imp_; + } + + static DbTxn* get_DbTxn(DB_TXN *txn) + { + return (DbTxn *)txn->api_internal; + } + + static const DbTxn* get_const_DbTxn(const DB_TXN *txn) + { + return (const DbTxn *)txn->api_internal; + } + + // For internal use only. + static DbTxn* wrap_DB_TXN(DB_TXN *txn); + void remove_child_txn(DbTxn *kid); + void add_child_txn(DbTxn *kid); + + void set_parent(DbTxn *ptxn) + { + parent_txn_ = ptxn; + } + +private: + DB_TXN *imp_; + + // We use a TAILQ to store this object's kids of DbTxn objects, and + // each kid has a "parent_txn_" to point to this DbTxn object. + // + // If imp_ has a parent transaction which is not wrapped by DbTxn + // class, parent_txn_ will be NULL since we don't need to maintain + // this parent-kid relationship. This relationship only helps to + // delete unresolved kids when the parent is resolved. + DbTxn *parent_txn_; + + // We can add data to this class if needed + // since it is implemented via a pointer. + // (see comment at top) + + // Note: use DbEnv::txn_begin() to get pointers to a DbTxn, + // and call DbTxn::abort() or DbTxn::commit rather than + // delete to release them. + // + DbTxn(DbTxn *ptxn); + // For internal use only. + DbTxn(DB_TXN *txn, DbTxn *ptxn); + virtual ~DbTxn(); + + // no copying + DbTxn(const DbTxn &); + void operator = (const DbTxn &); + + /* + * !!! + * Explicit representations of structures from queue.h. + * TAILQ_HEAD(__children, DbTxn) children; + */ + struct __children { + DbTxn *tqh_first; + DbTxn **tqh_last; + } children; + + /* + * !!! + * Explicit representations of structures from queue.h. + * TAILQ_ENTRY(DbTxn) child_entry; + */ + struct { + DbTxn *tqe_next; + DbTxn **tqe_prev; + } child_entry; +}; + +// +// A chunk of data, maybe a key or value. +// +class _exported Dbt : private DBT +{ + friend class Db; + friend class Dbc; + friend class DbEnv; + friend class DbLogc; + friend class DbSequence; + +public: + // key/data + void *get_data() const { return data; } + void set_data(void *value) { data = value; } + + // key/data length + u_int32_t get_size() const { return size; } + void set_size(u_int32_t value) { size = value; } + + // RO: length of user buffer. + u_int32_t get_ulen() const { return ulen; } + void set_ulen(u_int32_t value) { ulen = value; } + + // RO: get/put record length. + u_int32_t get_dlen() const { return dlen; } + void set_dlen(u_int32_t value) { dlen = value; } + + // RO: get/put record offset. + u_int32_t get_doff() const { return doff; } + void set_doff(u_int32_t value) { doff = value; } + + // flags + u_int32_t get_flags() const { return flags; } + void set_flags(u_int32_t value) { flags = value; } + + // Conversion functions + DBT *get_DBT() { return (DBT *)this; } + const DBT *get_const_DBT() const { return (const DBT *)this; } + + static Dbt* get_Dbt(DBT *dbt) { return (Dbt *)dbt; } + static const Dbt* get_const_Dbt(const DBT *dbt) + { return (const Dbt *)dbt; } + + Dbt(void *data, u_int32_t size); + Dbt(); + ~Dbt(); + Dbt(const Dbt &); + Dbt &operator = (const Dbt &); + +private: + // Note: no extra data appears in this class (other than + // inherited from DBT) since we need DBT and Dbt objects + // to have interchangable pointers. + // + // When subclassing this class, remember that callback + // methods like bt_compare, bt_prefix, dup_compare may + // internally manufacture DBT objects (which later are + // cast to Dbt), so such callbacks might receive objects + // not of your subclassed type. +}; + +//////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////// +// +// multiple key/data/recno iterator classes +// + +// DbMultipleIterator is a shared private base class for the three types +// of bulk-return Iterator; it should never be instantiated directly, +// but it handles the functionality shared by its subclasses. +class _exported DbMultipleIterator +{ +public: + DbMultipleIterator(const Dbt &dbt); +protected: + u_int8_t *data_; + u_int32_t *p_; +}; + +class _exported DbMultipleKeyDataIterator : private DbMultipleIterator +{ +public: + DbMultipleKeyDataIterator(const Dbt &dbt) : DbMultipleIterator(dbt) {} + bool next(Dbt &key, Dbt &data); +}; + +class _exported DbMultipleRecnoDataIterator : private DbMultipleIterator +{ +public: + DbMultipleRecnoDataIterator(const Dbt &dbt) : DbMultipleIterator(dbt) {} + bool next(db_recno_t &recno, Dbt &data); +}; + +class _exported DbMultipleDataIterator : private DbMultipleIterator +{ +public: + DbMultipleDataIterator(const Dbt &dbt) : DbMultipleIterator(dbt) {} + bool next(Dbt &data); +}; + +//////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////// +// +// multiple key/data/recno builder classes +// + +// DbMultipleBuilder is a shared private base class for the three types +// of bulk buffer builders; it should never be instantiated directly, +// but it handles the functionality shared by its subclasses. +class _exported DbMultipleBuilder +{ +public: + DbMultipleBuilder(Dbt &dbt); +protected: + Dbt &dbt_; + void *p_; +}; + +class _exported DbMultipleDataBuilder : DbMultipleBuilder +{ +public: + DbMultipleDataBuilder(Dbt &dbt) : DbMultipleBuilder(dbt) {} + bool append(void *dbuf, size_t dlen); + bool reserve(void *&ddest, size_t dlen); +}; + +class _exported DbMultipleKeyDataBuilder : DbMultipleBuilder +{ +public: + DbMultipleKeyDataBuilder(Dbt &dbt) : DbMultipleBuilder(dbt) {} + bool append(void *kbuf, size_t klen, void *dbuf, size_t dlen); + bool reserve(void *&kdest, size_t klen, void *&ddest, size_t dlen); +}; + +class _exported DbMultipleRecnoDataBuilder +{ +public: + DbMultipleRecnoDataBuilder(Dbt &dbt); + bool append(db_recno_t recno, void *dbuf, size_t dlen); + bool reserve(db_recno_t recno, void *&ddest, size_t dlen); +protected: + Dbt &dbt_; + void *p_; +}; + +//////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////// +// +// Exception classes +// + +// Almost any error in the DB library throws a DbException. +// Every exception should be considered an abnormality +// (e.g. bug, misuse of DB, file system error). +// +class _exported DbException : public __DB_STD(exception) +{ +public: + virtual ~DbException() throw(); + DbException(int err); + DbException(const char *description); + DbException(const char *description, int err); + DbException(const char *prefix, const char *description, int err); + int get_errno() const; + virtual const char *what() const throw(); + DbEnv *get_env() const; + void set_env(DbEnv *dbenv); + + DbException(const DbException &); + DbException &operator = (const DbException &); + +private: + void describe(const char *prefix, const char *description); + + char *what_; + int err_; // errno + DbEnv *dbenv_; +}; + +// +// A specific sort of exception that occurs when +// an operation is aborted to resolve a deadlock. +// +class _exported DbDeadlockException : public DbException +{ +public: + virtual ~DbDeadlockException() throw(); + DbDeadlockException(const char *description); + + DbDeadlockException(const DbDeadlockException &); + DbDeadlockException &operator = (const DbDeadlockException &); +}; + +// +// A specific sort of exception that occurs when +// a lock is not granted, e.g. by lock_get or lock_vec. +// Note that the Dbt is only live as long as the Dbt used +// in the offending call. +// +class _exported DbLockNotGrantedException : public DbException +{ +public: + virtual ~DbLockNotGrantedException() throw(); + DbLockNotGrantedException(const char *prefix, db_lockop_t op, + db_lockmode_t mode, const Dbt *obj, const DbLock lock, int index); + DbLockNotGrantedException(const char *description); + + DbLockNotGrantedException(const DbLockNotGrantedException &); + DbLockNotGrantedException &operator = + (const DbLockNotGrantedException &); + + db_lockop_t get_op() const; + db_lockmode_t get_mode() const; + const Dbt* get_obj() const; + DbLock *get_lock() const; + int get_index() const; + +private: + db_lockop_t op_; + db_lockmode_t mode_; + const Dbt *obj_; + DbLock *lock_; + int index_; +}; + +// +// A specific sort of exception that occurs when +// user declared memory is insufficient in a Dbt. +// +class _exported DbMemoryException : public DbException +{ +public: + virtual ~DbMemoryException() throw(); + DbMemoryException(Dbt *dbt); + DbMemoryException(const char *prefix, Dbt *dbt); + + DbMemoryException(const DbMemoryException &); + DbMemoryException &operator = (const DbMemoryException &); + + Dbt *get_dbt() const; +private: + Dbt *dbt_; +}; + +// +// A specific sort of exception that occurs when a change of replication +// master requires that all handles be re-opened. +// +class _exported DbRepHandleDeadException : public DbException +{ +public: + virtual ~DbRepHandleDeadException() throw(); + DbRepHandleDeadException(const char *description); + + DbRepHandleDeadException(const DbRepHandleDeadException &); + DbRepHandleDeadException &operator = (const DbRepHandleDeadException &); +}; + +// +// A specific sort of exception that occurs when +// recovery is required before continuing DB activity. +// +class _exported DbRunRecoveryException : public DbException +{ +public: + virtual ~DbRunRecoveryException() throw(); + DbRunRecoveryException(const char *description); + + DbRunRecoveryException(const DbRunRecoveryException &); + DbRunRecoveryException &operator = (const DbRunRecoveryException &); +}; + +// +// A specific sort of exception that occurs when + +//////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////// +// +// Restore default compiler warnings +// +#ifdef _MSC_VER +#pragma warning(pop) +#endif + +#endif /* !_DB_CXX_H_ */ diff --git a/build_windows/db_deadlock.dsp b/build_windows/db_deadlock.dsp new file mode 100644 index 0000000..943a794 --- /dev/null +++ b/build_windows/db_deadlock.dsp @@ -0,0 +1,94 @@ +# Microsoft Developer Studio Project File - Name="db_deadlock" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=db_deadlock - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "db_deadlock.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "db_deadlock.mak" CFG="db_deadlock - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "db_deadlock - Win32 Release x86" (based on "Win32 (x86) Console Application")
+!MESSAGE "db_deadlock - Win32 Debug x86" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "db_deadlock - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32/Release"
+# PROP BASE Intermediate_Dir "Win32/Release/db_deadlock"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32/Release"
+# PROP Intermediate_Dir "Win32/Release/db_deadlock"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 libdb48.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386 /nodefaultlib:"libcmt" /libpath:"$(OUTDIR)"
+
+!ELSEIF "$(CFG)" == "db_deadlock - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32/Debug"
+# PROP BASE Intermediate_Dir "Win32/Debug/db_deadlock"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32/Debug"
+# PROP Intermediate_Dir "Win32/Debug/db_deadlock"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 libdb48d.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /nodefaultlib:"libcmtd" /fixed:no /libpath:"$(OUTDIR)"
+
+!ENDIF
+
+# Begin Target
+
+# Name "db_deadlock - Win32 Release x86"
+# Name "db_deadlock - Win32 Debug x86"
+# Begin Source File
+
+SOURCE=..\db_deadlock\db_deadlock.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\clib\getopt.c
+# End Source File
+# End Target
+# End Project
diff --git a/build_windows/db_deadlock.vcproj b/build_windows/db_deadlock.vcproj new file mode 100644 index 0000000..5dbd399 --- /dev/null +++ b/build_windows/db_deadlock.vcproj @@ -0,0 +1,81 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="db_deadlock" ProjectGUID="{CD0FD995-B4D1-4907-987B-99CF3304E7E0}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_deadlock" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_deadlock.pch" AssemblerListingLocation="$(OutDir)/db_deadlock/" ObjectFile="$(OutDir)/db_deadlock/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_deadlock.exe" ProgramDatabaseFile="$(OutDir)/db_deadlock.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_deadlock" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_deadlock.pch" AssemblerListingLocation="$(OutDir)/db_deadlock/" ObjectFile="$(OutDir)/db_deadlock/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_deadlock.exe" ProgramDatabaseFile="$(OutDir)/db_deadlock.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_deadlock" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_deadlock.pch" AssemblerListingLocation="$(OutDir)/db_deadlock/" ObjectFile="$(OutDir)/db_deadlock/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_deadlock.exe" ProgramDatabaseFile="$(OutDir)/db_deadlock.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_deadlock" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_deadlock.pch" AssemblerListingLocation="$(OutDir)/db_deadlock/" ObjectFile="$(OutDir)/db_deadlock/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_deadlock.exe" ProgramDatabaseFile="$(OutDir)/db_deadlock.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_deadlock" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_deadlock.pch" AssemblerListingLocation="$(OutDir)/db_deadlock/" ObjectFile="$(OutDir)/db_deadlock/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_deadlock.exe" ProgramDatabaseFile="$(OutDir)/db_deadlock.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_deadlock" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_deadlock.pch" AssemblerListingLocation="$(OutDir)/db_deadlock/" ObjectFile="$(OutDir)/db_deadlock/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_deadlock.exe" ProgramDatabaseFile="$(OutDir)/db_deadlock.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\db_deadlock\db_deadlock.c"/> + <File RelativePath="..\clib\getopt.c"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/db_dll.dsp b/build_windows/db_dll.dsp new file mode 100644 index 0000000..0e2beff --- /dev/null +++ b/build_windows/db_dll.dsp @@ -0,0 +1,1053 @@ +# Microsoft Developer Studio Project File - Name="db_dll" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
+
+CFG=db_dll - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "db_dll.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "db_dll.mak" CFG="db_dll - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "db_dll - Win32 Release x86" (based on "Win32 (x86) Dynamic-Link Library")
+!MESSAGE "db_dll - Win32 Debug x86" (based on "Win32 (x86) Dynamic-Link Library")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+MTL=midl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "db_dll - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32/Release"
+# PROP BASE Intermediate_Dir "Win32/Release/db_dll"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32/Release"
+# PROP Intermediate_Dir "Win32/Release/db_dll"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /MD /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /Ob2 /I "." /I ".." /D "UNICODE" /D "_UNICODE" /D "DB_CREATE_DLL" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
+# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 ws2_32.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:windows /dll /machine:I386
+# ADD LINK32 ws2_32.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /base:"0x13000000" /subsystem:windows /dll /machine:I386 /out:"Win32/Release/libdb48.dll" /libpath:"$(OUTDIR)"
+
+!ELSEIF "$(CFG)" == "db_dll - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32/Debug"
+# PROP BASE Intermediate_Dir "Win32/Debug/db_dll"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32/Debug"
+# PROP Intermediate_Dir "Win32/Debug/db_dll"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "UNICODE" /D "_UNICODE" /D "DB_CREATE_DLL" /D "DIAGNOSTIC" /D "CONFIG_TEST" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# SUBTRACT CPP /Fr
+# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
+# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 ws2_32.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:windows /dll /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 ws2_32.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /base:"0x13000000" /subsystem:windows /dll /export:__db_assert /pdb:none /debug /machine:I386 /out:"Win32/Debug/libdb48d.dll" /fixed:no /libpath:"$(OUTDIR)"
+
+!ENDIF
+
+# Begin Target
+
+# Name "db_dll - Win32 Release x86"
+# Name "db_dll - Win32 Debug x86"
+# Begin Source File
+
+SOURCE=..\btree\bt_compact.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_compare.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_compress.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_conv.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_curadj.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_cursor.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_delete.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_method.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_open.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_put.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_rec.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_reclaim.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_recno.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_rsearch.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_search.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_split.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_stat.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_upgrade.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_verify.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\btree_auto.c
+# End Source File
+# Begin Source File
+
+SOURCE=.\libdb.def
+# End Source File
+# Begin Source File
+
+SOURCE=.\libdb.rc
+# End Source File
+# Begin Source File
+
+SOURCE=..\clib\strsep.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\common\db_byteorder.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\common\db_compint.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\common\db_err.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\common\db_getlong.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\common\db_idspace.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\common\db_log2.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\common\db_shash.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\common\dbt.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\common\mkpath.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\common\openflags.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\common\os_method.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\common\util_cache.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\common\util_log.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\common\util_sig.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\common\zerofill.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\crypto\aes_method.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\crypto\crypto.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\crypto\mersenne\mt19937db.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\crypto\rijndael\rijndael-alg-fst.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\crypto\rijndael\rijndael-api-fst.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\cxx\cxx_db.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=..\cxx\cxx_dbc.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=..\cxx\cxx_dbt.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=..\cxx\cxx_env.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=..\cxx\cxx_except.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=..\cxx\cxx_lock.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=..\cxx\cxx_logc.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=..\cxx\cxx_mpool.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=..\cxx\cxx_multi.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=..\cxx\cxx_seq.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=..\cxx\cxx_txn.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\crdel_auto.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\crdel_rec.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_am.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_auto.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_cam.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_cds.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_conv.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_dispatch.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_dup.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_iface.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_join.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_meta.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_method.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_open.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_overflow.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_ovfl_vrfy.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_pr.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_rec.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_reclaim.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_remove.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_rename.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_ret.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_setid.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_setlsn.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_sort_multiple.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_stati.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_truncate.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_upg.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_upg_opd.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_vrfy.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_vrfyutil.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\partition.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\dbm\dbm.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\dbreg\dbreg.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\dbreg\dbreg_auto.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\dbreg\dbreg_rec.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\dbreg\dbreg_stat.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\dbreg\dbreg_util.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\env\env_alloc.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\env\env_config.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\env\env_failchk.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\env\env_file.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\env\env_globals.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\env\env_method.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\env\env_name.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\env\env_open.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\env\env_recover.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\env\env_region.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\env\env_register.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\env\env_sig.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\env\env_stat.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\fileops\fileops_auto.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\fileops\fop_basic.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\fileops\fop_rec.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\fileops\fop_util.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\hash\hash.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\hash\hash_auto.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\hash\hash_conv.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\hash\hash_dup.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\hash\hash_func.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\hash\hash_meta.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\hash\hash_method.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\hash\hash_open.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\hash\hash_page.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\hash\hash_rec.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\hash\hash_reclaim.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\hash\hash_stat.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\hash\hash_upgrade.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\hash\hash_verify.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\hmac\hmac.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\hmac\sha1.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\hsearch\hsearch.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\lock\lock.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\lock\lock_deadlock.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\lock\lock_failchk.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\lock\lock_id.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\lock\lock_list.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\lock\lock_method.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\lock\lock_region.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\lock\lock_stat.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\lock\lock_timer.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\lock\lock_util.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\log\log.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\log\log_archive.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\log\log_compare.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\log\log_debug.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\log\log_get.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\log\log_method.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\log\log_put.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\log\log_stat.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mp\mp_alloc.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mp\mp_bh.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mp\mp_fget.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mp\mp_fmethod.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mp\mp_fopen.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mp\mp_fput.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mp\mp_fset.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mp\mp_method.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mp\mp_mvcc.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mp\mp_region.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mp\mp_register.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mp\mp_resize.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mp\mp_stat.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mp\mp_sync.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mp\mp_trickle.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mutex\mut_alloc.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mutex\mut_failchk.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mutex\mut_method.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mutex\mut_region.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mutex\mut_stat.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mutex\mut_win32.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os\os_abort.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os\os_addrinfo.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os\os_alloc.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os\os_ctime.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os\os_pid.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os\os_root.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os\os_rpath.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os\os_stack.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os\os_tmpdir.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os\os_uid.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_abs.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_clock.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_config.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_cpu.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_dir.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_errno.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_fid.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_flock.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_fsync.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_getenv.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_handle.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_map.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_mkdir.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_open.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_rename.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_rw.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_seek.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_stat.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_truncate.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_unlink.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_yield.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\qam\qam.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\qam\qam_auto.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\qam\qam_conv.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\qam\qam_files.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\qam\qam_method.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\qam\qam_open.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\qam\qam_rec.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\qam\qam_stat.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\qam\qam_upgrade.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\qam\qam_verify.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\rep\rep_auto.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\rep\rep_backup.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\rep\rep_elect.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\rep\rep_lease.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\rep\rep_log.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\rep\rep_method.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\rep\rep_record.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\rep\rep_region.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\rep\rep_stat.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\rep\rep_util.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\rep\rep_verify.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\repmgr\repmgr_auto.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\repmgr\repmgr_elect.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\repmgr\repmgr_method.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\repmgr\repmgr_msg.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\repmgr\repmgr_net.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\repmgr\repmgr_queue.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\repmgr\repmgr_sel.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\repmgr\repmgr_stat.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\repmgr\repmgr_util.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\repmgr\repmgr_windows.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\sequence\seq_stat.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\sequence\sequence.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\txn\txn.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\txn\txn_auto.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\txn\txn_chkpt.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\txn\txn_failchk.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\txn\txn_method.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\txn\txn_rec.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\txn\txn_recover.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\txn\txn_region.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\txn\txn_stat.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\txn\txn_util.c
+# End Source File
+
+# End Target
+# End Project
diff --git a/build_windows/db_dump.dsp b/build_windows/db_dump.dsp new file mode 100644 index 0000000..fe3e21b --- /dev/null +++ b/build_windows/db_dump.dsp @@ -0,0 +1,94 @@ +# Microsoft Developer Studio Project File - Name="db_dump" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=db_dump - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "db_dump.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "db_dump.mak" CFG="db_dump - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "db_dump - Win32 Release x86" (based on "Win32 (x86) Console Application")
+!MESSAGE "db_dump - Win32 Debug x86" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "db_dump - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32/Release"
+# PROP BASE Intermediate_Dir "Win32/Release/db_dump"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32/Release"
+# PROP Intermediate_Dir "Win32/Release/db_dump"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 libdb48.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386 /nodefaultlib:"libcmt" /libpath:"$(OUTDIR)"
+
+!ELSEIF "$(CFG)" == "db_dump - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32/Debug"
+# PROP BASE Intermediate_Dir "Win32/Debug/db_dump"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32/Debug"
+# PROP Intermediate_Dir "Win32/Debug/db_dump"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 libdb48d.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /nodefaultlib:"libcmtd" /fixed:no /libpath:"$(OUTDIR)"
+
+!ENDIF
+
+# Begin Target
+
+# Name "db_dump - Win32 Release x86"
+# Name "db_dump - Win32 Debug x86"
+# Begin Source File
+
+SOURCE=..\db_dump\db_dump.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\clib\getopt.c
+# End Source File
+# End Target
+# End Project
diff --git a/build_windows/db_dump.vcproj b/build_windows/db_dump.vcproj new file mode 100644 index 0000000..b25173d --- /dev/null +++ b/build_windows/db_dump.vcproj @@ -0,0 +1,81 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="db_dump" ProjectGUID="{DB067D2C-7163-428B-AAF8-642316AB173B}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_dump" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_dump.pch" AssemblerListingLocation="$(OutDir)/db_dump/" ObjectFile="$(OutDir)/db_dump/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_dump.exe" ProgramDatabaseFile="$(OutDir)/db_dump.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_dump" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_dump.pch" AssemblerListingLocation="$(OutDir)/db_dump/" ObjectFile="$(OutDir)/db_dump/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_dump.exe" ProgramDatabaseFile="$(OutDir)/db_dump.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_dump" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_dump.pch" AssemblerListingLocation="$(OutDir)/db_dump/" ObjectFile="$(OutDir)/db_dump/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_dump.exe" ProgramDatabaseFile="$(OutDir)/db_dump.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_dump" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_dump.pch" AssemblerListingLocation="$(OutDir)/db_dump/" ObjectFile="$(OutDir)/db_dump/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_dump.exe" ProgramDatabaseFile="$(OutDir)/db_dump.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_dump" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_dump.pch" AssemblerListingLocation="$(OutDir)/db_dump/" ObjectFile="$(OutDir)/db_dump/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_dump.exe" ProgramDatabaseFile="$(OutDir)/db_dump.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_dump" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_dump.pch" AssemblerListingLocation="$(OutDir)/db_dump/" ObjectFile="$(OutDir)/db_dump/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_dump.exe" ProgramDatabaseFile="$(OutDir)/db_dump.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\db_dump\db_dump.c"/> + <File RelativePath="..\clib\getopt.c"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/db_hotbackup.dsp b/build_windows/db_hotbackup.dsp new file mode 100644 index 0000000..768d829 --- /dev/null +++ b/build_windows/db_hotbackup.dsp @@ -0,0 +1,94 @@ +# Microsoft Developer Studio Project File - Name="db_hotbackup" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=db_hotbackup - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "db_hotbackup.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "db_hotbackup.mak" CFG="db_hotbackup - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "db_hotbackup - Win32 Release x86" (based on "Win32 (x86) Console Application")
+!MESSAGE "db_hotbackup - Win32 Debug x86" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "db_hotbackup - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32/Release"
+# PROP BASE Intermediate_Dir "Win32/Release/db_hotbackup"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32/Release"
+# PROP Intermediate_Dir "Win32/Release/db_hotbackup"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 libdb48.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386 /nodefaultlib:"libcmt" /libpath:"$(OUTDIR)"
+
+!ELSEIF "$(CFG)" == "db_hotbackup - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32/Debug"
+# PROP BASE Intermediate_Dir "Win32/Debug/db_hotbackup"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32/Debug"
+# PROP Intermediate_Dir "Win32/Debug/db_hotbackup"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 libdb48d.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /nodefaultlib:"libcmtd" /fixed:no /libpath:"$(OUTDIR)"
+
+!ENDIF
+
+# Begin Target
+
+# Name "db_hotbackup - Win32 Release x86"
+# Name "db_hotbackup - Win32 Debug x86"
+# Begin Source File
+
+SOURCE=..\db_hotbackup\db_hotbackup.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\clib\getopt.c
+# End Source File
+# End Target
+# End Project
diff --git a/build_windows/db_hotbackup.vcproj b/build_windows/db_hotbackup.vcproj new file mode 100644 index 0000000..9771cf9 --- /dev/null +++ b/build_windows/db_hotbackup.vcproj @@ -0,0 +1,81 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="db_hotbackup" ProjectGUID="{67C0DABC-353A-491F-9A77-8E2E601ED52B}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_hotbackup" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_hotbackup.pch" AssemblerListingLocation="$(OutDir)/db_hotbackup/" ObjectFile="$(OutDir)/db_hotbackup/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_hotbackup.exe" ProgramDatabaseFile="$(OutDir)/db_hotbackup.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_hotbackup" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_hotbackup.pch" AssemblerListingLocation="$(OutDir)/db_hotbackup/" ObjectFile="$(OutDir)/db_hotbackup/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_hotbackup.exe" ProgramDatabaseFile="$(OutDir)/db_hotbackup.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_hotbackup" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_hotbackup.pch" AssemblerListingLocation="$(OutDir)/db_hotbackup/" ObjectFile="$(OutDir)/db_hotbackup/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_hotbackup.exe" ProgramDatabaseFile="$(OutDir)/db_hotbackup.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_hotbackup" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_hotbackup.pch" AssemblerListingLocation="$(OutDir)/db_hotbackup/" ObjectFile="$(OutDir)/db_hotbackup/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_hotbackup.exe" ProgramDatabaseFile="$(OutDir)/db_hotbackup.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_hotbackup" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_hotbackup.pch" AssemblerListingLocation="$(OutDir)/db_hotbackup/" ObjectFile="$(OutDir)/db_hotbackup/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_hotbackup.exe" ProgramDatabaseFile="$(OutDir)/db_hotbackup.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_hotbackup" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_hotbackup.pch" AssemblerListingLocation="$(OutDir)/db_hotbackup/" ObjectFile="$(OutDir)/db_hotbackup/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_hotbackup.exe" ProgramDatabaseFile="$(OutDir)/db_hotbackup.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\db_hotbackup\db_hotbackup.c"/> + <File RelativePath="..\clib\getopt.c"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/db_int.h b/build_windows/db_int.h new file mode 100644 index 0000000..7e18d08 --- /dev/null +++ b/build_windows/db_int.h @@ -0,0 +1,934 @@ +/* DO NOT EDIT: automatically built by dist/s_windows. */ +/*- + * See the file LICENSE for redistribution information. + * + * Copyright (c) 1996-2009 Oracle. All rights reserved. + * + * $Id$ + */ + +#ifndef _DB_INT_H_ +#define _DB_INT_H_ + +/******************************************************* + * Berkeley DB ANSI/POSIX include files. + *******************************************************/ +#ifdef HAVE_SYSTEM_INCLUDE_FILES +#include <sys/types.h> +#ifdef DIAG_MVCC +#include <sys/mman.h> +#endif +#include <sys/stat.h> + +#if defined(__INCLUDE_SELECT_H) +#ifdef HAVE_SYS_SELECT_H +#include <sys/select.h> +#endif +#ifdef HAVE_VXWORKS +#include <selectLib.h> +#endif +#endif + +#if TIME_WITH_SYS_TIME +#include <sys/time.h> +#include <time.h> +#else +#if HAVE_SYS_TIME_H +#include <sys/time.h> +#else +#include <time.h> +#endif +#endif + +#ifdef HAVE_VXWORKS +#include <net/uio.h> +#else +#include <sys/uio.h> +#endif + +#if defined(__INCLUDE_NETWORKING) +#ifdef HAVE_SYS_SOCKET_H +#include <sys/socket.h> +#endif +#include <netinet/in.h> +#include <netdb.h> +#include <arpa/inet.h> +#endif + +#if defined(STDC_HEADERS) || defined(__cplusplus) +#include <stdarg.h> +#else +#include <varargs.h> +#endif + +#include <ctype.h> +#include <errno.h> +#include <fcntl.h> +#include <limits.h> +#include <signal.h> +#include <stddef.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <unistd.h> + +#if defined(__INCLUDE_DIRECTORY) +#if HAVE_DIRENT_H +# include <dirent.h> +# define NAMLEN(dirent) strlen((dirent)->d_name) +#else +# define dirent direct +# define NAMLEN(dirent) (dirent)->d_namlen +# if HAVE_SYS_NDIR_H +# include <sys/ndir.h> +# endif +# if HAVE_SYS_DIR_H +# include <sys/dir.h> +# endif +# if HAVE_NDIR_H +# include <ndir.h> +# endif +#endif +#endif /* __INCLUDE_DIRECTORY */ + +#endif /* !HAVE_SYSTEM_INCLUDE_FILES */ + +#ifdef DB_WIN32 +#include "dbinc/win_db.h" +#endif + +#include "db.h" +#include "clib_port.h" + +#include "dbinc/queue.h" +#include "dbinc/shqueue.h" + +#if defined(__cplusplus) +extern "C" { +#endif + +/******************************************************* + * Forward structure declarations. + *******************************************************/ +struct __db_reginfo_t; typedef struct __db_reginfo_t REGINFO; +struct __db_txnhead; typedef struct __db_txnhead DB_TXNHEAD; +struct __db_txnlist; typedef struct __db_txnlist DB_TXNLIST; +struct __vrfy_childinfo;typedef struct __vrfy_childinfo VRFY_CHILDINFO; +struct __vrfy_dbinfo; typedef struct __vrfy_dbinfo VRFY_DBINFO; +struct __vrfy_pageinfo; typedef struct __vrfy_pageinfo VRFY_PAGEINFO; + +typedef SH_TAILQ_HEAD(__hash_head) DB_HASHTAB; + +/******************************************************* + * General purpose constants and macros. + *******************************************************/ +#undef FALSE +#define FALSE 0 +#undef TRUE +#define TRUE (!FALSE) + +#define MEGABYTE 1048576 +#define GIGABYTE 1073741824 + +#define NS_PER_MS 1000000 /* Nanoseconds in a millisecond */ +#define NS_PER_US 1000 /* Nanoseconds in a microsecond */ +#define NS_PER_SEC 1000000000 /* Nanoseconds in a second */ +#define US_PER_MS 1000 /* Microseconds in a millisecond */ +#define US_PER_SEC 1000000 /* Microseconds in a second */ +#define MS_PER_SEC 1000 /* Milliseconds in a second */ + +#define RECNO_OOB 0 /* Illegal record number. */ + +/* Test for a power-of-two (tests true for zero, which doesn't matter here). */ +#define POWER_OF_TWO(x) (((x) & ((x) - 1)) == 0) + +/* Test for valid page sizes. */ +#define DB_MIN_PGSIZE 0x000200 /* Minimum page size (512). */ +#define DB_MAX_PGSIZE 0x010000 /* Maximum page size (65536). */ +#define IS_VALID_PAGESIZE(x) \ + (POWER_OF_TWO(x) && (x) >= DB_MIN_PGSIZE && ((x) <= DB_MAX_PGSIZE)) + +/* Minimum number of pages cached, by default. */ +#define DB_MINPAGECACHE 16 + +/* + * If we are unable to determine the underlying filesystem block size, use + * 8K on the grounds that most OS's use less than 8K for a VM page size. + */ +#define DB_DEF_IOSIZE (8 * 1024) + +/* Align an integer to a specific boundary. */ +#undef DB_ALIGN +#define DB_ALIGN(v, bound) \ + (((v) + (bound) - 1) & ~(((uintmax_t)(bound)) - 1)) + +/* Increment a pointer to a specific boundary. */ +#undef ALIGNP_INC +#define ALIGNP_INC(p, bound) \ + (void *)(((uintptr_t)(p) + (bound) - 1) & ~(((uintptr_t)(bound)) - 1)) + +/* + * Print an address as a u_long (a u_long is the largest type we can print + * portably). Most 64-bit systems have made longs 64-bits, so this should + * work. + */ +#define P_TO_ULONG(p) ((u_long)(uintptr_t)(p)) + +/* + * Convert a pointer to a small integral value. + * + * The (u_int16_t)(uintptr_t) cast avoids warnings: the (uintptr_t) cast + * converts the value to an integral type, and the (u_int16_t) cast converts + * it to a small integral type so we don't get complaints when we assign the + * final result to an integral type smaller than uintptr_t. + */ +#define P_TO_UINT32(p) ((u_int32_t)(uintptr_t)(p)) +#define P_TO_UINT16(p) ((u_int16_t)(uintptr_t)(p)) + +/* + * There are several on-page structures that are declared to have a number of + * fields followed by a variable length array of items. The structure size + * without including the variable length array or the address of the first of + * those elements can be found using SSZ. + * + * This macro can also be used to find the offset of a structure element in a + * structure. This is used in various places to copy structure elements from + * unaligned memory references, e.g., pointers into a packed page. + * + * There are two versions because compilers object if you take the address of + * an array. + */ +#undef SSZ +#define SSZ(name, field) P_TO_UINT16(&(((name *)0)->field)) + +#undef SSZA +#define SSZA(name, field) P_TO_UINT16(&(((name *)0)->field[0])) + +/* Structure used to print flag values. */ +typedef struct __fn { + u_int32_t mask; /* Flag value. */ + const char *name; /* Flag name. */ +} FN; + +/* Set, clear and test flags. */ +#define FLD_CLR(fld, f) (fld) &= ~(f) +#define FLD_ISSET(fld, f) ((fld) & (f)) +#define FLD_SET(fld, f) (fld) |= (f) +#define F_CLR(p, f) (p)->flags &= ~(f) +#define F_ISSET(p, f) ((p)->flags & (f)) +#define F_SET(p, f) (p)->flags |= (f) +#define LF_CLR(f) ((flags) &= ~(f)) +#define LF_ISSET(f) ((flags) & (f)) +#define LF_SET(f) ((flags) |= (f)) + +/* + * Calculate a percentage. The values can overflow 32-bit integer arithmetic + * so we use floating point. + * + * When calculating a bytes-vs-page size percentage, we're getting the inverse + * of the percentage in all cases, that is, we want 100 minus the percentage we + * calculate. + */ +#define DB_PCT(v, total) \ + ((int)((total) == 0 ? 0 : ((double)(v) * 100) / (total))) +#define DB_PCT_PG(v, total, pgsize) \ + ((int)((total) == 0 ? 0 : \ + 100 - ((double)(v) * 100) / (((double)total) * (pgsize)))) + +/* + * Statistics update shared memory and so are expensive -- don't update the + * values unless we're going to display the results. + */ +#undef STAT +#ifdef HAVE_STATISTICS +#define STAT(x) x +#else +#define STAT(x) +#endif + +/* + * Structure used for callback message aggregation. + * + * Display values in XXX_stat_print calls. + */ +typedef struct __db_msgbuf { + char *buf; /* Heap allocated buffer. */ + char *cur; /* Current end of message. */ + size_t len; /* Allocated length of buffer. */ +} DB_MSGBUF; +#define DB_MSGBUF_INIT(a) do { \ + (a)->buf = (a)->cur = NULL; \ + (a)->len = 0; \ +} while (0) +#define DB_MSGBUF_FLUSH(env, a) do { \ + if ((a)->buf != NULL) { \ + if ((a)->cur != (a)->buf) \ + __db_msg(env, "%s", (a)->buf); \ + __os_free(env, (a)->buf); \ + DB_MSGBUF_INIT(a); \ + } \ +} while (0) +#define STAT_FMT(msg, fmt, type, v) do { \ + DB_MSGBUF __mb; \ + DB_MSGBUF_INIT(&__mb); \ + __db_msgadd(env, &__mb, fmt, (type)(v)); \ + __db_msgadd(env, &__mb, "\t%s", msg); \ + DB_MSGBUF_FLUSH(env, &__mb); \ +} while (0) +#define STAT_HEX(msg, v) \ + __db_msg(env, "%#lx\t%s", (u_long)(v), msg) +#define STAT_ISSET(msg, p) \ + __db_msg(env, "%sSet\t%s", (p) == NULL ? "!" : " ", msg) +#define STAT_LONG(msg, v) \ + __db_msg(env, "%ld\t%s", (long)(v), msg) +#define STAT_LSN(msg, lsnp) \ + __db_msg(env, "%lu/%lu\t%s", \ + (u_long)(lsnp)->file, (u_long)(lsnp)->offset, msg) +#define STAT_POINTER(msg, v) \ + __db_msg(env, "%#lx\t%s", P_TO_ULONG(v), msg) +#define STAT_STRING(msg, p) do { \ + const char *__p = p; /* p may be a function call. */ \ + __db_msg(env, "%s\t%s", __p == NULL ? "!Set" : __p, msg); \ +} while (0) +#define STAT_ULONG(msg, v) \ + __db_msg(env, "%lu\t%s", (u_long)(v), msg) + +/* + * There are quite a few places in Berkeley DB where we want to initialize + * a DBT from a string or other random pointer type, using a length typed + * to size_t in most cases. This macro avoids a lot of casting. The macro + * comes in two flavors because we often want to clear the DBT first. + */ +#define DB_SET_DBT(dbt, d, s) do { \ + (dbt).data = (void *)(d); \ + (dbt).size = (u_int32_t)(s); \ +} while (0) +#define DB_INIT_DBT(dbt, d, s) do { \ + memset(&(dbt), 0, sizeof(dbt)); \ + DB_SET_DBT(dbt, d, s); \ +} while (0) + +/******************************************************* + * API return values + *******************************************************/ +/* + * Return values that are OK for each different call. Most calls have a + * standard 'return of 0 is only OK value', but some, like db->get have + * DB_NOTFOUND as a return value, but it really isn't an error. + */ +#define DB_RETOK_STD(ret) ((ret) == 0) +#define DB_RETOK_DBCDEL(ret) ((ret) == 0 || (ret) == DB_KEYEMPTY || \ + (ret) == DB_NOTFOUND) +#define DB_RETOK_DBCGET(ret) ((ret) == 0 || (ret) == DB_KEYEMPTY || \ + (ret) == DB_NOTFOUND) +#define DB_RETOK_DBCPUT(ret) ((ret) == 0 || (ret) == DB_KEYEXIST || \ + (ret) == DB_NOTFOUND) +#define DB_RETOK_DBDEL(ret) DB_RETOK_DBCDEL(ret) +#define DB_RETOK_DBGET(ret) DB_RETOK_DBCGET(ret) +#define DB_RETOK_DBPUT(ret) ((ret) == 0 || (ret) == DB_KEYEXIST) +#define DB_RETOK_EXISTS(ret) DB_RETOK_DBCGET(ret) +#define DB_RETOK_LGGET(ret) ((ret) == 0 || (ret) == DB_NOTFOUND) +#define DB_RETOK_MPGET(ret) ((ret) == 0 || (ret) == DB_PAGE_NOTFOUND) +#define DB_RETOK_REPPMSG(ret) ((ret) == 0 || \ + (ret) == DB_REP_IGNORE || \ + (ret) == DB_REP_ISPERM || \ + (ret) == DB_REP_NEWMASTER || \ + (ret) == DB_REP_NEWSITE || \ + (ret) == DB_REP_NOTPERM) +#define DB_RETOK_REPMGR_START(ret) ((ret) == 0 || (ret) == DB_REP_IGNORE) + +/* Find a reasonable operation-not-supported error. */ +#ifdef EOPNOTSUPP +#define DB_OPNOTSUP EOPNOTSUPP +#else +#ifdef ENOTSUP +#define DB_OPNOTSUP ENOTSUP +#else +#define DB_OPNOTSUP EINVAL +#endif +#endif + +/******************************************************* + * Files. + *******************************************************/ +/* + * We use 1024 as the maximum path length. It's too hard to figure out what + * the real path length is, as it was traditionally stored in <sys/param.h>, + * and that file isn't always available. + */ +#define DB_MAXPATHLEN 1024 + +#define PATH_DOT "." /* Current working directory. */ + /* Path separator character(s). */ +#define PATH_SEPARATOR "\\/:" + +/******************************************************* + * Environment. + *******************************************************/ +/* Type passed to __db_appname(). */ +typedef enum { + DB_APP_NONE=0, /* No type (region). */ + DB_APP_DATA, /* Data file. */ + DB_APP_LOG, /* Log file. */ + DB_APP_TMP, /* Temporary file. */ + DB_APP_RECOVER /* We are in recovery. */ +} APPNAME; + +/* + * A set of macros to check if various functionality has been configured. + * + * ALIVE_ON The is_alive function is configured. + * CDB_LOCKING CDB product locking. + * CRYPTO_ON Security has been configured. + * LOCKING_ON Locking has been configured. + * LOGGING_ON Logging has been configured. + * MUTEX_ON Mutexes have been configured. + * MPOOL_ON Memory pool has been configured. + * REP_ON Replication has been configured. + * RPC_ON RPC has been configured. + * TXN_ON Transactions have been configured. + * + * REP_ON is more complex than most: if the BDB library was compiled without + * replication support, ENV->rep_handle will be NULL; if the BDB library has + * replication support, but it was not configured, the region reference will + * be NULL. + */ +#define ALIVE_ON(env) ((env)->dbenv->is_alive != NULL) +#define CDB_LOCKING(env) F_ISSET(env, ENV_CDB) +#define CRYPTO_ON(env) ((env)->crypto_handle != NULL) +#define LOCKING_ON(env) ((env)->lk_handle != NULL) +#define LOGGING_ON(env) ((env)->lg_handle != NULL) +#define MPOOL_ON(env) ((env)->mp_handle != NULL) +#define MUTEX_ON(env) ((env)->mutex_handle != NULL) +#define REP_ON(env) \ + ((env)->rep_handle != NULL && (env)->rep_handle->region != NULL) +#define RPC_ON(dbenv) ((dbenv)->cl_handle != NULL) +#define TXN_ON(env) ((env)->tx_handle != NULL) + +/* + * STD_LOCKING Standard locking, that is, locking was configured and CDB + * was not. We do not do locking in off-page duplicate trees, + * so we check for that in the cursor first. + */ +#define STD_LOCKING(dbc) \ + (!F_ISSET(dbc, DBC_OPD) && \ + !CDB_LOCKING((dbc)->env) && LOCKING_ON((dbc)->env)) + +/* + * IS_RECOVERING: The system is running recovery. + */ +#define IS_RECOVERING(env) \ + (LOGGING_ON(env) && F_ISSET((env)->lg_handle, DBLOG_RECOVER)) + +/* Initialization methods are often illegal before/after open is called. */ +#define ENV_ILLEGAL_AFTER_OPEN(env, name) \ + if (F_ISSET((env), ENV_OPEN_CALLED)) \ + return (__db_mi_open(env, name, 1)); +#define ENV_ILLEGAL_BEFORE_OPEN(env, name) \ + if (!F_ISSET((env), ENV_OPEN_CALLED)) \ + return (__db_mi_open(env, name, 0)); + +/* We're not actually user hostile, honest. */ +#define ENV_REQUIRES_CONFIG(env, handle, i, flags) \ + if (handle == NULL) \ + return (__env_not_config(env, i, flags)); +#define ENV_REQUIRES_CONFIG_XX(env, handle, i, flags) \ + if ((env)->handle->region == NULL) \ + return (__env_not_config(env, i, flags)); +#define ENV_NOT_CONFIGURED(env, handle, i, flags) \ + if (F_ISSET((env), ENV_OPEN_CALLED)) \ + ENV_REQUIRES_CONFIG(env, handle, i, flags) + +#define ENV_ENTER(env, ip) do { \ + int __ret; \ + PANIC_CHECK(env); \ + if ((env)->thr_hashtab == NULL) \ + ip = NULL; \ + else { \ + if ((__ret = \ + __env_set_state(env, &(ip), THREAD_ACTIVE)) != 0) \ + return (__ret); \ + } \ +} while (0) + +#define FAILCHK_THREAD(env, ip) do { \ + if ((ip) != NULL) \ + (ip)->dbth_state = THREAD_FAILCHK; \ +} while (0) + +#define ENV_GET_THREAD_INFO(env, ip) ENV_ENTER(env, ip) + +#ifdef DIAGNOSTIC +#define ENV_LEAVE(env, ip) do { \ + if ((ip) != NULL) { \ + DB_ASSERT(env, ((ip)->dbth_state == THREAD_ACTIVE || \ + (ip)->dbth_state == THREAD_FAILCHK)); \ + (ip)->dbth_state = THREAD_OUT; \ + } \ +} while (0) +#else +#define ENV_LEAVE(env, ip) do { \ + if ((ip) != NULL) \ + (ip)->dbth_state = THREAD_OUT; \ +} while (0) +#endif +#ifdef DIAGNOSTIC +#define CHECK_THREAD(env) do { \ + if ((env)->thr_hashtab != NULL) \ + (void)__env_set_state(env, NULL, THREAD_VERIFY); \ +} while (0) +#ifdef HAVE_STATISTICS +#define CHECK_MTX_THREAD(env, mtx) do { \ + if (mtx->alloc_id != MTX_MUTEX_REGION && \ + mtx->alloc_id != MTX_ENV_REGION && \ + mtx->alloc_id != MTX_APPLICATION) \ + CHECK_THREAD(env); \ +} while (0) +#else +#define CHECK_MTX_THREAD(env, mtx) +#endif +#else +#define CHECK_THREAD(env) +#define CHECK_MTX_THREAD(env, mtx) +#endif + +typedef enum { + THREAD_SLOT_NOT_IN_USE=0, + THREAD_OUT, + THREAD_ACTIVE, + THREAD_BLOCKED, + THREAD_BLOCKED_DEAD, + THREAD_FAILCHK, + THREAD_VERIFY +} DB_THREAD_STATE; + +typedef struct __pin_list { + roff_t b_ref; /* offset to buffer. */ + int region; /* region containing buffer. */ +} PIN_LIST; +#define PINMAX 4 + +struct __db_thread_info { + pid_t dbth_pid; + db_threadid_t dbth_tid; + DB_THREAD_STATE dbth_state; + SH_TAILQ_ENTRY dbth_links; + /* + * The following fields track which buffers this thread of + * control has pinned in the mpool buffer cache. + */ + u_int16_t dbth_pincount; /* Number of pins for this thread. */ + u_int16_t dbth_pinmax; /* Number of slots allocated. */ + roff_t dbth_pinlist; /* List of pins. */ + PIN_LIST dbth_pinarray[PINMAX]; /* Initial array of slots. */ +}; + +typedef struct __env_thread_info { + u_int32_t thr_count; + u_int32_t thr_max; + u_int32_t thr_nbucket; + roff_t thr_hashoff; +} THREAD_INFO; + +#define DB_EVENT(env, e, einfo) do { \ + DB_ENV *__dbenv = (env)->dbenv; \ + if (__dbenv->db_event_func != NULL) \ + __dbenv->db_event_func(__dbenv, e, einfo); \ +} while (0) + +typedef struct __flag_map { + u_int32_t inflag, outflag; +} FLAG_MAP; + +/* + * Internal database environment structure. + * + * This is the private database environment handle. The public environment + * handle is the DB_ENV structure. The library owns this structure, the user + * owns the DB_ENV structure. The reason there are two structures is because + * the user's configuration outlives any particular DB_ENV->open call, and + * separate structures allows us to easily discard internal information without + * discarding the user's configuration. + */ +struct __env { + DB_ENV *dbenv; /* Linked DB_ENV structure */ + + /* + * The ENV structure can be used concurrently, so field access is + * protected. + */ + db_mutex_t mtx_env; /* ENV structure mutex */ + + /* + * Some fields are included in the ENV structure rather than in the + * DB_ENV structure because they are only set as arguments to the + * DB_ENV->open method. In other words, because of the historic API, + * not for any rational reason. + * + * Arguments to DB_ENV->open. + */ + char *db_home; /* Database home */ + u_int32_t open_flags; /* Flags */ + int db_mode; /* Default open permissions */ + + pid_t pid_cache; /* Cached process ID */ + + DB_FH *lockfhp; /* fcntl(2) locking file handle */ + + DB_LOCKER *env_lref; /* Locker in non-threaded handles */ + + DB_DISTAB recover_dtab; /* Dispatch table for recover funcs */ + + int dir_mode; /* Intermediate directory perms. */ + + /* Thread tracking */ + u_int32_t thr_nbucket; /* Number of hash buckets */ + DB_HASHTAB *thr_hashtab; /* Hash table of DB_THREAD_INFO */ + + /* Mutex allocation */ + struct { + int alloc_id; /* Allocation ID argument */ + u_int32_t flags; /* Flags argument */ + } *mutex_iq; /* Initial mutexes queue */ + u_int mutex_iq_next; /* Count of initial mutexes */ + u_int mutex_iq_max; /* Maximum initial mutexes */ + + /* + * List of open DB handles for this ENV, used for cursor + * adjustment. Must be protected for multi-threaded support. + */ + db_mutex_t mtx_dblist; + int db_ref; /* DB handle reference count */ + TAILQ_HEAD(__dblist, __db) dblist; + + /* + * List of open file handles for this ENV. Must be protected + * for multi-threaded support. + */ + TAILQ_HEAD(__fdlist, __fh_t) fdlist; + + db_mutex_t mtx_mt; /* Mersenne Twister mutex */ + int mti; /* Mersenne Twister index */ + u_long *mt; /* Mersenne Twister state vector */ + + DB_CIPHER *crypto_handle; /* Crypto handle */ + DB_LOCKTAB *lk_handle; /* Lock handle */ + DB_LOG *lg_handle; /* Log handle */ + DB_MPOOL *mp_handle; /* Mpool handle */ + DB_MUTEXMGR *mutex_handle; /* Mutex handle */ + DB_REP *rep_handle; /* Replication handle */ + DB_TXNMGR *tx_handle; /* Txn handle */ + + /* Application callback to copy data to/from a custom data source */ +#define DB_USERCOPY_GETDATA 0x0001 +#define DB_USERCOPY_SETDATA 0x0002 + int (*dbt_usercopy) + __P((DBT *, u_int32_t, void *, u_int32_t, u_int32_t)); + + REGINFO *reginfo; /* REGINFO structure reference */ + +#define DB_TEST_ELECTINIT 1 /* after __rep_elect_init */ +#define DB_TEST_ELECTVOTE1 2 /* after sending VOTE1 */ +#define DB_TEST_POSTDESTROY 3 /* after destroy op */ +#define DB_TEST_POSTLOG 4 /* after logging all pages */ +#define DB_TEST_POSTLOGMETA 5 /* after logging meta in btree */ +#define DB_TEST_POSTOPEN 6 /* after __os_open */ +#define DB_TEST_POSTSYNC 7 /* after syncing the log */ +#define DB_TEST_PREDESTROY 8 /* before destroy op */ +#define DB_TEST_PREOPEN 9 /* before __os_open */ +#define DB_TEST_SUBDB_LOCKS 10 /* subdb locking tests */ + int test_abort; /* Abort value for testing */ + int test_check; /* Checkpoint value for testing */ + int test_copy; /* Copy value for testing */ + +#define ENV_CDB 0x00000001 /* DB_INIT_CDB */ +#define ENV_DBLOCAL 0x00000002 /* Environment for a private DB */ +#define ENV_LITTLEENDIAN 0x00000004 /* Little endian system. */ +#define ENV_LOCKDOWN 0x00000008 /* DB_LOCKDOWN set */ +#define ENV_NO_OUTPUT_SET 0x00000010 /* No output channel set */ +#define ENV_OPEN_CALLED 0x00000020 /* DB_ENV->open called */ +#define ENV_PRIVATE 0x00000040 /* DB_PRIVATE set */ +#define ENV_RECOVER_FATAL 0x00000080 /* Doing fatal recovery in env */ +#define ENV_REF_COUNTED 0x00000100 /* Region references this handle */ +#define ENV_SYSTEM_MEM 0x00000200 /* DB_SYSTEM_MEM set */ +#define ENV_THREAD 0x00000400 /* DB_THREAD set */ + u_int32_t flags; +}; + +/******************************************************* + * Database Access Methods. + *******************************************************/ +/* + * DB_IS_THREADED -- + * The database handle is free-threaded (was opened with DB_THREAD). + */ +#define DB_IS_THREADED(dbp) \ + ((dbp)->mutex != MUTEX_INVALID) + +/* Initialization methods are often illegal before/after open is called. */ +#define DB_ILLEGAL_AFTER_OPEN(dbp, name) \ + if (F_ISSET((dbp), DB_AM_OPEN_CALLED)) \ + return (__db_mi_open((dbp)->env, name, 1)); +#define DB_ILLEGAL_BEFORE_OPEN(dbp, name) \ + if (!F_ISSET((dbp), DB_AM_OPEN_CALLED)) \ + return (__db_mi_open((dbp)->env, name, 0)); +/* Some initialization methods are illegal if environment isn't local. */ +#define DB_ILLEGAL_IN_ENV(dbp, name) \ + if (!F_ISSET((dbp)->env, ENV_DBLOCAL)) \ + return (__db_mi_env((dbp)->env, name)); +#define DB_ILLEGAL_METHOD(dbp, flags) { \ + int __ret; \ + if ((__ret = __dbh_am_chk(dbp, flags)) != 0) \ + return (__ret); \ +} + +/* + * Common DBC->internal fields. Each access method adds additional fields + * to this list, but the initial fields are common. + */ +#define __DBC_INTERNAL \ + DBC *opd; /* Off-page duplicate cursor. */\ + DBC *pdbc; /* Pointer to parent cursor. */ \ + \ + void *page; /* Referenced page. */ \ + u_int32_t part; /* Partition number. */ \ + db_pgno_t root; /* Tree root. */ \ + db_pgno_t pgno; /* Referenced page number. */ \ + db_indx_t indx; /* Referenced key item index. */\ + \ + /* Streaming -- cache last position. */ \ + db_pgno_t stream_start_pgno; /* Last start pgno. */ \ + u_int32_t stream_off; /* Current offset. */ \ + db_pgno_t stream_curr_pgno; /* Current overflow page. */ \ + \ + DB_LOCK lock; /* Cursor lock. */ \ + db_lockmode_t lock_mode; /* Lock mode. */ + +struct __dbc_internal { + __DBC_INTERNAL +}; + +/* Actions that __db_master_update can take. */ +typedef enum { MU_REMOVE, MU_RENAME, MU_OPEN } mu_action; + +/* + * Access-method-common macro for determining whether a cursor + * has been initialized. + */ +#ifdef HAVE_PARTITION +#define IS_INITIALIZED(dbc) (DB_IS_PARTITIONED((dbc)->dbp) ? \ + ((PART_CURSOR *)(dbc)->internal)->sub_cursor != NULL && \ + ((PART_CURSOR *)(dbc)->internal)->sub_cursor-> \ + internal->pgno != PGNO_INVALID : \ + (dbc)->internal->pgno != PGNO_INVALID) +#else +#define IS_INITIALIZED(dbc) ((dbc)->internal->pgno != PGNO_INVALID) +#endif + +/* Free the callback-allocated buffer, if necessary, hanging off of a DBT. */ +#define FREE_IF_NEEDED(env, dbt) \ + if (F_ISSET((dbt), DB_DBT_APPMALLOC)) { \ + __os_ufree((env), (dbt)->data); \ + F_CLR((dbt), DB_DBT_APPMALLOC); \ + } + +/* + * Use memory belonging to object "owner" to return the results of + * any no-DBT-flag get ops on cursor "dbc". + */ +#define SET_RET_MEM(dbc, owner) \ + do { \ + (dbc)->rskey = &(owner)->my_rskey; \ + (dbc)->rkey = &(owner)->my_rkey; \ + (dbc)->rdata = &(owner)->my_rdata; \ + } while (0) + +/* Use the return-data memory src is currently set to use in dest as well. */ +#define COPY_RET_MEM(src, dest) \ + do { \ + (dest)->rskey = (src)->rskey; \ + (dest)->rkey = (src)->rkey; \ + (dest)->rdata = (src)->rdata; \ + } while (0) + +/* Reset the returned-memory pointers to their defaults. */ +#define RESET_RET_MEM(dbc) \ + do { \ + (dbc)->rskey = &(dbc)->my_rskey; \ + (dbc)->rkey = &(dbc)->my_rkey; \ + (dbc)->rdata = &(dbc)->my_rdata; \ + } while (0) + +/******************************************************* + * Mpool. + *******************************************************/ +/* + * File types for DB access methods. Negative numbers are reserved to DB. + */ +#define DB_FTYPE_SET -1 /* Call pgin/pgout functions. */ +#define DB_FTYPE_NOTSET 0 /* Don't call... */ +#define DB_LSN_OFF_NOTSET -1 /* Not yet set. */ +#define DB_CLEARLEN_NOTSET UINT32_MAX /* Not yet set. */ + +/* Structure used as the DB pgin/pgout pgcookie. */ +typedef struct __dbpginfo { + size_t db_pagesize; /* Underlying page size. */ + u_int32_t flags; /* Some DB_AM flags needed. */ + DBTYPE type; /* DB type */ +} DB_PGINFO; + +/******************************************************* + * Log. + *******************************************************/ +/* Initialize an LSN to 'zero'. */ +#define ZERO_LSN(LSN) do { \ + (LSN).file = 0; \ + (LSN).offset = 0; \ +} while (0) +#define IS_ZERO_LSN(LSN) ((LSN).file == 0 && (LSN).offset == 0) + +#define IS_INIT_LSN(LSN) ((LSN).file == 1 && (LSN).offset == 0) +#define INIT_LSN(LSN) do { \ + (LSN).file = 1; \ + (LSN).offset = 0; \ +} while (0) + +#define MAX_LSN(LSN) do { \ + (LSN).file = UINT32_MAX; \ + (LSN).offset = UINT32_MAX; \ +} while (0) +#define IS_MAX_LSN(LSN) \ + ((LSN).file == UINT32_MAX && (LSN).offset == UINT32_MAX) + +/* If logging is turned off, smash the lsn. */ +#define LSN_NOT_LOGGED(LSN) do { \ + (LSN).file = 0; \ + (LSN).offset = 1; \ +} while (0) +#define IS_NOT_LOGGED_LSN(LSN) \ + ((LSN).file == 0 && (LSN).offset == 1) + +/* + * LOG_COMPARE -- compare two LSNs. + */ + +#define LOG_COMPARE(lsn0, lsn1) \ + ((lsn0)->file != (lsn1)->file ? \ + ((lsn0)->file < (lsn1)->file ? -1 : 1) : \ + ((lsn0)->offset != (lsn1)->offset ? \ + ((lsn0)->offset < (lsn1)->offset ? -1 : 1) : 0)) + +/******************************************************* + * Txn. + *******************************************************/ +#define DB_NONBLOCK(C) ((C)->txn != NULL && F_ISSET((C)->txn, TXN_NOWAIT)) +#define NOWAIT_FLAG(txn) \ + ((txn) != NULL && F_ISSET((txn), TXN_NOWAIT) ? DB_LOCK_NOWAIT : 0) +#define IS_REAL_TXN(txn) \ + ((txn) != NULL && !F_ISSET(txn, TXN_CDSGROUP)) +#define IS_SUBTRANSACTION(txn) \ + ((txn) != NULL && (txn)->parent != NULL) + +/******************************************************* + * Crypto. + *******************************************************/ +#define DB_IV_BYTES 16 /* Bytes per IV */ +#define DB_MAC_KEY 20 /* Bytes per MAC checksum */ + +/******************************************************* + * Compression + *******************************************************/ +#define CMP_INT_SPARE_VAL 0xFC /* Smallest byte value that the integer + compression algorithm doesn't use */ + +/******************************************************* + * Secondaries over RPC. + *******************************************************/ +#ifdef CONFIG_TEST +/* + * These are flags passed to DB->associate calls by the Tcl API if running + * over RPC. The RPC server will mask out these flags before making the real + * DB->associate call. + * + * These flags must coexist with the valid flags to DB->associate (currently + * DB_AUTO_COMMIT and DB_CREATE). DB_AUTO_COMMIT is in the group of + * high-order shared flags (0xff000000), and DB_CREATE is in the low-order + * group (0x00000fff), so we pick a range in between. + */ +#define DB_RPC2ND_MASK 0x00f00000 /* Reserved bits. */ + +#define DB_RPC2ND_REVERSEDATA 0x00100000 /* callback_n(0) _s_reversedata. */ +#define DB_RPC2ND_NOOP 0x00200000 /* callback_n(1) _s_noop */ +#define DB_RPC2ND_CONCATKEYDATA 0x00300000 /* callback_n(2) _s_concatkeydata */ +#define DB_RPC2ND_CONCATDATAKEY 0x00400000 /* callback_n(3) _s_concatdatakey */ +#define DB_RPC2ND_REVERSECONCAT 0x00500000 /* callback_n(4) _s_reverseconcat */ +#define DB_RPC2ND_TRUNCDATA 0x00600000 /* callback_n(5) _s_truncdata */ +#define DB_RPC2ND_CONSTANT 0x00700000 /* callback_n(6) _s_constant */ +#define DB_RPC2ND_GETZIP 0x00800000 /* sj_getzip */ +#define DB_RPC2ND_GETNAME 0x00900000 /* sj_getname */ +#endif + +#if defined(__cplusplus) +} +#endif + +/******************************************************* + * Remaining general DB includes. + *******************************************************/ + + +#include "dbinc/globals.h" +#include "dbinc/clock.h" +#include "dbinc/debug.h" +#include "dbinc/region.h" +#include "dbinc_auto/env_ext.h" +#include "dbinc/mutex.h" +#ifdef HAVE_REPLICATION_THREADS +#include "dbinc/repmgr.h" +#endif +#include "dbinc/rep.h" +#include "dbinc/os.h" +#include "dbinc_auto/clib_ext.h" +#include "dbinc_auto/common_ext.h" + +/******************************************************* + * Remaining Log. + * These need to be defined after the general includes + * because they need rep.h from above. + *******************************************************/ +/* + * Test if the environment is currently logging changes. If we're in recovery + * or we're a replication client, we don't need to log changes because they're + * already in the log, even though we have a fully functional log system. + */ +#define DBENV_LOGGING(env) \ + (LOGGING_ON(env) && !IS_REP_CLIENT(env) && (!IS_RECOVERING(env))) + +/* + * Test if we need to log a change. By default, we don't log operations without + * associated transactions, unless DIAGNOSTIC, DEBUG_ROP or DEBUG_WOP are on. + * This is because we want to get log records for read/write operations, and, if + * we are trying to debug something, more information is always better. + * + * The DBC_RECOVER flag is set when we're in abort, as well as during recovery; + * thus DBC_LOGGING may be false for a particular dbc even when DBENV_LOGGING + * is true. + * + * We explicitly use LOGGING_ON/IS_REP_CLIENT here because we don't want to pull + * in the log headers, which IS_RECOVERING (and thus DBENV_LOGGING) rely on, and + * because DBC_RECOVER should be set anytime IS_RECOVERING would be true. + * + * If we're not in recovery (master - doing an abort or a client applying + * a txn), then a client's only path through here is on an internal + * operation, and a master's only path through here is a transactional + * operation. Detect if either is not the case. + */ +#if defined(DIAGNOSTIC) || defined(DEBUG_ROP) || defined(DEBUG_WOP) +#define DBC_LOGGING(dbc) __dbc_logging(dbc) +#else +#define DBC_LOGGING(dbc) \ + ((dbc)->txn != NULL && LOGGING_ON((dbc)->env) && \ + !F_ISSET((dbc), DBC_RECOVER) && !IS_REP_CLIENT((dbc)->env)) +#endif + +#endif /* !_DB_INT_H_ */ diff --git a/build_windows/db_java.dsp b/build_windows/db_java.dsp new file mode 100644 index 0000000..ffcd4b8 --- /dev/null +++ b/build_windows/db_java.dsp @@ -0,0 +1,127 @@ +# Microsoft Developer Studio Project File - Name="db_java" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
+
+CFG=db_java - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "db_java.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "db_java.mak" CFG="db_java - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "db_java - Win32 Release x86" (based on "Win32 (x86) Dynamic-Link Library")
+!MESSAGE "db_java - Win32 Debug x86" (based on "Win32 (x86) Dynamic-Link Library")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+MTL=midl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "db_java - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32/Release"
+# PROP BASE Intermediate_Dir "Win32/Release/db_java"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32/Release"
+# PROP Intermediate_Dir "Win32/Release/db_java"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /MD /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /Ob2 /I "." /I ".." /D "UNICODE" /D "_UNICODE" /D "DB_CREATE_DLL" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
+# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 libdb48.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:windows /dll /machine:I386
+# ADD LINK32 libdb48.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /base:"0x13000000" /subsystem:windows /dll /machine:I386 /out:"Win32/Release/libdb_java48.dll" /libpath:"$(OUTDIR)"
+# Begin Custom Build - Compiling java files using javac
+ProjDir=.
+
+"force_compilation.txt" : "$(INTDIR)"
+ echo compiling Berkeley DB classes
+ mkdir "$(INTDIR)\classes"
+ javac -g -d "$(INTDIR)\classes" -classpath "$(INTDIR)\classes" ..\java\src\com\sleepycat\db\*.java ..\java\src\com\sleepycat\db\internal\*.java ..\java\src\com\sleepycat\asm\*.java ..\java\src\com\sleepycat\bind\*.java ..\java\src\com\sleepycat\bind\serial\*.java ..\java\src\com\sleepycat\bind\tuple\*.java ..\java\src\com\sleepycat\collections\*.java ..\java\src\com\sleepycat\compat\*.java ..\java\src\com\sleepycat\persist\*.java ..\java\src\com\sleepycat\persist\evolve\*.java ..\java\src\com\sleepycat\persist\impl\*.java ..\java\src\com\sleepycat\persist\model\*.java ..\java\src\com\sleepycat\persist\raw\*.java ..\java\src\com\sleepycat\util\*.java ..\java\src\com\sleepycat\util\keyrange\*.java
+ echo compiling examples
+ mkdir "$(INTDIR)\classes.ex"
+ javac -g -d "$(INTDIR)\classes.ex" -classpath "$(INTDIR)\classes;$(INTDIR)\classes.ex" ..\examples_java\src\db\*.java ..\examples_java\src\db\GettingStarted\*.java ..\examples_java\src\db\repquote\*.java ..\examples_java\src\collections\access\*.java ..\examples_java\src\collections\hello\*.java ..\examples_java\src\collections\ship\basic\*.java ..\examples_java\src\collections\ship\entity\*.java ..\examples_java\src\collections\ship\tuple\*.java ..\examples_java\src\collections\ship\sentity\*.java ..\examples_java\src\collections\ship\marshal\*.java ..\examples_java\src\collections\ship\factory\*.java ..\examples_java\src\persist\*.java ..\examples_java\src\persist\gettingStarted\*.java ..\examples_java\src\persist\txn\*.java
+ echo creating jar files
+ jar cf "$(OUTDIR)/db.jar" -C "$(INTDIR)\classes" .
+ jar cf "$(OUTDIR)/dbexamples.jar" -C "$(INTDIR)\classes.ex" .
+ echo Java build finished
+# End Custom Build
+
+!ELSEIF "$(CFG)" == "db_java - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32/Debug"
+# PROP BASE Intermediate_Dir "Win32/Debug/db_java"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32/Debug"
+# PROP Intermediate_Dir "Win32/Debug/db_java"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "UNICODE" /D "_UNICODE" /D "DB_CREATE_DLL" /D "DIAGNOSTIC" /D "CONFIG_TEST" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# SUBTRACT CPP /Fr
+# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
+# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 libdb48d.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:windows /dll /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 libdb48d.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /base:"0x13000000" /subsystem:windows /dll /export:__db_assert /pdb:none /debug /machine:I386 /out:"Win32/Debug/libdb_java48d.dll" /fixed:no /libpath:"$(OUTDIR)"
+# Begin Custom Build - Compiling java files using javac
+ProjDir=.
+
+"force_compilation.txt" : "$(INTDIR)"
+ echo compiling Berkeley DB classes
+ mkdir "$(INTDIR)\classes"
+ javac -g -d "$(INTDIR)\classes" -classpath "$(INTDIR)\classes" ..\java\src\com\sleepycat\db\*.java ..\java\src\com\sleepycat\db\internal\*.java ..\java\src\com\sleepycat\asm\*.java ..\java\src\com\sleepycat\bind\*.java ..\java\src\com\sleepycat\bind\serial\*.java ..\java\src\com\sleepycat\bind\tuple\*.java ..\java\src\com\sleepycat\collections\*.java ..\java\src\com\sleepycat\compat\*.java ..\java\src\com\sleepycat\persist\*.java ..\java\src\com\sleepycat\persist\evolve\*.java ..\java\src\com\sleepycat\persist\impl\*.java ..\java\src\com\sleepycat\persist\model\*.java ..\java\src\com\sleepycat\persist\raw\*.java ..\java\src\com\sleepycat\util\*.java ..\java\src\com\sleepycat\util\keyrange\*.java
+ echo compiling examples
+ mkdir "$(INTDIR)\classes.ex"
+ javac -g -d "$(INTDIR)\classes.ex" -classpath "$(INTDIR)\classes;$(INTDIR)\classes.ex" ..\examples_java\src\db\*.java ..\examples_java\src\db\GettingStarted\*.java ..\examples_java\src\db\repquote\*.java ..\examples_java\src\collections\access\*.java ..\examples_java\src\collections\hello\*.java ..\examples_java\src\collections\ship\basic\*.java ..\examples_java\src\collections\ship\entity\*.java ..\examples_java\src\collections\ship\tuple\*.java ..\examples_java\src\collections\ship\sentity\*.java ..\examples_java\src\collections\ship\marshal\*.java ..\examples_java\src\collections\ship\factory\*.java ..\examples_java\src\persist\*.java ..\examples_java\src\persist\gettingStarted\*.java ..\examples_java\src\persist\txn\*.java
+ echo creating jar files
+ jar cf "$(OUTDIR)/db.jar" -C "$(INTDIR)\classes" .
+ jar cf "$(OUTDIR)/dbexamples.jar" -C "$(INTDIR)\classes.ex" .
+ echo Java build finished
+# End Custom Build
+
+!ENDIF
+
+# Begin Target
+
+# Name "db_java - Win32 Release x86"
+# Name "db_java - Win32 Debug x86"
+# Begin Source File
+
+SOURCE=..\libdb_java\db_java_wrap.c
+# End Source File
+
+# End Target
+# End Project
diff --git a/build_windows/db_java.dsp.postbuild b/build_windows/db_java.dsp.postbuild new file mode 100644 index 0000000..7169b21 --- /dev/null +++ b/build_windows/db_java.dsp.postbuild @@ -0,0 +1,15 @@ +# Begin Custom Build - Compiling java files using javac
+ProjDir=.
+
+"force_compilation.txt" : "$(INTDIR)"
+ echo compiling Berkeley DB classes
+ mkdir "$(INTDIR)\classes"
+ javac -g -d "$(INTDIR)\classes" -classpath "$(INTDIR)\classes" ..\java\src\com\sleepycat\db\*.java ..\java\src\com\sleepycat\db\internal\*.java ..\java\src\com\sleepycat\asm\*.java ..\java\src\com\sleepycat\bind\*.java ..\java\src\com\sleepycat\bind\serial\*.java ..\java\src\com\sleepycat\bind\tuple\*.java ..\java\src\com\sleepycat\collections\*.java ..\java\src\com\sleepycat\compat\*.java ..\java\src\com\sleepycat\persist\*.java ..\java\src\com\sleepycat\persist\evolve\*.java ..\java\src\com\sleepycat\persist\impl\*.java ..\java\src\com\sleepycat\persist\model\*.java ..\java\src\com\sleepycat\persist\raw\*.java ..\java\src\com\sleepycat\util\*.java ..\java\src\com\sleepycat\util\keyrange\*.java
+ echo compiling examples
+ mkdir "$(INTDIR)\classes.ex"
+ javac -g -d "$(INTDIR)\classes.ex" -classpath "$(INTDIR)\classes;$(INTDIR)\classes.ex" ..\examples_java\src\db\*.java ..\examples_java\src\db\GettingStarted\*.java ..\examples_java\src\db\repquote\*.java ..\examples_java\src\collections\access\*.java ..\examples_java\src\collections\hello\*.java ..\examples_java\src\collections\ship\basic\*.java ..\examples_java\src\collections\ship\entity\*.java ..\examples_java\src\collections\ship\tuple\*.java ..\examples_java\src\collections\ship\sentity\*.java ..\examples_java\src\collections\ship\marshal\*.java ..\examples_java\src\collections\ship\factory\*.java ..\examples_java\src\persist\*.java ..\examples_java\src\persist\gettingStarted\*.java ..\examples_java\src\persist\txn\*.java
+ echo creating jar files
+ jar cf "$(OUTDIR)/db.jar" -C "$(INTDIR)\classes" .
+ jar cf "$(OUTDIR)/dbexamples.jar" -C "$(INTDIR)\classes.ex" .
+ echo Java build finished
+# End Custom Build
diff --git a/build_windows/db_java.vcproj b/build_windows/db_java.vcproj new file mode 100644 index 0000000..eb16df7 --- /dev/null +++ b/build_windows/db_java.vcproj @@ -0,0 +1,80 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="db_java" ProjectGUID="{0052E828-5F10-4973-8729-50B0C5598702}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_java" ConfigurationType="2" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;DB_CREATE_DLL;_UNICODE;UNICODE;_USRDLL" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_java.pch" AssemblerListingLocation="$(OutDir)/db_java/" ObjectFile="$(OutDir)/db_java/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/libdb_java48d.dll" ProgramDatabaseFile="$(OutDir)/libdb_java48d.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" ImportLibrary="$(OutDir)/libdb_java48d.lib" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool" CommandLine="
echo compiling Berkeley DB Java classes 
mkdir "./$(OutDir)/classes/" 
javac -g -d "$(OutDir)\classes" -classpath "$(OutDir)\classes" ..\java\src\com\sleepycat\db\*.java ..\java\src\com\sleepycat\db\internal\*.java ..\java\src\com\sleepycat\asm\*.java ..\java\src\com\sleepycat\bind\*.java ..\java\src\com\sleepycat\bind\serial\*.java ..\java\src\com\sleepycat\bind\tuple\*.java ..\java\src\com\sleepycat\collections\*.java ..\java\src\com\sleepycat\compat\*.java ..\java\src\com\sleepycat\persist\*.java ..\java\src\com\sleepycat\persist\evolve\*.java ..\java\src\com\sleepycat\persist\impl\*.java ..\java\src\com\sleepycat\persist\model\*.java ..\java\src\com\sleepycat\persist\raw\*.java ..\java\src\com\sleepycat\util\*.java ..\java\src\com\sleepycat\util\keyrange\*.java 
echo compiling examples
mkdir "$(OutDir)\classes.ex"
javac -g -d "$(OutDir)\classes.ex" -classpath "$(OutDir)\classes;$(OutDir)\classes.ex" ..\examples_java\src\db\*.java ..\examples_java\src\db\GettingStarted\*.java ..\examples_java\src\db\repquote\*.java ..\examples_java\src\collections\access\*.java ..\examples_java\src\collections\hello\*.java ..\examples_java\src\collections\ship\basic\*.java ..\examples_java\src\collections\ship\entity\*.java ..\examples_java\src\collections\ship\tuple\*.java ..\examples_java\src\collections\ship\sentity\*.java ..\examples_java\src\collections\ship\marshal\*.java ..\examples_java\src\collections\ship\factory\*.java ..\examples_java\src\persist\*.java ..\examples_java\src\persist\gettingStarted\*.java ..\examples_java\src\persist\txn\*.java
echo creating jar files
jar cf "$(OutDir)/db.jar" -C "$(OutDir)\classes" .
jar cf "$(OutDir)/dbexamples.jar" -C "$(OutDir)\classes.ex" .
echo Java build finished" Outputs="force_compilation.txt"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_java" ConfigurationType="2" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;DB_CREATE_DLL;_UNICODE;UNICODE;_USRDLL" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_java.pch" AssemblerListingLocation="$(OutDir)/db_java/" ObjectFile="$(OutDir)/db_java/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/libdb_java48.dll" ProgramDatabaseFile="$(OutDir)/libdb_java48.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" ImportLibrary="$(OutDir)/libdb_java48.lib" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool" CommandLine="
echo compiling Berkeley DB Java classes 
mkdir "./$(OutDir)/classes/" 
javac -g -d "$(OutDir)\classes" -classpath "$(OutDir)\classes" ..\java\src\com\sleepycat\db\*.java ..\java\src\com\sleepycat\db\internal\*.java ..\java\src\com\sleepycat\asm\*.java ..\java\src\com\sleepycat\bind\*.java ..\java\src\com\sleepycat\bind\serial\*.java ..\java\src\com\sleepycat\bind\tuple\*.java ..\java\src\com\sleepycat\collections\*.java ..\java\src\com\sleepycat\compat\*.java ..\java\src\com\sleepycat\persist\*.java ..\java\src\com\sleepycat\persist\evolve\*.java ..\java\src\com\sleepycat\persist\impl\*.java ..\java\src\com\sleepycat\persist\model\*.java ..\java\src\com\sleepycat\persist\raw\*.java ..\java\src\com\sleepycat\util\*.java ..\java\src\com\sleepycat\util\keyrange\*.java 
echo compiling examples
mkdir "$(OutDir)\classes.ex"
javac -g -d "$(OutDir)\classes.ex" -classpath "$(OutDir)\classes;$(OutDir)\classes.ex" ..\examples_java\src\db\*.java ..\examples_java\src\db\GettingStarted\*.java ..\examples_java\src\db\repquote\*.java ..\examples_java\src\collections\access\*.java ..\examples_java\src\collections\hello\*.java ..\examples_java\src\collections\ship\basic\*.java ..\examples_java\src\collections\ship\entity\*.java ..\examples_java\src\collections\ship\tuple\*.java ..\examples_java\src\collections\ship\sentity\*.java ..\examples_java\src\collections\ship\marshal\*.java ..\examples_java\src\collections\ship\factory\*.java ..\examples_java\src\persist\*.java ..\examples_java\src\persist\gettingStarted\*.java ..\examples_java\src\persist\txn\*.java
echo creating jar files
jar cf "$(OutDir)/db.jar" -C "$(OutDir)\classes" .
jar cf "$(OutDir)/dbexamples.jar" -C "$(OutDir)\classes.ex" .
echo Java build finished" Outputs="force_compilation.txt"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_java" ConfigurationType="2" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;DB_CREATE_DLL;_UNICODE;UNICODE;_USRDLL" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_java.pch" AssemblerListingLocation="$(OutDir)/db_java/" ObjectFile="$(OutDir)/db_java/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/libdb_java48d.dll" ProgramDatabaseFile="$(OutDir)/libdb_java48d.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" ImportLibrary="$(OutDir)/libdb_java48d.lib" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool" CommandLine="
echo compiling Berkeley DB Java classes 
mkdir "./$(OutDir)/classes/" 
javac -g -d "$(OutDir)\classes" -classpath "$(OutDir)\classes" ..\java\src\com\sleepycat\db\*.java ..\java\src\com\sleepycat\db\internal\*.java ..\java\src\com\sleepycat\asm\*.java ..\java\src\com\sleepycat\bind\*.java ..\java\src\com\sleepycat\bind\serial\*.java ..\java\src\com\sleepycat\bind\tuple\*.java ..\java\src\com\sleepycat\collections\*.java ..\java\src\com\sleepycat\compat\*.java ..\java\src\com\sleepycat\persist\*.java ..\java\src\com\sleepycat\persist\evolve\*.java ..\java\src\com\sleepycat\persist\impl\*.java ..\java\src\com\sleepycat\persist\model\*.java ..\java\src\com\sleepycat\persist\raw\*.java ..\java\src\com\sleepycat\util\*.java ..\java\src\com\sleepycat\util\keyrange\*.java 
echo compiling examples
mkdir "$(OutDir)\classes.ex"
javac -g -d "$(OutDir)\classes.ex" -classpath "$(OutDir)\classes;$(OutDir)\classes.ex" ..\examples_java\src\db\*.java ..\examples_java\src\db\GettingStarted\*.java ..\examples_java\src\db\repquote\*.java ..\examples_java\src\collections\access\*.java ..\examples_java\src\collections\hello\*.java ..\examples_java\src\collections\ship\basic\*.java ..\examples_java\src\collections\ship\entity\*.java ..\examples_java\src\collections\ship\tuple\*.java ..\examples_java\src\collections\ship\sentity\*.java ..\examples_java\src\collections\ship\marshal\*.java ..\examples_java\src\collections\ship\factory\*.java ..\examples_java\src\persist\*.java ..\examples_java\src\persist\gettingStarted\*.java ..\examples_java\src\persist\txn\*.java
echo creating jar files
jar cf "$(OutDir)/db.jar" -C "$(OutDir)\classes" .
jar cf "$(OutDir)/dbexamples.jar" -C "$(OutDir)\classes.ex" .
echo Java build finished" Outputs="force_compilation.txt"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_java" ConfigurationType="2" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;DB_CREATE_DLL;_UNICODE;UNICODE;_USRDLL" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_java.pch" AssemblerListingLocation="$(OutDir)/db_java/" ObjectFile="$(OutDir)/db_java/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/libdb_java48.dll" ProgramDatabaseFile="$(OutDir)/libdb_java48.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" ImportLibrary="$(OutDir)/libdb_java48.lib" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool" CommandLine="
echo compiling Berkeley DB Java classes 
mkdir "./$(OutDir)/classes/" 
javac -g -d "$(OutDir)\classes" -classpath "$(OutDir)\classes" ..\java\src\com\sleepycat\db\*.java ..\java\src\com\sleepycat\db\internal\*.java ..\java\src\com\sleepycat\asm\*.java ..\java\src\com\sleepycat\bind\*.java ..\java\src\com\sleepycat\bind\serial\*.java ..\java\src\com\sleepycat\bind\tuple\*.java ..\java\src\com\sleepycat\collections\*.java ..\java\src\com\sleepycat\compat\*.java ..\java\src\com\sleepycat\persist\*.java ..\java\src\com\sleepycat\persist\evolve\*.java ..\java\src\com\sleepycat\persist\impl\*.java ..\java\src\com\sleepycat\persist\model\*.java ..\java\src\com\sleepycat\persist\raw\*.java ..\java\src\com\sleepycat\util\*.java ..\java\src\com\sleepycat\util\keyrange\*.java 
echo compiling examples
mkdir "$(OutDir)\classes.ex"
javac -g -d "$(OutDir)\classes.ex" -classpath "$(OutDir)\classes;$(OutDir)\classes.ex" ..\examples_java\src\db\*.java ..\examples_java\src\db\GettingStarted\*.java ..\examples_java\src\db\repquote\*.java ..\examples_java\src\collections\access\*.java ..\examples_java\src\collections\hello\*.java ..\examples_java\src\collections\ship\basic\*.java ..\examples_java\src\collections\ship\entity\*.java ..\examples_java\src\collections\ship\tuple\*.java ..\examples_java\src\collections\ship\sentity\*.java ..\examples_java\src\collections\ship\marshal\*.java ..\examples_java\src\collections\ship\factory\*.java ..\examples_java\src\persist\*.java ..\examples_java\src\persist\gettingStarted\*.java ..\examples_java\src\persist\txn\*.java
echo creating jar files
jar cf "$(OutDir)/db.jar" -C "$(OutDir)\classes" .
jar cf "$(OutDir)/dbexamples.jar" -C "$(OutDir)\classes.ex" .
echo Java build finished" Outputs="force_compilation.txt"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_java" ConfigurationType="2" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;DB_CREATE_DLL;_UNICODE;UNICODE;_USRDLL" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_java.pch" AssemblerListingLocation="$(OutDir)/db_java/" ObjectFile="$(OutDir)/db_java/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/libdb_java48d.dll" ProgramDatabaseFile="$(OutDir)/libdb_java48d.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" ImportLibrary="$(OutDir)/libdb_java48d.lib" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool" CommandLine="
echo compiling Berkeley DB Java classes 
mkdir "./$(OutDir)/classes/" 
javac -g -d "$(OutDir)\classes" -classpath "$(OutDir)\classes" ..\java\src\com\sleepycat\db\*.java ..\java\src\com\sleepycat\db\internal\*.java ..\java\src\com\sleepycat\asm\*.java ..\java\src\com\sleepycat\bind\*.java ..\java\src\com\sleepycat\bind\serial\*.java ..\java\src\com\sleepycat\bind\tuple\*.java ..\java\src\com\sleepycat\collections\*.java ..\java\src\com\sleepycat\compat\*.java ..\java\src\com\sleepycat\persist\*.java ..\java\src\com\sleepycat\persist\evolve\*.java ..\java\src\com\sleepycat\persist\impl\*.java ..\java\src\com\sleepycat\persist\model\*.java ..\java\src\com\sleepycat\persist\raw\*.java ..\java\src\com\sleepycat\util\*.java ..\java\src\com\sleepycat\util\keyrange\*.java 
echo compiling examples
mkdir "$(OutDir)\classes.ex"
javac -g -d "$(OutDir)\classes.ex" -classpath "$(OutDir)\classes;$(OutDir)\classes.ex" ..\examples_java\src\db\*.java ..\examples_java\src\db\GettingStarted\*.java ..\examples_java\src\db\repquote\*.java ..\examples_java\src\collections\access\*.java ..\examples_java\src\collections\hello\*.java ..\examples_java\src\collections\ship\basic\*.java ..\examples_java\src\collections\ship\entity\*.java ..\examples_java\src\collections\ship\tuple\*.java ..\examples_java\src\collections\ship\sentity\*.java ..\examples_java\src\collections\ship\marshal\*.java ..\examples_java\src\collections\ship\factory\*.java ..\examples_java\src\persist\*.java ..\examples_java\src\persist\gettingStarted\*.java ..\examples_java\src\persist\txn\*.java
echo creating jar files
jar cf "$(OutDir)/db.jar" -C "$(OutDir)\classes" .
jar cf "$(OutDir)/dbexamples.jar" -C "$(OutDir)\classes.ex" .
echo Java build finished" Outputs="force_compilation.txt"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_java" ConfigurationType="2" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;DB_CREATE_DLL;_UNICODE;UNICODE;_USRDLL" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_java.pch" AssemblerListingLocation="$(OutDir)/db_java/" ObjectFile="$(OutDir)/db_java/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/libdb_java48.dll" ProgramDatabaseFile="$(OutDir)/libdb_java48.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" ImportLibrary="$(OutDir)/libdb_java48.lib" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool" CommandLine="
echo compiling Berkeley DB Java classes 
mkdir "./$(OutDir)/classes/" 
javac -g -d "$(OutDir)\classes" -classpath "$(OutDir)\classes" ..\java\src\com\sleepycat\db\*.java ..\java\src\com\sleepycat\db\internal\*.java ..\java\src\com\sleepycat\asm\*.java ..\java\src\com\sleepycat\bind\*.java ..\java\src\com\sleepycat\bind\serial\*.java ..\java\src\com\sleepycat\bind\tuple\*.java ..\java\src\com\sleepycat\collections\*.java ..\java\src\com\sleepycat\compat\*.java ..\java\src\com\sleepycat\persist\*.java ..\java\src\com\sleepycat\persist\evolve\*.java ..\java\src\com\sleepycat\persist\impl\*.java ..\java\src\com\sleepycat\persist\model\*.java ..\java\src\com\sleepycat\persist\raw\*.java ..\java\src\com\sleepycat\util\*.java ..\java\src\com\sleepycat\util\keyrange\*.java 
echo compiling examples
mkdir "$(OutDir)\classes.ex"
javac -g -d "$(OutDir)\classes.ex" -classpath "$(OutDir)\classes;$(OutDir)\classes.ex" ..\examples_java\src\db\*.java ..\examples_java\src\db\GettingStarted\*.java ..\examples_java\src\db\repquote\*.java ..\examples_java\src\collections\access\*.java ..\examples_java\src\collections\hello\*.java ..\examples_java\src\collections\ship\basic\*.java ..\examples_java\src\collections\ship\entity\*.java ..\examples_java\src\collections\ship\tuple\*.java ..\examples_java\src\collections\ship\sentity\*.java ..\examples_java\src\collections\ship\marshal\*.java ..\examples_java\src\collections\ship\factory\*.java ..\examples_java\src\persist\*.java ..\examples_java\src\persist\gettingStarted\*.java ..\examples_java\src\persist\txn\*.java
echo creating jar files
jar cf "$(OutDir)/db.jar" -C "$(OutDir)\classes" .
jar cf "$(OutDir)/dbexamples.jar" -C "$(OutDir)\classes.ex" .
echo Java build finished" Outputs="force_compilation.txt"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\libdb_java\db_java_wrap.c"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/db_java_xa.dsp b/build_windows/db_java_xa.dsp new file mode 100644 index 0000000..9c700ff --- /dev/null +++ b/build_windows/db_java_xa.dsp @@ -0,0 +1,85 @@ +# Microsoft Developer Studio Project File - Name="db_java_xa" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) External Target" 0x0106
+
+CFG=db_java_xa - Win32 Debug
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "db_java_xa.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "db_java_xa.mak" CFG="db_java_xa - Win32 Debug"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "db_java_xa - Win32 Release" (based on "Win32 (x86) External Target")
+!MESSAGE "db_java_xa - Win32 Debug" (based on "Win32 (x86) External Target")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+
+!IF "$(CFG)" == "db_java_xa - Win32 Release"
+
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Release"
+# PROP BASE Intermediate_Dir "Release"
+# PROP BASE Cmd_Line "NMAKE /f db_java_xaj.mak"
+# PROP BASE Rebuild_Opt "/a"
+# PROP BASE Target_File "db_java_xaj.exe"
+# PROP BASE Bsc_Name "db_java_xaj.bsc"
+# PROP BASE Target_Dir ""
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Release"
+# PROP Intermediate_Dir "Release"
+# PROP Cmd_Line "NMAKE /f db_java_xaj.mak Release/dbxa.jar"
+# PROP Rebuild_Opt "/a"
+# PROP Target_File "Release/dbxa.jar"
+# PROP Bsc_Name ""
+# PROP Target_Dir ""
+
+!ELSEIF "$(CFG)" == "db_java_xa - Win32 Debug"
+
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Debug"
+# PROP BASE Intermediate_Dir "Debug"
+# PROP BASE Cmd_Line "NMAKE /f db_java_xaj.mak"
+# PROP BASE Rebuild_Opt "/a"
+# PROP BASE Target_File "db_java_xaj.exe"
+# PROP BASE Bsc_Name "db_java_xaj.bsc"
+# PROP BASE Target_Dir ""
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Debug"
+# PROP Intermediate_Dir "Debug"
+# PROP Cmd_Line "NMAKE /f db_java_xaj.mak Debug/dbxa.jar"
+# PROP Rebuild_Opt "/a"
+# PROP Target_File "Debug/dbxa.jar"
+# PROP Bsc_Name ""
+# PROP Target_Dir ""
+
+!ENDIF
+
+# Begin Target
+
+# Name "db_java_xa - Win32 Release"
+# Name "db_java_xa - Win32 Debug"
+
+!IF "$(CFG)" == "db_java_xa - Win32 Release"
+
+!ELSEIF "$(CFG)" == "db_java_xa - Win32 Debug"
+
+!ENDIF
+
+# Begin Source File
+
+SOURCE=.\db_java_xaj.mak
+# End Source File
+# End Target
+# End Project
diff --git a/build_windows/db_java_xaj.mak b/build_windows/db_java_xaj.mak new file mode 100644 index 0000000..c2dbc92 --- /dev/null +++ b/build_windows/db_java_xaj.mak @@ -0,0 +1,21 @@ +JAVA_XADIR=../java/src/com/sleepycat/db/xa
+
+JAVA_XASRCS=\
+ $(JAVA_XADIR)/DbXAResource.java \
+ $(JAVA_XADIR)/DbXid.java
+
+Release/dbxa.jar : $(JAVA_XASRCS)
+ @echo compiling Berkeley DB XA classes
+ @javac -g -d ./Release/classes -classpath "$(CLASSPATH);./Release/classes" $(JAVA_XASRCS)
+ @echo creating jar file
+ @cd .\Release\classes
+ @jar cf ../dbxa.jar com\sleepycat\db\xa\*.class
+ @echo Java XA build finished
+
+Debug/dbxa.jar : $(JAVA_XASRCS)
+ @echo compiling Berkeley DB XA classes
+ @javac -g -d ./Debug/classes -classpath "$(CLASSPATH);./Debug/classes" $(JAVA_XASRCS)
+ @echo creating jar file
+ @cd .\Debug\classes
+ @jar cf ../dbxa.jar com\sleepycat\db\xa\*.class
+ @echo Java XA build finished
diff --git a/build_windows/db_load.dsp b/build_windows/db_load.dsp new file mode 100644 index 0000000..bcd1a94 --- /dev/null +++ b/build_windows/db_load.dsp @@ -0,0 +1,94 @@ +# Microsoft Developer Studio Project File - Name="db_load" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=db_load - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "db_load.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "db_load.mak" CFG="db_load - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "db_load - Win32 Release x86" (based on "Win32 (x86) Console Application")
+!MESSAGE "db_load - Win32 Debug x86" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "db_load - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32/Release"
+# PROP BASE Intermediate_Dir "Win32/Release/db_load"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32/Release"
+# PROP Intermediate_Dir "Win32/Release/db_load"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 libdb48.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386 /nodefaultlib:"libcmt" /libpath:"$(OUTDIR)"
+
+!ELSEIF "$(CFG)" == "db_load - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32/Debug"
+# PROP BASE Intermediate_Dir "Win32/Debug/db_load"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32/Debug"
+# PROP Intermediate_Dir "Win32/Debug/db_load"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 libdb48d.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /nodefaultlib:"libcmtd" /fixed:no /libpath:"$(OUTDIR)"
+
+!ENDIF
+
+# Begin Target
+
+# Name "db_load - Win32 Release x86"
+# Name "db_load - Win32 Debug x86"
+# Begin Source File
+
+SOURCE=..\db_load\db_load.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\clib\getopt.c
+# End Source File
+# End Target
+# End Project
diff --git a/build_windows/db_load.vcproj b/build_windows/db_load.vcproj new file mode 100644 index 0000000..e5e528d --- /dev/null +++ b/build_windows/db_load.vcproj @@ -0,0 +1,81 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="db_load" ProjectGUID="{7640133F-4AB8-42DA-ADB5-95F21447F7D5}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_load" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_load.pch" AssemblerListingLocation="$(OutDir)/db_load/" ObjectFile="$(OutDir)/db_load/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_load.exe" ProgramDatabaseFile="$(OutDir)/db_load.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_load" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_load.pch" AssemblerListingLocation="$(OutDir)/db_load/" ObjectFile="$(OutDir)/db_load/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_load.exe" ProgramDatabaseFile="$(OutDir)/db_load.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_load" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_load.pch" AssemblerListingLocation="$(OutDir)/db_load/" ObjectFile="$(OutDir)/db_load/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_load.exe" ProgramDatabaseFile="$(OutDir)/db_load.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_load" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_load.pch" AssemblerListingLocation="$(OutDir)/db_load/" ObjectFile="$(OutDir)/db_load/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_load.exe" ProgramDatabaseFile="$(OutDir)/db_load.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_load" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_load.pch" AssemblerListingLocation="$(OutDir)/db_load/" ObjectFile="$(OutDir)/db_load/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_load.exe" ProgramDatabaseFile="$(OutDir)/db_load.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_load" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_load.pch" AssemblerListingLocation="$(OutDir)/db_load/" ObjectFile="$(OutDir)/db_load/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_load.exe" ProgramDatabaseFile="$(OutDir)/db_load.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\db_load\db_load.c"/> + <File RelativePath="..\clib\getopt.c"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/db_perf.vcproj b/build_windows/db_perf.vcproj new file mode 100644 index 0000000..f9e3685 --- /dev/null +++ b/build_windows/db_perf.vcproj @@ -0,0 +1,100 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="db_perf" ProjectGUID="{5835B4B0-2F99-11DE-8C30-0800200C9A66}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_perf" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_perf.pch" AssemblerListingLocation="$(OutDir)/db_perf/" ObjectFile="$(OutDir)/db_perf/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_perf.exe" ProgramDatabaseFile="$(OutDir)/db_perf.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_perf" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_perf.pch" AssemblerListingLocation="$(OutDir)/db_perf/" ObjectFile="$(OutDir)/db_perf/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_perf.exe" ProgramDatabaseFile="$(OutDir)/db_perf.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_perf" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_perf.pch" AssemblerListingLocation="$(OutDir)/db_perf/" ObjectFile="$(OutDir)/db_perf/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_perf.exe" ProgramDatabaseFile="$(OutDir)/db_perf.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_perf" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_perf.pch" AssemblerListingLocation="$(OutDir)/db_perf/" ObjectFile="$(OutDir)/db_perf/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_perf.exe" ProgramDatabaseFile="$(OutDir)/db_perf.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_perf" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_perf.pch" AssemblerListingLocation="$(OutDir)/db_perf/" ObjectFile="$(OutDir)/db_perf/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_perf.exe" ProgramDatabaseFile="$(OutDir)/db_perf.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_perf" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_perf.pch" AssemblerListingLocation="$(OutDir)/db_perf/" ObjectFile="$(OutDir)/db_perf/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_perf.exe" ProgramDatabaseFile="$(OutDir)/db_perf.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\test_perf\db_perf.c"/> + <File RelativePath="..\test_perf\perf_checkpoint.c"/> + <File RelativePath="..\test_perf\perf_config.c"/> + <File RelativePath="..\test_perf\perf_dbs.c"/> + <File RelativePath="..\test_perf\perf_dead.c"/> + <File RelativePath="..\test_perf\perf_debug.c"/> + <File RelativePath="..\test_perf\perf_file.c"/> + <File RelativePath="..\test_perf\perf_key.c"/> + <File RelativePath="..\test_perf\perf_log.c"/> + <File RelativePath="..\test_perf\perf_misc.c"/> + <File RelativePath="..\test_perf\perf_op.c"/> + <File RelativePath="..\test_perf\perf_parse.c"/> + <File RelativePath="..\test_perf\perf_rand.c"/> + <File RelativePath="..\test_perf\perf_spawn.c"/> + <File RelativePath="..\test_perf\perf_stat.c"/> + <File RelativePath="..\test_perf\perf_sync.c"/> + <File RelativePath="..\test_perf\perf_thread.c"/> + <File RelativePath="..\test_perf\perf_trickle.c"/> + <File RelativePath="..\test_perf\perf_txn.c"/> + <File RelativePath="..\test_perf\perf_util.c"/> + <File RelativePath="..\clib\getopt.c"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/db_printlog.dsp b/build_windows/db_printlog.dsp new file mode 100644 index 0000000..c68c3c7 --- /dev/null +++ b/build_windows/db_printlog.dsp @@ -0,0 +1,126 @@ +# Microsoft Developer Studio Project File - Name="db_printlog" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=db_printlog - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "db_printlog.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "db_printlog.mak" CFG="db_printlog - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "db_printlog - Win32 Release x86" (based on "Win32 (x86) Console Application")
+!MESSAGE "db_printlog - Win32 Debug x86" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "db_printlog - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32/Release"
+# PROP BASE Intermediate_Dir "Win32/Release/db_printlog"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32/Release"
+# PROP Intermediate_Dir "Win32/Release/db_printlog"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 libdb48.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386 /nodefaultlib:"libcmt" /libpath:"$(OUTDIR)"
+
+!ELSEIF "$(CFG)" == "db_printlog - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32/Debug"
+# PROP BASE Intermediate_Dir "Win32/Debug/db_printlog"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32/Debug"
+# PROP Intermediate_Dir "Win32/Debug/db_printlog"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 libdb48d.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /nodefaultlib:"libcmtd" /fixed:no /libpath:"$(OUTDIR)"
+
+!ENDIF
+
+# Begin Target
+
+# Name "db_printlog - Win32 Release x86"
+# Name "db_printlog - Win32 Debug x86"
+# Begin Source File
+
+SOURCE=..\btree\btree_autop.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\crdel_autop.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_autop.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db_printlog\db_printlog.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\dbreg\dbreg_autop.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\fileops\fileops_autop.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\hash\hash_autop.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\qam\qam_autop.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\txn\txn_autop.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\clib\getopt.c
+# End Source File
+# End Target
+# End Project
diff --git a/build_windows/db_printlog.vcproj b/build_windows/db_printlog.vcproj new file mode 100644 index 0000000..7e0b922 --- /dev/null +++ b/build_windows/db_printlog.vcproj @@ -0,0 +1,89 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="db_printlog" ProjectGUID="{D505F51B-2B92-4850-A08F-9113D947FF4B}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_printlog" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_printlog.pch" AssemblerListingLocation="$(OutDir)/db_printlog/" ObjectFile="$(OutDir)/db_printlog/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_printlog.exe" ProgramDatabaseFile="$(OutDir)/db_printlog.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_printlog" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_printlog.pch" AssemblerListingLocation="$(OutDir)/db_printlog/" ObjectFile="$(OutDir)/db_printlog/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_printlog.exe" ProgramDatabaseFile="$(OutDir)/db_printlog.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_printlog" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_printlog.pch" AssemblerListingLocation="$(OutDir)/db_printlog/" ObjectFile="$(OutDir)/db_printlog/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_printlog.exe" ProgramDatabaseFile="$(OutDir)/db_printlog.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_printlog" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_printlog.pch" AssemblerListingLocation="$(OutDir)/db_printlog/" ObjectFile="$(OutDir)/db_printlog/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_printlog.exe" ProgramDatabaseFile="$(OutDir)/db_printlog.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_printlog" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_printlog.pch" AssemblerListingLocation="$(OutDir)/db_printlog/" ObjectFile="$(OutDir)/db_printlog/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_printlog.exe" ProgramDatabaseFile="$(OutDir)/db_printlog.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_printlog" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_printlog.pch" AssemblerListingLocation="$(OutDir)/db_printlog/" ObjectFile="$(OutDir)/db_printlog/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_printlog.exe" ProgramDatabaseFile="$(OutDir)/db_printlog.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\db_printlog\db_printlog.c"/> + <File RelativePath="..\btree\btree_autop.c"/> + <File RelativePath="..\db\crdel_autop.c"/> + <File RelativePath="..\db\db_autop.c"/> + <File RelativePath="..\dbreg\dbreg_autop.c"/> + <File RelativePath="..\fileops\fileops_autop.c"/> + <File RelativePath="..\hash\hash_autop.c"/> + <File RelativePath="..\qam\qam_autop.c"/> + <File RelativePath="..\txn\txn_autop.c"/> + <File RelativePath="..\clib\getopt.c"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/db_recover.dsp b/build_windows/db_recover.dsp new file mode 100644 index 0000000..595a5d2 --- /dev/null +++ b/build_windows/db_recover.dsp @@ -0,0 +1,94 @@ +# Microsoft Developer Studio Project File - Name="db_recover" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=db_recover - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "db_recover.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "db_recover.mak" CFG="db_recover - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "db_recover - Win32 Release x86" (based on "Win32 (x86) Console Application")
+!MESSAGE "db_recover - Win32 Debug x86" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "db_recover - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32/Release"
+# PROP BASE Intermediate_Dir "Win32/Release/db_recover"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32/Release"
+# PROP Intermediate_Dir "Win32/Release/db_recover"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 libdb48.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386 /nodefaultlib:"libcmt" /libpath:"$(OUTDIR)"
+
+!ELSEIF "$(CFG)" == "db_recover - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32/Debug"
+# PROP BASE Intermediate_Dir "Win32/Debug/db_recover"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32/Debug"
+# PROP Intermediate_Dir "Win32/Debug/db_recover"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 libdb48d.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /nodefaultlib:"libcmtd" /fixed:no /libpath:"$(OUTDIR)"
+
+!ENDIF
+
+# Begin Target
+
+# Name "db_recover - Win32 Release x86"
+# Name "db_recover - Win32 Debug x86"
+# Begin Source File
+
+SOURCE=..\db_recover\db_recover.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\clib\getopt.c
+# End Source File
+# End Target
+# End Project
diff --git a/build_windows/db_recover.vcproj b/build_windows/db_recover.vcproj new file mode 100644 index 0000000..cca8077 --- /dev/null +++ b/build_windows/db_recover.vcproj @@ -0,0 +1,81 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="db_recover" ProjectGUID="{9E03FD51-E387-4EEF-9EEA-E71707A56212}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_recover" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_recover.pch" AssemblerListingLocation="$(OutDir)/db_recover/" ObjectFile="$(OutDir)/db_recover/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_recover.exe" ProgramDatabaseFile="$(OutDir)/db_recover.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_recover" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_recover.pch" AssemblerListingLocation="$(OutDir)/db_recover/" ObjectFile="$(OutDir)/db_recover/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_recover.exe" ProgramDatabaseFile="$(OutDir)/db_recover.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_recover" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_recover.pch" AssemblerListingLocation="$(OutDir)/db_recover/" ObjectFile="$(OutDir)/db_recover/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_recover.exe" ProgramDatabaseFile="$(OutDir)/db_recover.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_recover" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_recover.pch" AssemblerListingLocation="$(OutDir)/db_recover/" ObjectFile="$(OutDir)/db_recover/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_recover.exe" ProgramDatabaseFile="$(OutDir)/db_recover.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_recover" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_recover.pch" AssemblerListingLocation="$(OutDir)/db_recover/" ObjectFile="$(OutDir)/db_recover/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_recover.exe" ProgramDatabaseFile="$(OutDir)/db_recover.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_recover" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_recover.pch" AssemblerListingLocation="$(OutDir)/db_recover/" ObjectFile="$(OutDir)/db_recover/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_recover.exe" ProgramDatabaseFile="$(OutDir)/db_recover.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\db_recover\db_recover.c"/> + <File RelativePath="..\clib\getopt.c"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/db_repsite.dsp b/build_windows/db_repsite.dsp new file mode 100644 index 0000000..dfec062 --- /dev/null +++ b/build_windows/db_repsite.dsp @@ -0,0 +1,94 @@ +# Microsoft Developer Studio Project File - Name="db_repsite" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=db_repsite - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "db_repsite.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "db_repsite.mak" CFG="db_repsite - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "db_repsite - Win32 Release x86" (based on "Win32 (x86) Console Application")
+!MESSAGE "db_repsite - Win32 Debug x86" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "db_repsite - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32/Release"
+# PROP BASE Intermediate_Dir "Win32/Release/db_repsite"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32/Release"
+# PROP Intermediate_Dir "Win32/Release/db_repsite"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 libdb48.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386 /nodefaultlib:"libcmt" /libpath:"$(OUTDIR)"
+
+!ELSEIF "$(CFG)" == "db_repsite - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32/Debug"
+# PROP BASE Intermediate_Dir "Win32/Debug/db_repsite"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32/Debug"
+# PROP Intermediate_Dir "Win32/Debug/db_repsite"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 libdb48d.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /nodefaultlib:"libcmtd" /fixed:no /libpath:"$(OUTDIR)"
+
+!ENDIF
+
+# Begin Target
+
+# Name "db_repsite - Win32 Release x86"
+# Name "db_repsite - Win32 Debug x86"
+# Begin Source File
+
+SOURCE=..\test_repmgr\db_repsite.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=..\clib\getopt.c
+# End Source File
+# End Target
+# End Project
diff --git a/build_windows/db_repsite.vcproj b/build_windows/db_repsite.vcproj new file mode 100644 index 0000000..491a28a --- /dev/null +++ b/build_windows/db_repsite.vcproj @@ -0,0 +1,81 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="db_repsite" ProjectGUID="{23A3F970-2E25-11DE-8C30-0800200C9A66}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_repsite" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_repsite.pch" AssemblerListingLocation="$(OutDir)/db_repsite/" ObjectFile="$(OutDir)/db_repsite/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_repsite.exe" ProgramDatabaseFile="$(OutDir)/db_repsite.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_repsite" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_repsite.pch" AssemblerListingLocation="$(OutDir)/db_repsite/" ObjectFile="$(OutDir)/db_repsite/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_repsite.exe" ProgramDatabaseFile="$(OutDir)/db_repsite.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_repsite" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_repsite.pch" AssemblerListingLocation="$(OutDir)/db_repsite/" ObjectFile="$(OutDir)/db_repsite/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_repsite.exe" ProgramDatabaseFile="$(OutDir)/db_repsite.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_repsite" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_repsite.pch" AssemblerListingLocation="$(OutDir)/db_repsite/" ObjectFile="$(OutDir)/db_repsite/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_repsite.exe" ProgramDatabaseFile="$(OutDir)/db_repsite.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_repsite" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_repsite.pch" AssemblerListingLocation="$(OutDir)/db_repsite/" ObjectFile="$(OutDir)/db_repsite/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_repsite.exe" ProgramDatabaseFile="$(OutDir)/db_repsite.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_repsite" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_repsite.pch" AssemblerListingLocation="$(OutDir)/db_repsite/" ObjectFile="$(OutDir)/db_repsite/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_repsite.exe" ProgramDatabaseFile="$(OutDir)/db_repsite.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\test_repmgr\db_repsite.cpp"/> + <File RelativePath="..\clib\getopt.c"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/db_small.dsp b/build_windows/db_small.dsp new file mode 100644 index 0000000..045e207 --- /dev/null +++ b/build_windows/db_small.dsp @@ -0,0 +1,832 @@ +# Microsoft Developer Studio Project File - Name="db_small" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Static Library" 0x0104
+
+CFG=db_small - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "db_small.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "db_small.mak" CFG="db_small - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "db_small - Win32 Release x86" (based on "Win32 (x86) Static Library")
+!MESSAGE "db_small - Win32 Debug x86" (based on "Win32 (x86) Static Library")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "db_small - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32/Release"
+# PROP BASE Intermediate_Dir "Win32/Release/db_small"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32/Release"
+# PROP Intermediate_Dir "Win32/Release/db_small"
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /D "UNICODE" /D "_UNICODE" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /D "HAVE_SMALLBUILD" /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /D "UNICODE" /D "_UNICODE" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /D "HAVE_SMALLBUILD" /FD /c
+# ADD BASE RSC /l 0xc09
+# ADD RSC /l 0xc09
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LIB32=link.exe -lib
+# ADD BASE LIB32 /nologo /out:"Win32/Release/libdb_small48s.lib"
+# ADD LIB32 /nologo /out:"Win32/Release/libdb_small48s.lib"
+
+!ELSEIF "$(CFG)" == "db_small - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32/Debug"
+# PROP BASE Intermediate_Dir "Win32/Debug/db_small"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32/Debug"
+# PROP Intermediate_Dir "Win32/Debug/db_small"
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "DIAGNOSTIC" /D "UNICODE" /D "_UNICODE" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /D "HAVE_SMALLBUILD" /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "DIAGNOSTIC" /D "UNICODE" /D "_UNICODE" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /D "HAVE_SMALLBUILD" /FD /c
+# ADD BASE RSC /l 0xc09
+# ADD RSC /l 0xc09
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LIB32=link.exe -lib
+# ADD BASE LIB32 /nologo /out:"Win32/Debug/libdb_small48sd.lib"
+# ADD LIB32 /nologo /out:"Win32/Debug/libdb_small48sd.lib"
+
+!ENDIF
+
+# Begin Target
+
+# Name "db_small - Win32 Release x86"
+# Name "db_small - Win32 Debug x86"
+# Begin Source File
+
+SOURCE=..\btree\bt_compact.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_compare.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_compress.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_conv.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_curadj.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_cursor.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_delete.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_method.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_open.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_put.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_rec.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_reclaim.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_recno.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_rsearch.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_search.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_split.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_stat.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_upgrade.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\btree_auto.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\clib\strsep.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\common\crypto_stub.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\common\db_byteorder.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\common\db_compint.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\common\db_err.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\common\db_getlong.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\common\db_idspace.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\common\db_log2.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\common\db_shash.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\common\dbt.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\common\mkpath.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\common\os_method.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\common\util_cache.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\common\util_log.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\common\util_sig.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\common\zerofill.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\cxx\cxx_db.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=..\cxx\cxx_dbc.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=..\cxx\cxx_dbt.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=..\cxx\cxx_env.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=..\cxx\cxx_except.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=..\cxx\cxx_lock.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=..\cxx\cxx_logc.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=..\cxx\cxx_mpool.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=..\cxx\cxx_multi.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=..\cxx\cxx_seq.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=..\cxx\cxx_txn.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\crdel_auto.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\crdel_rec.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_am.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_auto.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_cam.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_cds.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_conv.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_dispatch.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_dup.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_iface.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_join.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_meta.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_method.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_open.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_overflow.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_pr.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_rec.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_reclaim.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_remove.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_rename.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_ret.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_setid.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_setlsn.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_sort_multiple.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_stati.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_truncate.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_upg.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_upg_opd.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_vrfy_stub.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\partition.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\dbreg\dbreg.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\dbreg\dbreg_auto.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\dbreg\dbreg_rec.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\dbreg\dbreg_stat.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\dbreg\dbreg_util.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\env\env_alloc.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\env\env_config.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\env\env_failchk.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\env\env_file.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\env\env_globals.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\env\env_method.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\env\env_name.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\env\env_open.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\env\env_recover.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\env\env_region.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\env\env_register.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\env\env_sig.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\env\env_stat.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\fileops\fileops_auto.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\fileops\fop_basic.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\fileops\fop_rec.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\fileops\fop_util.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\hash\hash_func.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\hash\hash_stub.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\hmac\hmac.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\hmac\sha1.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\lock\lock.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\lock\lock_deadlock.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\lock\lock_failchk.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\lock\lock_id.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\lock\lock_list.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\lock\lock_method.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\lock\lock_region.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\lock\lock_stat.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\lock\lock_timer.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\lock\lock_util.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\log\log.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\log\log_archive.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\log\log_compare.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\log\log_debug.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\log\log_get.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\log\log_method.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\log\log_put.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\log\log_stat.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mp\mp_alloc.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mp\mp_bh.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mp\mp_fget.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mp\mp_fmethod.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mp\mp_fopen.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mp\mp_fput.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mp\mp_fset.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mp\mp_method.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mp\mp_mvcc.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mp\mp_region.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mp\mp_register.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mp\mp_resize.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mp\mp_stat.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mp\mp_sync.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mp\mp_trickle.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mutex\mut_alloc.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mutex\mut_failchk.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mutex\mut_method.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mutex\mut_region.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mutex\mut_stat.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mutex\mut_win32.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os\os_abort.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os\os_alloc.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os\os_ctime.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os\os_pid.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os\os_root.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os\os_rpath.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os\os_stack.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os\os_tmpdir.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os\os_uid.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_abs.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_clock.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_config.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_cpu.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_dir.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_errno.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_fid.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_flock.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_fsync.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_getenv.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_handle.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_map.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_mkdir.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_open.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_rename.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_rw.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_seek.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_stat.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_truncate.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_unlink.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_yield.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\qam\qam_stub.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\rep\rep_stub.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\repmgr\repmgr_stub.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\sequence\seq_stat.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\sequence\sequence.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\txn\txn.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\txn\txn_auto.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\txn\txn_chkpt.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\txn\txn_failchk.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\txn\txn_method.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\txn\txn_rec.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\txn\txn_recover.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\txn\txn_region.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\txn\txn_stat.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\txn\txn_util.c
+# End Source File
+# End Target
+# End Project
diff --git a/build_windows/db_small_static.vcproj b/build_windows/db_small_static.vcproj new file mode 100644 index 0000000..0b20ba7 --- /dev/null +++ b/build_windows/db_small_static.vcproj @@ -0,0 +1,252 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="db_small_static" ProjectGUID="{FE85C600-38A6-11DE-8A39-0800200C9A66}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug_static" IntermediateDirectory="./$(OutDir)/db_small_static" ConfigurationType="4" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;WIN32;_UNICODE;UNICODE;HAVE_SMALLBUILD;DIAGNOSTIC;_LIB;" StringPooling="TRUE" RuntimeLibrary="1" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_small_static.pch" AssemblerListingLocation="$(OutDir)/db_small_static/" ObjectFile="$(OutDir)/db_small_static/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLibrarianTool" OutputFile="$(OutDir)/libdb_small48sd.lib"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release_static" IntermediateDirectory="./$(OutDir)/db_small_static" ConfigurationType="4" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;WIN32;_UNICODE;UNICODE;HAVE_SMALLBUILD;_LIB;" StringPooling="TRUE" RuntimeLibrary="0" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_small_static.pch" AssemblerListingLocation="$(OutDir)/db_small_static/" ObjectFile="$(OutDir)/db_small_static/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLibrarianTool" OutputFile="$(OutDir)/libdb_small48s.lib"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug_static" IntermediateDirectory="./$(OutDir)/db_small_static" ConfigurationType="4" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;WIN32;_UNICODE;UNICODE;HAVE_SMALLBUILD;DIAGNOSTIC;_LIB;" StringPooling="TRUE" RuntimeLibrary="1" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_small_static.pch" AssemblerListingLocation="$(OutDir)/db_small_static/" ObjectFile="$(OutDir)/db_small_static/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLibrarianTool" OutputFile="$(OutDir)/libdb_small48sd.lib"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release_static" IntermediateDirectory="./$(OutDir)/db_small_static" ConfigurationType="4" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;WIN32;_UNICODE;UNICODE;HAVE_SMALLBUILD;_LIB;" StringPooling="TRUE" RuntimeLibrary="0" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_small_static.pch" AssemblerListingLocation="$(OutDir)/db_small_static/" ObjectFile="$(OutDir)/db_small_static/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLibrarianTool" OutputFile="$(OutDir)/libdb_small48s.lib"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug_static" IntermediateDirectory="./$(OutDir)/db_small_static" ConfigurationType="4" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;WIN32;_UNICODE;UNICODE;HAVE_SMALLBUILD;DIAGNOSTIC;_LIB;" StringPooling="TRUE" RuntimeLibrary="1" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_small_static.pch" AssemblerListingLocation="$(OutDir)/db_small_static/" ObjectFile="$(OutDir)/db_small_static/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLibrarianTool" OutputFile="$(OutDir)/libdb_small48sd.lib"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release_static" IntermediateDirectory="./$(OutDir)/db_small_static" ConfigurationType="4" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;WIN32;_UNICODE;UNICODE;HAVE_SMALLBUILD;_LIB;" StringPooling="TRUE" RuntimeLibrary="0" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_small_static.pch" AssemblerListingLocation="$(OutDir)/db_small_static/" ObjectFile="$(OutDir)/db_small_static/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLibrarianTool" OutputFile="$(OutDir)/libdb_small48s.lib"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\btree\bt_compact.c"/> + <File RelativePath="..\btree\bt_compare.c"/> + <File RelativePath="..\btree\bt_conv.c"/> + <File RelativePath="..\btree\bt_curadj.c"/> + <File RelativePath="..\btree\bt_cursor.c"/> + <File RelativePath="..\btree\bt_delete.c"/> + <File RelativePath="..\btree\bt_method.c"/> + <File RelativePath="..\btree\bt_open.c"/> + <File RelativePath="..\btree\bt_put.c"/> + <File RelativePath="..\btree\bt_rec.c"/> + <File RelativePath="..\btree\bt_reclaim.c"/> + <File RelativePath="..\btree\bt_recno.c"/> + <File RelativePath="..\btree\bt_rsearch.c"/> + <File RelativePath="..\btree\bt_search.c"/> + <File RelativePath="..\btree\bt_split.c"/> + <File RelativePath="..\btree\bt_stat.c"/> + <File RelativePath="..\btree\bt_upgrade.c"/> + <File RelativePath="..\btree\btree_auto.c"/> + <File RelativePath="..\clib\strsep.c"/> + <File RelativePath="..\common\crypto_stub.c"/> + <File RelativePath="..\common\db_byteorder.c"/> + <File RelativePath="..\common\db_err.c"/> + <File RelativePath="..\common\db_getlong.c"/> + <File RelativePath="..\common\db_idspace.c"/> + <File RelativePath="..\common\db_log2.c"/> + <File RelativePath="..\common\db_shash.c"/> + <File RelativePath="..\common\dbt.c"/> + <File RelativePath="..\common\mkpath.c"/> + <File RelativePath="..\common\os_method.c"/> + <File RelativePath="..\common\util_cache.c"/> + <File RelativePath="..\common\util_log.c"/> + <File RelativePath="..\common\util_sig.c"/> + <File RelativePath="..\common\zerofill.c"/> + <File RelativePath="..\cxx\cxx_db.cpp"/> + <File RelativePath="..\cxx\cxx_dbc.cpp"/> + <File RelativePath="..\cxx\cxx_dbt.cpp"/> + <File RelativePath="..\cxx\cxx_env.cpp"/> + <File RelativePath="..\cxx\cxx_except.cpp"/> + <File RelativePath="..\cxx\cxx_lock.cpp"/> + <File RelativePath="..\cxx\cxx_logc.cpp"/> + <File RelativePath="..\cxx\cxx_mpool.cpp"/> + <File RelativePath="..\cxx\cxx_multi.cpp"/> + <File RelativePath="..\cxx\cxx_seq.cpp"/> + <File RelativePath="..\cxx\cxx_txn.cpp"/> + <File RelativePath="..\db\crdel_auto.c"/> + <File RelativePath="..\db\crdel_rec.c"/> + <File RelativePath="..\db\db.c"/> + <File RelativePath="..\db\db_am.c"/> + <File RelativePath="..\db\db_auto.c"/> + <File RelativePath="..\db\db_cam.c"/> + <File RelativePath="..\db\db_cds.c"/> + <File RelativePath="..\db\db_conv.c"/> + <File RelativePath="..\db\db_dispatch.c"/> + <File RelativePath="..\db\db_dup.c"/> + <File RelativePath="..\db\db_iface.c"/> + <File RelativePath="..\db\db_join.c"/> + <File RelativePath="..\db\db_meta.c"/> + <File RelativePath="..\db\db_method.c"/> + <File RelativePath="..\db\db_open.c"/> + <File RelativePath="..\db\db_overflow.c"/> + <File RelativePath="..\db\db_pr.c"/> + <File RelativePath="..\db\db_rec.c"/> + <File RelativePath="..\db\db_reclaim.c"/> + <File RelativePath="..\db\db_remove.c"/> + <File RelativePath="..\db\db_rename.c"/> + <File RelativePath="..\db\db_ret.c"/> + <File RelativePath="..\db\db_setid.c"/> + <File RelativePath="..\db\db_setlsn.c"/> + <File RelativePath="..\db\db_sort_multiple.c"/> + <File RelativePath="..\db\db_stati.c"/> + <File RelativePath="..\db\db_truncate.c"/> + <File RelativePath="..\db\db_upg.c"/> + <File RelativePath="..\db\db_upg_opd.c"/> + <File RelativePath="..\db\db_vrfy_stub.c"/> + <File RelativePath="..\db\partition.c"/> + <File RelativePath="..\dbreg\dbreg.c"/> + <File RelativePath="..\dbreg\dbreg_auto.c"/> + <File RelativePath="..\dbreg\dbreg_rec.c"/> + <File RelativePath="..\dbreg\dbreg_stat.c"/> + <File RelativePath="..\dbreg\dbreg_util.c"/> + <File RelativePath="..\env\env_alloc.c"/> + <File RelativePath="..\env\env_config.c"/> + <File RelativePath="..\env\env_failchk.c"/> + <File RelativePath="..\env\env_file.c"/> + <File RelativePath="..\env\env_globals.c"/> + <File RelativePath="..\env\env_method.c"/> + <File RelativePath="..\env\env_name.c"/> + <File RelativePath="..\env\env_open.c"/> + <File RelativePath="..\env\env_recover.c"/> + <File RelativePath="..\env\env_region.c"/> + <File RelativePath="..\env\env_register.c"/> + <File RelativePath="..\env\env_sig.c"/> + <File RelativePath="..\env\env_stat.c"/> + <File RelativePath="..\fileops\fileops_auto.c"/> + <File RelativePath="..\fileops\fop_basic.c"/> + <File RelativePath="..\fileops\fop_rec.c"/> + <File RelativePath="..\fileops\fop_util.c"/> + <File RelativePath="..\hash\hash_func.c"/> + <File RelativePath="..\hash\hash_stub.c"/> + <File RelativePath="..\hmac\hmac.c"/> + <File RelativePath="..\hmac\sha1.c"/> + <File RelativePath="..\lock\lock.c"/> + <File RelativePath="..\lock\lock_deadlock.c"/> + <File RelativePath="..\lock\lock_failchk.c"/> + <File RelativePath="..\lock\lock_id.c"/> + <File RelativePath="..\lock\lock_list.c"/> + <File RelativePath="..\lock\lock_method.c"/> + <File RelativePath="..\lock\lock_region.c"/> + <File RelativePath="..\lock\lock_stat.c"/> + <File RelativePath="..\lock\lock_timer.c"/> + <File RelativePath="..\lock\lock_util.c"/> + <File RelativePath="..\log\log.c"/> + <File RelativePath="..\log\log_archive.c"/> + <File RelativePath="..\log\log_compare.c"/> + <File RelativePath="..\log\log_debug.c"/> + <File RelativePath="..\log\log_get.c"/> + <File RelativePath="..\log\log_method.c"/> + <File RelativePath="..\log\log_put.c"/> + <File RelativePath="..\log\log_stat.c"/> + <File RelativePath="..\mp\mp_alloc.c"/> + <File RelativePath="..\mp\mp_bh.c"/> + <File RelativePath="..\mp\mp_fget.c"/> + <File RelativePath="..\mp\mp_fmethod.c"/> + <File RelativePath="..\mp\mp_fopen.c"/> + <File RelativePath="..\mp\mp_fput.c"/> + <File RelativePath="..\mp\mp_fset.c"/> + <File RelativePath="..\mp\mp_method.c"/> + <File RelativePath="..\mp\mp_mvcc.c"/> + <File RelativePath="..\mp\mp_region.c"/> + <File RelativePath="..\mp\mp_register.c"/> + <File RelativePath="..\mp\mp_resize.c"/> + <File RelativePath="..\mp\mp_stat.c"/> + <File RelativePath="..\mp\mp_sync.c"/> + <File RelativePath="..\mp\mp_trickle.c"/> + <File RelativePath="..\mutex\mut_alloc.c"/> + <File RelativePath="..\mutex\mut_failchk.c"/> + <File RelativePath="..\mutex\mut_method.c"/> + <File RelativePath="..\mutex\mut_region.c"/> + <File RelativePath="..\mutex\mut_stat.c"/> + <File RelativePath="..\mutex\mut_win32.c"/> + <File RelativePath="..\os\os_abort.c"/> + <File RelativePath="..\os\os_alloc.c"/> + <File RelativePath="..\os\os_ctime.c"/> + <File RelativePath="..\os\os_pid.c"/> + <File RelativePath="..\os\os_root.c"/> + <File RelativePath="..\os\os_rpath.c"/> + <File RelativePath="..\os\os_stack.c"/> + <File RelativePath="..\os\os_tmpdir.c"/> + <File RelativePath="..\os\os_uid.c"/> + <File RelativePath="..\os_windows\os_abs.c"/> + <File RelativePath="..\os_windows\os_clock.c"/> + <File RelativePath="..\os_windows\os_config.c"/> + <File RelativePath="..\os_windows\os_cpu.c"/> + <File RelativePath="..\os_windows\os_dir.c"/> + <File RelativePath="..\os_windows\os_errno.c"/> + <File RelativePath="..\os_windows\os_fid.c"/> + <File RelativePath="..\os_windows\os_flock.c"/> + <File RelativePath="..\os_windows\os_fsync.c"/> + <File RelativePath="..\os_windows\os_getenv.c"/> + <File RelativePath="..\os_windows\os_handle.c"/> + <File RelativePath="..\os_windows\os_map.c"/> + <File RelativePath="..\os_windows\os_mkdir.c"/> + <File RelativePath="..\os_windows\os_open.c"/> + <File RelativePath="..\os_windows\os_rename.c"/> + <File RelativePath="..\os_windows\os_rw.c"/> + <File RelativePath="..\os_windows\os_seek.c"/> + <File RelativePath="..\os_windows\os_stat.c"/> + <File RelativePath="..\os_windows\os_truncate.c"/> + <File RelativePath="..\os_windows\os_unlink.c"/> + <File RelativePath="..\os_windows\os_yield.c"/> + <File RelativePath="..\qam\qam_stub.c"/> + <File RelativePath="..\rep\rep_stub.c"/> + <File RelativePath="..\repmgr\repmgr_stub.c"/> + <File RelativePath="..\sequence\seq_stat.c"/> + <File RelativePath="..\sequence\sequence.c"/> + <File RelativePath="..\txn\txn.c"/> + <File RelativePath="..\txn\txn_auto.c"/> + <File RelativePath="..\txn\txn_chkpt.c"/> + <File RelativePath="..\txn\txn_failchk.c"/> + <File RelativePath="..\txn\txn_method.c"/> + <File RelativePath="..\txn\txn_rec.c"/> + <File RelativePath="..\txn\txn_recover.c"/> + <File RelativePath="..\txn\txn_region.c"/> + <File RelativePath="..\txn\txn_stat.c"/> + <File RelativePath="..\txn\txn_util.c"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/db_sql.vcproj b/build_windows/db_sql.vcproj new file mode 100644 index 0000000..ae5eb03 --- /dev/null +++ b/build_windows/db_sql.vcproj @@ -0,0 +1,93 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="db_sql" ProjectGUID="{738ee880-0e33-11de-8c30-0800200c9a66}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_sql" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_sql.pch" AssemblerListingLocation="$(OutDir)/db_sql/" ObjectFile="$(OutDir)/db_sql/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_sql.exe" ProgramDatabaseFile="$(OutDir)/db_sql.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_sql" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_sql.pch" AssemblerListingLocation="$(OutDir)/db_sql/" ObjectFile="$(OutDir)/db_sql/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_sql.exe" ProgramDatabaseFile="$(OutDir)/db_sql.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_sql" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_sql.pch" AssemblerListingLocation="$(OutDir)/db_sql/" ObjectFile="$(OutDir)/db_sql/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_sql.exe" ProgramDatabaseFile="$(OutDir)/db_sql.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_sql" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_sql.pch" AssemblerListingLocation="$(OutDir)/db_sql/" ObjectFile="$(OutDir)/db_sql/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_sql.exe" ProgramDatabaseFile="$(OutDir)/db_sql.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_sql" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_sql.pch" AssemblerListingLocation="$(OutDir)/db_sql/" ObjectFile="$(OutDir)/db_sql/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_sql.exe" ProgramDatabaseFile="$(OutDir)/db_sql.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_sql" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_sql.pch" AssemblerListingLocation="$(OutDir)/db_sql/" ObjectFile="$(OutDir)/db_sql/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_sql.exe" ProgramDatabaseFile="$(OutDir)/db_sql.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\db_sql\db_sql.c"/> + <File RelativePath="..\db_sql\preparser.c"/> + <File RelativePath="..\db_sql\parsefuncs.c"/> + <File RelativePath="..\db_sql\tokenize.c"/> + <File RelativePath="..\db_sql\buildpt.c"/> + <File RelativePath="..\db_sql\utils.c"/> + <File RelativePath="..\db_sql\generate.c"/> + <File RelativePath="..\db_sql\generate_test.c"/> + <File RelativePath="..\db_sql\generation_utils.c"/> + <File RelativePath="..\db_sql\generate_verification.c"/> + <File RelativePath="..\db_sql\hint_comment.c"/> + <File RelativePath="..\db_sql\sqlite\sqlprintf.c"/> + <File RelativePath="..\db_sql\sqlite\parse.c"/> + <File RelativePath="..\clib\getopt.c"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/db_stat.dsp b/build_windows/db_stat.dsp new file mode 100644 index 0000000..15bd5e5 --- /dev/null +++ b/build_windows/db_stat.dsp @@ -0,0 +1,94 @@ +# Microsoft Developer Studio Project File - Name="db_stat" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=db_stat - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "db_stat.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "db_stat.mak" CFG="db_stat - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "db_stat - Win32 Release x86" (based on "Win32 (x86) Console Application")
+!MESSAGE "db_stat - Win32 Debug x86" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "db_stat - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32/Release"
+# PROP BASE Intermediate_Dir "Win32/Release/db_stat"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32/Release"
+# PROP Intermediate_Dir "Win32/Release/db_stat"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 libdb48.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386 /nodefaultlib:"libcmt" /libpath:"$(OUTDIR)"
+
+!ELSEIF "$(CFG)" == "db_stat - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32/Debug"
+# PROP BASE Intermediate_Dir "Win32/Debug/db_stat"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32/Debug"
+# PROP Intermediate_Dir "Win32/Debug/db_stat"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 libdb48d.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /nodefaultlib:"libcmtd" /fixed:no /libpath:"$(OUTDIR)"
+
+!ENDIF
+
+# Begin Target
+
+# Name "db_stat - Win32 Release x86"
+# Name "db_stat - Win32 Debug x86"
+# Begin Source File
+
+SOURCE=..\db_stat\db_stat.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\clib\getopt.c
+# End Source File
+# End Target
+# End Project
diff --git a/build_windows/db_stat.vcproj b/build_windows/db_stat.vcproj new file mode 100644 index 0000000..0b3de14 --- /dev/null +++ b/build_windows/db_stat.vcproj @@ -0,0 +1,81 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="db_stat" ProjectGUID="{19D3A4CB-1C12-43D4-A94B-D2B387AD43E5}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_stat" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_stat.pch" AssemblerListingLocation="$(OutDir)/db_stat/" ObjectFile="$(OutDir)/db_stat/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_stat.exe" ProgramDatabaseFile="$(OutDir)/db_stat.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_stat" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_stat.pch" AssemblerListingLocation="$(OutDir)/db_stat/" ObjectFile="$(OutDir)/db_stat/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_stat.exe" ProgramDatabaseFile="$(OutDir)/db_stat.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_stat" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_stat.pch" AssemblerListingLocation="$(OutDir)/db_stat/" ObjectFile="$(OutDir)/db_stat/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_stat.exe" ProgramDatabaseFile="$(OutDir)/db_stat.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_stat" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_stat.pch" AssemblerListingLocation="$(OutDir)/db_stat/" ObjectFile="$(OutDir)/db_stat/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_stat.exe" ProgramDatabaseFile="$(OutDir)/db_stat.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_stat" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_stat.pch" AssemblerListingLocation="$(OutDir)/db_stat/" ObjectFile="$(OutDir)/db_stat/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_stat.exe" ProgramDatabaseFile="$(OutDir)/db_stat.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_stat" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_stat.pch" AssemblerListingLocation="$(OutDir)/db_stat/" ObjectFile="$(OutDir)/db_stat/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_stat.exe" ProgramDatabaseFile="$(OutDir)/db_stat.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\db_stat\db_stat.c"/> + <File RelativePath="..\clib\getopt.c"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/db_static.dsp b/build_windows/db_static.dsp new file mode 100644 index 0000000..4bc9536 --- /dev/null +++ b/build_windows/db_static.dsp @@ -0,0 +1,1036 @@ +# Microsoft Developer Studio Project File - Name="db_static" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Static Library" 0x0104
+
+CFG=db_static - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "db_static.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "db_static.mak" CFG="db_static - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "db_static - Win32 Release x86" (based on "Win32 (x86) Static Library")
+!MESSAGE "db_static - Win32 Debug x86" (based on "Win32 (x86) Static Library")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "db_static - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32/Release"
+# PROP BASE Intermediate_Dir "Win32/Release/db_static"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32/Release"
+# PROP Intermediate_Dir "Win32/Release/db_static"
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /D "UNICODE" /D "_UNICODE" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /D "UNICODE" /D "_UNICODE" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0xc09
+# ADD RSC /l 0xc09
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LIB32=link.exe -lib
+# ADD BASE LIB32 /nologo /out:"Win32/Release/libdb48s.lib"
+# ADD LIB32 /nologo /out:"Win32/Release/libdb48s.lib"
+
+!ELSEIF "$(CFG)" == "db_static - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32/Debug"
+# PROP BASE Intermediate_Dir "Win32/Debug/db_static"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32/Debug"
+# PROP Intermediate_Dir "Win32/Debug/db_static"
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "DIAGNOSTIC" /D "UNICODE" /D "_UNICODE" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "DIAGNOSTIC" /D "UNICODE" /D "_UNICODE" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0xc09
+# ADD RSC /l 0xc09
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LIB32=link.exe -lib
+# ADD BASE LIB32 /nologo /out:"Win32/Debug/libdb48sd.lib"
+# ADD LIB32 /nologo /out:"Win32/Debug/libdb48sd.lib"
+
+!ENDIF
+
+# Begin Target
+
+# Name "db_static - Win32 Release x86"
+# Name "db_static - Win32 Debug x86"
+# Begin Source File
+
+SOURCE=..\btree\bt_compact.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_compare.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_compress.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_conv.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_curadj.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_cursor.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_delete.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_method.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_open.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_put.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_rec.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_reclaim.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_recno.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_rsearch.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_search.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_split.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_stat.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_upgrade.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\bt_verify.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\btree\btree_auto.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\clib\strsep.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\common\db_byteorder.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\common\db_compint.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\common\db_err.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\common\db_getlong.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\common\db_idspace.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\common\db_log2.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\common\db_shash.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\common\dbt.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\common\mkpath.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\common\openflags.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\common\os_method.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\common\util_cache.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\common\util_log.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\common\util_sig.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\common\zerofill.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\crypto\aes_method.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\crypto\crypto.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\crypto\mersenne\mt19937db.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\crypto\rijndael\rijndael-alg-fst.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\crypto\rijndael\rijndael-api-fst.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\cxx\cxx_db.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=..\cxx\cxx_dbc.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=..\cxx\cxx_dbt.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=..\cxx\cxx_env.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=..\cxx\cxx_except.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=..\cxx\cxx_lock.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=..\cxx\cxx_logc.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=..\cxx\cxx_mpool.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=..\cxx\cxx_multi.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=..\cxx\cxx_seq.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=..\cxx\cxx_txn.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\crdel_auto.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\crdel_rec.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_am.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_auto.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_cam.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_cds.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_conv.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_dispatch.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_dup.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_iface.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_join.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_meta.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_method.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_open.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_overflow.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_ovfl_vrfy.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_pr.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_rec.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_reclaim.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_remove.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_rename.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_ret.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_setid.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_setlsn.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_sort_multiple.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_stati.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_truncate.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_upg.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_upg_opd.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_vrfy.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\db_vrfyutil.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\db\partition.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\dbm\dbm.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\dbreg\dbreg.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\dbreg\dbreg_auto.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\dbreg\dbreg_rec.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\dbreg\dbreg_stat.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\dbreg\dbreg_util.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\env\env_alloc.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\env\env_config.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\env\env_failchk.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\env\env_file.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\env\env_globals.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\env\env_method.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\env\env_name.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\env\env_open.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\env\env_recover.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\env\env_region.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\env\env_register.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\env\env_sig.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\env\env_stat.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\fileops\fileops_auto.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\fileops\fop_basic.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\fileops\fop_rec.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\fileops\fop_util.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\hash\hash.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\hash\hash_auto.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\hash\hash_conv.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\hash\hash_dup.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\hash\hash_func.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\hash\hash_meta.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\hash\hash_method.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\hash\hash_open.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\hash\hash_page.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\hash\hash_rec.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\hash\hash_reclaim.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\hash\hash_stat.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\hash\hash_upgrade.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\hash\hash_verify.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\hmac\hmac.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\hmac\sha1.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\hsearch\hsearch.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\lock\lock.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\lock\lock_deadlock.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\lock\lock_failchk.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\lock\lock_id.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\lock\lock_list.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\lock\lock_method.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\lock\lock_region.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\lock\lock_stat.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\lock\lock_timer.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\lock\lock_util.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\log\log.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\log\log_archive.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\log\log_compare.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\log\log_debug.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\log\log_get.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\log\log_method.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\log\log_put.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\log\log_stat.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mp\mp_alloc.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mp\mp_bh.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mp\mp_fget.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mp\mp_fmethod.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mp\mp_fopen.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mp\mp_fput.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mp\mp_fset.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mp\mp_method.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mp\mp_mvcc.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mp\mp_region.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mp\mp_register.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mp\mp_resize.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mp\mp_stat.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mp\mp_sync.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mp\mp_trickle.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mutex\mut_alloc.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mutex\mut_failchk.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mutex\mut_method.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mutex\mut_region.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mutex\mut_stat.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\mutex\mut_win32.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os\os_abort.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os\os_addrinfo.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os\os_alloc.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os\os_ctime.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os\os_pid.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os\os_root.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os\os_rpath.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os\os_stack.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os\os_tmpdir.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os\os_uid.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_abs.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_clock.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_config.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_cpu.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_dir.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_errno.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_fid.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_flock.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_fsync.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_getenv.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_handle.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_map.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_mkdir.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_open.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_rename.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_rw.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_seek.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_stat.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_truncate.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_unlink.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os_windows\os_yield.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\qam\qam.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\qam\qam_auto.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\qam\qam_conv.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\qam\qam_files.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\qam\qam_method.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\qam\qam_open.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\qam\qam_rec.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\qam\qam_stat.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\qam\qam_upgrade.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\qam\qam_verify.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\rep\rep_auto.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\rep\rep_backup.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\rep\rep_elect.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\rep\rep_lease.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\rep\rep_log.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\rep\rep_method.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\rep\rep_record.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\rep\rep_region.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\rep\rep_stat.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\rep\rep_util.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\rep\rep_verify.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\repmgr\repmgr_auto.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\repmgr\repmgr_elect.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\repmgr\repmgr_method.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\repmgr\repmgr_msg.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\repmgr\repmgr_net.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\repmgr\repmgr_queue.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\repmgr\repmgr_sel.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\repmgr\repmgr_stat.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\repmgr\repmgr_util.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\repmgr\repmgr_windows.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\sequence\seq_stat.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\sequence\sequence.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\txn\txn.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\txn\txn_auto.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\txn\txn_chkpt.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\txn\txn_failchk.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\txn\txn_method.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\txn\txn_rec.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\txn\txn_recover.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\txn\txn_region.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\txn\txn_stat.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\txn\txn_util.c
+# End Source File
+# End Target
+# End Project
diff --git a/build_windows/db_static.vcproj b/build_windows/db_static.vcproj new file mode 100644 index 0000000..1f64974 --- /dev/null +++ b/build_windows/db_static.vcproj @@ -0,0 +1,320 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="db_static" ProjectGUID="{671539AA-D9A6-4B7B-8044-61B511D6F432}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug_static" IntermediateDirectory="./$(OutDir)/db_static" ConfigurationType="4" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_UNICODE;UNICODE;DIAGNOSTIC;_LIB;" StringPooling="TRUE" RuntimeLibrary="1" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_static.pch" AssemblerListingLocation="$(OutDir)/db_static/" ObjectFile="$(OutDir)/db_static/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLibrarianTool" OutputFile="$(OutDir)/libdb48sd.lib"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release_static" IntermediateDirectory="./$(OutDir)/db_static" ConfigurationType="4" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_UNICODE;UNICODE;_LIB;" StringPooling="TRUE" RuntimeLibrary="0" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_static.pch" AssemblerListingLocation="$(OutDir)/db_static/" ObjectFile="$(OutDir)/db_static/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLibrarianTool" OutputFile="$(OutDir)/libdb48s.lib"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug_static" IntermediateDirectory="./$(OutDir)/db_static" ConfigurationType="4" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_UNICODE;UNICODE;DIAGNOSTIC;_LIB;" StringPooling="TRUE" RuntimeLibrary="1" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_static.pch" AssemblerListingLocation="$(OutDir)/db_static/" ObjectFile="$(OutDir)/db_static/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLibrarianTool" OutputFile="$(OutDir)/libdb48sd.lib"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release_static" IntermediateDirectory="./$(OutDir)/db_static" ConfigurationType="4" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_UNICODE;UNICODE;_LIB;" StringPooling="TRUE" RuntimeLibrary="0" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_static.pch" AssemblerListingLocation="$(OutDir)/db_static/" ObjectFile="$(OutDir)/db_static/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLibrarianTool" OutputFile="$(OutDir)/libdb48s.lib"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug_static" IntermediateDirectory="./$(OutDir)/db_static" ConfigurationType="4" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_UNICODE;UNICODE;DIAGNOSTIC;_LIB;" StringPooling="TRUE" RuntimeLibrary="1" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_static.pch" AssemblerListingLocation="$(OutDir)/db_static/" ObjectFile="$(OutDir)/db_static/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLibrarianTool" OutputFile="$(OutDir)/libdb48sd.lib"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release_static" IntermediateDirectory="./$(OutDir)/db_static" ConfigurationType="4" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_UNICODE;UNICODE;_LIB;" StringPooling="TRUE" RuntimeLibrary="0" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_static.pch" AssemblerListingLocation="$(OutDir)/db_static/" ObjectFile="$(OutDir)/db_static/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLibrarianTool" OutputFile="$(OutDir)/libdb48s.lib"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\crypto\aes_method.c"/> + <File RelativePath="..\btree\bt_compact.c"/> + <File RelativePath="..\btree\bt_compare.c"/> + <File RelativePath="..\btree\bt_compress.c"/> + <File RelativePath="..\btree\bt_conv.c"/> + <File RelativePath="..\btree\bt_curadj.c"/> + <File RelativePath="..\btree\bt_cursor.c"/> + <File RelativePath="..\btree\bt_delete.c"/> + <File RelativePath="..\btree\bt_method.c"/> + <File RelativePath="..\btree\bt_open.c"/> + <File RelativePath="..\btree\bt_put.c"/> + <File RelativePath="..\btree\bt_rec.c"/> + <File RelativePath="..\btree\bt_reclaim.c"/> + <File RelativePath="..\btree\bt_recno.c"/> + <File RelativePath="..\btree\bt_rsearch.c"/> + <File RelativePath="..\btree\bt_search.c"/> + <File RelativePath="..\btree\bt_split.c"/> + <File RelativePath="..\btree\bt_stat.c"/> + <File RelativePath="..\btree\bt_upgrade.c"/> + <File RelativePath="..\btree\bt_verify.c"/> + <File RelativePath="..\btree\btree_auto.c"/> + <File RelativePath="..\db\crdel_auto.c"/> + <File RelativePath="..\db\crdel_rec.c"/> + <File RelativePath="..\crypto\crypto.c"/> + <File RelativePath="..\cxx\cxx_db.cpp"/> + <File RelativePath="..\cxx\cxx_dbc.cpp"/> + <File RelativePath="..\cxx\cxx_dbt.cpp"/> + <File RelativePath="..\cxx\cxx_env.cpp"/> + <File RelativePath="..\cxx\cxx_except.cpp"/> + <File RelativePath="..\cxx\cxx_lock.cpp"/> + <File RelativePath="..\cxx\cxx_logc.cpp"/> + <File RelativePath="..\cxx\cxx_mpool.cpp"/> + <File RelativePath="..\cxx\cxx_multi.cpp"/> + <File RelativePath="..\cxx\cxx_seq.cpp"/> + <File RelativePath="..\cxx\cxx_txn.cpp"/> + <File RelativePath="..\db\db.c"/> + <File RelativePath="..\db\db_am.c"/> + <File RelativePath="..\db\db_auto.c"/> + <File RelativePath="..\common\db_byteorder.c"/> + <File RelativePath="..\db\db_cam.c"/> + <File RelativePath="..\db\db_cds.c"/> + <File RelativePath="..\db\db_conv.c"/> + <File RelativePath="..\db\db_dispatch.c"/> + <File RelativePath="..\db\db_dup.c"/> + <File RelativePath="..\common\db_err.c"/> + <File RelativePath="..\common\db_getlong.c"/> + <File RelativePath="..\common\db_idspace.c"/> + <File RelativePath="..\common\db_compint.c"/> + <File RelativePath="..\db\db_iface.c"/> + <File RelativePath="..\db\db_join.c"/> + <File RelativePath="..\common\db_log2.c"/> + <File RelativePath="..\db\db_meta.c"/> + <File RelativePath="..\db\db_method.c"/> + <File RelativePath="..\db\db_open.c"/> + <File RelativePath="..\db\db_overflow.c"/> + <File RelativePath="..\db\db_ovfl_vrfy.c"/> + <File RelativePath="..\db\db_pr.c"/> + <File RelativePath="..\db\db_rec.c"/> + <File RelativePath="..\db\db_reclaim.c"/> + <File RelativePath="..\db\db_remove.c"/> + <File RelativePath="..\db\db_rename.c"/> + <File RelativePath="..\db\db_ret.c"/> + <File RelativePath="..\db\db_setid.c"/> + <File RelativePath="..\db\db_setlsn.c"/> + <File RelativePath="..\common\db_shash.c"/> + <File RelativePath="..\db\db_sort_multiple.c"/> + <File RelativePath="..\db\db_stati.c"/> + <File RelativePath="..\db\db_truncate.c"/> + <File RelativePath="..\db\db_upg.c"/> + <File RelativePath="..\db\db_upg_opd.c"/> + <File RelativePath="..\db\db_vrfy.c"/> + <File RelativePath="..\db\db_vrfyutil.c"/> + <File RelativePath="..\db\partition.c"/> + <File RelativePath="..\dbm\dbm.c"/> + <File RelativePath="..\dbreg\dbreg.c"/> + <File RelativePath="..\dbreg\dbreg_auto.c"/> + <File RelativePath="..\dbreg\dbreg_rec.c"/> + <File RelativePath="..\dbreg\dbreg_stat.c"/> + <File RelativePath="..\dbreg\dbreg_util.c"/> + <File RelativePath="..\common\dbt.c"/> + <File RelativePath="..\env\env_alloc.c"/> + <File RelativePath="..\env\env_config.c"/> + <File RelativePath="..\env\env_failchk.c"/> + <File RelativePath="..\env\env_file.c"/> + <File RelativePath="..\env\env_globals.c"/> + <File RelativePath="..\env\env_method.c"/> + <File RelativePath="..\env\env_name.c"/> + <File RelativePath="..\env\env_open.c"/> + <File RelativePath="..\env\env_recover.c"/> + <File RelativePath="..\env\env_region.c"/> + <File RelativePath="..\env\env_register.c"/> + <File RelativePath="..\env\env_sig.c"/> + <File RelativePath="..\env\env_stat.c"/> + <File RelativePath="..\fileops\fileops_auto.c"/> + <File RelativePath="..\fileops\fop_basic.c"/> + <File RelativePath="..\fileops\fop_rec.c"/> + <File RelativePath="..\fileops\fop_util.c"/> + <File RelativePath="..\hash\hash.c"/> + <File RelativePath="..\hash\hash_auto.c"/> + <File RelativePath="..\hash\hash_conv.c"/> + <File RelativePath="..\hash\hash_dup.c"/> + <File RelativePath="..\hash\hash_func.c"/> + <File RelativePath="..\hash\hash_meta.c"/> + <File RelativePath="..\hash\hash_method.c"/> + <File RelativePath="..\hash\hash_open.c"/> + <File RelativePath="..\hash\hash_page.c"/> + <File RelativePath="..\hash\hash_rec.c"/> + <File RelativePath="..\hash\hash_reclaim.c"/> + <File RelativePath="..\hash\hash_stat.c"/> + <File RelativePath="..\hash\hash_upgrade.c"/> + <File RelativePath="..\hash\hash_verify.c"/> + <File RelativePath="..\hmac\hmac.c"/> + <File RelativePath="..\hsearch\hsearch.c"/> + <File RelativePath="..\build_windows\libdb.def"/> + <File RelativePath="..\build_windows\libdb.rc"> + <FileConfiguration Name="Debug|Win32"><Tool Name="VCResourceCompilerTool" PreprocessorDefinitions="_DEBUG;$(NoInherit))"/> + </FileConfiguration> + <FileConfiguration Name="Release|Win32"><Tool Name="VCResourceCompilerTool" PreprocessorDefinitions="NDEBUG;$(NoInherit))"/> + </FileConfiguration> + <FileConfiguration Name="Debug|x64"><Tool Name="VCResourceCompilerTool" PreprocessorDefinitions="_DEBUG;$(NoInherit))"/> + </FileConfiguration> + <FileConfiguration Name="Release|x64"><Tool Name="VCResourceCompilerTool" PreprocessorDefinitions="NDEBUG;$(NoInherit))"/> + </FileConfiguration> + <FileConfiguration Name="Debug|IA64"><Tool Name="VCResourceCompilerTool" PreprocessorDefinitions="_DEBUG;$(NoInherit))"/> + </FileConfiguration> + <FileConfiguration Name="Release|IA64"><Tool Name="VCResourceCompilerTool" PreprocessorDefinitions="NDEBUG;$(NoInherit))"/> + </FileConfiguration> + </File> + <File RelativePath="..\lock\lock.c"/> + <File RelativePath="..\lock\lock_deadlock.c"/> + <File RelativePath="..\lock\lock_failchk.c"/> + <File RelativePath="..\lock\lock_id.c"/> + <File RelativePath="..\lock\lock_list.c"/> + <File RelativePath="..\lock\lock_method.c"/> + <File RelativePath="..\lock\lock_region.c"/> + <File RelativePath="..\lock\lock_stat.c"/> + <File RelativePath="..\lock\lock_timer.c"/> + <File RelativePath="..\lock\lock_util.c"/> + <File RelativePath="..\log\log.c"/> + <File RelativePath="..\log\log_archive.c"/> + <File RelativePath="..\log\log_compare.c"/> + <File RelativePath="..\log\log_debug.c"/> + <File RelativePath="..\log\log_get.c"/> + <File RelativePath="..\log\log_method.c"/> + <File RelativePath="..\log\log_put.c"/> + <File RelativePath="..\log\log_stat.c"/> + <File RelativePath="..\common\mkpath.c"/> + <File RelativePath="..\mp\mp_alloc.c"/> + <File RelativePath="..\mp\mp_bh.c"/> + <File RelativePath="..\mp\mp_fget.c"/> + <File RelativePath="..\mp\mp_fmethod.c"/> + <File RelativePath="..\mp\mp_fopen.c"/> + <File RelativePath="..\mp\mp_fput.c"/> + <File RelativePath="..\mp\mp_fset.c"/> + <File RelativePath="..\mp\mp_method.c"/> + <File RelativePath="..\mp\mp_mvcc.c"/> + <File RelativePath="..\mp\mp_region.c"/> + <File RelativePath="..\mp\mp_register.c"/> + <File RelativePath="..\mp\mp_resize.c"/> + <File RelativePath="..\mp\mp_stat.c"/> + <File RelativePath="..\mp\mp_sync.c"/> + <File RelativePath="..\mp\mp_trickle.c"/> + <File RelativePath="..\crypto\mersenne\mt19937db.c"/> + <File RelativePath="..\mutex\mut_alloc.c"/> + <File RelativePath="..\mutex\mut_failchk.c"/> + <File RelativePath="..\mutex\mut_method.c"/> + <File RelativePath="..\mutex\mut_region.c"/> + <File RelativePath="..\mutex\mut_stat.c"/> + <File RelativePath="..\mutex\mut_win32.c"/> + <File RelativePath="..\common\openflags.c"/> + <File RelativePath="..\os\os_abort.c"/> + <File RelativePath="..\os\os_addrinfo.c"/> + <File RelativePath="..\os_windows\os_abs.c"/> + <File RelativePath="..\os\os_alloc.c"/> + <File RelativePath="..\os_windows\os_clock.c"/> + <File RelativePath="..\os_windows\os_config.c"/> + <File RelativePath="..\os_windows\os_cpu.c"/> + <File RelativePath="..\os\os_ctime.c"/> + <File RelativePath="..\os_windows\os_dir.c"/> + <File RelativePath="..\os_windows\os_errno.c"/> + <File RelativePath="..\os_windows\os_fid.c"/> + <File RelativePath="..\os_windows\os_flock.c"/> + <File RelativePath="..\os_windows\os_fsync.c"/> + <File RelativePath="..\os_windows\os_getenv.c"/> + <File RelativePath="..\os_windows\os_handle.c"/> + <File RelativePath="..\os_windows\os_map.c"/> + <File RelativePath="..\os_windows\os_mkdir.c"/> + <File RelativePath="..\os_windows\os_open.c"/> + <File RelativePath="..\os\os_pid.c"/> + <File RelativePath="..\os_windows\os_rename.c"/> + <File RelativePath="..\os\os_root.c"/> + <File RelativePath="..\os\os_rpath.c"/> + <File RelativePath="..\os_windows\os_rw.c"/> + <File RelativePath="..\os_windows\os_seek.c"/> + <File RelativePath="..\os\os_stack.c"/> + <File RelativePath="..\os_windows\os_stat.c"/> + <File RelativePath="..\os\os_tmpdir.c"/> + <File RelativePath="..\os_windows\os_truncate.c"/> + <File RelativePath="..\os\os_uid.c"/> + <File RelativePath="..\os_windows\os_unlink.c"/> + <File RelativePath="..\os_windows\os_yield.c"/> + <File RelativePath="..\qam\qam.c"/> + <File RelativePath="..\qam\qam_auto.c"/> + <File RelativePath="..\qam\qam_conv.c"/> + <File RelativePath="..\qam\qam_files.c"/> + <File RelativePath="..\qam\qam_method.c"/> + <File RelativePath="..\qam\qam_open.c"/> + <File RelativePath="..\qam\qam_rec.c"/> + <File RelativePath="..\qam\qam_stat.c"/> + <File RelativePath="..\qam\qam_upgrade.c"/> + <File RelativePath="..\qam\qam_verify.c"/> + <File RelativePath="..\rep\rep_auto.c"/> + <File RelativePath="..\rep\rep_backup.c"/> + <File RelativePath="..\rep\rep_elect.c"/> + <File RelativePath="..\rep\rep_lease.c"/> + <File RelativePath="..\rep\rep_log.c"/> + <File RelativePath="..\rep\rep_method.c"/> + <File RelativePath="..\rep\rep_record.c"/> + <File RelativePath="..\rep\rep_region.c"/> + <File RelativePath="..\rep\rep_stat.c"/> + <File RelativePath="..\rep\rep_util.c"/> + <File RelativePath="..\rep\rep_verify.c"/> + <File RelativePath="..\repmgr\repmgr_auto.c"/> + <File RelativePath="..\repmgr\repmgr_elect.c"/> + <File RelativePath="..\repmgr\repmgr_method.c"/> + <File RelativePath="..\repmgr\repmgr_msg.c"/> + <File RelativePath="..\repmgr\repmgr_net.c"/> + <File RelativePath="..\repmgr\repmgr_queue.c"/> + <File RelativePath="..\repmgr\repmgr_sel.c"/> + <File RelativePath="..\repmgr\repmgr_stat.c"/> + <File RelativePath="..\repmgr\repmgr_util.c"/> + <File RelativePath="..\repmgr\repmgr_windows.c"/> + <File RelativePath="..\crypto\rijndael\rijndael-alg-fst.c"/> + <File RelativePath="..\crypto\rijndael\rijndael-api-fst.c"/> + <File RelativePath="..\sequence\seq_stat.c"/> + <File RelativePath="..\sequence\sequence.c"/> + <File RelativePath="..\hmac\sha1.c"/> + <File RelativePath="..\clib\strsep.c"/> + <File RelativePath="..\txn\txn.c"/> + <File RelativePath="..\txn\txn_auto.c"/> + <File RelativePath="..\txn\txn_chkpt.c"/> + <File RelativePath="..\txn\txn_failchk.c"/> + <File RelativePath="..\txn\txn_method.c"/> + <File RelativePath="..\txn\txn_rec.c"/> + <File RelativePath="..\txn\txn_recover.c"/> + <File RelativePath="..\txn\txn_region.c"/> + <File RelativePath="..\txn\txn_stat.c"/> + <File RelativePath="..\txn\txn_util.c"/> + <File RelativePath="..\common\os_method.c"/> + <File RelativePath="..\common\util_cache.c"/> + <File RelativePath="..\common\util_log.c"/> + <File RelativePath="..\common\util_sig.c"/> + <File RelativePath="..\common\zerofill.c"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/db_stl.vcproj b/build_windows/db_stl.vcproj new file mode 100644 index 0000000..06d5891 --- /dev/null +++ b/build_windows/db_stl.vcproj @@ -0,0 +1,94 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="db_stl" ProjectGUID="{284CC197-0C66-11DE-8C30-0800200C9A66}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_stl" ConfigurationType="2" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;DB_CREATE_DLL;_UNICODE;UNICODE;_USRDLL" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_stl.pch" AssemblerListingLocation="$(OutDir)/db_stl/" ObjectFile="$(OutDir)/db_stl/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/libdb_stl48d.dll" ProgramDatabaseFile="$(OutDir)/libdb_stl48d.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" ImportLibrary="$(OutDir)/libdb_stl48d.lib" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_stl" ConfigurationType="2" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;DB_CREATE_DLL;_UNICODE;UNICODE;_USRDLL" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_stl.pch" AssemblerListingLocation="$(OutDir)/db_stl/" ObjectFile="$(OutDir)/db_stl/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/libdb_stl48.dll" ProgramDatabaseFile="$(OutDir)/libdb_stl48.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" ImportLibrary="$(OutDir)/libdb_stl48.lib" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_stl" ConfigurationType="2" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;DB_CREATE_DLL;_UNICODE;UNICODE;_USRDLL" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_stl.pch" AssemblerListingLocation="$(OutDir)/db_stl/" ObjectFile="$(OutDir)/db_stl/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/libdb_stl48d.dll" ProgramDatabaseFile="$(OutDir)/libdb_stl48d.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" ImportLibrary="$(OutDir)/libdb_stl48d.lib" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_stl" ConfigurationType="2" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;DB_CREATE_DLL;_UNICODE;UNICODE;_USRDLL" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_stl.pch" AssemblerListingLocation="$(OutDir)/db_stl/" ObjectFile="$(OutDir)/db_stl/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/libdb_stl48.dll" ProgramDatabaseFile="$(OutDir)/libdb_stl48.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" ImportLibrary="$(OutDir)/libdb_stl48.lib" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_stl" ConfigurationType="2" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;DB_CREATE_DLL;_UNICODE;UNICODE;_USRDLL" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_stl.pch" AssemblerListingLocation="$(OutDir)/db_stl/" ObjectFile="$(OutDir)/db_stl/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/libdb_stl48d.dll" ProgramDatabaseFile="$(OutDir)/libdb_stl48d.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" ImportLibrary="$(OutDir)/libdb_stl48d.lib" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_stl" ConfigurationType="2" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;DB_CREATE_DLL;_UNICODE;UNICODE;_USRDLL" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_stl.pch" AssemblerListingLocation="$(OutDir)/db_stl/" ObjectFile="$(OutDir)/db_stl/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/libdb_stl48.dll" ProgramDatabaseFile="$(OutDir)/libdb_stl48.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" ImportLibrary="$(OutDir)/libdb_stl48.lib" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\stl\dbstl_exception.h"/> + <File RelativePath="..\stl\dbstl_map.h"/> + <File RelativePath="..\stl\dbstl_set.h"/> + <File RelativePath="..\stl\dbstl_utility.h"/> + <File RelativePath="..\stl\dbstl_vector.h"/> + <File RelativePath="..\stl\dbstl_common.h"/> + <File RelativePath="..\stl\dbstl_base_iterator.h"/> + <File RelativePath="..\stl\dbstl_container.cpp"/> + <File RelativePath="..\stl\dbstl_container.h"/> + <File RelativePath="..\stl\dbstl_dbc.h"/> + <File RelativePath="..\stl\dbstl_dbt.h"/> + <File RelativePath="..\stl\dbstl_element_ref.h"/> + <File RelativePath="..\stl\dbstl_inner_utility.h"/> + <File RelativePath="..\stl\dbstl_resource_manager.cpp"/> + <File RelativePath="..\stl\dbstl_resource_manager.h"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/db_stl_static.vcproj b/build_windows/db_stl_static.vcproj new file mode 100644 index 0000000..9132cd5 --- /dev/null +++ b/build_windows/db_stl_static.vcproj @@ -0,0 +1,82 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="db_stl_static" ProjectGUID="{284CC198-0C66-11DE-8C30-0800200C9A66}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug_static" IntermediateDirectory="./$(OutDir)/db_stl_static" ConfigurationType="4" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_UNICODE;UNICODE;DIAGNOSTIC;_LIB;" StringPooling="TRUE" RuntimeLibrary="1" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_stl_static.pch" AssemblerListingLocation="$(OutDir)/db_stl_static/" ObjectFile="$(OutDir)/db_stl_static/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLibrarianTool" OutputFile="$(OutDir)/libdb_stl48sd.lib"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release_static" IntermediateDirectory="./$(OutDir)/db_stl_static" ConfigurationType="4" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_UNICODE;UNICODE;_LIB;" StringPooling="TRUE" RuntimeLibrary="0" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_stl_static.pch" AssemblerListingLocation="$(OutDir)/db_stl_static/" ObjectFile="$(OutDir)/db_stl_static/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLibrarianTool" OutputFile="$(OutDir)/libdb_stl48s.lib"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug_static" IntermediateDirectory="./$(OutDir)/db_stl_static" ConfigurationType="4" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_UNICODE;UNICODE;DIAGNOSTIC;_LIB;" StringPooling="TRUE" RuntimeLibrary="1" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_stl_static.pch" AssemblerListingLocation="$(OutDir)/db_stl_static/" ObjectFile="$(OutDir)/db_stl_static/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLibrarianTool" OutputFile="$(OutDir)/libdb_stl48sd.lib"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release_static" IntermediateDirectory="./$(OutDir)/db_stl_static" ConfigurationType="4" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_UNICODE;UNICODE;_LIB;" StringPooling="TRUE" RuntimeLibrary="0" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_stl_static.pch" AssemblerListingLocation="$(OutDir)/db_stl_static/" ObjectFile="$(OutDir)/db_stl_static/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLibrarianTool" OutputFile="$(OutDir)/libdb_stl48s.lib"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug_static" IntermediateDirectory="./$(OutDir)/db_stl_static" ConfigurationType="4" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_UNICODE;UNICODE;DIAGNOSTIC;_LIB;" StringPooling="TRUE" RuntimeLibrary="1" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_stl_static.pch" AssemblerListingLocation="$(OutDir)/db_stl_static/" ObjectFile="$(OutDir)/db_stl_static/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLibrarianTool" OutputFile="$(OutDir)/libdb_stl48sd.lib"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release_static" IntermediateDirectory="./$(OutDir)/db_stl_static" ConfigurationType="4" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_UNICODE;UNICODE;_LIB;" StringPooling="TRUE" RuntimeLibrary="0" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_stl_static.pch" AssemblerListingLocation="$(OutDir)/db_stl_static/" ObjectFile="$(OutDir)/db_stl_static/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLibrarianTool" OutputFile="$(OutDir)/libdb_stl48s.lib"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\stl\dbstl_exception.h"/> + <File RelativePath="..\stl\dbstl_map.h"/> + <File RelativePath="..\stl\dbstl_set.h"/> + <File RelativePath="..\stl\dbstl_utility.h"/> + <File RelativePath="..\stl\dbstl_vector.h"/> + <File RelativePath="..\stl\dbstl_common.h"/> + <File RelativePath="..\stl\dbstl_base_iterator.h"/> + <File RelativePath="..\stl\dbstl_container.cpp"/> + <File RelativePath="..\stl\dbstl_container.h"/> + <File RelativePath="..\stl\dbstl_dbc.h"/> + <File RelativePath="..\stl\dbstl_dbt.h"/> + <File RelativePath="..\stl\dbstl_element_ref.h"/> + <File RelativePath="..\stl\dbstl_inner_utility.h"/> + <File RelativePath="..\stl\dbstl_resource_manager.cpp"/> + <File RelativePath="..\stl\dbstl_resource_manager.h"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/db_tcl.dsp b/build_windows/db_tcl.dsp new file mode 100644 index 0000000..ee962c1 --- /dev/null +++ b/build_windows/db_tcl.dsp @@ -0,0 +1,161 @@ +# Microsoft Developer Studio Project File - Name="db_tcl" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
+
+CFG=db_tcl - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "db_tcl.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "db_tcl.mak" CFG="db_tcl - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "db_tcl - Win32 Release x86" (based on "Win32 (x86) Dynamic-Link Library")
+!MESSAGE "db_tcl - Win32 Debug x86" (based on "Win32 (x86) Dynamic-Link Library")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+MTL=midl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "db_tcl - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32/Release"
+# PROP BASE Intermediate_Dir "Win32/Release/db_tcl"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32/Release"
+# PROP Intermediate_Dir "Win32/Release/db_tcl"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /MD /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /D "DB_TCL_SUPPORT" /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /Ob2 /I "." /I ".." /D "UNICODE" /D "_UNICODE" /D "DB_CREATE_DLL" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /D "DB_TCL_SUPPORT" /FD /c
+# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
+# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 libdb48.lib tcl84.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:windows /dll /machine:I386
+# ADD LINK32 libdb48.lib tcl84.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /base:"0x13000000" /subsystem:windows /dll /machine:I386 /out:"Win32/Release/libdb_tcl48.dll" /libpath:"$(OUTDIR)"
+
+!ELSEIF "$(CFG)" == "db_tcl - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32/Debug"
+# PROP BASE Intermediate_Dir "Win32/Debug/db_tcl"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32/Debug"
+# PROP Intermediate_Dir "Win32/Debug/db_tcl"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /D "DB_TCL_SUPPORT" /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "UNICODE" /D "_UNICODE" /D "DB_CREATE_DLL" /D "DIAGNOSTIC" /D "CONFIG_TEST" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /D "DB_TCL_SUPPORT" /FD /c
+# SUBTRACT CPP /Fr
+# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
+# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 libdb48d.lib tcl84g.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:windows /dll /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 libdb48d.lib tcl84g.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /base:"0x13000000" /subsystem:windows /dll /export:__db_assert /pdb:none /debug /machine:I386 /out:"Win32/Debug/libdb_tcl48d.dll" /fixed:no /libpath:"$(OUTDIR)"
+
+!ENDIF
+
+# Begin Target
+
+# Name "db_tcl - Win32 Release x86"
+# Name "db_tcl - Win32 Debug x86"
+# Begin Source File
+
+SOURCE=.\libdb_tcl.def
+# End Source File
+# Begin Source File
+
+SOURCE=..\os\os_abort.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\os\os_stack.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\tcl\tcl_compat.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\tcl\tcl_db.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\tcl\tcl_db_pkg.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\tcl\tcl_dbcursor.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\tcl\tcl_env.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\tcl\tcl_internal.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\tcl\tcl_lock.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\tcl\tcl_log.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\tcl\tcl_mp.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\tcl\tcl_mutex.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\tcl\tcl_rep.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\tcl\tcl_seq.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\tcl\tcl_txn.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\tcl\tcl_util.c
+# End Source File
+
+# End Target
+# End Project
diff --git a/build_windows/db_tcl.vcproj b/build_windows/db_tcl.vcproj new file mode 100644 index 0000000..ef9f0d2 --- /dev/null +++ b/build_windows/db_tcl.vcproj @@ -0,0 +1,96 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="db_tcl" ProjectGUID="{7F3D3EEE-2ABB-4F0F-A2A7-DE88C1989BE1}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_tcl" ConfigurationType="2" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;DB_CREATE_DLL;_UNICODE;DB_TCL_SUPPORT;DIAGNOSTIC;CONFIG_TEST;_USRDLL" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_tcl.pch" AssemblerListingLocation="$(OutDir)/db_tcl/" ObjectFile="$(OutDir)/db_tcl/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib tcl84g.lib" AdditionalLibraryDirectories="$(OutDir);C:/tcl/lib" OutputFile="$(OutDir)/libdb_tcl48d.dll" ProgramDatabaseFile="$(OutDir)/libdb_tcl48d.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" ImportLibrary="$(OutDir)/libdb_tcl48d.lib" ModuleDefinitionFile="..\build_windows\libdb_tcl.def" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_tcl" ConfigurationType="2" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;DB_CREATE_DLL;_UNICODE;DB_TCL_SUPPORT;_USRDLL" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_tcl.pch" AssemblerListingLocation="$(OutDir)/db_tcl/" ObjectFile="$(OutDir)/db_tcl/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib tcl84.lib" AdditionalLibraryDirectories="$(OutDir);C:/tcl/lib" OutputFile="$(OutDir)/libdb_tcl48.dll" ProgramDatabaseFile="$(OutDir)/libdb_tcl48.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" ImportLibrary="$(OutDir)/libdb_tcl48.lib" ModuleDefinitionFile="..\build_windows\libdb_tcl.def" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_tcl" ConfigurationType="2" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;DB_CREATE_DLL;_UNICODE;DB_TCL_SUPPORT;DIAGNOSTIC;CONFIG_TEST;_USRDLL" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_tcl.pch" AssemblerListingLocation="$(OutDir)/db_tcl/" ObjectFile="$(OutDir)/db_tcl/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib tcl84g.lib" AdditionalLibraryDirectories="$(OutDir);C:/tcl/lib" OutputFile="$(OutDir)/libdb_tcl48d.dll" ProgramDatabaseFile="$(OutDir)/libdb_tcl48d.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" ImportLibrary="$(OutDir)/libdb_tcl48d.lib" ModuleDefinitionFile="..\build_windows\libdb_tcl.def" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_tcl" ConfigurationType="2" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;DB_CREATE_DLL;_UNICODE;DB_TCL_SUPPORT;_USRDLL" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_tcl.pch" AssemblerListingLocation="$(OutDir)/db_tcl/" ObjectFile="$(OutDir)/db_tcl/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib tcl84.lib" AdditionalLibraryDirectories="$(OutDir);C:/tcl/lib" OutputFile="$(OutDir)/libdb_tcl48.dll" ProgramDatabaseFile="$(OutDir)/libdb_tcl48.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" ImportLibrary="$(OutDir)/libdb_tcl48.lib" ModuleDefinitionFile="..\build_windows\libdb_tcl.def" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_tcl" ConfigurationType="2" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;DB_CREATE_DLL;_UNICODE;DB_TCL_SUPPORT;DIAGNOSTIC;CONFIG_TEST;_USRDLL" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_tcl.pch" AssemblerListingLocation="$(OutDir)/db_tcl/" ObjectFile="$(OutDir)/db_tcl/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib tcl84g.lib" AdditionalLibraryDirectories="$(OutDir);C:/tcl/lib" OutputFile="$(OutDir)/libdb_tcl48d.dll" ProgramDatabaseFile="$(OutDir)/libdb_tcl48d.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" ImportLibrary="$(OutDir)/libdb_tcl48d.lib" ModuleDefinitionFile="..\build_windows\libdb_tcl.def" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_tcl" ConfigurationType="2" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;DB_CREATE_DLL;_UNICODE;DB_TCL_SUPPORT;_USRDLL" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_tcl.pch" AssemblerListingLocation="$(OutDir)/db_tcl/" ObjectFile="$(OutDir)/db_tcl/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib tcl84.lib" AdditionalLibraryDirectories="$(OutDir);C:/tcl/lib" OutputFile="$(OutDir)/libdb_tcl48.dll" ProgramDatabaseFile="$(OutDir)/libdb_tcl48.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" ImportLibrary="$(OutDir)/libdb_tcl48.lib" ModuleDefinitionFile="..\build_windows\libdb_tcl.def" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\os\os_abort.c"/> + <File RelativePath="..\os\os_stack.c"/> + <File RelativePath="..\tcl\tcl_compat.c"/> + <File RelativePath="..\tcl\tcl_db.c"/> + <File RelativePath="..\tcl\tcl_db_pkg.c"/> + <File RelativePath="..\tcl\tcl_dbcursor.c"/> + <File RelativePath="..\tcl\tcl_env.c"/> + <File RelativePath="..\tcl\tcl_internal.c"/> + <File RelativePath="..\tcl\tcl_lock.c"/> + <File RelativePath="..\tcl\tcl_log.c"/> + <File RelativePath="..\tcl\tcl_mp.c"/> + <File RelativePath="..\tcl\tcl_mutex.c"/> + <File RelativePath="..\tcl\tcl_rep.c"/> + <File RelativePath="..\tcl\tcl_seq.c"/> + <File RelativePath="..\tcl\tcl_txn.c"/> + <File RelativePath="..\tcl\tcl_util.c"/> + <File RelativePath="..\build_windows\libdb_tcl.def"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/db_test.dsp b/build_windows/db_test.dsp new file mode 100644 index 0000000..3a184ba --- /dev/null +++ b/build_windows/db_test.dsp @@ -0,0 +1,94 @@ +# Microsoft Developer Studio Project File - Name="db_test" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=db_test - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "db_test.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "db_test.mak" CFG="db_test - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "db_test - Win32 Release x86" (based on "Win32 (x86) Console Application")
+!MESSAGE "db_test - Win32 Debug x86" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "db_test - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32/Release"
+# PROP BASE Intermediate_Dir "Win32/Release/db_test"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32/Release"
+# PROP Intermediate_Dir "Win32/Release/db_test"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 /out:"Win32\Release\dbkill.exe" kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 libdb48.lib /out:"Win32\Release\dbkill.exe" kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386 /nodefaultlib:"libcmt" /libpath:"$(OUTDIR)"
+
+!ELSEIF "$(CFG)" == "db_test - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32/Debug"
+# PROP BASE Intermediate_Dir "Win32/Debug/db_test"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32/Debug"
+# PROP Intermediate_Dir "Win32/Debug/db_test"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 /out:"Win32\Debug\dbkill.exe" kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 libdb48d.lib /out:"Win32\Debug\dbkill.exe" kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /nodefaultlib:"libcmtd" /fixed:no /libpath:"$(OUTDIR)"
+
+!ENDIF
+
+# Begin Target
+
+# Name "db_test - Win32 Release x86"
+# Name "db_test - Win32 Debug x86"
+# Begin Source File
+
+SOURCE=.\dbkill.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=..\clib\getopt.c
+# End Source File
+# End Target
+# End Project
diff --git a/build_windows/db_test.vcproj b/build_windows/db_test.vcproj new file mode 100644 index 0000000..e720294 --- /dev/null +++ b/build_windows/db_test.vcproj @@ -0,0 +1,81 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="db_test" ProjectGUID="{B17B933F-6F75-4095-BE51-12666358163A}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_test" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_test.pch" AssemblerListingLocation="$(OutDir)/dbkill/" ObjectFile="$(OutDir)/dbkill/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/dbkill.exe" ProgramDatabaseFile="$(OutDir)/dbkill.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_test" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_test.pch" AssemblerListingLocation="$(OutDir)/dbkill/" ObjectFile="$(OutDir)/dbkill/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/dbkill.exe" ProgramDatabaseFile="$(OutDir)/dbkill.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_test" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_test.pch" AssemblerListingLocation="$(OutDir)/dbkill/" ObjectFile="$(OutDir)/dbkill/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/dbkill.exe" ProgramDatabaseFile="$(OutDir)/dbkill.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_test" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_test.pch" AssemblerListingLocation="$(OutDir)/dbkill/" ObjectFile="$(OutDir)/dbkill/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/dbkill.exe" ProgramDatabaseFile="$(OutDir)/dbkill.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_test" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_test.pch" AssemblerListingLocation="$(OutDir)/dbkill/" ObjectFile="$(OutDir)/dbkill/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/dbkill.exe" ProgramDatabaseFile="$(OutDir)/dbkill.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_test" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_test.pch" AssemblerListingLocation="$(OutDir)/dbkill/" ObjectFile="$(OutDir)/dbkill/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/dbkill.exe" ProgramDatabaseFile="$(OutDir)/dbkill.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\build_windows\dbkill.cpp"/> + <File RelativePath="..\clib\getopt.c"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/db_upgrade.dsp b/build_windows/db_upgrade.dsp new file mode 100644 index 0000000..6754431 --- /dev/null +++ b/build_windows/db_upgrade.dsp @@ -0,0 +1,94 @@ +# Microsoft Developer Studio Project File - Name="db_upgrade" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=db_upgrade - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "db_upgrade.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "db_upgrade.mak" CFG="db_upgrade - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "db_upgrade - Win32 Release x86" (based on "Win32 (x86) Console Application")
+!MESSAGE "db_upgrade - Win32 Debug x86" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "db_upgrade - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32/Release"
+# PROP BASE Intermediate_Dir "Win32/Release/db_upgrade"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32/Release"
+# PROP Intermediate_Dir "Win32/Release/db_upgrade"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 libdb48.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386 /nodefaultlib:"libcmt" /libpath:"$(OUTDIR)"
+
+!ELSEIF "$(CFG)" == "db_upgrade - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32/Debug"
+# PROP BASE Intermediate_Dir "Win32/Debug/db_upgrade"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32/Debug"
+# PROP Intermediate_Dir "Win32/Debug/db_upgrade"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 libdb48d.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /nodefaultlib:"libcmtd" /fixed:no /libpath:"$(OUTDIR)"
+
+!ENDIF
+
+# Begin Target
+
+# Name "db_upgrade - Win32 Release x86"
+# Name "db_upgrade - Win32 Debug x86"
+# Begin Source File
+
+SOURCE=..\db_upgrade\db_upgrade.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\clib\getopt.c
+# End Source File
+# End Target
+# End Project
diff --git a/build_windows/db_upgrade.vcproj b/build_windows/db_upgrade.vcproj new file mode 100644 index 0000000..66ba91a --- /dev/null +++ b/build_windows/db_upgrade.vcproj @@ -0,0 +1,81 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="db_upgrade" ProjectGUID="{5F4D66DB-8D75-43D4-A1BB-60A01BC6B32F}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_upgrade" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_upgrade.pch" AssemblerListingLocation="$(OutDir)/db_upgrade/" ObjectFile="$(OutDir)/db_upgrade/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_upgrade.exe" ProgramDatabaseFile="$(OutDir)/db_upgrade.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_upgrade" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_upgrade.pch" AssemblerListingLocation="$(OutDir)/db_upgrade/" ObjectFile="$(OutDir)/db_upgrade/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_upgrade.exe" ProgramDatabaseFile="$(OutDir)/db_upgrade.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_upgrade" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_upgrade.pch" AssemblerListingLocation="$(OutDir)/db_upgrade/" ObjectFile="$(OutDir)/db_upgrade/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_upgrade.exe" ProgramDatabaseFile="$(OutDir)/db_upgrade.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_upgrade" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_upgrade.pch" AssemblerListingLocation="$(OutDir)/db_upgrade/" ObjectFile="$(OutDir)/db_upgrade/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_upgrade.exe" ProgramDatabaseFile="$(OutDir)/db_upgrade.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_upgrade" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_upgrade.pch" AssemblerListingLocation="$(OutDir)/db_upgrade/" ObjectFile="$(OutDir)/db_upgrade/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_upgrade.exe" ProgramDatabaseFile="$(OutDir)/db_upgrade.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_upgrade" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_upgrade.pch" AssemblerListingLocation="$(OutDir)/db_upgrade/" ObjectFile="$(OutDir)/db_upgrade/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_upgrade.exe" ProgramDatabaseFile="$(OutDir)/db_upgrade.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\db_upgrade\db_upgrade.c"/> + <File RelativePath="..\clib\getopt.c"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/db_verify.dsp b/build_windows/db_verify.dsp new file mode 100644 index 0000000..db2580b --- /dev/null +++ b/build_windows/db_verify.dsp @@ -0,0 +1,94 @@ +# Microsoft Developer Studio Project File - Name="db_verify" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=db_verify - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "db_verify.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "db_verify.mak" CFG="db_verify - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "db_verify - Win32 Release x86" (based on "Win32 (x86) Console Application")
+!MESSAGE "db_verify - Win32 Debug x86" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "db_verify - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32/Release"
+# PROP BASE Intermediate_Dir "Win32/Release/db_verify"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32/Release"
+# PROP Intermediate_Dir "Win32/Release/db_verify"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 libdb48.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386 /nodefaultlib:"libcmt" /libpath:"$(OUTDIR)"
+
+!ELSEIF "$(CFG)" == "db_verify - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32/Debug"
+# PROP BASE Intermediate_Dir "Win32/Debug/db_verify"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32/Debug"
+# PROP Intermediate_Dir "Win32/Debug/db_verify"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 libdb48d.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /nodefaultlib:"libcmtd" /fixed:no /libpath:"$(OUTDIR)"
+
+!ENDIF
+
+# Begin Target
+
+# Name "db_verify - Win32 Release x86"
+# Name "db_verify - Win32 Debug x86"
+# Begin Source File
+
+SOURCE=..\db_verify\db_verify.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\clib\getopt.c
+# End Source File
+# End Target
+# End Project
diff --git a/build_windows/db_verify.vcproj b/build_windows/db_verify.vcproj new file mode 100644 index 0000000..7e48f7c --- /dev/null +++ b/build_windows/db_verify.vcproj @@ -0,0 +1,81 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="db_verify" ProjectGUID="{12E118CA-CAAE-4F54-AE81-8D9981AA0635}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_verify" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_verify.pch" AssemblerListingLocation="$(OutDir)/db_verify/" ObjectFile="$(OutDir)/db_verify/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_verify.exe" ProgramDatabaseFile="$(OutDir)/db_verify.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_verify" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_verify.pch" AssemblerListingLocation="$(OutDir)/db_verify/" ObjectFile="$(OutDir)/db_verify/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_verify.exe" ProgramDatabaseFile="$(OutDir)/db_verify.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_verify" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_verify.pch" AssemblerListingLocation="$(OutDir)/db_verify/" ObjectFile="$(OutDir)/db_verify/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_verify.exe" ProgramDatabaseFile="$(OutDir)/db_verify.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_verify" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_verify.pch" AssemblerListingLocation="$(OutDir)/db_verify/" ObjectFile="$(OutDir)/db_verify/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_verify.exe" ProgramDatabaseFile="$(OutDir)/db_verify.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/db_verify" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_verify.pch" AssemblerListingLocation="$(OutDir)/db_verify/" ObjectFile="$(OutDir)/db_verify/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_verify.exe" ProgramDatabaseFile="$(OutDir)/db_verify.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/db_verify" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/db_verify.pch" AssemblerListingLocation="$(OutDir)/db_verify/" ObjectFile="$(OutDir)/db_verify/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/db_verify.exe" ProgramDatabaseFile="$(OutDir)/db_verify.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\db_verify\db_verify.c"/> + <File RelativePath="..\clib\getopt.c"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/dbkill.cpp b/build_windows/dbkill.cpp new file mode 100644 index 0000000..f911673 --- /dev/null +++ b/build_windows/dbkill.cpp @@ -0,0 +1,130 @@ +/*- + * See the file LICENSE for redistribution information. + * + * Copyright (c) 1999-2009 Oracle. All rights reserved. + * + * $Id$ + */ +/* + * Kill - + * Simulate Unix kill on Windows/NT and Windows/9X. + * This good enough to support the Berkeley DB test suite, + * but may be missing some favorite features. + * + * Would have used MKS kill, but it didn't seem to work well + * on Win/9X. Cygnus kill works within the Gnu/Cygnus environment + * (where processes are given small pids, with presumably a translation + * table between small pids and actual process handles), but our test + * environment, via Tcl, does not use the Cygnus environment. + * + * Compile this and install it as c:/tools/kill.exe (or as indicated + * by build_windows/include.tcl ). + */ + +#include <windows.h> +#include <stdio.h> +#include <stdlib.h> +#include <limits.h> + +/* + * Like atol, with specified base. Would use stdlib, but + * strtol("0xFFFF1234", NULL, 16) returns 0x7FFFFFFF and + * strtol("4294712487", NULL, 16) returns 0x7FFFFFFF w/ VC++ + */ +long +myatol(char *s, int base) +{ + long result = 0; + char ch; + int sign = 1; /* + */ + if (base == 0) + base = 10; + if (base != 10 && base != 16) + return LONG_MAX; + while ((ch = *s++) != '\0') { + if (ch == '-') { + sign = -sign; + } + else if (ch >= '0' && ch <= '9') { + result = result * base + (ch - '0'); + } + else if (ch == 'x' || ch == 'X') { + /* Allow leading 0x..., and switch to base 16 */ + base = 16; + } + else if (base == 16 && ch >= 'a' && ch <= 'f') { + result = result * base + (ch - 'a' + 10); + } + else if (base == 16 && ch >= 'A' && ch <= 'F') { + result = result * base + (ch - 'A' + 10); + } + else { + if (sign > 1) + return LONG_MAX; + else + return LONG_MIN; + } + } + return sign * result; +} + +void +usage_exit() +{ + fprintf(stderr, "Usage: kill [ -sig ] pid\n"); + fprintf(stderr, " for win32, sig must be or 0, 15 (TERM)\n"); + exit(EXIT_FAILURE); +} + +int +main(int argc, char **argv) +{ + HANDLE hProcess ; + DWORD accessflag; + long pid; + int sig = 15; + + if (argc > 2) { + if (argv[1][0] != '-') + usage_exit(); + + if (strcmp(argv[1], "-TERM") == 0) + sig = 15; + else { + /* currently sig is more or less ignored, + * we only care if it is zero or not + */ + sig = atoi(&argv[1][1]); + if (sig < 0) + usage_exit(); + } + argc--; + argv++; + } + if (argc < 2) + usage_exit(); + + pid = myatol(argv[1], 10); + /*printf("pid = %ld (0x%lx) (command line %s)\n", pid, pid, argv[1]);*/ + if (pid == LONG_MAX || pid == LONG_MIN) + usage_exit(); + + if (sig == 0) + accessflag = PROCESS_QUERY_INFORMATION | PROCESS_VM_READ; + else + accessflag = STANDARD_RIGHTS_REQUIRED | PROCESS_TERMINATE; + hProcess = OpenProcess(accessflag, FALSE, pid); + if (hProcess == NULL) { + fprintf(stderr, "dbkill: %s: no such process\n", argv[1]); + exit(EXIT_FAILURE); + } + if (sig == 0) + exit(EXIT_SUCCESS); + if (!TerminateProcess(hProcess, 99)) { + DWORD err = GetLastError(); + fprintf(stderr, + "dbkill: cannot kill process: error %d (0x%lx)\n", err, err); + exit(EXIT_FAILURE); + } + return EXIT_SUCCESS; +} diff --git a/build_windows/dbstl_common.h b/build_windows/dbstl_common.h new file mode 100644 index 0000000..3c63632 --- /dev/null +++ b/build_windows/dbstl_common.h @@ -0,0 +1,453 @@ +#ifndef _DB_STL_COMMON_H +#define _DB_STL_COMMON_H + +#ifdef DBSTL_DEBUG_LEAK +#include "vld.h" +#endif + +#include <assert.h> + +#include "db_cxx.h" + +// In release builds, the native assert will be disabled so we +// can't use it in dbstl in cases where we rely on the expression being +// evaluated to change the state of the application. +// +#if !defined(DEBUG) && !defined(_DEBUG) +#undef dbstl_assert +#define dbstl_assert(expression) +#else +#undef dbstl_assert +#define dbstl_assert(expression) do { \ + if (!(expression)) { \ + FailedAssertionException ex(__FILE__, __LINE__, #expression);\ + throw ex; } } while (0) +#endif + +#ifndef SIZE_T_MAX +// The max value for size_t variables, one fourth of 2 powers 32. +#define SIZE_T_MAX 1073741824 +#endif + +#if defined( DB_WIN32) || defined(_WIN32) +#include <windows.h> +#include <tchar.h> +#else +#define TCHAR char +#define _T(e) (e) +#define _ftprintf fprintf +#define _snprintf snprintf +#define _tcschr strchr +#define _tcscmp strcmp +#define _tcscpy strcpy +#define _tcslen strlen +#define _tgetopt getopt +#define _tmain main +#define _tprintf printf +#define _ttoi atoi +#endif + +// Macro for HAVE_WSTRING (detected by configure) +#define HAVE_WSTRING 1 + +// Thread local storage modifier declaration. +#define TLS_DECL_MODIFIER __declspec(thread) +#define TLS_DEFN_MODIFIER __declspec(thread) + +#if !defined(TLS_DECL_MODIFIER) && !defined(HAVE_PTHREAD_TLS) +#error "No appropriate TLS modifier defined." +#endif + +////////////////////////////////////////////////////////////////////////// +///////////////////////////////////////////////////////////////////////// +// +// C++ compiler portability control macro definitions. +// If a C++ compiler does not support the following capabilities, disabling +// these flags will remove usage of the feature from DB STL. +// Where possible a DB STL has implemented work-arounds for the missing +// functionality. +// +#define HAVE_EXPLICIT_KEYWORD 1 +#define HAVE_NAMESPACE 1 +#define HAVE_TYPENAME 1 + +// Platform specific compiler capability configuration. +#ifdef WIN32 +#define CLS_SCOPE(clstmpl_name) +#else + +// C++ standard: It is not possible to define a full specialized version of +// a member function of a class template inside the class body. It needs to +// be defined outside the class template, and must be defined in the namespace +// scope. +#define CLS_SCOPE(clstmpl_name) clstmpl_name:: +#define NO_IN_CLASS_FULL_SPECIALIZATION 1 +#define NO_MEMBER_FUNCTION_PARTIAL_SPECIALIZATION 1 +#endif + +#if HAVE_NAMESPACE +#define START_NS(nsname) namespace nsname { +#define END_NS } +#else +#define START_NS(nsname) struct nsname { +#define END_NS }; +#endif + +#if HAVE_EXPLICIT_KEYWORD +#define EXPLICIT explicit +#else +#define EXPLICIT +#endif + +#if HAVE_TYPENAME +#define Typename typename +#else +#define Typename class +#endif + +////////////////////////////////////////////////////////////////////////// +// End of compiler portability control macro definitions. +//////////////////////////////////////////////////////////////////////// + +////////////////////////////////////////////////////////////////////////// +///////////////////////////////////////////////////////////////////////// +// +// Iterator status macro definitions. +// +#define INVALID_ITERATOR_POSITION -1 // Iterator goes out of valid range. +#define INVALID_ITERATOR_CURSOR -2 // The iterator's dbc cursor is invalid. +#define ITERATOR_DUP_ERROR -3 // Failed to duplicate a cursor. + +// Current cursor's key or data dbt has no data. +#define INVALID_KEY_DATA -4 +#define EMPTY_DBT_DATA -5 // Current cursor's pointed data dbt has no data. +#define ITERATOR_AT_END -6 +#define CURSOR_NOT_OPEN -7 + +/////////////////////////////////////////////////////////////////////// +// End of iterator status macro definitions. +////////////////////////////////////////////////////////////////////// + +////////////////////////////////////////////////////////////////////// +////////////////////////////////////////////////////////////////////// +// +// Helper macros definitions. +// +// Use BDBOP and BDBOP2 to wrap Berkeley DB calls. The macros validate the +// return value. On failure, the wrappers clean up, and generate the +// expected exception. +// +#define BDBOP(bdb_call, ret) do { \ + if ((ret = (bdb_call)) != 0) throw_bdb_exception(#bdb_call, ret);\ + } while(0) +#define BDBOP2(bdb_call, ret, cleanup) do { \ + if ((ret = (bdb_call)) != 0) { (cleanup); \ + throw_bdb_exception(#bdb_call, ret);} \ + } while (0) +// Do not throw the exception if bdb_call returned a specified error number. +#define BDBOP3(bdb_call, ret, exception, cleanup) do { \ + if (((ret = (bdb_call)) != 0) && (ret & exception) == 0) { \ + (cleanup); throw_bdb_exception(#bdb_call, ret);} \ + } while (0) + +#define THROW(exception_type, arg_list) do { \ + exception_type ex arg_list; throw ex; } while (0) + +#define THROW0(exception_type) do { \ + exception_type ex; throw ex; } while (0) + +#define INVALID_INDEX ((index_type)-1) +#define INVALID_DLEN ((u_int32_t)-1) + +#define DBSTL_MAX_DATA_BUF_LEN 1024 * 4096 +#define DBSTL_MAX_KEY_BUF_LEN 1024 * 4096 +#define DBSTL_MAX_MTX_ENV_MUTEX 4096 * 4 +#define DBSTL_BULK_BUF_SIZE 256 * 1024 + +#define COMPARE_CHECK(obj) if (this == &obj) return true; +#define ASSIGNMENT_PREDCOND(obj) if (this == &obj) return obj; +////////////////////////////////////////////////////////////////// +// End of helper macro definitions. +////////////////////////////////////////////////////////////////// + +////////////////////////////////////////////////////////////////// +////////////////////////////////////////////////////////////////// +// +// Public global function declarations. +// These functions are open/public functionalities of dbstl for +// dbstl users to call. +// +START_NS(dbstl) +// _exported is a macro we employ from db_cxx.h of Berkeley DB C++ +// API. If we want to export the symbols it decorates on Windows, +// we must define the macro "DB_CREATE_DLL", as is defined in dbstl +// project property. +/// \defgroup dbstl_global_functions dbstl global public functions +//@{ + +/// \name Functions to close database/environments. +/// Normally you don't have to close any database +/// or environment handles, they will be closed automatically. +/// Though you still have the following API to close them. +//@{ +/// Close pdb regardless of reference count. You must make sure pdb +/// is not used by others before calling this method. +/// You can close the underlying database of a container and assign +/// another database with right configurations to it, if the configuration +/// is not suitable for the container, there will be an +/// InvalidArgumentException type of exception thrown. +/// You can't use the container after you called close_db and before setting +/// another valid database handle to the container via +/// db_container::set_db_handle() function. +/// \param pdb The database handle to close. +_exported void close_db(Db *pdb); + +/// Close all open database handles regardless of reference count. +/// You can't use any container after you called close_all_dbs and +/// before setting another valid database handle to the +/// container via db_container::set_db_handle() function. +/// \sa close_db(Db *); +_exported void close_all_dbs(); + +/// \brief Close specified database environment handle regardless of reference +/// count. +/// +/// Make sure the environment is not used by any other databases. +/// \param pdbenv The database environment handle to close. +_exported void close_db_env(DbEnv *pdbenv); + +/// \brief Close all open database environment handles regardless of +/// reference count. +/// +/// You can't use the container after you called close_db and before setting +/// another valid database handle to the container via +/// db_container::set_db_handle() function. \sa close_db_env(DbEnv *); +_exported void close_all_db_envs(); +//@} + +/// \name Transaction control global functions. +/// dbstl transaction API. You should call these API rather than DB C/C++ +/// API to use Berkeley DB transaction features. +//@{ +/// Begin a new transaction from the specified environment "env". +/// This function is called by dbstl user to begin an external transaction. +/// The "flags" parameter is passed to DbEnv::txn_begin(). +/// If a transaction created from +/// the same database environment already exists and is unresolved, +/// the new transaction is started as a child transaction of that transaction, +/// and thus you can't specify the parent transaction. +/// \param env The environment to start a transaction from. +/// \param flags It is set to DbEnv::txn_begin() function. +/// \return The newly created transaction. +/// +_exported DbTxn* begin_txn(u_int32_t flags, DbEnv *env); + +/// Commit current transaction opened in the environment "env". +/// This function is called by user to commit an external explicit transaction. +/// \param env The environment whose current transaction is to be committed. +/// \param flags It is set to DbTxn::commit() funcion. +/// \sa commit_txn(DbEnv *, DbTxn *, u_int32_t); +/// +_exported void commit_txn(DbEnv *env, u_int32_t flags = 0); + +/// Commit a specified transaction and all its child transactions. +/// \param env The environment where txn is started from. +/// \param txn The transaction to commit, can be a parent transaction of a +/// nested transaction group, all un-aborted child transactions of +/// it will be committed. +/// \param flags It is passed to each DbTxn::commit() call. +/// \sa commit_txn(DbEnv *, u_int32_t); +_exported void commit_txn(DbEnv *env, DbTxn *txn, u_int32_t flags = 0); + +/// Abort current transaction of environment "env". This function is called by +/// dbstl user to abort an outside explicit transaction. +/// \param env The environment whose current transaction is to be aborted. +/// \sa abort_txn(DbEnv *, DbTxn *); +_exported void abort_txn(DbEnv *env); + +/// Abort specified transaction "txn" and all its child transactions. +/// That is, "txn" can be a parent transaction of a nested transaction group. +/// \param env The environment where txn is started from. +/// \param txn The transaction to abort, can be a parent transaction of a +/// nested transaction group, all child transactions of it will be aborted. +/// \sa abort_txn(DbEnv *); +/// +_exported void abort_txn(DbEnv *env, DbTxn *txn); + +/// Get current transaction of environment "env". +/// \param env The environment whose current transaction we want to get. +/// \return Current transaction of env. +_exported DbTxn* current_txn(DbEnv *env); + +/// Set environment env's current transaction handle to be newtxn. The original +/// transaction handle returned without aborting or commiting. This function +/// is used for users to use one transaction among multiple threads. +/// \param env The environment whose current transaction to replace. +/// \param newtxn The new transaction to be as the current transaction of env. +/// \return The old current transaction of env. It is not resolved. +_exported DbTxn* set_current_txn_handle(DbEnv *env, DbTxn *newtxn); +//@} + +/// \name Functions to open and register database/environment handles. +//@{ +/// Register a Db handle "pdb1". This handle and handles opened in it will be +/// closed by ResourceManager, so application code must not try to close or +/// delete it. Users can do enough configuration before opening the Db then +/// register it via this function. +/// All database handles should be registered via this function in each +/// thread using the handle. The only exception is the database handle opened +/// by dbstl::open_db should not be registered in the thread of the +/// dbstl::open_db call. +/// \param pdb1 The database handle to register into dbstl for current thread. +/// +_exported void register_db(Db *pdb1); + +/// Register a DbEnv handle env1, this handle and handles opened in it will be +/// closed by ResourceManager. Application code must not try to close or delete +/// it. Users can do enough config before opening the DbEnv and then register +/// it via this function. +/// All environment handles should be registered via this function in each +/// thread using the handle. The only exception is the environment handle +/// opened by dbstl::open_db_env should not be registered in the thread of +/// the dbstl::open_db_env call. +/// \param env1 The environment to register into dbstl for current thread. +/// +_exported void register_db_env(DbEnv *env1); + +/// Helper function to open a database and register it into dbstl for the +/// calling thread. +/// Users still need to register it in any other thread using it if it +/// is shared by multiple threads, via register_db() function. +/// Users don't need to delete or free the memory of the returned object, +/// dbstl will take care of that. +/// When you don't use dbstl::open_db() but explicitly call DB C++ API to +/// open a database, you must new the Db object, rather than create it +/// on stack, and you must delete the Db object by yourself. +/// \param penv The environment to open the database from. +/// \param cflags The create flags passed to Db class constructor. +/// \param filename The database file name, passed to Db::open. +/// \param dbname The database name, passed to Db::open. +/// \param dbtype The database type, passed to Db::open. +/// \param oflags The database open flags, passed to Db::open. +/// \param mode The database open mode, passed to Db::open. +/// \param txn The transaction to open the database from, passed to Db::open. +/// \param set_flags The flags to be set to the created database handle. +/// \return The opened database handle. +/// \sa register_db(Db *); +/// \sa open_db_env; +/// +_exported Db* open_db (DbEnv *penv, const char *filename, DBTYPE dbtype, + u_int32_t oflags, u_int32_t set_flags, int mode = 0644, DbTxn *txn = NULL, + u_int32_t cflags = 0, const char* dbname = NULL); + +/// Helper function to open an environment and register it into dbstl for the +/// calling thread. Users still need to register it in any other thread if it +/// is shared by multiple threads, via register_db_env() function above. +/// Users don't need to delete or free the memory of the returned object, +/// dbstl will take care of that. +/// +/// When you don't use dbstl::open_env() but explicitly call DB C++ API to +/// open an environment, you must new the DbEnv object, rather than create it +/// on stack, and you must delete the DbEnv object by yourself. +/// \param env_home Environment home directory, it must exist. Passed to +/// DbEnv::open. +/// \param cflags DbEnv constructor creation flags, passed to DbEnv::DbEnv. +/// \param set_flags Flags to set to the created environment before opening it. +/// \param oflags Environment open flags, passed to DbEnv::open. +/// \param mode Environment region files mode, passed to DbEnv::open. +/// \param cachesize Environment cache size, by default 4M bytes. +/// \return The opened database environment handle. +/// \sa register_db_env(DbEnv *); +/// \sa open_db; +/// +_exported DbEnv* open_env(const char *env_home, u_int32_t set_flags, + u_int32_t oflags = DB_CREATE | DB_INIT_MPOOL, + u_int32_t cachesize = 4 * 1024 * 1024, + int mode = 0644, + u_int32_t cflags = 0/* Flags for DbEnv constructor. */); +//@} + +/// @name Mutex API based on Berkeley DB mutex. +/// These functions are in-process mutex support which uses Berkeley DB +/// mutex mechanisms. You can call these functions to do portable +/// synchronization for your code. +//@{ +/// Allocate a Berkeley DB mutex. +/// \return Berkeley DB mutex handle. +_exported db_mutex_t alloc_mutex(); +/// Lock a mutex, wait if it is held by another thread. +/// \param mtx The mutex handle to lock. +/// \return 0 if succeed, non-zero otherwise, call db_strerror to get message. +_exported int lock_mutex(db_mutex_t mtx); +/// Unlock a mutex, and return immediately. +/// \param mtx The mutex handle to unlock. +/// \return 0 if succeed, non-zero otherwise, call db_strerror to get message. +_exported int unlock_mutex(db_mutex_t mtx); +/// Free a mutex, and return immediately. +/// \param mtx The mutex handle to free. +/// \return 0 if succeed, non-zero otherwise, call db_strerror to get message. +_exported void free_mutex(db_mutex_t mtx); +//@} + +/// Close cursors opened in dbp1. +/// \param dbp1 The database handle whose active cursors to close. +/// \return The number of cursors closed by this call. +_exported size_t close_db_cursors(Db* dbp1); + +/// \name Other global functions. +//@{ +/// If there are multiple threads within a process that make use of dbstl, then +/// this function should be called in a single thread mutual exclusively before +/// any use of dbstl in a process; Otherwise, you don't need to call it, but +/// are allowed to call it anyway. +_exported void dbstl_startup(); + +/// This function releases any memory allocated in the heap by code of dbstl. +/// So you can only call dbstl_exit() right before the entire process exits. +/// It will release any memory allocated by dbstl that have to live during +/// the entire process lifetime. +_exported void dbstl_exit(); + +/// Operators to compare two Dbt objects. +/// \param d1 Dbt object to compare. +/// \param d2 Dbt object to compare. +_exported bool operator==(const Dbt&d1, const Dbt&d2); +/// Operators to compare two DBT objects. +/// \param d1 DBT object to compare. +/// \param d2 DBT object to compare. +_exported bool operator==(const DBT&d1, const DBT&d2); + +/// If exisiting random temporary database name generation mechanism is still +/// causing name clashes, users can set this global suffix number which will +/// be append to each temporary database file name and incremented after each +/// append, and by default it is 0. +/// \param num Starting number to append to each temporary db file name. +_exported void set_global_dbfile_suffix_number(u_int32_t num); +//@} + +//@} // dbstl_global_functions + +// Internally used memory allocation functions, they will throw an exception +// of NotEnoughMemoryException if can't allocate memory. +_exported void * DbstlReAlloc(void *ptr, size_t size); +_exported void * DbstlMalloc(size_t size); + +_exported u_int32_t hash_default(Db * /*dbp*/, const void *key, u_int32_t len); + +// Default string manipulation callbacks. +_exported u_int32_t dbstl_strlen(const char *str); +_exported void dbstl_strcpy(char *dest, const char *src, size_t num); +_exported int dbstl_strncmp(const char *s1, const char *s2, size_t num); +_exported int dbstl_strcmp(const char *s1, const char *s2); +_exported int dbstl_wcscmp(const wchar_t *s1, const wchar_t *s2); +_exported int dbstl_wcsncmp(const wchar_t *s1, const wchar_t *s2, size_t num); +_exported u_int32_t dbstl_wcslen(const wchar_t *str); +_exported void dbstl_wcscpy(wchar_t *dest, const wchar_t *src, size_t num); + +END_NS + +////////////////////////////////////////////////////////////////// +// End of public global function declarations. +////////////////////////////////////////////////////////////////// + +#endif /* !_DB_STL_COMMON_H */ diff --git a/build_windows/dynamic_dsp.src b/build_windows/dynamic_dsp.src new file mode 100644 index 0000000..53241b7 --- /dev/null +++ b/build_windows/dynamic_dsp.src @@ -0,0 +1,96 @@ +# Microsoft Developer Studio Project File - Name="@project_name@" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
+
+CFG=@project_name@ - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "@project_name@.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "@project_name@.mak" CFG="@project_name@ - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "@project_name@ - Win32 Release x86" (based on "Win32 (x86) Dynamic-Link Library")
+!MESSAGE "@project_name@ - Win32 Debug x86" (based on "Win32 (x86) Dynamic-Link Library")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+MTL=midl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "@project_name@ - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32/Release"
+# PROP BASE Intermediate_Dir "Win32/Release/@project_name@"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32/Release"
+# PROP Intermediate_Dir "Win32/Release/@project_name@"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /MD /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" @extra_cppflags@ /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /Ob2 /I "." /I ".." /D "UNICODE" /D "_UNICODE" /D "DB_CREATE_DLL" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" @extra_cppflags@ /FD /c
+# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
+# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 @release_libs@ kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:windows /dll /machine:I386
+# ADD LINK32 @release_libs@ kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /base:"0x13000000" /subsystem:windows /dll /machine:I386 /out:"Win32/Release/libdb@lib_suffix@@DB_VERSION_MAJOR@@DB_VERSION_MINOR@.dll" /libpath:"$(OUTDIR)"
+@POST_BUILD@
+
+!ELSEIF "$(CFG)" == "@project_name@ - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32/Debug"
+# PROP BASE Intermediate_Dir "Win32/Debug/@project_name@"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32/Debug"
+# PROP Intermediate_Dir "Win32/Debug/@project_name@"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" @extra_cppflags@ /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "UNICODE" /D "_UNICODE" /D "DB_CREATE_DLL" /D "DIAGNOSTIC" /D "CONFIG_TEST" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" @extra_cppflags@ /FD /c
+# SUBTRACT CPP /Fr
+# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
+# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 @debug_libs@ kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:windows /dll /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 @debug_libs@ kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /base:"0x13000000" /subsystem:windows /dll /export:__db_assert /pdb:none /debug /machine:I386 /out:"Win32/Debug/libdb@lib_suffix@@DB_VERSION_MAJOR@@DB_VERSION_MINOR@d.dll" /fixed:no /libpath:"$(OUTDIR)"
+@POST_BUILD@
+
+!ENDIF
+
+# Begin Target
+
+# Name "@project_name@ - Win32 Release x86"
+# Name "@project_name@ - Win32 Debug x86"
+@SOURCE_FILES@
+
+# End Target
+# End Project
diff --git a/build_windows/ex_access.dsp b/build_windows/ex_access.dsp new file mode 100644 index 0000000..c9c3c57 --- /dev/null +++ b/build_windows/ex_access.dsp @@ -0,0 +1,94 @@ +# Microsoft Developer Studio Project File - Name="ex_access" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=ex_access - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "ex_access.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "ex_access.mak" CFG="ex_access - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "ex_access - Win32 Release x86" (based on "Win32 (x86) Console Application")
+!MESSAGE "ex_access - Win32 Debug x86" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "ex_access - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32/Release"
+# PROP BASE Intermediate_Dir "Win32/Release/ex_access"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32/Release"
+# PROP Intermediate_Dir "Win32/Release/ex_access"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 libdb48.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386 /nodefaultlib:"libcmt" /libpath:"$(OUTDIR)"
+
+!ELSEIF "$(CFG)" == "ex_access - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32/Debug"
+# PROP BASE Intermediate_Dir "Win32/Debug/ex_access"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32/Debug"
+# PROP Intermediate_Dir "Win32/Debug/ex_access"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 libdb48d.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /nodefaultlib:"libcmtd" /fixed:no /libpath:"$(OUTDIR)"
+
+!ENDIF
+
+# Begin Target
+
+# Name "ex_access - Win32 Release x86"
+# Name "ex_access - Win32 Debug x86"
+# Begin Source File
+
+SOURCE=..\examples_c\ex_access.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\clib\getopt.c
+# End Source File
+# End Target
+# End Project
diff --git a/build_windows/ex_access.vcproj b/build_windows/ex_access.vcproj new file mode 100644 index 0000000..7b39771 --- /dev/null +++ b/build_windows/ex_access.vcproj @@ -0,0 +1,81 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="ex_access" ProjectGUID="{75DF98AA-25DF-4183-A022-024CF918480D}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/ex_access" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_access.pch" AssemblerListingLocation="$(OutDir)/ex_access/" ObjectFile="$(OutDir)/ex_access/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_access.exe" ProgramDatabaseFile="$(OutDir)/ex_access.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/ex_access" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_access.pch" AssemblerListingLocation="$(OutDir)/ex_access/" ObjectFile="$(OutDir)/ex_access/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_access.exe" ProgramDatabaseFile="$(OutDir)/ex_access.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/ex_access" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_access.pch" AssemblerListingLocation="$(OutDir)/ex_access/" ObjectFile="$(OutDir)/ex_access/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_access.exe" ProgramDatabaseFile="$(OutDir)/ex_access.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/ex_access" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_access.pch" AssemblerListingLocation="$(OutDir)/ex_access/" ObjectFile="$(OutDir)/ex_access/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_access.exe" ProgramDatabaseFile="$(OutDir)/ex_access.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/ex_access" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_access.pch" AssemblerListingLocation="$(OutDir)/ex_access/" ObjectFile="$(OutDir)/ex_access/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_access.exe" ProgramDatabaseFile="$(OutDir)/ex_access.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/ex_access" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_access.pch" AssemblerListingLocation="$(OutDir)/ex_access/" ObjectFile="$(OutDir)/ex_access/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_access.exe" ProgramDatabaseFile="$(OutDir)/ex_access.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\clib\getopt.c"/> + <File RelativePath="..\examples_c\ex_access.c"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/ex_btrec.dsp b/build_windows/ex_btrec.dsp new file mode 100644 index 0000000..6439a08 --- /dev/null +++ b/build_windows/ex_btrec.dsp @@ -0,0 +1,94 @@ +# Microsoft Developer Studio Project File - Name="ex_btrec" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=ex_btrec - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "ex_btrec.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "ex_btrec.mak" CFG="ex_btrec - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "ex_btrec - Win32 Release x86" (based on "Win32 (x86) Console Application")
+!MESSAGE "ex_btrec - Win32 Debug x86" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "ex_btrec - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32/Release"
+# PROP BASE Intermediate_Dir "Win32/Release/ex_btrec"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32/Release"
+# PROP Intermediate_Dir "Win32/Release/ex_btrec"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 libdb48.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386 /nodefaultlib:"libcmt" /libpath:"$(OUTDIR)"
+
+!ELSEIF "$(CFG)" == "ex_btrec - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32/Debug"
+# PROP BASE Intermediate_Dir "Win32/Debug/ex_btrec"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32/Debug"
+# PROP Intermediate_Dir "Win32/Debug/ex_btrec"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 libdb48d.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /nodefaultlib:"libcmtd" /fixed:no /libpath:"$(OUTDIR)"
+
+!ENDIF
+
+# Begin Target
+
+# Name "ex_btrec - Win32 Release x86"
+# Name "ex_btrec - Win32 Debug x86"
+# Begin Source File
+
+SOURCE=..\examples_c\ex_btrec.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\clib\getopt.c
+# End Source File
+# End Target
+# End Project
diff --git a/build_windows/ex_btrec.vcproj b/build_windows/ex_btrec.vcproj new file mode 100644 index 0000000..a369c0d --- /dev/null +++ b/build_windows/ex_btrec.vcproj @@ -0,0 +1,81 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="ex_btrec" ProjectGUID="{5DD66F4B-EB4A-4453-BC31-3FF7B2240634}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/ex_btrec" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_btrec.pch" AssemblerListingLocation="$(OutDir)/ex_btrec/" ObjectFile="$(OutDir)/ex_btrec/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_btrec.exe" ProgramDatabaseFile="$(OutDir)/ex_btrec.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/ex_btrec" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_btrec.pch" AssemblerListingLocation="$(OutDir)/ex_btrec/" ObjectFile="$(OutDir)/ex_btrec/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_btrec.exe" ProgramDatabaseFile="$(OutDir)/ex_btrec.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/ex_btrec" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_btrec.pch" AssemblerListingLocation="$(OutDir)/ex_btrec/" ObjectFile="$(OutDir)/ex_btrec/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_btrec.exe" ProgramDatabaseFile="$(OutDir)/ex_btrec.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/ex_btrec" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_btrec.pch" AssemblerListingLocation="$(OutDir)/ex_btrec/" ObjectFile="$(OutDir)/ex_btrec/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_btrec.exe" ProgramDatabaseFile="$(OutDir)/ex_btrec.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/ex_btrec" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_btrec.pch" AssemblerListingLocation="$(OutDir)/ex_btrec/" ObjectFile="$(OutDir)/ex_btrec/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_btrec.exe" ProgramDatabaseFile="$(OutDir)/ex_btrec.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/ex_btrec" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_btrec.pch" AssemblerListingLocation="$(OutDir)/ex_btrec/" ObjectFile="$(OutDir)/ex_btrec/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_btrec.exe" ProgramDatabaseFile="$(OutDir)/ex_btrec.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\clib\getopt.c"/> + <File RelativePath="..\examples_c\ex_btrec.c"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/ex_csvcode.dsp b/build_windows/ex_csvcode.dsp new file mode 100644 index 0000000..9483a26 --- /dev/null +++ b/build_windows/ex_csvcode.dsp @@ -0,0 +1,104 @@ +# Microsoft Developer Studio Project File - Name="ex_csvcode" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=ex_csvcode - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "ex_csvcode.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "ex_csvcode.mak" CFG="ex_csvcode - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "ex_csvcode - Win32 Release x86" (based on "Win32 (x86) Console Application")
+!MESSAGE "ex_csvcode - Win32 Debug x86" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "ex_csvcode - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32/Release"
+# PROP BASE Intermediate_Dir "Win32/Release/ex_csvcode"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32/Release"
+# PROP Intermediate_Dir "Win32/Release/ex_csvcode"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 libdb48.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386 /nodefaultlib:"libcmt" /libpath:"$(OUTDIR)"
+# Begin Special Build Tool
+SOURCE="$(InputPath)"
+PostBuild_Desc=Generate csv_local.c
+PostBuild_Cmds="$(OUTDIR)\ex_csvcode.exe" -c ../examples_c/csv/csv_local.c -h ../examples_c/csv/csv_local.h -f ../examples_c/csv/sample.desc
+# End Special Build Tool
+
+!ELSEIF "$(CFG)" == "ex_csvcode - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32/Debug"
+# PROP BASE Intermediate_Dir "Win32/Debug/ex_csvcode"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32/Debug"
+# PROP Intermediate_Dir "Win32/Debug/ex_csvcode"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 libdb48d.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /nodefaultlib:"libcmtd" /fixed:no /libpath:"$(OUTDIR)"
+# Begin Special Build Tool
+SOURCE="$(InputPath)"
+PostBuild_Desc=Generate csv_local.c
+PostBuild_Cmds="$(OUTDIR)\ex_csvcode.exe" -c ../examples_c/csv/csv_local.c -h ../examples_c/csv/csv_local.h -f ../examples_c/csv/sample.desc
+# End Special Build Tool
+
+!ENDIF
+
+# Begin Target
+
+# Name "ex_csvcode - Win32 Release x86"
+# Name "ex_csvcode - Win32 Debug x86"
+# Begin Source File
+
+SOURCE=..\examples_c\csv\code.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\clib\getopt.c
+# End Source File
+# End Target
+# End Project
diff --git a/build_windows/ex_csvcode.dsp.postbuild b/build_windows/ex_csvcode.dsp.postbuild new file mode 100644 index 0000000..9e6ccd8 --- /dev/null +++ b/build_windows/ex_csvcode.dsp.postbuild @@ -0,0 +1,5 @@ +# Begin Special Build Tool
+SOURCE="$(InputPath)"
+PostBuild_Desc=Generate csv_local.c
+PostBuild_Cmds="$(OUTDIR)\ex_csvcode.exe" -c ../examples_c/csv/csv_local.c -h ../examples_c/csv/csv_local.h -f ../examples_c/csv/sample.desc
+# End Special Build Tool
diff --git a/build_windows/ex_csvcode.vcproj b/build_windows/ex_csvcode.vcproj new file mode 100644 index 0000000..63c9af3 --- /dev/null +++ b/build_windows/ex_csvcode.vcproj @@ -0,0 +1,81 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="ex_csvcode" ProjectGUID="{54E6A58D-561D-467E-B378-6BA2EE138880}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/ex_csvcode" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../examples_c/csv" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_csvcode.pch" AssemblerListingLocation="$(OutDir)/ex_csvcode/" ObjectFile="$(OutDir)/ex_csvcode/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_csvcode.exe" ProgramDatabaseFile="$(OutDir)/ex_csvcode.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool" CommandLine="$(OUTDIR)\ex_csvcode.exe -c ../examples_c/csv/csv_local.c -h ../examples_c/csv/csv_local.h -f ../examples_c/csv/sample.desc" Description="Generate csv_local.{c|h} files."/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/ex_csvcode" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../examples_c/csv" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_csvcode.pch" AssemblerListingLocation="$(OutDir)/ex_csvcode/" ObjectFile="$(OutDir)/ex_csvcode/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_csvcode.exe" ProgramDatabaseFile="$(OutDir)/ex_csvcode.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool" CommandLine="$(OUTDIR)\ex_csvcode.exe -c ../examples_c/csv/csv_local.c -h ../examples_c/csv/csv_local.h -f ../examples_c/csv/sample.desc" Description="Generate csv_local.{c|h} files."/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/ex_csvcode" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../examples_c/csv" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_csvcode.pch" AssemblerListingLocation="$(OutDir)/ex_csvcode/" ObjectFile="$(OutDir)/ex_csvcode/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_csvcode.exe" ProgramDatabaseFile="$(OutDir)/ex_csvcode.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool" CommandLine="$(OUTDIR)\ex_csvcode.exe -c ../examples_c/csv/csv_local.c -h ../examples_c/csv/csv_local.h -f ../examples_c/csv/sample.desc" Description="Generate csv_local.{c|h} files."/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/ex_csvcode" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../examples_c/csv" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_csvcode.pch" AssemblerListingLocation="$(OutDir)/ex_csvcode/" ObjectFile="$(OutDir)/ex_csvcode/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_csvcode.exe" ProgramDatabaseFile="$(OutDir)/ex_csvcode.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool" CommandLine="$(OUTDIR)\ex_csvcode.exe -c ../examples_c/csv/csv_local.c -h ../examples_c/csv/csv_local.h -f ../examples_c/csv/sample.desc" Description="Generate csv_local.{c|h} files."/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/ex_csvcode" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../examples_c/csv" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_csvcode.pch" AssemblerListingLocation="$(OutDir)/ex_csvcode/" ObjectFile="$(OutDir)/ex_csvcode/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_csvcode.exe" ProgramDatabaseFile="$(OutDir)/ex_csvcode.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool" CommandLine="$(OUTDIR)\ex_csvcode.exe -c ../examples_c/csv/csv_local.c -h ../examples_c/csv/csv_local.h -f ../examples_c/csv/sample.desc" Description="Generate csv_local.{c|h} files."/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/ex_csvcode" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../examples_c/csv" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_csvcode.pch" AssemblerListingLocation="$(OutDir)/ex_csvcode/" ObjectFile="$(OutDir)/ex_csvcode/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_csvcode.exe" ProgramDatabaseFile="$(OutDir)/ex_csvcode.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool" CommandLine="$(OUTDIR)\ex_csvcode.exe -c ../examples_c/csv/csv_local.c -h ../examples_c/csv/csv_local.h -f ../examples_c/csv/sample.desc" Description="Generate csv_local.{c|h} files."/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\clib\getopt.c"/> + <File RelativePath="..\examples_c\csv\code.c"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/ex_csvload.dsp b/build_windows/ex_csvload.dsp new file mode 100644 index 0000000..b88127e --- /dev/null +++ b/build_windows/ex_csvload.dsp @@ -0,0 +1,114 @@ +# Microsoft Developer Studio Project File - Name="ex_csvload" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=ex_csvload - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "ex_csvload.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "ex_csvload.mak" CFG="ex_csvload - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "ex_csvload - Win32 Release x86" (based on "Win32 (x86) Console Application")
+!MESSAGE "ex_csvload - Win32 Debug x86" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "ex_csvload - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32/Release"
+# PROP BASE Intermediate_Dir "Win32/Release/ex_csvload"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32/Release"
+# PROP Intermediate_Dir "Win32/Release/ex_csvload"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 libdb48.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386 /nodefaultlib:"libcmt" /libpath:"$(OUTDIR)"
+
+!ELSEIF "$(CFG)" == "ex_csvload - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32/Debug"
+# PROP BASE Intermediate_Dir "Win32/Debug/ex_csvload"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32/Debug"
+# PROP Intermediate_Dir "Win32/Debug/ex_csvload"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 libdb48d.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /nodefaultlib:"libcmtd" /fixed:no /libpath:"$(OUTDIR)"
+
+!ENDIF
+
+# Begin Target
+
+# Name "ex_csvload - Win32 Release x86"
+# Name "ex_csvload - Win32 Debug x86"
+# Begin Source File
+
+SOURCE=..\examples_c\csv\DbRecord.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\examples_c\csv\csv_local.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\examples_c\csv\db.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\examples_c\csv\load.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\examples_c\csv\load_main.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\examples_c\csv\util.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\clib\getopt.c
+# End Source File
+# End Target
+# End Project
diff --git a/build_windows/ex_csvload.vcproj b/build_windows/ex_csvload.vcproj new file mode 100644 index 0000000..b117996 --- /dev/null +++ b/build_windows/ex_csvload.vcproj @@ -0,0 +1,86 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="ex_csvload" ProjectGUID="{CEC6CC37-88A3-4573-8957-6BA0CEF94B3D}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/ex_csvload" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../examples_c/csv" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_csvload.pch" AssemblerListingLocation="$(OutDir)/ex_csvload/" ObjectFile="$(OutDir)/ex_csvload/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_csvload.exe" ProgramDatabaseFile="$(OutDir)/ex_csvload.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/ex_csvload" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../examples_c/csv" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_csvload.pch" AssemblerListingLocation="$(OutDir)/ex_csvload/" ObjectFile="$(OutDir)/ex_csvload/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_csvload.exe" ProgramDatabaseFile="$(OutDir)/ex_csvload.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/ex_csvload" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../examples_c/csv" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_csvload.pch" AssemblerListingLocation="$(OutDir)/ex_csvload/" ObjectFile="$(OutDir)/ex_csvload/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_csvload.exe" ProgramDatabaseFile="$(OutDir)/ex_csvload.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/ex_csvload" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../examples_c/csv" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_csvload.pch" AssemblerListingLocation="$(OutDir)/ex_csvload/" ObjectFile="$(OutDir)/ex_csvload/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_csvload.exe" ProgramDatabaseFile="$(OutDir)/ex_csvload.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/ex_csvload" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../examples_c/csv" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_csvload.pch" AssemblerListingLocation="$(OutDir)/ex_csvload/" ObjectFile="$(OutDir)/ex_csvload/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_csvload.exe" ProgramDatabaseFile="$(OutDir)/ex_csvload.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/ex_csvload" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../examples_c/csv" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_csvload.pch" AssemblerListingLocation="$(OutDir)/ex_csvload/" ObjectFile="$(OutDir)/ex_csvload/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_csvload.exe" ProgramDatabaseFile="$(OutDir)/ex_csvload.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\clib\getopt.c"/> + <File RelativePath="..\examples_c\csv\DbRecord.c"/> + <File RelativePath="..\examples_c\csv\csv_local.c"/> + <File RelativePath="..\examples_c\csv\db.c"/> + <File RelativePath="..\examples_c\csv\load.c"/> + <File RelativePath="..\examples_c\csv\load_main.c"/> + <File RelativePath="..\examples_c\csv\util.c"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/ex_csvquery.dsp b/build_windows/ex_csvquery.dsp new file mode 100644 index 0000000..0138fdf --- /dev/null +++ b/build_windows/ex_csvquery.dsp @@ -0,0 +1,114 @@ +# Microsoft Developer Studio Project File - Name="ex_csvquery" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=ex_csvquery - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "ex_csvquery.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "ex_csvquery.mak" CFG="ex_csvquery - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "ex_csvquery - Win32 Release x86" (based on "Win32 (x86) Console Application")
+!MESSAGE "ex_csvquery - Win32 Debug x86" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "ex_csvquery - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32/Release"
+# PROP BASE Intermediate_Dir "Win32/Release/ex_csvquery"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32/Release"
+# PROP Intermediate_Dir "Win32/Release/ex_csvquery"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 libdb48.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386 /nodefaultlib:"libcmt" /libpath:"$(OUTDIR)"
+
+!ELSEIF "$(CFG)" == "ex_csvquery - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32/Debug"
+# PROP BASE Intermediate_Dir "Win32/Debug/ex_csvquery"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32/Debug"
+# PROP Intermediate_Dir "Win32/Debug/ex_csvquery"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 libdb48d.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /nodefaultlib:"libcmtd" /fixed:no /libpath:"$(OUTDIR)"
+
+!ENDIF
+
+# Begin Target
+
+# Name "ex_csvquery - Win32 Release x86"
+# Name "ex_csvquery - Win32 Debug x86"
+# Begin Source File
+
+SOURCE=..\examples_c\csv\DbRecord.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\examples_c\csv\csv_local.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\examples_c\csv\db.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\examples_c\csv\query.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\examples_c\csv\query_main.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\examples_c\csv\util.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\clib\getopt.c
+# End Source File
+# End Target
+# End Project
diff --git a/build_windows/ex_csvquery.vcproj b/build_windows/ex_csvquery.vcproj new file mode 100644 index 0000000..7dd0b62 --- /dev/null +++ b/build_windows/ex_csvquery.vcproj @@ -0,0 +1,86 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="ex_csvquery" ProjectGUID="{438BEA9C-A9DF-4EAE-A9F7-A5F35CAF3FB9}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/ex_csvquery" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../examples_c/csv" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_csvquery.pch" AssemblerListingLocation="$(OutDir)/ex_csvquery/" ObjectFile="$(OutDir)/ex_csvquery/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_csvquery.exe" ProgramDatabaseFile="$(OutDir)/ex_csvquery.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/ex_csvquery" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../examples_c/csv" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_csvquery.pch" AssemblerListingLocation="$(OutDir)/ex_csvquery/" ObjectFile="$(OutDir)/ex_csvquery/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_csvquery.exe" ProgramDatabaseFile="$(OutDir)/ex_csvquery.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/ex_csvquery" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../examples_c/csv" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_csvquery.pch" AssemblerListingLocation="$(OutDir)/ex_csvquery/" ObjectFile="$(OutDir)/ex_csvquery/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_csvquery.exe" ProgramDatabaseFile="$(OutDir)/ex_csvquery.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/ex_csvquery" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../examples_c/csv" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_csvquery.pch" AssemblerListingLocation="$(OutDir)/ex_csvquery/" ObjectFile="$(OutDir)/ex_csvquery/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_csvquery.exe" ProgramDatabaseFile="$(OutDir)/ex_csvquery.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/ex_csvquery" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../examples_c/csv" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_csvquery.pch" AssemblerListingLocation="$(OutDir)/ex_csvquery/" ObjectFile="$(OutDir)/ex_csvquery/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_csvquery.exe" ProgramDatabaseFile="$(OutDir)/ex_csvquery.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/ex_csvquery" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../examples_c/csv" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_csvquery.pch" AssemblerListingLocation="$(OutDir)/ex_csvquery/" ObjectFile="$(OutDir)/ex_csvquery/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_csvquery.exe" ProgramDatabaseFile="$(OutDir)/ex_csvquery.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\clib\getopt.c"/> + <File RelativePath="..\examples_c\csv\Dbrecord.c"/> + <File RelativePath="..\examples_c\csv\csv_local.c"/> + <File RelativePath="..\examples_c\csv\db.c"/> + <File RelativePath="..\examples_c\csv\query.c"/> + <File RelativePath="..\examples_c\csv\query_main.c"/> + <File RelativePath="..\examples_c\csv\util.c"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/ex_env.dsp b/build_windows/ex_env.dsp new file mode 100644 index 0000000..205f3d5 --- /dev/null +++ b/build_windows/ex_env.dsp @@ -0,0 +1,94 @@ +# Microsoft Developer Studio Project File - Name="ex_env" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=ex_env - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "ex_env.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "ex_env.mak" CFG="ex_env - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "ex_env - Win32 Release x86" (based on "Win32 (x86) Console Application")
+!MESSAGE "ex_env - Win32 Debug x86" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "ex_env - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32/Release"
+# PROP BASE Intermediate_Dir "Win32/Release/ex_env"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32/Release"
+# PROP Intermediate_Dir "Win32/Release/ex_env"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 libdb48.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386 /nodefaultlib:"libcmt" /libpath:"$(OUTDIR)"
+
+!ELSEIF "$(CFG)" == "ex_env - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32/Debug"
+# PROP BASE Intermediate_Dir "Win32/Debug/ex_env"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32/Debug"
+# PROP Intermediate_Dir "Win32/Debug/ex_env"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 libdb48d.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /nodefaultlib:"libcmtd" /fixed:no /libpath:"$(OUTDIR)"
+
+!ENDIF
+
+# Begin Target
+
+# Name "ex_env - Win32 Release x86"
+# Name "ex_env - Win32 Debug x86"
+# Begin Source File
+
+SOURCE=..\examples_c\ex_env.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\clib\getopt.c
+# End Source File
+# End Target
+# End Project
diff --git a/build_windows/ex_env.vcproj b/build_windows/ex_env.vcproj new file mode 100644 index 0000000..fce899b --- /dev/null +++ b/build_windows/ex_env.vcproj @@ -0,0 +1,81 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="ex_env" ProjectGUID="{443530F5-CCC3-40C8-A89B-AEF6C14D3A41}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/ex_env" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_env.pch" AssemblerListingLocation="$(OutDir)/ex_env/" ObjectFile="$(OutDir)/ex_env/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_env.exe" ProgramDatabaseFile="$(OutDir)/ex_env.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/ex_env" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_env.pch" AssemblerListingLocation="$(OutDir)/ex_env/" ObjectFile="$(OutDir)/ex_env/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_env.exe" ProgramDatabaseFile="$(OutDir)/ex_env.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/ex_env" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_env.pch" AssemblerListingLocation="$(OutDir)/ex_env/" ObjectFile="$(OutDir)/ex_env/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_env.exe" ProgramDatabaseFile="$(OutDir)/ex_env.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/ex_env" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_env.pch" AssemblerListingLocation="$(OutDir)/ex_env/" ObjectFile="$(OutDir)/ex_env/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_env.exe" ProgramDatabaseFile="$(OutDir)/ex_env.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/ex_env" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_env.pch" AssemblerListingLocation="$(OutDir)/ex_env/" ObjectFile="$(OutDir)/ex_env/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_env.exe" ProgramDatabaseFile="$(OutDir)/ex_env.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/ex_env" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_env.pch" AssemblerListingLocation="$(OutDir)/ex_env/" ObjectFile="$(OutDir)/ex_env/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_env.exe" ProgramDatabaseFile="$(OutDir)/ex_env.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\clib\getopt.c"/> + <File RelativePath="..\examples_c\ex_env.c"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/ex_lock.dsp b/build_windows/ex_lock.dsp new file mode 100644 index 0000000..52fc68c --- /dev/null +++ b/build_windows/ex_lock.dsp @@ -0,0 +1,94 @@ +# Microsoft Developer Studio Project File - Name="ex_lock" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=ex_lock - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "ex_lock.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "ex_lock.mak" CFG="ex_lock - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "ex_lock - Win32 Release x86" (based on "Win32 (x86) Console Application")
+!MESSAGE "ex_lock - Win32 Debug x86" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "ex_lock - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32/Release"
+# PROP BASE Intermediate_Dir "Win32/Release/ex_lock"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32/Release"
+# PROP Intermediate_Dir "Win32/Release/ex_lock"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 libdb48.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386 /nodefaultlib:"libcmt" /libpath:"$(OUTDIR)"
+
+!ELSEIF "$(CFG)" == "ex_lock - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32/Debug"
+# PROP BASE Intermediate_Dir "Win32/Debug/ex_lock"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32/Debug"
+# PROP Intermediate_Dir "Win32/Debug/ex_lock"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 libdb48d.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /nodefaultlib:"libcmtd" /fixed:no /libpath:"$(OUTDIR)"
+
+!ENDIF
+
+# Begin Target
+
+# Name "ex_lock - Win32 Release x86"
+# Name "ex_lock - Win32 Debug x86"
+# Begin Source File
+
+SOURCE=..\examples_c\ex_lock.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\clib\getopt.c
+# End Source File
+# End Target
+# End Project
diff --git a/build_windows/ex_lock.vcproj b/build_windows/ex_lock.vcproj new file mode 100644 index 0000000..bdf715b --- /dev/null +++ b/build_windows/ex_lock.vcproj @@ -0,0 +1,81 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="ex_lock" ProjectGUID="{B254668F-C28F-4B14-92A5-3BF4B83D02EE}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/ex_lock" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_lock.pch" AssemblerListingLocation="$(OutDir)/ex_lock/" ObjectFile="$(OutDir)/ex_lock/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_lock.exe" ProgramDatabaseFile="$(OutDir)/ex_lock.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/ex_lock" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_lock.pch" AssemblerListingLocation="$(OutDir)/ex_lock/" ObjectFile="$(OutDir)/ex_lock/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_lock.exe" ProgramDatabaseFile="$(OutDir)/ex_lock.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/ex_lock" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_lock.pch" AssemblerListingLocation="$(OutDir)/ex_lock/" ObjectFile="$(OutDir)/ex_lock/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_lock.exe" ProgramDatabaseFile="$(OutDir)/ex_lock.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/ex_lock" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_lock.pch" AssemblerListingLocation="$(OutDir)/ex_lock/" ObjectFile="$(OutDir)/ex_lock/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_lock.exe" ProgramDatabaseFile="$(OutDir)/ex_lock.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/ex_lock" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_lock.pch" AssemblerListingLocation="$(OutDir)/ex_lock/" ObjectFile="$(OutDir)/ex_lock/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_lock.exe" ProgramDatabaseFile="$(OutDir)/ex_lock.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/ex_lock" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_lock.pch" AssemblerListingLocation="$(OutDir)/ex_lock/" ObjectFile="$(OutDir)/ex_lock/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_lock.exe" ProgramDatabaseFile="$(OutDir)/ex_lock.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\clib\getopt.c"/> + <File RelativePath="..\examples_c\ex_lock.c"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/ex_mpool.dsp b/build_windows/ex_mpool.dsp new file mode 100644 index 0000000..e7699cf --- /dev/null +++ b/build_windows/ex_mpool.dsp @@ -0,0 +1,94 @@ +# Microsoft Developer Studio Project File - Name="ex_mpool" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=ex_mpool - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "ex_mpool.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "ex_mpool.mak" CFG="ex_mpool - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "ex_mpool - Win32 Release x86" (based on "Win32 (x86) Console Application")
+!MESSAGE "ex_mpool - Win32 Debug x86" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "ex_mpool - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32/Release"
+# PROP BASE Intermediate_Dir "Win32/Release/ex_mpool"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32/Release"
+# PROP Intermediate_Dir "Win32/Release/ex_mpool"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 libdb48.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386 /nodefaultlib:"libcmt" /libpath:"$(OUTDIR)"
+
+!ELSEIF "$(CFG)" == "ex_mpool - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32/Debug"
+# PROP BASE Intermediate_Dir "Win32/Debug/ex_mpool"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32/Debug"
+# PROP Intermediate_Dir "Win32/Debug/ex_mpool"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 libdb48d.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /nodefaultlib:"libcmtd" /fixed:no /libpath:"$(OUTDIR)"
+
+!ENDIF
+
+# Begin Target
+
+# Name "ex_mpool - Win32 Release x86"
+# Name "ex_mpool - Win32 Debug x86"
+# Begin Source File
+
+SOURCE=..\examples_c\ex_mpool.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\clib\getopt.c
+# End Source File
+# End Target
+# End Project
diff --git a/build_windows/ex_mpool.vcproj b/build_windows/ex_mpool.vcproj new file mode 100644 index 0000000..b3be60d --- /dev/null +++ b/build_windows/ex_mpool.vcproj @@ -0,0 +1,81 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="ex_mpool" ProjectGUID="{0F6925F0-6243-47E0-A0FF-05F70B15FC2C}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/ex_mpool" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_mpool.pch" AssemblerListingLocation="$(OutDir)/ex_mpool/" ObjectFile="$(OutDir)/ex_mpool/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_mpool.exe" ProgramDatabaseFile="$(OutDir)/ex_mpool.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/ex_mpool" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_mpool.pch" AssemblerListingLocation="$(OutDir)/ex_mpool/" ObjectFile="$(OutDir)/ex_mpool/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_mpool.exe" ProgramDatabaseFile="$(OutDir)/ex_mpool.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/ex_mpool" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_mpool.pch" AssemblerListingLocation="$(OutDir)/ex_mpool/" ObjectFile="$(OutDir)/ex_mpool/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_mpool.exe" ProgramDatabaseFile="$(OutDir)/ex_mpool.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/ex_mpool" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_mpool.pch" AssemblerListingLocation="$(OutDir)/ex_mpool/" ObjectFile="$(OutDir)/ex_mpool/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_mpool.exe" ProgramDatabaseFile="$(OutDir)/ex_mpool.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/ex_mpool" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_mpool.pch" AssemblerListingLocation="$(OutDir)/ex_mpool/" ObjectFile="$(OutDir)/ex_mpool/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_mpool.exe" ProgramDatabaseFile="$(OutDir)/ex_mpool.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/ex_mpool" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_mpool.pch" AssemblerListingLocation="$(OutDir)/ex_mpool/" ObjectFile="$(OutDir)/ex_mpool/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_mpool.exe" ProgramDatabaseFile="$(OutDir)/ex_mpool.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\clib\getopt.c"/> + <File RelativePath="..\examples_c\ex_mpool.c"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/ex_rep_base.dsp b/build_windows/ex_rep_base.dsp new file mode 100644 index 0000000..c3408ea --- /dev/null +++ b/build_windows/ex_rep_base.dsp @@ -0,0 +1,106 @@ +# Microsoft Developer Studio Project File - Name="ex_rep_base" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=ex_rep_base - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "ex_rep_base.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "ex_rep_base.mak" CFG="ex_rep_base - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "ex_rep_base - Win32 Release x86" (based on "Win32 (x86) Console Application")
+!MESSAGE "ex_rep_base - Win32 Debug x86" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "ex_rep_base - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32/Release"
+# PROP BASE Intermediate_Dir "Win32/Release/ex_rep_base"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32/Release"
+# PROP Intermediate_Dir "Win32/Release/ex_rep_base"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 ws2_32.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 libdb48.lib ws2_32.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386 /nodefaultlib:"libcmt" /libpath:"$(OUTDIR)"
+
+!ELSEIF "$(CFG)" == "ex_rep_base - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32/Debug"
+# PROP BASE Intermediate_Dir "Win32/Debug/ex_rep_base"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32/Debug"
+# PROP Intermediate_Dir "Win32/Debug/ex_rep_base"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 ws2_32.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 libdb48d.lib ws2_32.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /nodefaultlib:"libcmtd" /fixed:no /libpath:"$(OUTDIR)"
+
+!ENDIF
+
+# Begin Target
+
+# Name "ex_rep_base - Win32 Release x86"
+# Name "ex_rep_base - Win32 Debug x86"
+# Begin Source File
+
+SOURCE=..\examples_c\ex_rep\base\rep_base.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\examples_c\ex_rep\base\rep_msg.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\examples_c\ex_rep\base\rep_net.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\examples_c\ex_rep\common\rep_common.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\clib\getopt.c
+# End Source File
+# End Target
+# End Project
diff --git a/build_windows/ex_rep_base.vcproj b/build_windows/ex_rep_base.vcproj new file mode 100644 index 0000000..16b5147 --- /dev/null +++ b/build_windows/ex_rep_base.vcproj @@ -0,0 +1,84 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="ex_rep_base" ProjectGUID="{BDBF0EE2-1551-47A4-ACD0-B22B05DF4D77}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/ex_rep_base" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_rep_base.pch" AssemblerListingLocation="$(OutDir)/ex_rep_base/" ObjectFile="$(OutDir)/ex_rep_base/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib ws2_32.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_rep_base.exe" ProgramDatabaseFile="$(OutDir)/ex_rep_base.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/ex_rep_base" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_rep_base.pch" AssemblerListingLocation="$(OutDir)/ex_rep_base/" ObjectFile="$(OutDir)/ex_rep_base/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib ws2_32.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_rep_base.exe" ProgramDatabaseFile="$(OutDir)/ex_rep_base.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/ex_rep_base" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_rep_base.pch" AssemblerListingLocation="$(OutDir)/ex_rep_base/" ObjectFile="$(OutDir)/ex_rep_base/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib ws2_32.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_rep_base.exe" ProgramDatabaseFile="$(OutDir)/ex_rep_base.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/ex_rep_base" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_rep_base.pch" AssemblerListingLocation="$(OutDir)/ex_rep_base/" ObjectFile="$(OutDir)/ex_rep_base/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib ws2_32.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_rep_base.exe" ProgramDatabaseFile="$(OutDir)/ex_rep_base.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/ex_rep_base" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_rep_base.pch" AssemblerListingLocation="$(OutDir)/ex_rep_base/" ObjectFile="$(OutDir)/ex_rep_base/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib ws2_32.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_rep_base.exe" ProgramDatabaseFile="$(OutDir)/ex_rep_base.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/ex_rep_base" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_rep_base.pch" AssemblerListingLocation="$(OutDir)/ex_rep_base/" ObjectFile="$(OutDir)/ex_rep_base/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib ws2_32.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_rep_base.exe" ProgramDatabaseFile="$(OutDir)/ex_rep_base.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\clib\getopt.c"/> + <File RelativePath="..\examples_c\ex_rep\base\rep_base.c"/> + <File RelativePath="..\examples_c\ex_rep\common\rep_common.c"/> + <File RelativePath="..\examples_c\ex_rep\base\rep_msg.c"/> + <File RelativePath="..\examples_c\ex_rep\base\rep_net.c"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/ex_rep_mgr.dsp b/build_windows/ex_rep_mgr.dsp new file mode 100644 index 0000000..fc09713 --- /dev/null +++ b/build_windows/ex_rep_mgr.dsp @@ -0,0 +1,98 @@ +# Microsoft Developer Studio Project File - Name="ex_rep_mgr" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=ex_rep_mgr - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "ex_rep_mgr.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "ex_rep_mgr.mak" CFG="ex_rep_mgr - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "ex_rep_mgr - Win32 Release x86" (based on "Win32 (x86) Console Application")
+!MESSAGE "ex_rep_mgr - Win32 Debug x86" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "ex_rep_mgr - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32/Release"
+# PROP BASE Intermediate_Dir "Win32/Release/ex_rep_mgr"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32/Release"
+# PROP Intermediate_Dir "Win32/Release/ex_rep_mgr"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 libdb48.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386 /nodefaultlib:"libcmt" /libpath:"$(OUTDIR)"
+
+!ELSEIF "$(CFG)" == "ex_rep_mgr - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32/Debug"
+# PROP BASE Intermediate_Dir "Win32/Debug/ex_rep_mgr"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32/Debug"
+# PROP Intermediate_Dir "Win32/Debug/ex_rep_mgr"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 libdb48d.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /nodefaultlib:"libcmtd" /fixed:no /libpath:"$(OUTDIR)"
+
+!ENDIF
+
+# Begin Target
+
+# Name "ex_rep_mgr - Win32 Release x86"
+# Name "ex_rep_mgr - Win32 Debug x86"
+# Begin Source File
+
+SOURCE=..\examples_c\ex_rep\common\rep_common.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\examples_c\ex_rep\mgr\rep_mgr.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\clib\getopt.c
+# End Source File
+# End Target
+# End Project
diff --git a/build_windows/ex_rep_mgr.vcproj b/build_windows/ex_rep_mgr.vcproj new file mode 100644 index 0000000..147ada5 --- /dev/null +++ b/build_windows/ex_rep_mgr.vcproj @@ -0,0 +1,82 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="ex_rep_mgr" ProjectGUID="{365A89B8-B5A5-4EC6-990B-08254028E1A6}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/ex_rep_mgr" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_rep_mgr.pch" AssemblerListingLocation="$(OutDir)/ex_rep_mgr/" ObjectFile="$(OutDir)/ex_rep_mgr/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_rep_mgr.exe" ProgramDatabaseFile="$(OutDir)/ex_rep_mgr.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/ex_rep_mgr" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_rep_mgr.pch" AssemblerListingLocation="$(OutDir)/ex_rep_mgr/" ObjectFile="$(OutDir)/ex_rep_mgr/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_rep_mgr.exe" ProgramDatabaseFile="$(OutDir)/ex_rep_mgr.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/ex_rep_mgr" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_rep_mgr.pch" AssemblerListingLocation="$(OutDir)/ex_rep_mgr/" ObjectFile="$(OutDir)/ex_rep_mgr/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_rep_mgr.exe" ProgramDatabaseFile="$(OutDir)/ex_rep_mgr.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/ex_rep_mgr" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_rep_mgr.pch" AssemblerListingLocation="$(OutDir)/ex_rep_mgr/" ObjectFile="$(OutDir)/ex_rep_mgr/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_rep_mgr.exe" ProgramDatabaseFile="$(OutDir)/ex_rep_mgr.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/ex_rep_mgr" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_rep_mgr.pch" AssemblerListingLocation="$(OutDir)/ex_rep_mgr/" ObjectFile="$(OutDir)/ex_rep_mgr/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_rep_mgr.exe" ProgramDatabaseFile="$(OutDir)/ex_rep_mgr.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/ex_rep_mgr" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_rep_mgr.pch" AssemblerListingLocation="$(OutDir)/ex_rep_mgr/" ObjectFile="$(OutDir)/ex_rep_mgr/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_rep_mgr.exe" ProgramDatabaseFile="$(OutDir)/ex_rep_mgr.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\clib\getopt.c"/> + <File RelativePath="..\examples_c\ex_rep\common\rep_common.c"/> + <File RelativePath="..\examples_c\ex_rep\mgr\rep_mgr.c"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/ex_sequence.dsp b/build_windows/ex_sequence.dsp new file mode 100644 index 0000000..96f5a2d --- /dev/null +++ b/build_windows/ex_sequence.dsp @@ -0,0 +1,94 @@ +# Microsoft Developer Studio Project File - Name="ex_sequence" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=ex_sequence - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "ex_sequence.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "ex_sequence.mak" CFG="ex_sequence - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "ex_sequence - Win32 Release x86" (based on "Win32 (x86) Console Application")
+!MESSAGE "ex_sequence - Win32 Debug x86" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "ex_sequence - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32/Release"
+# PROP BASE Intermediate_Dir "Win32/Release/ex_sequence"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32/Release"
+# PROP Intermediate_Dir "Win32/Release/ex_sequence"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 libdb48.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386 /nodefaultlib:"libcmt" /libpath:"$(OUTDIR)"
+
+!ELSEIF "$(CFG)" == "ex_sequence - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32/Debug"
+# PROP BASE Intermediate_Dir "Win32/Debug/ex_sequence"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32/Debug"
+# PROP Intermediate_Dir "Win32/Debug/ex_sequence"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 libdb48d.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /nodefaultlib:"libcmtd" /fixed:no /libpath:"$(OUTDIR)"
+
+!ENDIF
+
+# Begin Target
+
+# Name "ex_sequence - Win32 Release x86"
+# Name "ex_sequence - Win32 Debug x86"
+# Begin Source File
+
+SOURCE=..\examples_c\ex_sequence.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\clib\getopt.c
+# End Source File
+# End Target
+# End Project
diff --git a/build_windows/ex_sequence.vcproj b/build_windows/ex_sequence.vcproj new file mode 100644 index 0000000..82d76ef --- /dev/null +++ b/build_windows/ex_sequence.vcproj @@ -0,0 +1,81 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="ex_sequence" ProjectGUID="{4E43DB5C-D050-4003-A4FF-6294D9F498DD}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/ex_sequence" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_sequence.pch" AssemblerListingLocation="$(OutDir)/ex_sequence/" ObjectFile="$(OutDir)/ex_sequence/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_sequence.exe" ProgramDatabaseFile="$(OutDir)/ex_sequence.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/ex_sequence" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_sequence.pch" AssemblerListingLocation="$(OutDir)/ex_sequence/" ObjectFile="$(OutDir)/ex_sequence/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_sequence.exe" ProgramDatabaseFile="$(OutDir)/ex_sequence.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/ex_sequence" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_sequence.pch" AssemblerListingLocation="$(OutDir)/ex_sequence/" ObjectFile="$(OutDir)/ex_sequence/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_sequence.exe" ProgramDatabaseFile="$(OutDir)/ex_sequence.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/ex_sequence" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_sequence.pch" AssemblerListingLocation="$(OutDir)/ex_sequence/" ObjectFile="$(OutDir)/ex_sequence/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_sequence.exe" ProgramDatabaseFile="$(OutDir)/ex_sequence.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/ex_sequence" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_sequence.pch" AssemblerListingLocation="$(OutDir)/ex_sequence/" ObjectFile="$(OutDir)/ex_sequence/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_sequence.exe" ProgramDatabaseFile="$(OutDir)/ex_sequence.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/ex_sequence" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_sequence.pch" AssemblerListingLocation="$(OutDir)/ex_sequence/" ObjectFile="$(OutDir)/ex_sequence/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_sequence.exe" ProgramDatabaseFile="$(OutDir)/ex_sequence.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\clib\getopt.c"/> + <File RelativePath="..\examples_c\ex_sequence.c"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/ex_stream.dsp b/build_windows/ex_stream.dsp new file mode 100644 index 0000000..fb8c372 --- /dev/null +++ b/build_windows/ex_stream.dsp @@ -0,0 +1,94 @@ +# Microsoft Developer Studio Project File - Name="ex_stream" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=ex_stream - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "ex_stream.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "ex_stream.mak" CFG="ex_stream - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "ex_stream - Win32 Release x86" (based on "Win32 (x86) Console Application")
+!MESSAGE "ex_stream - Win32 Debug x86" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "ex_stream - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32/Release"
+# PROP BASE Intermediate_Dir "Win32/Release/ex_stream"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32/Release"
+# PROP Intermediate_Dir "Win32/Release/ex_stream"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 libdb48.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386 /nodefaultlib:"libcmt" /libpath:"$(OUTDIR)"
+
+!ELSEIF "$(CFG)" == "ex_stream - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32/Debug"
+# PROP BASE Intermediate_Dir "Win32/Debug/ex_stream"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32/Debug"
+# PROP Intermediate_Dir "Win32/Debug/ex_stream"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 libdb48d.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /nodefaultlib:"libcmtd" /fixed:no /libpath:"$(OUTDIR)"
+
+!ENDIF
+
+# Begin Target
+
+# Name "ex_stream - Win32 Release x86"
+# Name "ex_stream - Win32 Debug x86"
+# Begin Source File
+
+SOURCE=..\examples_c\ex_stream.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\clib\getopt.c
+# End Source File
+# End Target
+# End Project
diff --git a/build_windows/ex_stream.vcproj b/build_windows/ex_stream.vcproj new file mode 100644 index 0000000..f788f72 --- /dev/null +++ b/build_windows/ex_stream.vcproj @@ -0,0 +1,81 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="ex_stream" ProjectGUID="{8F3D872E-C7F5-4C0D-9974-0F0CB9DAA527}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/ex_stream" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_stream.pch" AssemblerListingLocation="$(OutDir)/ex_stream/" ObjectFile="$(OutDir)/ex_stream/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_stream.exe" ProgramDatabaseFile="$(OutDir)/ex_stream.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/ex_stream" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_stream.pch" AssemblerListingLocation="$(OutDir)/ex_stream/" ObjectFile="$(OutDir)/ex_stream/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_stream.exe" ProgramDatabaseFile="$(OutDir)/ex_stream.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/ex_stream" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_stream.pch" AssemblerListingLocation="$(OutDir)/ex_stream/" ObjectFile="$(OutDir)/ex_stream/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_stream.exe" ProgramDatabaseFile="$(OutDir)/ex_stream.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/ex_stream" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_stream.pch" AssemblerListingLocation="$(OutDir)/ex_stream/" ObjectFile="$(OutDir)/ex_stream/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_stream.exe" ProgramDatabaseFile="$(OutDir)/ex_stream.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/ex_stream" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_stream.pch" AssemblerListingLocation="$(OutDir)/ex_stream/" ObjectFile="$(OutDir)/ex_stream/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_stream.exe" ProgramDatabaseFile="$(OutDir)/ex_stream.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/ex_stream" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_stream.pch" AssemblerListingLocation="$(OutDir)/ex_stream/" ObjectFile="$(OutDir)/ex_stream/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_stream.exe" ProgramDatabaseFile="$(OutDir)/ex_stream.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\clib\getopt.c"/> + <File RelativePath="..\examples_c\ex_stream.c"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/ex_tpcb.dsp b/build_windows/ex_tpcb.dsp new file mode 100644 index 0000000..61f75af --- /dev/null +++ b/build_windows/ex_tpcb.dsp @@ -0,0 +1,94 @@ +# Microsoft Developer Studio Project File - Name="ex_tpcb" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=ex_tpcb - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "ex_tpcb.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "ex_tpcb.mak" CFG="ex_tpcb - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "ex_tpcb - Win32 Release x86" (based on "Win32 (x86) Console Application")
+!MESSAGE "ex_tpcb - Win32 Debug x86" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "ex_tpcb - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32/Release"
+# PROP BASE Intermediate_Dir "Win32/Release/ex_tpcb"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32/Release"
+# PROP Intermediate_Dir "Win32/Release/ex_tpcb"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 libdb48.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386 /nodefaultlib:"libcmt" /libpath:"$(OUTDIR)"
+
+!ELSEIF "$(CFG)" == "ex_tpcb - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32/Debug"
+# PROP BASE Intermediate_Dir "Win32/Debug/ex_tpcb"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32/Debug"
+# PROP Intermediate_Dir "Win32/Debug/ex_tpcb"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 libdb48d.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /nodefaultlib:"libcmtd" /fixed:no /libpath:"$(OUTDIR)"
+
+!ENDIF
+
+# Begin Target
+
+# Name "ex_tpcb - Win32 Release x86"
+# Name "ex_tpcb - Win32 Debug x86"
+# Begin Source File
+
+SOURCE=..\examples_c\ex_tpcb.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\clib\getopt.c
+# End Source File
+# End Target
+# End Project
diff --git a/build_windows/ex_tpcb.vcproj b/build_windows/ex_tpcb.vcproj new file mode 100644 index 0000000..992aeac --- /dev/null +++ b/build_windows/ex_tpcb.vcproj @@ -0,0 +1,81 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="ex_tpcb" ProjectGUID="{8632C58A-CC00-4116-B61A-CBE0F2C11CAD}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/ex_tpcb" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_tpcb.pch" AssemblerListingLocation="$(OutDir)/ex_tpcb/" ObjectFile="$(OutDir)/ex_tpcb/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_tpcb.exe" ProgramDatabaseFile="$(OutDir)/ex_tpcb.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/ex_tpcb" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_tpcb.pch" AssemblerListingLocation="$(OutDir)/ex_tpcb/" ObjectFile="$(OutDir)/ex_tpcb/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_tpcb.exe" ProgramDatabaseFile="$(OutDir)/ex_tpcb.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/ex_tpcb" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_tpcb.pch" AssemblerListingLocation="$(OutDir)/ex_tpcb/" ObjectFile="$(OutDir)/ex_tpcb/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_tpcb.exe" ProgramDatabaseFile="$(OutDir)/ex_tpcb.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/ex_tpcb" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_tpcb.pch" AssemblerListingLocation="$(OutDir)/ex_tpcb/" ObjectFile="$(OutDir)/ex_tpcb/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_tpcb.exe" ProgramDatabaseFile="$(OutDir)/ex_tpcb.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/ex_tpcb" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_tpcb.pch" AssemblerListingLocation="$(OutDir)/ex_tpcb/" ObjectFile="$(OutDir)/ex_tpcb/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_tpcb.exe" ProgramDatabaseFile="$(OutDir)/ex_tpcb.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/ex_tpcb" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_tpcb.pch" AssemblerListingLocation="$(OutDir)/ex_tpcb/" ObjectFile="$(OutDir)/ex_tpcb/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_tpcb.exe" ProgramDatabaseFile="$(OutDir)/ex_tpcb.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\clib\getopt.c"/> + <File RelativePath="..\examples_c\ex_tpcb.c"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/ex_txnguide.dsp b/build_windows/ex_txnguide.dsp new file mode 100644 index 0000000..227bfa2 --- /dev/null +++ b/build_windows/ex_txnguide.dsp @@ -0,0 +1,94 @@ +# Microsoft Developer Studio Project File - Name="ex_txnguide" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=ex_txnguide - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "ex_txnguide.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "ex_txnguide.mak" CFG="ex_txnguide - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "ex_txnguide - Win32 Release x86" (based on "Win32 (x86) Console Application")
+!MESSAGE "ex_txnguide - Win32 Debug x86" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "ex_txnguide - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32/Release"
+# PROP BASE Intermediate_Dir "Win32/Release/ex_txnguide"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32/Release"
+# PROP Intermediate_Dir "Win32/Release/ex_txnguide"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 libdb48.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386 /nodefaultlib:"libcmt" /libpath:"$(OUTDIR)"
+
+!ELSEIF "$(CFG)" == "ex_txnguide - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32/Debug"
+# PROP BASE Intermediate_Dir "Win32/Debug/ex_txnguide"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32/Debug"
+# PROP Intermediate_Dir "Win32/Debug/ex_txnguide"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 libdb48d.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /nodefaultlib:"libcmtd" /fixed:no /libpath:"$(OUTDIR)"
+
+!ENDIF
+
+# Begin Target
+
+# Name "ex_txnguide - Win32 Release x86"
+# Name "ex_txnguide - Win32 Debug x86"
+# Begin Source File
+
+SOURCE=..\examples_c\txn_guide\txn_guide.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\clib\getopt.c
+# End Source File
+# End Target
+# End Project
diff --git a/build_windows/ex_txnguide.vcproj b/build_windows/ex_txnguide.vcproj new file mode 100644 index 0000000..8601eeb --- /dev/null +++ b/build_windows/ex_txnguide.vcproj @@ -0,0 +1,81 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="ex_txnguide" ProjectGUID="{80B961C4-D1D6-48E9-8965-CFCE69BF85E2}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/ex_txnguide" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_txnguide.pch" AssemblerListingLocation="$(OutDir)/ex_txnguide/" ObjectFile="$(OutDir)/ex_txnguide/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_txnguide.exe" ProgramDatabaseFile="$(OutDir)/ex_txnguide.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/ex_txnguide" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_txnguide.pch" AssemblerListingLocation="$(OutDir)/ex_txnguide/" ObjectFile="$(OutDir)/ex_txnguide/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_txnguide.exe" ProgramDatabaseFile="$(OutDir)/ex_txnguide.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/ex_txnguide" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_txnguide.pch" AssemblerListingLocation="$(OutDir)/ex_txnguide/" ObjectFile="$(OutDir)/ex_txnguide/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_txnguide.exe" ProgramDatabaseFile="$(OutDir)/ex_txnguide.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/ex_txnguide" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_txnguide.pch" AssemblerListingLocation="$(OutDir)/ex_txnguide/" ObjectFile="$(OutDir)/ex_txnguide/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_txnguide.exe" ProgramDatabaseFile="$(OutDir)/ex_txnguide.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/ex_txnguide" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_txnguide.pch" AssemblerListingLocation="$(OutDir)/ex_txnguide/" ObjectFile="$(OutDir)/ex_txnguide/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_txnguide.exe" ProgramDatabaseFile="$(OutDir)/ex_txnguide.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/ex_txnguide" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_txnguide.pch" AssemblerListingLocation="$(OutDir)/ex_txnguide/" ObjectFile="$(OutDir)/ex_txnguide/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_txnguide.exe" ProgramDatabaseFile="$(OutDir)/ex_txnguide.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\clib\getopt.c"/> + <File RelativePath="..\examples_c\txn_guide\txn_guide.c"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/ex_txnguide_inmem.dsp b/build_windows/ex_txnguide_inmem.dsp new file mode 100644 index 0000000..1b380d3 --- /dev/null +++ b/build_windows/ex_txnguide_inmem.dsp @@ -0,0 +1,94 @@ +# Microsoft Developer Studio Project File - Name="ex_txnguide_inmem" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=ex_txnguide_inmem - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "ex_txnguide_inmem.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "ex_txnguide_inmem.mak" CFG="ex_txnguide_inmem - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "ex_txnguide_inmem - Win32 Release x86" (based on "Win32 (x86) Console Application")
+!MESSAGE "ex_txnguide_inmem - Win32 Debug x86" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "ex_txnguide_inmem - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32/Release"
+# PROP BASE Intermediate_Dir "Win32/Release/ex_txnguide_inmem"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32/Release"
+# PROP Intermediate_Dir "Win32/Release/ex_txnguide_inmem"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 libdb48.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386 /nodefaultlib:"libcmt" /libpath:"$(OUTDIR)"
+
+!ELSEIF "$(CFG)" == "ex_txnguide_inmem - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32/Debug"
+# PROP BASE Intermediate_Dir "Win32/Debug/ex_txnguide_inmem"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32/Debug"
+# PROP Intermediate_Dir "Win32/Debug/ex_txnguide_inmem"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 libdb48d.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /nodefaultlib:"libcmtd" /fixed:no /libpath:"$(OUTDIR)"
+
+!ENDIF
+
+# Begin Target
+
+# Name "ex_txnguide_inmem - Win32 Release x86"
+# Name "ex_txnguide_inmem - Win32 Debug x86"
+# Begin Source File
+
+SOURCE=..\examples_c\txn_guide\txn_guide_inmemory.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\clib\getopt.c
+# End Source File
+# End Target
+# End Project
diff --git a/build_windows/ex_txnguide_inmem.vcproj b/build_windows/ex_txnguide_inmem.vcproj new file mode 100644 index 0000000..5e8766e --- /dev/null +++ b/build_windows/ex_txnguide_inmem.vcproj @@ -0,0 +1,81 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="ex_txnguide_inmem" ProjectGUID="{925BD215-6680-4FFF-8345-0741E4627B1F}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/ex_txnguide_inmem" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_txnguide_inmem.pch" AssemblerListingLocation="$(OutDir)/ex_txnguide_inmem/" ObjectFile="$(OutDir)/ex_txnguide_inmem/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_txnguide_inmem.exe" ProgramDatabaseFile="$(OutDir)/ex_txnguide_inmem.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/ex_txnguide_inmem" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_txnguide_inmem.pch" AssemblerListingLocation="$(OutDir)/ex_txnguide_inmem/" ObjectFile="$(OutDir)/ex_txnguide_inmem/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_txnguide_inmem.exe" ProgramDatabaseFile="$(OutDir)/ex_txnguide_inmem.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/ex_txnguide_inmem" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_txnguide_inmem.pch" AssemblerListingLocation="$(OutDir)/ex_txnguide_inmem/" ObjectFile="$(OutDir)/ex_txnguide_inmem/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_txnguide_inmem.exe" ProgramDatabaseFile="$(OutDir)/ex_txnguide_inmem.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/ex_txnguide_inmem" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_txnguide_inmem.pch" AssemblerListingLocation="$(OutDir)/ex_txnguide_inmem/" ObjectFile="$(OutDir)/ex_txnguide_inmem/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_txnguide_inmem.exe" ProgramDatabaseFile="$(OutDir)/ex_txnguide_inmem.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/ex_txnguide_inmem" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_txnguide_inmem.pch" AssemblerListingLocation="$(OutDir)/ex_txnguide_inmem/" ObjectFile="$(OutDir)/ex_txnguide_inmem/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_txnguide_inmem.exe" ProgramDatabaseFile="$(OutDir)/ex_txnguide_inmem.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/ex_txnguide_inmem" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/ex_txnguide_inmem.pch" AssemblerListingLocation="$(OutDir)/ex_txnguide_inmem/" ObjectFile="$(OutDir)/ex_txnguide_inmem/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/ex_txnguide_inmem.exe" ProgramDatabaseFile="$(OutDir)/ex_txnguide_inmem.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\clib\getopt.c"/> + <File RelativePath="..\examples_c\txn_guide\txn_guide_inmemory.c"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/example_database_load.dsp b/build_windows/example_database_load.dsp new file mode 100644 index 0000000..1864799 --- /dev/null +++ b/build_windows/example_database_load.dsp @@ -0,0 +1,98 @@ +# Microsoft Developer Studio Project File - Name="example_database_load" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=example_database_load - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "example_database_load.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "example_database_load.mak" CFG="example_database_load - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "example_database_load - Win32 Release x86" (based on "Win32 (x86) Console Application")
+!MESSAGE "example_database_load - Win32 Debug x86" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "example_database_load - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32/Release"
+# PROP BASE Intermediate_Dir "Win32/Release/example_database_load"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32/Release"
+# PROP Intermediate_Dir "Win32/Release/example_database_load"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 libdb48.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386 /nodefaultlib:"libcmt" /libpath:"$(OUTDIR)"
+
+!ELSEIF "$(CFG)" == "example_database_load - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32/Debug"
+# PROP BASE Intermediate_Dir "Win32/Debug/example_database_load"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32/Debug"
+# PROP Intermediate_Dir "Win32/Debug/example_database_load"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 libdb48d.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /nodefaultlib:"libcmtd" /fixed:no /libpath:"$(OUTDIR)"
+
+!ENDIF
+
+# Begin Target
+
+# Name "example_database_load - Win32 Release x86"
+# Name "example_database_load - Win32 Debug x86"
+# Begin Source File
+
+SOURCE=..\examples_c\getting_started\example_database_load.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\examples_c\getting_started\gettingstarted_common.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\clib\getopt.c
+# End Source File
+# End Target
+# End Project
diff --git a/build_windows/example_database_load.vcproj b/build_windows/example_database_load.vcproj new file mode 100644 index 0000000..e7673d3 --- /dev/null +++ b/build_windows/example_database_load.vcproj @@ -0,0 +1,82 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="example_database_load" ProjectGUID="{56C01012-66D7-4295-B382-F3815366DB26}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/example_database_load" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/example_database_load.pch" AssemblerListingLocation="$(OutDir)/example_database_load/" ObjectFile="$(OutDir)/example_database_load/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/example_database_load.exe" ProgramDatabaseFile="$(OutDir)/example_database_load.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/example_database_load" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/example_database_load.pch" AssemblerListingLocation="$(OutDir)/example_database_load/" ObjectFile="$(OutDir)/example_database_load/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/example_database_load.exe" ProgramDatabaseFile="$(OutDir)/example_database_load.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/example_database_load" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/example_database_load.pch" AssemblerListingLocation="$(OutDir)/example_database_load/" ObjectFile="$(OutDir)/example_database_load/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/example_database_load.exe" ProgramDatabaseFile="$(OutDir)/example_database_load.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/example_database_load" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/example_database_load.pch" AssemblerListingLocation="$(OutDir)/example_database_load/" ObjectFile="$(OutDir)/example_database_load/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/example_database_load.exe" ProgramDatabaseFile="$(OutDir)/example_database_load.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/example_database_load" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/example_database_load.pch" AssemblerListingLocation="$(OutDir)/example_database_load/" ObjectFile="$(OutDir)/example_database_load/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/example_database_load.exe" ProgramDatabaseFile="$(OutDir)/example_database_load.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/example_database_load" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/example_database_load.pch" AssemblerListingLocation="$(OutDir)/example_database_load/" ObjectFile="$(OutDir)/example_database_load/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/example_database_load.exe" ProgramDatabaseFile="$(OutDir)/example_database_load.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\clib\getopt.c"/> + <File RelativePath="..\examples_c\getting_started\example_database_load.c"/> + <File RelativePath="..\examples_c\getting_started\gettingstarted_common.c"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/example_database_read.dsp b/build_windows/example_database_read.dsp new file mode 100644 index 0000000..3250aaf --- /dev/null +++ b/build_windows/example_database_read.dsp @@ -0,0 +1,98 @@ +# Microsoft Developer Studio Project File - Name="example_database_read" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=example_database_read - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "example_database_read.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "example_database_read.mak" CFG="example_database_read - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "example_database_read - Win32 Release x86" (based on "Win32 (x86) Console Application")
+!MESSAGE "example_database_read - Win32 Debug x86" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "example_database_read - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32/Release"
+# PROP BASE Intermediate_Dir "Win32/Release/example_database_read"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32/Release"
+# PROP Intermediate_Dir "Win32/Release/example_database_read"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 libdb48.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386 /nodefaultlib:"libcmt" /libpath:"$(OUTDIR)"
+
+!ELSEIF "$(CFG)" == "example_database_read - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32/Debug"
+# PROP BASE Intermediate_Dir "Win32/Debug/example_database_read"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32/Debug"
+# PROP Intermediate_Dir "Win32/Debug/example_database_read"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 libdb48d.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /nodefaultlib:"libcmtd" /fixed:no /libpath:"$(OUTDIR)"
+
+!ENDIF
+
+# Begin Target
+
+# Name "example_database_read - Win32 Release x86"
+# Name "example_database_read - Win32 Debug x86"
+# Begin Source File
+
+SOURCE=..\examples_c\getting_started\example_database_read.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\examples_c\getting_started\gettingstarted_common.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\clib\getopt.c
+# End Source File
+# End Target
+# End Project
diff --git a/build_windows/example_database_read.vcproj b/build_windows/example_database_read.vcproj new file mode 100644 index 0000000..ba87156 --- /dev/null +++ b/build_windows/example_database_read.vcproj @@ -0,0 +1,82 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="example_database_read" ProjectGUID="{0D35F7E6-425B-4D09-B805-B6D47A9B4AB3}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/example_database_read" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/example_database_read.pch" AssemblerListingLocation="$(OutDir)/example_database_read/" ObjectFile="$(OutDir)/example_database_read/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/example_database_read.exe" ProgramDatabaseFile="$(OutDir)/example_database_read.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/example_database_read" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/example_database_read.pch" AssemblerListingLocation="$(OutDir)/example_database_read/" ObjectFile="$(OutDir)/example_database_read/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/example_database_read.exe" ProgramDatabaseFile="$(OutDir)/example_database_read.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/example_database_read" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/example_database_read.pch" AssemblerListingLocation="$(OutDir)/example_database_read/" ObjectFile="$(OutDir)/example_database_read/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/example_database_read.exe" ProgramDatabaseFile="$(OutDir)/example_database_read.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/example_database_read" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/example_database_read.pch" AssemblerListingLocation="$(OutDir)/example_database_read/" ObjectFile="$(OutDir)/example_database_read/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/example_database_read.exe" ProgramDatabaseFile="$(OutDir)/example_database_read.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/example_database_read" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/example_database_read.pch" AssemblerListingLocation="$(OutDir)/example_database_read/" ObjectFile="$(OutDir)/example_database_read/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/example_database_read.exe" ProgramDatabaseFile="$(OutDir)/example_database_read.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/example_database_read" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/example_database_read.pch" AssemblerListingLocation="$(OutDir)/example_database_read/" ObjectFile="$(OutDir)/example_database_read/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/example_database_read.exe" ProgramDatabaseFile="$(OutDir)/example_database_read.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\clib\getopt.c"/> + <File RelativePath="..\examples_c\getting_started\example_database_read.c"/> + <File RelativePath="..\examples_c\getting_started\gettingstarted_common.c"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/excxx_access.dsp b/build_windows/excxx_access.dsp new file mode 100644 index 0000000..3540796 --- /dev/null +++ b/build_windows/excxx_access.dsp @@ -0,0 +1,94 @@ +# Microsoft Developer Studio Project File - Name="excxx_access" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=excxx_access - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "excxx_access.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "excxx_access.mak" CFG="excxx_access - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "excxx_access - Win32 Release x86" (based on "Win32 (x86) Console Application")
+!MESSAGE "excxx_access - Win32 Debug x86" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "excxx_access - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32/Release"
+# PROP BASE Intermediate_Dir "Win32/Release/excxx_access"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32/Release"
+# PROP Intermediate_Dir "Win32/Release/excxx_access"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 libdb48.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386 /nodefaultlib:"libcmt" /libpath:"$(OUTDIR)"
+
+!ELSEIF "$(CFG)" == "excxx_access - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32/Debug"
+# PROP BASE Intermediate_Dir "Win32/Debug/excxx_access"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32/Debug"
+# PROP Intermediate_Dir "Win32/Debug/excxx_access"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 libdb48d.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /nodefaultlib:"libcmtd" /fixed:no /libpath:"$(OUTDIR)"
+
+!ENDIF
+
+# Begin Target
+
+# Name "excxx_access - Win32 Release x86"
+# Name "excxx_access - Win32 Debug x86"
+# Begin Source File
+
+SOURCE=..\examples_cxx\AccessExample.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=..\clib\getopt.c
+# End Source File
+# End Target
+# End Project
diff --git a/build_windows/excxx_access.vcproj b/build_windows/excxx_access.vcproj new file mode 100644 index 0000000..7a90725 --- /dev/null +++ b/build_windows/excxx_access.vcproj @@ -0,0 +1,81 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="excxx_access" ProjectGUID="{2575F0DD-DAA5-4AE5-AC81-7C47507AD279}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/excxx_access" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_access.pch" AssemblerListingLocation="$(OutDir)/excxx_access/" ObjectFile="$(OutDir)/excxx_access/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_access.exe" ProgramDatabaseFile="$(OutDir)/excxx_access.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/excxx_access" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_access.pch" AssemblerListingLocation="$(OutDir)/excxx_access/" ObjectFile="$(OutDir)/excxx_access/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_access.exe" ProgramDatabaseFile="$(OutDir)/excxx_access.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/excxx_access" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_access.pch" AssemblerListingLocation="$(OutDir)/excxx_access/" ObjectFile="$(OutDir)/excxx_access/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_access.exe" ProgramDatabaseFile="$(OutDir)/excxx_access.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/excxx_access" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_access.pch" AssemblerListingLocation="$(OutDir)/excxx_access/" ObjectFile="$(OutDir)/excxx_access/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_access.exe" ProgramDatabaseFile="$(OutDir)/excxx_access.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/excxx_access" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_access.pch" AssemblerListingLocation="$(OutDir)/excxx_access/" ObjectFile="$(OutDir)/excxx_access/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_access.exe" ProgramDatabaseFile="$(OutDir)/excxx_access.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/excxx_access" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_access.pch" AssemblerListingLocation="$(OutDir)/excxx_access/" ObjectFile="$(OutDir)/excxx_access/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_access.exe" ProgramDatabaseFile="$(OutDir)/excxx_access.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\clib\getopt.c"/> + <File RelativePath="..\examples_cxx\AccessExample.cpp"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/excxx_btrec.dsp b/build_windows/excxx_btrec.dsp new file mode 100644 index 0000000..ee21cbd --- /dev/null +++ b/build_windows/excxx_btrec.dsp @@ -0,0 +1,94 @@ +# Microsoft Developer Studio Project File - Name="excxx_btrec" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=excxx_btrec - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "excxx_btrec.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "excxx_btrec.mak" CFG="excxx_btrec - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "excxx_btrec - Win32 Release x86" (based on "Win32 (x86) Console Application")
+!MESSAGE "excxx_btrec - Win32 Debug x86" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "excxx_btrec - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32/Release"
+# PROP BASE Intermediate_Dir "Win32/Release/excxx_btrec"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32/Release"
+# PROP Intermediate_Dir "Win32/Release/excxx_btrec"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 libdb48.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386 /nodefaultlib:"libcmt" /libpath:"$(OUTDIR)"
+
+!ELSEIF "$(CFG)" == "excxx_btrec - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32/Debug"
+# PROP BASE Intermediate_Dir "Win32/Debug/excxx_btrec"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32/Debug"
+# PROP Intermediate_Dir "Win32/Debug/excxx_btrec"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 libdb48d.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /nodefaultlib:"libcmtd" /fixed:no /libpath:"$(OUTDIR)"
+
+!ENDIF
+
+# Begin Target
+
+# Name "excxx_btrec - Win32 Release x86"
+# Name "excxx_btrec - Win32 Debug x86"
+# Begin Source File
+
+SOURCE=..\examples_cxx\BtRecExample.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=..\clib\getopt.c
+# End Source File
+# End Target
+# End Project
diff --git a/build_windows/excxx_btrec.vcproj b/build_windows/excxx_btrec.vcproj new file mode 100644 index 0000000..03425a2 --- /dev/null +++ b/build_windows/excxx_btrec.vcproj @@ -0,0 +1,81 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="excxx_btrec" ProjectGUID="{38C080B1-7003-48DF-820D-06348BC87B1B}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/excxx_btrec" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_btrec.pch" AssemblerListingLocation="$(OutDir)/excxx_btrec/" ObjectFile="$(OutDir)/excxx_btrec/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_btrec.exe" ProgramDatabaseFile="$(OutDir)/excxx_btrec.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/excxx_btrec" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_btrec.pch" AssemblerListingLocation="$(OutDir)/excxx_btrec/" ObjectFile="$(OutDir)/excxx_btrec/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_btrec.exe" ProgramDatabaseFile="$(OutDir)/excxx_btrec.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/excxx_btrec" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_btrec.pch" AssemblerListingLocation="$(OutDir)/excxx_btrec/" ObjectFile="$(OutDir)/excxx_btrec/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_btrec.exe" ProgramDatabaseFile="$(OutDir)/excxx_btrec.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/excxx_btrec" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_btrec.pch" AssemblerListingLocation="$(OutDir)/excxx_btrec/" ObjectFile="$(OutDir)/excxx_btrec/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_btrec.exe" ProgramDatabaseFile="$(OutDir)/excxx_btrec.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/excxx_btrec" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_btrec.pch" AssemblerListingLocation="$(OutDir)/excxx_btrec/" ObjectFile="$(OutDir)/excxx_btrec/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_btrec.exe" ProgramDatabaseFile="$(OutDir)/excxx_btrec.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/excxx_btrec" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_btrec.pch" AssemblerListingLocation="$(OutDir)/excxx_btrec/" ObjectFile="$(OutDir)/excxx_btrec/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_btrec.exe" ProgramDatabaseFile="$(OutDir)/excxx_btrec.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\clib\getopt.c"/> + <File RelativePath="..\examples_cxx\BtRecExample.cpp"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/excxx_env.dsp b/build_windows/excxx_env.dsp new file mode 100644 index 0000000..d63fae0 --- /dev/null +++ b/build_windows/excxx_env.dsp @@ -0,0 +1,94 @@ +# Microsoft Developer Studio Project File - Name="excxx_env" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=excxx_env - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "excxx_env.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "excxx_env.mak" CFG="excxx_env - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "excxx_env - Win32 Release x86" (based on "Win32 (x86) Console Application")
+!MESSAGE "excxx_env - Win32 Debug x86" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "excxx_env - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32/Release"
+# PROP BASE Intermediate_Dir "Win32/Release/excxx_env"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32/Release"
+# PROP Intermediate_Dir "Win32/Release/excxx_env"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 libdb48.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386 /nodefaultlib:"libcmt" /libpath:"$(OUTDIR)"
+
+!ELSEIF "$(CFG)" == "excxx_env - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32/Debug"
+# PROP BASE Intermediate_Dir "Win32/Debug/excxx_env"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32/Debug"
+# PROP Intermediate_Dir "Win32/Debug/excxx_env"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 libdb48d.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /nodefaultlib:"libcmtd" /fixed:no /libpath:"$(OUTDIR)"
+
+!ENDIF
+
+# Begin Target
+
+# Name "excxx_env - Win32 Release x86"
+# Name "excxx_env - Win32 Debug x86"
+# Begin Source File
+
+SOURCE=..\examples_cxx\EnvExample.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=..\clib\getopt.c
+# End Source File
+# End Target
+# End Project
diff --git a/build_windows/excxx_env.vcproj b/build_windows/excxx_env.vcproj new file mode 100644 index 0000000..a0d1dc2 --- /dev/null +++ b/build_windows/excxx_env.vcproj @@ -0,0 +1,81 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="excxx_env" ProjectGUID="{E790C029-341D-489B-B987-D35947AD78C3}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/excxx_env" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_env.pch" AssemblerListingLocation="$(OutDir)/excxx_env/" ObjectFile="$(OutDir)/excxx_env/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_env.exe" ProgramDatabaseFile="$(OutDir)/excxx_env.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/excxx_env" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_env.pch" AssemblerListingLocation="$(OutDir)/excxx_env/" ObjectFile="$(OutDir)/excxx_env/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_env.exe" ProgramDatabaseFile="$(OutDir)/excxx_env.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/excxx_env" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_env.pch" AssemblerListingLocation="$(OutDir)/excxx_env/" ObjectFile="$(OutDir)/excxx_env/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_env.exe" ProgramDatabaseFile="$(OutDir)/excxx_env.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/excxx_env" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_env.pch" AssemblerListingLocation="$(OutDir)/excxx_env/" ObjectFile="$(OutDir)/excxx_env/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_env.exe" ProgramDatabaseFile="$(OutDir)/excxx_env.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/excxx_env" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_env.pch" AssemblerListingLocation="$(OutDir)/excxx_env/" ObjectFile="$(OutDir)/excxx_env/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_env.exe" ProgramDatabaseFile="$(OutDir)/excxx_env.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/excxx_env" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_env.pch" AssemblerListingLocation="$(OutDir)/excxx_env/" ObjectFile="$(OutDir)/excxx_env/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_env.exe" ProgramDatabaseFile="$(OutDir)/excxx_env.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\clib\getopt.c"/> + <File RelativePath="..\examples_cxx\EnvExample.cpp"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/excxx_example_database_load.dsp b/build_windows/excxx_example_database_load.dsp new file mode 100644 index 0000000..50e3867 --- /dev/null +++ b/build_windows/excxx_example_database_load.dsp @@ -0,0 +1,98 @@ +# Microsoft Developer Studio Project File - Name="excxx_example_database_load" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=excxx_example_database_load - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "excxx_example_database_load.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "excxx_example_database_load.mak" CFG="excxx_example_database_load - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "excxx_example_database_load - Win32 Release x86" (based on "Win32 (x86) Console Application")
+!MESSAGE "excxx_example_database_load - Win32 Debug x86" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "excxx_example_database_load - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32/Release"
+# PROP BASE Intermediate_Dir "Win32/Release/excxx_example_database_load"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32/Release"
+# PROP Intermediate_Dir "Win32/Release/excxx_example_database_load"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 libdb48.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386 /nodefaultlib:"libcmt" /libpath:"$(OUTDIR)"
+
+!ELSEIF "$(CFG)" == "excxx_example_database_load - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32/Debug"
+# PROP BASE Intermediate_Dir "Win32/Debug/excxx_example_database_load"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32/Debug"
+# PROP Intermediate_Dir "Win32/Debug/excxx_example_database_load"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 libdb48d.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /nodefaultlib:"libcmtd" /fixed:no /libpath:"$(OUTDIR)"
+
+!ENDIF
+
+# Begin Target
+
+# Name "excxx_example_database_load - Win32 Release x86"
+# Name "excxx_example_database_load - Win32 Debug x86"
+# Begin Source File
+
+SOURCE=..\examples_cxx\getting_started\MyDb.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=..\examples_cxx\getting_started\excxx_example_database_load.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=..\clib\getopt.c
+# End Source File
+# End Target
+# End Project
diff --git a/build_windows/excxx_example_database_load.vcproj b/build_windows/excxx_example_database_load.vcproj new file mode 100644 index 0000000..307a8f1 --- /dev/null +++ b/build_windows/excxx_example_database_load.vcproj @@ -0,0 +1,82 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="excxx_example_database_load" ProjectGUID="{A4F42222-FE02-431D-A046-B049E516DEB7}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/excxx_example_database_load" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_example_database_load.pch" AssemblerListingLocation="$(OutDir)/excxx_example_database_load/" ObjectFile="$(OutDir)/excxx_example_database_load/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_example_database_load.exe" ProgramDatabaseFile="$(OutDir)/excxx_example_database_load.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/excxx_example_database_load" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_example_database_load.pch" AssemblerListingLocation="$(OutDir)/excxx_example_database_load/" ObjectFile="$(OutDir)/excxx_example_database_load/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_example_database_load.exe" ProgramDatabaseFile="$(OutDir)/excxx_example_database_load.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/excxx_example_database_load" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_example_database_load.pch" AssemblerListingLocation="$(OutDir)/excxx_example_database_load/" ObjectFile="$(OutDir)/excxx_example_database_load/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_example_database_load.exe" ProgramDatabaseFile="$(OutDir)/excxx_example_database_load.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/excxx_example_database_load" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_example_database_load.pch" AssemblerListingLocation="$(OutDir)/excxx_example_database_load/" ObjectFile="$(OutDir)/excxx_example_database_load/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_example_database_load.exe" ProgramDatabaseFile="$(OutDir)/excxx_example_database_load.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/excxx_example_database_load" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_example_database_load.pch" AssemblerListingLocation="$(OutDir)/excxx_example_database_load/" ObjectFile="$(OutDir)/excxx_example_database_load/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_example_database_load.exe" ProgramDatabaseFile="$(OutDir)/excxx_example_database_load.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/excxx_example_database_load" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_example_database_load.pch" AssemblerListingLocation="$(OutDir)/excxx_example_database_load/" ObjectFile="$(OutDir)/excxx_example_database_load/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_example_database_load.exe" ProgramDatabaseFile="$(OutDir)/excxx_example_database_load.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\clib\getopt.c"/> + <File RelativePath="..\examples_cxx\getting_started\MyDb.cpp"/> + <File RelativePath="..\examples_cxx\getting_started\excxx_example_database_load.cpp"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/excxx_example_database_read.dsp b/build_windows/excxx_example_database_read.dsp new file mode 100644 index 0000000..ac41c97 --- /dev/null +++ b/build_windows/excxx_example_database_read.dsp @@ -0,0 +1,98 @@ +# Microsoft Developer Studio Project File - Name="excxx_example_database_read" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=excxx_example_database_read - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "excxx_example_database_read.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "excxx_example_database_read.mak" CFG="excxx_example_database_read - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "excxx_example_database_read - Win32 Release x86" (based on "Win32 (x86) Console Application")
+!MESSAGE "excxx_example_database_read - Win32 Debug x86" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "excxx_example_database_read - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32/Release"
+# PROP BASE Intermediate_Dir "Win32/Release/excxx_example_database_read"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32/Release"
+# PROP Intermediate_Dir "Win32/Release/excxx_example_database_read"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 libdb48.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386 /nodefaultlib:"libcmt" /libpath:"$(OUTDIR)"
+
+!ELSEIF "$(CFG)" == "excxx_example_database_read - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32/Debug"
+# PROP BASE Intermediate_Dir "Win32/Debug/excxx_example_database_read"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32/Debug"
+# PROP Intermediate_Dir "Win32/Debug/excxx_example_database_read"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 libdb48d.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /nodefaultlib:"libcmtd" /fixed:no /libpath:"$(OUTDIR)"
+
+!ENDIF
+
+# Begin Target
+
+# Name "excxx_example_database_read - Win32 Release x86"
+# Name "excxx_example_database_read - Win32 Debug x86"
+# Begin Source File
+
+SOURCE=..\examples_cxx\getting_started\MyDb.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=..\examples_cxx\getting_started\excxx_example_database_read.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=..\clib\getopt.c
+# End Source File
+# End Target
+# End Project
diff --git a/build_windows/excxx_example_database_read.vcproj b/build_windows/excxx_example_database_read.vcproj new file mode 100644 index 0000000..3ea1709 --- /dev/null +++ b/build_windows/excxx_example_database_read.vcproj @@ -0,0 +1,82 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="excxx_example_database_read" ProjectGUID="{81C97B03-193C-4021-A78E-F0A2A2AFAA87}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/excxx_example_database_read" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_example_database_read.pch" AssemblerListingLocation="$(OutDir)/excxx_example_database_read/" ObjectFile="$(OutDir)/excxx_example_database_read/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_example_database_read.exe" ProgramDatabaseFile="$(OutDir)/excxx_example_database_read.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/excxx_example_database_read" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_example_database_read.pch" AssemblerListingLocation="$(OutDir)/excxx_example_database_read/" ObjectFile="$(OutDir)/excxx_example_database_read/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_example_database_read.exe" ProgramDatabaseFile="$(OutDir)/excxx_example_database_read.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/excxx_example_database_read" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_example_database_read.pch" AssemblerListingLocation="$(OutDir)/excxx_example_database_read/" ObjectFile="$(OutDir)/excxx_example_database_read/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_example_database_read.exe" ProgramDatabaseFile="$(OutDir)/excxx_example_database_read.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/excxx_example_database_read" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_example_database_read.pch" AssemblerListingLocation="$(OutDir)/excxx_example_database_read/" ObjectFile="$(OutDir)/excxx_example_database_read/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_example_database_read.exe" ProgramDatabaseFile="$(OutDir)/excxx_example_database_read.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/excxx_example_database_read" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_example_database_read.pch" AssemblerListingLocation="$(OutDir)/excxx_example_database_read/" ObjectFile="$(OutDir)/excxx_example_database_read/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_example_database_read.exe" ProgramDatabaseFile="$(OutDir)/excxx_example_database_read.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/excxx_example_database_read" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_example_database_read.pch" AssemblerListingLocation="$(OutDir)/excxx_example_database_read/" ObjectFile="$(OutDir)/excxx_example_database_read/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_example_database_read.exe" ProgramDatabaseFile="$(OutDir)/excxx_example_database_read.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\clib\getopt.c"/> + <File RelativePath="..\examples_cxx\getting_started\MyDb.cpp"/> + <File RelativePath="..\examples_cxx\getting_started\excxx_example_database_read.cpp"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/excxx_lock.dsp b/build_windows/excxx_lock.dsp new file mode 100644 index 0000000..92e6334 --- /dev/null +++ b/build_windows/excxx_lock.dsp @@ -0,0 +1,94 @@ +# Microsoft Developer Studio Project File - Name="excxx_lock" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=excxx_lock - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "excxx_lock.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "excxx_lock.mak" CFG="excxx_lock - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "excxx_lock - Win32 Release x86" (based on "Win32 (x86) Console Application")
+!MESSAGE "excxx_lock - Win32 Debug x86" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "excxx_lock - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32/Release"
+# PROP BASE Intermediate_Dir "Win32/Release/excxx_lock"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32/Release"
+# PROP Intermediate_Dir "Win32/Release/excxx_lock"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 libdb48.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386 /nodefaultlib:"libcmt" /libpath:"$(OUTDIR)"
+
+!ELSEIF "$(CFG)" == "excxx_lock - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32/Debug"
+# PROP BASE Intermediate_Dir "Win32/Debug/excxx_lock"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32/Debug"
+# PROP Intermediate_Dir "Win32/Debug/excxx_lock"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 libdb48d.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /nodefaultlib:"libcmtd" /fixed:no /libpath:"$(OUTDIR)"
+
+!ENDIF
+
+# Begin Target
+
+# Name "excxx_lock - Win32 Release x86"
+# Name "excxx_lock - Win32 Debug x86"
+# Begin Source File
+
+SOURCE=..\examples_cxx\LockExample.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=..\clib\getopt.c
+# End Source File
+# End Target
+# End Project
diff --git a/build_windows/excxx_lock.vcproj b/build_windows/excxx_lock.vcproj new file mode 100644 index 0000000..4aa8562 --- /dev/null +++ b/build_windows/excxx_lock.vcproj @@ -0,0 +1,81 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="excxx_lock" ProjectGUID="{19393F5D-DBBE-450C-9217-EA0C7503E277}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/excxx_lock" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_lock.pch" AssemblerListingLocation="$(OutDir)/excxx_lock/" ObjectFile="$(OutDir)/excxx_lock/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_lock.exe" ProgramDatabaseFile="$(OutDir)/excxx_lock.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/excxx_lock" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_lock.pch" AssemblerListingLocation="$(OutDir)/excxx_lock/" ObjectFile="$(OutDir)/excxx_lock/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_lock.exe" ProgramDatabaseFile="$(OutDir)/excxx_lock.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/excxx_lock" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_lock.pch" AssemblerListingLocation="$(OutDir)/excxx_lock/" ObjectFile="$(OutDir)/excxx_lock/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_lock.exe" ProgramDatabaseFile="$(OutDir)/excxx_lock.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/excxx_lock" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_lock.pch" AssemblerListingLocation="$(OutDir)/excxx_lock/" ObjectFile="$(OutDir)/excxx_lock/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_lock.exe" ProgramDatabaseFile="$(OutDir)/excxx_lock.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/excxx_lock" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_lock.pch" AssemblerListingLocation="$(OutDir)/excxx_lock/" ObjectFile="$(OutDir)/excxx_lock/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_lock.exe" ProgramDatabaseFile="$(OutDir)/excxx_lock.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/excxx_lock" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_lock.pch" AssemblerListingLocation="$(OutDir)/excxx_lock/" ObjectFile="$(OutDir)/excxx_lock/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_lock.exe" ProgramDatabaseFile="$(OutDir)/excxx_lock.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\clib\getopt.c"/> + <File RelativePath="..\examples_cxx\LockExample.cpp"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/excxx_mpool.dsp b/build_windows/excxx_mpool.dsp new file mode 100644 index 0000000..9eb99eb --- /dev/null +++ b/build_windows/excxx_mpool.dsp @@ -0,0 +1,94 @@ +# Microsoft Developer Studio Project File - Name="excxx_mpool" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=excxx_mpool - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "excxx_mpool.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "excxx_mpool.mak" CFG="excxx_mpool - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "excxx_mpool - Win32 Release x86" (based on "Win32 (x86) Console Application")
+!MESSAGE "excxx_mpool - Win32 Debug x86" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "excxx_mpool - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32/Release"
+# PROP BASE Intermediate_Dir "Win32/Release/excxx_mpool"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32/Release"
+# PROP Intermediate_Dir "Win32/Release/excxx_mpool"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 libdb48.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386 /nodefaultlib:"libcmt" /libpath:"$(OUTDIR)"
+
+!ELSEIF "$(CFG)" == "excxx_mpool - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32/Debug"
+# PROP BASE Intermediate_Dir "Win32/Debug/excxx_mpool"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32/Debug"
+# PROP Intermediate_Dir "Win32/Debug/excxx_mpool"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 libdb48d.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /nodefaultlib:"libcmtd" /fixed:no /libpath:"$(OUTDIR)"
+
+!ENDIF
+
+# Begin Target
+
+# Name "excxx_mpool - Win32 Release x86"
+# Name "excxx_mpool - Win32 Debug x86"
+# Begin Source File
+
+SOURCE=..\examples_cxx\MpoolExample.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=..\clib\getopt.c
+# End Source File
+# End Target
+# End Project
diff --git a/build_windows/excxx_mpool.vcproj b/build_windows/excxx_mpool.vcproj new file mode 100644 index 0000000..09aa2b4 --- /dev/null +++ b/build_windows/excxx_mpool.vcproj @@ -0,0 +1,81 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="excxx_mpool" ProjectGUID="{DAEDD51B-0FED-4779-A99A-C09E4D2ACB5E}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/excxx_mpool" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_mpool.pch" AssemblerListingLocation="$(OutDir)/excxx_mpool/" ObjectFile="$(OutDir)/excxx_mpool/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_mpool.exe" ProgramDatabaseFile="$(OutDir)/excxx_mpool.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/excxx_mpool" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_mpool.pch" AssemblerListingLocation="$(OutDir)/excxx_mpool/" ObjectFile="$(OutDir)/excxx_mpool/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_mpool.exe" ProgramDatabaseFile="$(OutDir)/excxx_mpool.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/excxx_mpool" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_mpool.pch" AssemblerListingLocation="$(OutDir)/excxx_mpool/" ObjectFile="$(OutDir)/excxx_mpool/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_mpool.exe" ProgramDatabaseFile="$(OutDir)/excxx_mpool.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/excxx_mpool" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_mpool.pch" AssemblerListingLocation="$(OutDir)/excxx_mpool/" ObjectFile="$(OutDir)/excxx_mpool/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_mpool.exe" ProgramDatabaseFile="$(OutDir)/excxx_mpool.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/excxx_mpool" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_mpool.pch" AssemblerListingLocation="$(OutDir)/excxx_mpool/" ObjectFile="$(OutDir)/excxx_mpool/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_mpool.exe" ProgramDatabaseFile="$(OutDir)/excxx_mpool.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/excxx_mpool" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_mpool.pch" AssemblerListingLocation="$(OutDir)/excxx_mpool/" ObjectFile="$(OutDir)/excxx_mpool/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_mpool.exe" ProgramDatabaseFile="$(OutDir)/excxx_mpool.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\clib\getopt.c"/> + <File RelativePath="..\examples_cxx\MpoolExample.cpp"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/excxx_repquote.dsp b/build_windows/excxx_repquote.dsp new file mode 100644 index 0000000..ca01ba0 --- /dev/null +++ b/build_windows/excxx_repquote.dsp @@ -0,0 +1,98 @@ +# Microsoft Developer Studio Project File - Name="excxx_repquote" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=excxx_repquote - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "excxx_repquote.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "excxx_repquote.mak" CFG="excxx_repquote - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "excxx_repquote - Win32 Release x86" (based on "Win32 (x86) Console Application")
+!MESSAGE "excxx_repquote - Win32 Debug x86" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "excxx_repquote - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32/Release"
+# PROP BASE Intermediate_Dir "Win32/Release/excxx_repquote"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32/Release"
+# PROP Intermediate_Dir "Win32/Release/excxx_repquote"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 libdb48.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386 /nodefaultlib:"libcmt" /libpath:"$(OUTDIR)"
+
+!ELSEIF "$(CFG)" == "excxx_repquote - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32/Debug"
+# PROP BASE Intermediate_Dir "Win32/Debug/excxx_repquote"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32/Debug"
+# PROP Intermediate_Dir "Win32/Debug/excxx_repquote"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 libdb48d.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /nodefaultlib:"libcmtd" /fixed:no /libpath:"$(OUTDIR)"
+
+!ENDIF
+
+# Begin Target
+
+# Name "excxx_repquote - Win32 Release x86"
+# Name "excxx_repquote - Win32 Debug x86"
+# Begin Source File
+
+SOURCE=..\examples_cxx\excxx_repquote\RepConfigInfo.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=..\examples_cxx\excxx_repquote\RepQuoteExample.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=..\clib\getopt.c
+# End Source File
+# End Target
+# End Project
diff --git a/build_windows/excxx_repquote.vcproj b/build_windows/excxx_repquote.vcproj new file mode 100644 index 0000000..74285f9 --- /dev/null +++ b/build_windows/excxx_repquote.vcproj @@ -0,0 +1,82 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="excxx_repquote" ProjectGUID="{75046027-E052-4E8B-AE87-E27DE9C2BC21}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/excxx_repquote" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_repquote.pch" AssemblerListingLocation="$(OutDir)/excxx_repquote/" ObjectFile="$(OutDir)/excxx_repquote/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_repquote.exe" ProgramDatabaseFile="$(OutDir)/excxx_repquote.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/excxx_repquote" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_repquote.pch" AssemblerListingLocation="$(OutDir)/excxx_repquote/" ObjectFile="$(OutDir)/excxx_repquote/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_repquote.exe" ProgramDatabaseFile="$(OutDir)/excxx_repquote.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/excxx_repquote" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_repquote.pch" AssemblerListingLocation="$(OutDir)/excxx_repquote/" ObjectFile="$(OutDir)/excxx_repquote/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_repquote.exe" ProgramDatabaseFile="$(OutDir)/excxx_repquote.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/excxx_repquote" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_repquote.pch" AssemblerListingLocation="$(OutDir)/excxx_repquote/" ObjectFile="$(OutDir)/excxx_repquote/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_repquote.exe" ProgramDatabaseFile="$(OutDir)/excxx_repquote.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/excxx_repquote" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_repquote.pch" AssemblerListingLocation="$(OutDir)/excxx_repquote/" ObjectFile="$(OutDir)/excxx_repquote/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_repquote.exe" ProgramDatabaseFile="$(OutDir)/excxx_repquote.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/excxx_repquote" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_repquote.pch" AssemblerListingLocation="$(OutDir)/excxx_repquote/" ObjectFile="$(OutDir)/excxx_repquote/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_repquote.exe" ProgramDatabaseFile="$(OutDir)/excxx_repquote.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\clib\getopt.c"/> + <File RelativePath="..\examples_cxx\excxx_repquote\RepConfigInfo.cpp"/> + <File RelativePath="..\examples_cxx\excxx_repquote\RepQuoteExample.cpp"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/excxx_sequence.dsp b/build_windows/excxx_sequence.dsp new file mode 100644 index 0000000..757670b --- /dev/null +++ b/build_windows/excxx_sequence.dsp @@ -0,0 +1,94 @@ +# Microsoft Developer Studio Project File - Name="excxx_sequence" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=excxx_sequence - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "excxx_sequence.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "excxx_sequence.mak" CFG="excxx_sequence - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "excxx_sequence - Win32 Release x86" (based on "Win32 (x86) Console Application")
+!MESSAGE "excxx_sequence - Win32 Debug x86" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "excxx_sequence - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32/Release"
+# PROP BASE Intermediate_Dir "Win32/Release/excxx_sequence"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32/Release"
+# PROP Intermediate_Dir "Win32/Release/excxx_sequence"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 libdb48.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386 /nodefaultlib:"libcmt" /libpath:"$(OUTDIR)"
+
+!ELSEIF "$(CFG)" == "excxx_sequence - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32/Debug"
+# PROP BASE Intermediate_Dir "Win32/Debug/excxx_sequence"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32/Debug"
+# PROP Intermediate_Dir "Win32/Debug/excxx_sequence"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 libdb48d.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /nodefaultlib:"libcmtd" /fixed:no /libpath:"$(OUTDIR)"
+
+!ENDIF
+
+# Begin Target
+
+# Name "excxx_sequence - Win32 Release x86"
+# Name "excxx_sequence - Win32 Debug x86"
+# Begin Source File
+
+SOURCE=..\examples_cxx\SequenceExample.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=..\clib\getopt.c
+# End Source File
+# End Target
+# End Project
diff --git a/build_windows/excxx_sequence.vcproj b/build_windows/excxx_sequence.vcproj new file mode 100644 index 0000000..becde4a --- /dev/null +++ b/build_windows/excxx_sequence.vcproj @@ -0,0 +1,81 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="excxx_sequence" ProjectGUID="{D90AE774-03EF-4945-A3C3-AC76BF90825F}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/excxx_sequence" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_sequence.pch" AssemblerListingLocation="$(OutDir)/excxx_sequence/" ObjectFile="$(OutDir)/excxx_sequence/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_sequence.exe" ProgramDatabaseFile="$(OutDir)/excxx_sequence.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/excxx_sequence" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_sequence.pch" AssemblerListingLocation="$(OutDir)/excxx_sequence/" ObjectFile="$(OutDir)/excxx_sequence/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_sequence.exe" ProgramDatabaseFile="$(OutDir)/excxx_sequence.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/excxx_sequence" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_sequence.pch" AssemblerListingLocation="$(OutDir)/excxx_sequence/" ObjectFile="$(OutDir)/excxx_sequence/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_sequence.exe" ProgramDatabaseFile="$(OutDir)/excxx_sequence.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/excxx_sequence" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_sequence.pch" AssemblerListingLocation="$(OutDir)/excxx_sequence/" ObjectFile="$(OutDir)/excxx_sequence/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_sequence.exe" ProgramDatabaseFile="$(OutDir)/excxx_sequence.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/excxx_sequence" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_sequence.pch" AssemblerListingLocation="$(OutDir)/excxx_sequence/" ObjectFile="$(OutDir)/excxx_sequence/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_sequence.exe" ProgramDatabaseFile="$(OutDir)/excxx_sequence.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/excxx_sequence" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_sequence.pch" AssemblerListingLocation="$(OutDir)/excxx_sequence/" ObjectFile="$(OutDir)/excxx_sequence/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_sequence.exe" ProgramDatabaseFile="$(OutDir)/excxx_sequence.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\clib\getopt.c"/> + <File RelativePath="..\examples_cxx\SequenceExample.cpp"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/excxx_tpcb.dsp b/build_windows/excxx_tpcb.dsp new file mode 100644 index 0000000..b7a45c4 --- /dev/null +++ b/build_windows/excxx_tpcb.dsp @@ -0,0 +1,94 @@ +# Microsoft Developer Studio Project File - Name="excxx_tpcb" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=excxx_tpcb - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "excxx_tpcb.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "excxx_tpcb.mak" CFG="excxx_tpcb - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "excxx_tpcb - Win32 Release x86" (based on "Win32 (x86) Console Application")
+!MESSAGE "excxx_tpcb - Win32 Debug x86" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "excxx_tpcb - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32/Release"
+# PROP BASE Intermediate_Dir "Win32/Release/excxx_tpcb"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32/Release"
+# PROP Intermediate_Dir "Win32/Release/excxx_tpcb"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 libdb48.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386 /nodefaultlib:"libcmt" /libpath:"$(OUTDIR)"
+
+!ELSEIF "$(CFG)" == "excxx_tpcb - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32/Debug"
+# PROP BASE Intermediate_Dir "Win32/Debug/excxx_tpcb"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32/Debug"
+# PROP Intermediate_Dir "Win32/Debug/excxx_tpcb"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 libdb48d.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /nodefaultlib:"libcmtd" /fixed:no /libpath:"$(OUTDIR)"
+
+!ENDIF
+
+# Begin Target
+
+# Name "excxx_tpcb - Win32 Release x86"
+# Name "excxx_tpcb - Win32 Debug x86"
+# Begin Source File
+
+SOURCE=..\examples_cxx\TpcbExample.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=..\clib\getopt.c
+# End Source File
+# End Target
+# End Project
diff --git a/build_windows/excxx_tpcb.vcproj b/build_windows/excxx_tpcb.vcproj new file mode 100644 index 0000000..561258e --- /dev/null +++ b/build_windows/excxx_tpcb.vcproj @@ -0,0 +1,81 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="excxx_tpcb" ProjectGUID="{77BD278B-7927-4C88-9198-5067C549398D}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/excxx_tpcb" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_tpcb.pch" AssemblerListingLocation="$(OutDir)/excxx_tpcb/" ObjectFile="$(OutDir)/excxx_tpcb/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_tpcb.exe" ProgramDatabaseFile="$(OutDir)/excxx_tpcb.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/excxx_tpcb" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_tpcb.pch" AssemblerListingLocation="$(OutDir)/excxx_tpcb/" ObjectFile="$(OutDir)/excxx_tpcb/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_tpcb.exe" ProgramDatabaseFile="$(OutDir)/excxx_tpcb.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/excxx_tpcb" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_tpcb.pch" AssemblerListingLocation="$(OutDir)/excxx_tpcb/" ObjectFile="$(OutDir)/excxx_tpcb/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_tpcb.exe" ProgramDatabaseFile="$(OutDir)/excxx_tpcb.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/excxx_tpcb" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_tpcb.pch" AssemblerListingLocation="$(OutDir)/excxx_tpcb/" ObjectFile="$(OutDir)/excxx_tpcb/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_tpcb.exe" ProgramDatabaseFile="$(OutDir)/excxx_tpcb.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/excxx_tpcb" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_tpcb.pch" AssemblerListingLocation="$(OutDir)/excxx_tpcb/" ObjectFile="$(OutDir)/excxx_tpcb/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_tpcb.exe" ProgramDatabaseFile="$(OutDir)/excxx_tpcb.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/excxx_tpcb" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_tpcb.pch" AssemblerListingLocation="$(OutDir)/excxx_tpcb/" ObjectFile="$(OutDir)/excxx_tpcb/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_tpcb.exe" ProgramDatabaseFile="$(OutDir)/excxx_tpcb.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\clib\getopt.c"/> + <File RelativePath="..\examples_cxx\TpcbExample.cpp"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/excxx_txnguide.dsp b/build_windows/excxx_txnguide.dsp new file mode 100644 index 0000000..11d6a66 --- /dev/null +++ b/build_windows/excxx_txnguide.dsp @@ -0,0 +1,94 @@ +# Microsoft Developer Studio Project File - Name="excxx_txnguide" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=excxx_txnguide - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "excxx_txnguide.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "excxx_txnguide.mak" CFG="excxx_txnguide - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "excxx_txnguide - Win32 Release x86" (based on "Win32 (x86) Console Application")
+!MESSAGE "excxx_txnguide - Win32 Debug x86" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "excxx_txnguide - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32/Release"
+# PROP BASE Intermediate_Dir "Win32/Release/excxx_txnguide"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32/Release"
+# PROP Intermediate_Dir "Win32/Release/excxx_txnguide"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 libdb48.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386 /nodefaultlib:"libcmt" /libpath:"$(OUTDIR)"
+
+!ELSEIF "$(CFG)" == "excxx_txnguide - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32/Debug"
+# PROP BASE Intermediate_Dir "Win32/Debug/excxx_txnguide"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32/Debug"
+# PROP Intermediate_Dir "Win32/Debug/excxx_txnguide"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 libdb48d.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /nodefaultlib:"libcmtd" /fixed:no /libpath:"$(OUTDIR)"
+
+!ENDIF
+
+# Begin Target
+
+# Name "excxx_txnguide - Win32 Release x86"
+# Name "excxx_txnguide - Win32 Debug x86"
+# Begin Source File
+
+SOURCE=..\examples_cxx\txn_guide\TxnGuide.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=..\clib\getopt.c
+# End Source File
+# End Target
+# End Project
diff --git a/build_windows/excxx_txnguide.vcproj b/build_windows/excxx_txnguide.vcproj new file mode 100644 index 0000000..6670412 --- /dev/null +++ b/build_windows/excxx_txnguide.vcproj @@ -0,0 +1,81 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="excxx_txnguide" ProjectGUID="{2E9B94E9-024C-4255-9104-BA81FF7F2591}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/excxx_txnguide" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_txnguide.pch" AssemblerListingLocation="$(OutDir)/excxx_txnguide/" ObjectFile="$(OutDir)/excxx_txnguide/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_txnguide.exe" ProgramDatabaseFile="$(OutDir)/excxx_txnguide.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/excxx_txnguide" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_txnguide.pch" AssemblerListingLocation="$(OutDir)/excxx_txnguide/" ObjectFile="$(OutDir)/excxx_txnguide/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_txnguide.exe" ProgramDatabaseFile="$(OutDir)/excxx_txnguide.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/excxx_txnguide" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_txnguide.pch" AssemblerListingLocation="$(OutDir)/excxx_txnguide/" ObjectFile="$(OutDir)/excxx_txnguide/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_txnguide.exe" ProgramDatabaseFile="$(OutDir)/excxx_txnguide.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/excxx_txnguide" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_txnguide.pch" AssemblerListingLocation="$(OutDir)/excxx_txnguide/" ObjectFile="$(OutDir)/excxx_txnguide/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_txnguide.exe" ProgramDatabaseFile="$(OutDir)/excxx_txnguide.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/excxx_txnguide" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_txnguide.pch" AssemblerListingLocation="$(OutDir)/excxx_txnguide/" ObjectFile="$(OutDir)/excxx_txnguide/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_txnguide.exe" ProgramDatabaseFile="$(OutDir)/excxx_txnguide.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/excxx_txnguide" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_txnguide.pch" AssemblerListingLocation="$(OutDir)/excxx_txnguide/" ObjectFile="$(OutDir)/excxx_txnguide/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_txnguide.exe" ProgramDatabaseFile="$(OutDir)/excxx_txnguide.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\clib\getopt.c"/> + <File RelativePath="..\examples_cxx\txn_guide\TxnGuide.cpp"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/excxx_txnguide_inmem.dsp b/build_windows/excxx_txnguide_inmem.dsp new file mode 100644 index 0000000..bc6a64e --- /dev/null +++ b/build_windows/excxx_txnguide_inmem.dsp @@ -0,0 +1,94 @@ +# Microsoft Developer Studio Project File - Name="excxx_txnguide_inmem" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=excxx_txnguide_inmem - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "excxx_txnguide_inmem.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "excxx_txnguide_inmem.mak" CFG="excxx_txnguide_inmem - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "excxx_txnguide_inmem - Win32 Release x86" (based on "Win32 (x86) Console Application")
+!MESSAGE "excxx_txnguide_inmem - Win32 Debug x86" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "excxx_txnguide_inmem - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32/Release"
+# PROP BASE Intermediate_Dir "Win32/Release/excxx_txnguide_inmem"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32/Release"
+# PROP Intermediate_Dir "Win32/Release/excxx_txnguide_inmem"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 libdb48.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386 /nodefaultlib:"libcmt" /libpath:"$(OUTDIR)"
+
+!ELSEIF "$(CFG)" == "excxx_txnguide_inmem - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32/Debug"
+# PROP BASE Intermediate_Dir "Win32/Debug/excxx_txnguide_inmem"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32/Debug"
+# PROP Intermediate_Dir "Win32/Debug/excxx_txnguide_inmem"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 libdb48d.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /nodefaultlib:"libcmtd" /fixed:no /libpath:"$(OUTDIR)"
+
+!ENDIF
+
+# Begin Target
+
+# Name "excxx_txnguide_inmem - Win32 Release x86"
+# Name "excxx_txnguide_inmem - Win32 Debug x86"
+# Begin Source File
+
+SOURCE=..\examples_cxx\txn_guide\TxnGuideInMemory.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=..\clib\getopt.c
+# End Source File
+# End Target
+# End Project
diff --git a/build_windows/excxx_txnguide_inmem.vcproj b/build_windows/excxx_txnguide_inmem.vcproj new file mode 100644 index 0000000..d626ded --- /dev/null +++ b/build_windows/excxx_txnguide_inmem.vcproj @@ -0,0 +1,81 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="excxx_txnguide_inmem" ProjectGUID="{009413E4-EFDF-42FB-8631-931CFAEAAB72}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/excxx_txnguide_inmem" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_txnguide_inmem.pch" AssemblerListingLocation="$(OutDir)/excxx_txnguide_inmem/" ObjectFile="$(OutDir)/excxx_txnguide_inmem/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_txnguide_inmem.exe" ProgramDatabaseFile="$(OutDir)/excxx_txnguide_inmem.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/excxx_txnguide_inmem" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_txnguide_inmem.pch" AssemblerListingLocation="$(OutDir)/excxx_txnguide_inmem/" ObjectFile="$(OutDir)/excxx_txnguide_inmem/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_txnguide_inmem.exe" ProgramDatabaseFile="$(OutDir)/excxx_txnguide_inmem.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/excxx_txnguide_inmem" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_txnguide_inmem.pch" AssemblerListingLocation="$(OutDir)/excxx_txnguide_inmem/" ObjectFile="$(OutDir)/excxx_txnguide_inmem/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_txnguide_inmem.exe" ProgramDatabaseFile="$(OutDir)/excxx_txnguide_inmem.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/excxx_txnguide_inmem" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_txnguide_inmem.pch" AssemblerListingLocation="$(OutDir)/excxx_txnguide_inmem/" ObjectFile="$(OutDir)/excxx_txnguide_inmem/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_txnguide_inmem.exe" ProgramDatabaseFile="$(OutDir)/excxx_txnguide_inmem.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/excxx_txnguide_inmem" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_txnguide_inmem.pch" AssemblerListingLocation="$(OutDir)/excxx_txnguide_inmem/" ObjectFile="$(OutDir)/excxx_txnguide_inmem/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_txnguide_inmem.exe" ProgramDatabaseFile="$(OutDir)/excxx_txnguide_inmem.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/excxx_txnguide_inmem" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/excxx_txnguide_inmem.pch" AssemblerListingLocation="$(OutDir)/excxx_txnguide_inmem/" ObjectFile="$(OutDir)/excxx_txnguide_inmem/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/excxx_txnguide_inmem.exe" ProgramDatabaseFile="$(OutDir)/excxx_txnguide_inmem.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\clib\getopt.c"/> + <File RelativePath="..\examples_cxx\txn_guide\TxnGuideInMemory.cpp"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/exstl_access.vcproj b/build_windows/exstl_access.vcproj new file mode 100644 index 0000000..7070e66 --- /dev/null +++ b/build_windows/exstl_access.vcproj @@ -0,0 +1,80 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="exstl_access" ProjectGUID="{284CC190-0C66-11DE-8C30-0800200C9A66}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/exstl_access" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/exstl_access.pch" AssemblerListingLocation="$(OutDir)/exstl_access/" ObjectFile="$(OutDir)/exstl_access/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib libdb_stl48d.lib" AdditionalLibraryDirectories="$(OutDir);$(OutDir)" OutputFile="$(OutDir)/exstl_access.exe" ProgramDatabaseFile="$(OutDir)/exstl_access.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/exstl_access" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/exstl_access.pch" AssemblerListingLocation="$(OutDir)/exstl_access/" ObjectFile="$(OutDir)/exstl_access/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib libdb_stl48.lib" AdditionalLibraryDirectories="$(OutDir);$(OutDir)" OutputFile="$(OutDir)/exstl_access.exe" ProgramDatabaseFile="$(OutDir)/exstl_access.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/exstl_access" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalOptions="/bigobj" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/exstl_access.pch" AssemblerListingLocation="$(OutDir)/exstl_access/" ObjectFile="$(OutDir)/exstl_access/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib libdb_stl48d.lib" AdditionalLibraryDirectories="$(OutDir);$(OutDir)" OutputFile="$(OutDir)/exstl_access.exe" ProgramDatabaseFile="$(OutDir)/exstl_access.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/exstl_access" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalOptions="/bigobj" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/exstl_access.pch" AssemblerListingLocation="$(OutDir)/exstl_access/" ObjectFile="$(OutDir)/exstl_access/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib libdb_stl48.lib" AdditionalLibraryDirectories="$(OutDir);$(OutDir)" OutputFile="$(OutDir)/exstl_access.exe" ProgramDatabaseFile="$(OutDir)/exstl_access.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/exstl_access" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalOptions="/bigobj" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/exstl_access.pch" AssemblerListingLocation="$(OutDir)/exstl_access/" ObjectFile="$(OutDir)/exstl_access/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib libdb_stl48d.lib" AdditionalLibraryDirectories="$(OutDir);$(OutDir)" OutputFile="$(OutDir)/exstl_access.exe" ProgramDatabaseFile="$(OutDir)/exstl_access.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/exstl_access" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalOptions="/bigobj" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/exstl_access.pch" AssemblerListingLocation="$(OutDir)/exstl_access/" ObjectFile="$(OutDir)/exstl_access/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib libdb_stl48.lib" AdditionalLibraryDirectories="$(OutDir);$(OutDir)" OutputFile="$(OutDir)/exstl_access.exe" ProgramDatabaseFile="$(OutDir)/exstl_access.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\examples_stl\StlAccessExample.cpp"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/exstl_repquote.vcproj b/build_windows/exstl_repquote.vcproj new file mode 100644 index 0000000..d0fb63c --- /dev/null +++ b/build_windows/exstl_repquote.vcproj @@ -0,0 +1,83 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="exstl_repquote" ProjectGUID="{284CC191-0C66-11DE-8C30-0800200C9A66}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/exstl_repquote" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/exstl_repquote.pch" AssemblerListingLocation="$(OutDir)/exstl_repquote/" ObjectFile="$(OutDir)/exstl_repquote/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib libdb_stl48d.lib" AdditionalLibraryDirectories="$(OutDir);$(OutDir)" OutputFile="$(OutDir)/exstl_repquote.exe" ProgramDatabaseFile="$(OutDir)/exstl_repquote.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/exstl_repquote" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/exstl_repquote.pch" AssemblerListingLocation="$(OutDir)/exstl_repquote/" ObjectFile="$(OutDir)/exstl_repquote/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib libdb_stl48.lib" AdditionalLibraryDirectories="$(OutDir);$(OutDir)" OutputFile="$(OutDir)/exstl_repquote.exe" ProgramDatabaseFile="$(OutDir)/exstl_repquote.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/exstl_repquote" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalOptions="/bigobj" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/exstl_repquote.pch" AssemblerListingLocation="$(OutDir)/exstl_repquote/" ObjectFile="$(OutDir)/exstl_repquote/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib libdb_stl48d.lib" AdditionalLibraryDirectories="$(OutDir);$(OutDir)" OutputFile="$(OutDir)/exstl_repquote.exe" ProgramDatabaseFile="$(OutDir)/exstl_repquote.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/exstl_repquote" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalOptions="/bigobj" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/exstl_repquote.pch" AssemblerListingLocation="$(OutDir)/exstl_repquote/" ObjectFile="$(OutDir)/exstl_repquote/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib libdb_stl48.lib" AdditionalLibraryDirectories="$(OutDir);$(OutDir)" OutputFile="$(OutDir)/exstl_repquote.exe" ProgramDatabaseFile="$(OutDir)/exstl_repquote.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/exstl_repquote" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalOptions="/bigobj" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/exstl_repquote.pch" AssemblerListingLocation="$(OutDir)/exstl_repquote/" ObjectFile="$(OutDir)/exstl_repquote/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib libdb_stl48d.lib" AdditionalLibraryDirectories="$(OutDir);$(OutDir)" OutputFile="$(OutDir)/exstl_repquote.exe" ProgramDatabaseFile="$(OutDir)/exstl_repquote.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/exstl_repquote" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalOptions="/bigobj" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/exstl_repquote.pch" AssemblerListingLocation="$(OutDir)/exstl_repquote/" ObjectFile="$(OutDir)/exstl_repquote/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib libdb_stl48.lib" AdditionalLibraryDirectories="$(OutDir);$(OutDir)" OutputFile="$(OutDir)/exstl_repquote.exe" ProgramDatabaseFile="$(OutDir)/exstl_repquote.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\examples_stl\repquote\StlRepConfigInfo.cpp"/> + <File RelativePath="..\examples_stl\repquote\StlRepConfigInfo.hpp"/> + <File RelativePath="..\examples_stl\repquote\StlRepQuoteExample.cpp"/> + <File RelativePath="..\clib\getopt.c"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/exstl_tpcb.vcproj b/build_windows/exstl_tpcb.vcproj new file mode 100644 index 0000000..722ddc6 --- /dev/null +++ b/build_windows/exstl_tpcb.vcproj @@ -0,0 +1,81 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="exstl_tpcb" ProjectGUID="{284CC192-0C66-11DE-8C30-0800200C9A66}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/exstl_tpcb" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/exstl_tpcb.pch" AssemblerListingLocation="$(OutDir)/exstl_tpcb/" ObjectFile="$(OutDir)/exstl_tpcb/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib libdb_stl48d.lib" AdditionalLibraryDirectories="$(OutDir);$(OutDir)" OutputFile="$(OutDir)/exstl_tpcb.exe" ProgramDatabaseFile="$(OutDir)/exstl_tpcb.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/exstl_tpcb" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/exstl_tpcb.pch" AssemblerListingLocation="$(OutDir)/exstl_tpcb/" ObjectFile="$(OutDir)/exstl_tpcb/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib libdb_stl48.lib" AdditionalLibraryDirectories="$(OutDir);$(OutDir)" OutputFile="$(OutDir)/exstl_tpcb.exe" ProgramDatabaseFile="$(OutDir)/exstl_tpcb.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/exstl_tpcb" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalOptions="/bigobj" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/exstl_tpcb.pch" AssemblerListingLocation="$(OutDir)/exstl_tpcb/" ObjectFile="$(OutDir)/exstl_tpcb/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib libdb_stl48d.lib" AdditionalLibraryDirectories="$(OutDir);$(OutDir)" OutputFile="$(OutDir)/exstl_tpcb.exe" ProgramDatabaseFile="$(OutDir)/exstl_tpcb.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/exstl_tpcb" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalOptions="/bigobj" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/exstl_tpcb.pch" AssemblerListingLocation="$(OutDir)/exstl_tpcb/" ObjectFile="$(OutDir)/exstl_tpcb/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib libdb_stl48.lib" AdditionalLibraryDirectories="$(OutDir);$(OutDir)" OutputFile="$(OutDir)/exstl_tpcb.exe" ProgramDatabaseFile="$(OutDir)/exstl_tpcb.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/exstl_tpcb" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalOptions="/bigobj" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/exstl_tpcb.pch" AssemblerListingLocation="$(OutDir)/exstl_tpcb/" ObjectFile="$(OutDir)/exstl_tpcb/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib libdb_stl48d.lib" AdditionalLibraryDirectories="$(OutDir);$(OutDir)" OutputFile="$(OutDir)/exstl_tpcb.exe" ProgramDatabaseFile="$(OutDir)/exstl_tpcb.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/exstl_tpcb" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalOptions="/bigobj" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/exstl_tpcb.pch" AssemblerListingLocation="$(OutDir)/exstl_tpcb/" ObjectFile="$(OutDir)/exstl_tpcb/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib libdb_stl48.lib" AdditionalLibraryDirectories="$(OutDir);$(OutDir)" OutputFile="$(OutDir)/exstl_tpcb.exe" ProgramDatabaseFile="$(OutDir)/exstl_tpcb.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\examples_stl\StlTpcbExample.cpp"/> + <File RelativePath="..\clib\getopt.c"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/exstl_txnguide.vcproj b/build_windows/exstl_txnguide.vcproj new file mode 100644 index 0000000..dc0ab0c --- /dev/null +++ b/build_windows/exstl_txnguide.vcproj @@ -0,0 +1,81 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="exstl_txnguide" ProjectGUID="{284CC193-0C66-11DE-8C30-0800200C9A66}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/exstl_txnguide" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/exstl_txnguide.pch" AssemblerListingLocation="$(OutDir)/exstl_txnguide/" ObjectFile="$(OutDir)/exstl_txnguide/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib libdb_stl48d.lib" AdditionalLibraryDirectories="$(OutDir);$(OutDir)" OutputFile="$(OutDir)/exstl_txnguide.exe" ProgramDatabaseFile="$(OutDir)/exstl_txnguide.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/exstl_txnguide" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/exstl_txnguide.pch" AssemblerListingLocation="$(OutDir)/exstl_txnguide/" ObjectFile="$(OutDir)/exstl_txnguide/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib libdb_stl48.lib" AdditionalLibraryDirectories="$(OutDir);$(OutDir)" OutputFile="$(OutDir)/exstl_txnguide.exe" ProgramDatabaseFile="$(OutDir)/exstl_txnguide.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/exstl_txnguide" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalOptions="/bigobj" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/exstl_txnguide.pch" AssemblerListingLocation="$(OutDir)/exstl_txnguide/" ObjectFile="$(OutDir)/exstl_txnguide/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib libdb_stl48d.lib" AdditionalLibraryDirectories="$(OutDir);$(OutDir)" OutputFile="$(OutDir)/exstl_txnguide.exe" ProgramDatabaseFile="$(OutDir)/exstl_txnguide.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/exstl_txnguide" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalOptions="/bigobj" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/exstl_txnguide.pch" AssemblerListingLocation="$(OutDir)/exstl_txnguide/" ObjectFile="$(OutDir)/exstl_txnguide/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib libdb_stl48.lib" AdditionalLibraryDirectories="$(OutDir);$(OutDir)" OutputFile="$(OutDir)/exstl_txnguide.exe" ProgramDatabaseFile="$(OutDir)/exstl_txnguide.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/exstl_txnguide" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalOptions="/bigobj" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/exstl_txnguide.pch" AssemblerListingLocation="$(OutDir)/exstl_txnguide/" ObjectFile="$(OutDir)/exstl_txnguide/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib libdb_stl48d.lib" AdditionalLibraryDirectories="$(OutDir);$(OutDir)" OutputFile="$(OutDir)/exstl_txnguide.exe" ProgramDatabaseFile="$(OutDir)/exstl_txnguide.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/exstl_txnguide" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalOptions="/bigobj" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/exstl_txnguide.pch" AssemblerListingLocation="$(OutDir)/exstl_txnguide/" ObjectFile="$(OutDir)/exstl_txnguide/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib libdb_stl48.lib" AdditionalLibraryDirectories="$(OutDir);$(OutDir)" OutputFile="$(OutDir)/exstl_txnguide.exe" ProgramDatabaseFile="$(OutDir)/exstl_txnguide.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\examples_stl\StlTransactionGuideExample.cpp"/> + <File RelativePath="..\clib\getopt.c"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/include.tcl b/build_windows/include.tcl new file mode 100644 index 0000000..a2ab938 --- /dev/null +++ b/build_windows/include.tcl @@ -0,0 +1,29 @@ +# Automatically built by dist/s_test; may require local editing. + +set tclsh_path SET_YOUR_TCLSH_PATH +set buildpath Win32/Debug +set tcllib libdb_tcl48d.dll + +set src_root .. +set test_path ../test +set je_root ../../je + +global testdir +set testdir ./TESTDIR + +global dict +global util_path + +global is_freebsd_test +global is_hp_test +global is_linux_test +global is_qnx_test +global is_sunos_test +global is_windows_test +global is_windows9x_test + +global valid_methods +global checking_valid_methods +global test_recopts + +set KILL dbkill.exe diff --git a/build_windows/libdb.def b/build_windows/libdb.def new file mode 100644 index 0000000..fd4e3e7 --- /dev/null +++ b/build_windows/libdb.def @@ -0,0 +1,204 @@ +; DO NOT EDIT: automatically built by dist/s_windows. + +EXPORTS + db_create @1 + db_env_create @2 + db_env_set_func_free @3 + db_env_set_func_malloc @4 + db_env_set_func_realloc @5 + db_sequence_create @6 + db_strerror @7 + db_version @8 + log_compare @9 + __db_dbm_close @10 + __db_dbm_delete @11 + __db_dbm_fetch @12 + __db_dbm_firstkey @13 + __db_dbm_init @14 + __db_dbm_nextkey @15 + __db_dbm_store @16 + __db_get_flags_fn @17 + __db_get_seq_flags_fn @18 + __db_hcreate @19 + __db_hdestroy @20 + __db_hsearch @21 + __db_loadme @22 + __db_ndbm_clearerr @23 + __db_ndbm_close @24 + __db_ndbm_delete @25 + __db_ndbm_dirfno @26 + __db_ndbm_error @27 + __db_ndbm_fetch @28 + __db_ndbm_firstkey @29 + __db_ndbm_nextkey @30 + __db_ndbm_open @31 + __db_ndbm_pagfno @32 + __db_ndbm_rdonly @33 + __db_ndbm_store @34 + __db_win32_mutex_lock @35 + __db_win32_mutex_unlock @36 + __env_panic @37 + __ham_func2 @38 + __ham_func3 @39 + __ham_func4 @40 + __ham_func5 @41 + __ham_test @42 + __lock_id_set @43 + __os_calloc @44 + __os_closehandle @45 + __os_dirfree @46 + __os_dirlist @47 + __os_free @48 + __os_fsync @49 + __os_get_syserr @50 + __os_getenv @51 + __os_ioinfo @52 + __os_malloc @53 + __os_mkdir @54 + __os_open @55 + __os_openhandle @56 + __os_posix_err @57 + __os_read @58 + __os_realloc @59 + __os_rename @60 + __os_strdup @61 + __os_umalloc @62 + __os_unlink @63 + __os_write @64 + __txn_id_set @65 + __bam_adj_read @66 + __bam_cadjust_read @67 + __bam_cdel_read @68 + __bam_curadj_read @69 + __bam_merge_44_read @70 + __bam_merge_read @71 + __bam_pgin @72 + __bam_pgno_read @73 + __bam_pgout @74 + __bam_rcuradj_read @75 + __bam_relink_43_read @76 + __bam_relink_read @77 + __bam_repl_read @78 + __bam_root_read @79 + __bam_rsplit_read @80 + __bam_split_read @81 + __bam_split_42_read @82 + __config_split @83 + __crdel_inmem_create_read @84 + __crdel_inmem_remove_read @85 + __crdel_inmem_rename_read @86 + __crdel_metasub_read @87 + __db_Cstrsep @88 + __db_add_recovery_int @89 + __db_addrem_read @90 + __db_big_read @91 + __db_cksum_read @92 + __db_compress_count_int @93 + __db_compress_int @94 + __db_debug_read @95 + __db_decompress_count_int @96 + __db_decompress_int @97 + __db_decompress_int32 @98 + __db_dispatch @99 + __db_dl @100 + __db_dumptree @101 + __db_err @102 + __db_errx @103 + __db_getlong @104 + __db_getulong @105 + __db_global_values @106 + __db_isbigendian @107 + __db_mkpath @108 + __db_msg @109 + __db_noop_read @110 + __db_ovref_read @111 + __db_pg_alloc_42_read @112 + __db_pg_alloc_read @113 + __db_pg_free_42_read @114 + __db_pg_free_read @115 + __db_pg_freedata_42_read @116 + __db_pg_freedata_read @117 + __db_pg_init_read @118 + __db_pg_sort_44_read @119 + __db_pg_trunc_read @120 + __db_pgin @121 + __db_pgout @122 + __db_pr_callback @123 + __db_relink_42_read @124 + __db_rpath @125 + __db_stat_pp @126 + __db_stat_print_pp @127 + __db_util_cache @128 + __db_util_interrupted @129 + __db_util_logset @130 + __db_util_siginit @131 + __db_util_sigresend @132 + __db_verify_internal @133 + __dbt_usercopy @134 + __dbt_userfree @135 + __dbreg_register_read @136 + __fop_create_42_read @137 + __fop_create_read @138 + __fop_file_remove_read @139 + __fop_remove_read @140 + __fop_rename_42_read @141 + __fop_rename_read @142 + __fop_write_42_read @143 + __fop_write_read @144 + __ham_chgpg_read @145 + __ham_copypage_read @146 + __ham_curadj_read @147 + __ham_get_meta @148 + __ham_groupalloc_42_read @149 + __ham_groupalloc_read @150 + __ham_insdel_read @151 + __ham_metagroup_42_read @152 + __ham_metagroup_read @153 + __ham_newpage_read @154 + __ham_pgin @155 + __ham_pgout @156 + __ham_release_meta @157 + __ham_replace_read @158 + __ham_splitdata_read @159 + __lock_list_print @160 + __log_stat_pp @161 + __mutex_set_wait_info @162 + __os_abort @163 + __os_abspath @164 + __os_cpu_count @165 + __os_ctime @166 + __os_exists @167 + __os_fdlock @168 + __os_fileid @169 + __os_freeaddrinfo @170 + __os_get_errno @171 + __os_getaddrinfo @172 + __os_gettime @173 + __os_id @174 + __os_io @175 + __os_isroot @176 + __os_mapfile @177 + __os_physwrite @178 + __os_seek @179 + __os_set_errno @180 + __os_truncate @181 + __os_ufree @182 + __os_unique_id @183 + __os_unmapfile @184 + __os_urealloc @185 + __os_yield @186 + __qam_add_read @187 + __qam_del_read @188 + __qam_delext_read @189 + __qam_incfirst_read @190 + __qam_mvptr_read @191 + __qam_pgin_out @192 + __rep_stat_print @193 + __txn_child_read @194 + __txn_ckp_42_read @195 + __txn_ckp_read @196 + __txn_prepare_read @197 + __txn_recycle_read @198 + __txn_regop_42_read @199 + __txn_regop_read @200 + __txn_xa_regop_42_read @201 diff --git a/build_windows/libdb.rc b/build_windows/libdb.rc new file mode 100644 index 0000000..bc37222 --- /dev/null +++ b/build_windows/libdb.rc @@ -0,0 +1,33 @@ +1 VERSIONINFO + FILEVERSION 4,0,8,30 + PRODUCTVERSION 4,0,8,30 + FILEFLAGSMASK 0x3fL +#ifdef _DEBUG + FILEFLAGS 0x1L +#else + FILEFLAGS 0x0L +#endif + FILEOS 0x4L + FILETYPE 0x2L + FILESUBTYPE 0x0L + +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904b0" + BEGIN + VALUE "CompanyName", "Oracle\0" + VALUE "FileDescription", "Berkeley DB 4.8 DLL\0" + VALUE "FileVersion", "4.8.30\0" + VALUE "InternalName", "libdb48.dll\0" + VALUE "LegalCopyright", "Copyright © Oracle 1997-2009\0" + VALUE "OriginalFilename", "libdb48.dll\0" + VALUE "ProductName", "Oracle libdb\0" + VALUE "ProductVersion", "4.8.30\0" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x409, 1200 + END +END diff --git a/build_windows/libdb_tcl.def b/build_windows/libdb_tcl.def new file mode 100644 index 0000000..79d7f85 --- /dev/null +++ b/build_windows/libdb_tcl.def @@ -0,0 +1,7 @@ +; $Id$ + +DESCRIPTION 'Berkeley DB TCL interface Library' +EXPORTS + Db_tcl_Init + _NameToPtr + diff --git a/build_windows/libdbrc.src b/build_windows/libdbrc.src new file mode 100644 index 0000000..abb8449 --- /dev/null +++ b/build_windows/libdbrc.src @@ -0,0 +1,33 @@ +1 VERSIONINFO + FILEVERSION %MAJOR%,0,%MINOR%,%PATCH% + PRODUCTVERSION %MAJOR%,0,%MINOR%,%PATCH% + FILEFLAGSMASK 0x3fL +#ifdef _DEBUG + FILEFLAGS 0x1L +#else + FILEFLAGS 0x0L +#endif + FILEOS 0x4L + FILETYPE 0x2L + FILESUBTYPE 0x0L + +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904b0" + BEGIN + VALUE "CompanyName", "Oracle\0" + VALUE "FileDescription", "Berkeley DB %MAJOR%.%MINOR% DLL\0" + VALUE "FileVersion", "%MAJOR%.%MINOR%.%PATCH%\0" + VALUE "InternalName", "libdb%MAJOR%%MINOR%.dll\0" + VALUE "LegalCopyright", "Copyright © Oracle 1997-2009\0" + VALUE "OriginalFilename", "libdb%MAJOR%%MINOR%.dll\0" + VALUE "ProductName", "Oracle libdb\0" + VALUE "ProductVersion", "%MAJOR%.%MINOR%.%PATCH%\0" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x409, 1200 + END +END diff --git a/build_windows/php_db4.vcproj b/build_windows/php_db4.vcproj new file mode 100644 index 0000000..874c20c --- /dev/null +++ b/build_windows/php_db4.vcproj @@ -0,0 +1,80 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="php_db4" ProjectGUID="{44AFD8B5-687F-4B9D-B163-1F381CC11794}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/php_db4" ConfigurationType="2" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../dbinc,php_db4" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;COMPILE_DL_DB4;DB4_EXPORTS;HAVE_DB_H=1;ZEND_WIN32=1;PHP_WIN32=1;ZEND_WIN32_FORCE_INLINE;ZTS=1;ZEND_DEBUG=1;_USRDLL" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/php_db4.pch" AssemblerListingLocation="$(OutDir)/php_db4/" ObjectFile="$(OutDir)/php_db4/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib .lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/php_db4d.dll" ProgramDatabaseFile="$(OutDir)/php_db4d.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" ImportLibrary="$(OutDir)/php_db4d.lib" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/php_db4" ConfigurationType="2" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../dbinc,php_db4" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;COMPILE_DL_DB4;DB4_EXPORTS;HAVE_DB_H=1;ZEND_WIN32=1;PHP_WIN32=1;ZEND_WIN32_FORCE_INLINE;ZTS=1;NDebug;ZEND_DEBUG=0;_USRDLL" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/php_db4.pch" AssemblerListingLocation="$(OutDir)/php_db4/" ObjectFile="$(OutDir)/php_db4/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib .lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/php_db4.dll" ProgramDatabaseFile="$(OutDir)/php_db4.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" ImportLibrary="$(OutDir)/php_db4.lib" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/php_db4" ConfigurationType="2" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../dbinc,php_db4" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;COMPILE_DL_DB4;DB4_EXPORTS;HAVE_DB_H=1;ZEND_WIN32=1;PHP_WIN32=1;ZEND_WIN32_FORCE_INLINE;ZTS=1;ZEND_DEBUG=1;_USRDLL" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/php_db4.pch" AssemblerListingLocation="$(OutDir)/php_db4/" ObjectFile="$(OutDir)/php_db4/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib .lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/php_db4d.dll" ProgramDatabaseFile="$(OutDir)/php_db4d.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" ImportLibrary="$(OutDir)/php_db4d.lib" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/php_db4" ConfigurationType="2" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../dbinc,php_db4" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;COMPILE_DL_DB4;DB4_EXPORTS;HAVE_DB_H=1;ZEND_WIN32=1;PHP_WIN32=1;ZEND_WIN32_FORCE_INLINE;ZTS=1;NDebug;ZEND_DEBUG=0;_USRDLL" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/php_db4.pch" AssemblerListingLocation="$(OutDir)/php_db4/" ObjectFile="$(OutDir)/php_db4/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib .lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/php_db4.dll" ProgramDatabaseFile="$(OutDir)/php_db4.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" ImportLibrary="$(OutDir)/php_db4.lib" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/php_db4" ConfigurationType="2" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../dbinc,php_db4" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;COMPILE_DL_DB4;DB4_EXPORTS;HAVE_DB_H=1;ZEND_WIN32=1;PHP_WIN32=1;ZEND_WIN32_FORCE_INLINE;ZTS=1;ZEND_DEBUG=1;_USRDLL" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/php_db4.pch" AssemblerListingLocation="$(OutDir)/php_db4/" ObjectFile="$(OutDir)/php_db4/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib .lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/php_db4d.dll" ProgramDatabaseFile="$(OutDir)/php_db4d.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" ImportLibrary="$(OutDir)/php_db4d.lib" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/php_db4" ConfigurationType="2" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../dbinc,php_db4" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;COMPILE_DL_DB4;DB4_EXPORTS;HAVE_DB_H=1;ZEND_WIN32=1;PHP_WIN32=1;ZEND_WIN32_FORCE_INLINE;ZTS=1;NDebug;ZEND_DEBUG=0;_USRDLL" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/php_db4.pch" AssemblerListingLocation="$(OutDir)/php_db4/" ObjectFile="$(OutDir)/php_db4/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib .lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/php_db4.dll" ProgramDatabaseFile="$(OutDir)/php_db4.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" ImportLibrary="$(OutDir)/php_db4.lib" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\php_db4\db4.cpp"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/srcfile_dsp.src b/build_windows/srcfile_dsp.src new file mode 100644 index 0000000..408a55e --- /dev/null +++ b/build_windows/srcfile_dsp.src @@ -0,0 +1,4 @@ +# Begin Source File
+
+SOURCE=@srcdir@\@srcfile@
+# End Source File
diff --git a/build_windows/static_dsp.src b/build_windows/static_dsp.src new file mode 100644 index 0000000..2750942 --- /dev/null +++ b/build_windows/static_dsp.src @@ -0,0 +1,85 @@ +# Microsoft Developer Studio Project File - Name="@project_name@" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Static Library" 0x0104
+
+CFG=@project_name@ - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "@project_name@.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "@project_name@.mak" CFG="@project_name@ - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "@project_name@ - Win32 Release x86" (based on "Win32 (x86) Static Library")
+!MESSAGE "@project_name@ - Win32 Debug x86" (based on "Win32 (x86) Static Library")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "@project_name@ - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32/Release"
+# PROP BASE Intermediate_Dir "Win32/Release/@project_name@"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32/Release"
+# PROP Intermediate_Dir "Win32/Release/@project_name@"
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /D "UNICODE" /D "_UNICODE" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" @extra_cppflags@ /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /D "UNICODE" /D "_UNICODE" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" @extra_cppflags@ /FD /c
+# ADD BASE RSC /l 0xc09
+# ADD RSC /l 0xc09
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LIB32=link.exe -lib
+# ADD BASE LIB32 /nologo /out:"Win32/Release/libdb@lib_suffix@@DB_VERSION_MAJOR@@DB_VERSION_MINOR@s.lib"
+# ADD LIB32 /nologo /out:"Win32/Release/libdb@lib_suffix@@DB_VERSION_MAJOR@@DB_VERSION_MINOR@s.lib"
+
+!ELSEIF "$(CFG)" == "@project_name@ - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32/Debug"
+# PROP BASE Intermediate_Dir "Win32/Debug/@project_name@"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32/Debug"
+# PROP Intermediate_Dir "Win32/Debug/@project_name@"
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "DIAGNOSTIC" /D "UNICODE" /D "_UNICODE" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" @extra_cppflags@ /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "DIAGNOSTIC" /D "UNICODE" /D "_UNICODE" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" @extra_cppflags@ /FD /c
+# ADD BASE RSC /l 0xc09
+# ADD RSC /l 0xc09
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LIB32=link.exe -lib
+# ADD BASE LIB32 /nologo /out:"Win32/Debug/libdb@lib_suffix@@DB_VERSION_MAJOR@@DB_VERSION_MINOR@sd.lib"
+# ADD LIB32 /nologo /out:"Win32/Debug/libdb@lib_suffix@@DB_VERSION_MAJOR@@DB_VERSION_MINOR@sd.lib"
+
+!ENDIF
+
+# Begin Target
+
+# Name "@project_name@ - Win32 Release x86"
+# Name "@project_name@ - Win32 Debug x86"
+@SOURCE_FILES@
+# End Target
+# End Project
diff --git a/build_windows/stl_test.vcproj b/build_windows/stl_test.vcproj new file mode 100644 index 0000000..575cbcc --- /dev/null +++ b/build_windows/stl_test.vcproj @@ -0,0 +1,88 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="stl_test" ProjectGUID="{284CC194-0C66-11DE-8C30-0800200C9A66}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/stl_test" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_SCL_SECURE_NO_WARNINGS;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/stl_test.pch" AssemblerListingLocation="$(OutDir)/stl_test/" ObjectFile="$(OutDir)/stl_test/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib libdb_stl48d.lib" AdditionalLibraryDirectories="$(OutDir);$(OutDir)" OutputFile="$(OutDir)/stl_test.exe" ProgramDatabaseFile="$(OutDir)/stl_test.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/stl_test" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_SCL_SECURE_NO_WARNINGS;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/stl_test.pch" AssemblerListingLocation="$(OutDir)/stl_test/" ObjectFile="$(OutDir)/stl_test/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib libdb_stl48.lib" AdditionalLibraryDirectories="$(OutDir);$(OutDir)" OutputFile="$(OutDir)/stl_test.exe" ProgramDatabaseFile="$(OutDir)/stl_test.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/stl_test" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalOptions="/bigobj" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_SCL_SECURE_NO_WARNINGS;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/stl_test.pch" AssemblerListingLocation="$(OutDir)/stl_test/" ObjectFile="$(OutDir)/stl_test/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib libdb_stl48d.lib" AdditionalLibraryDirectories="$(OutDir);$(OutDir)" OutputFile="$(OutDir)/stl_test.exe" ProgramDatabaseFile="$(OutDir)/stl_test.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/stl_test" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalOptions="/bigobj" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_SCL_SECURE_NO_WARNINGS;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/stl_test.pch" AssemblerListingLocation="$(OutDir)/stl_test/" ObjectFile="$(OutDir)/stl_test/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib libdb_stl48.lib" AdditionalLibraryDirectories="$(OutDir);$(OutDir)" OutputFile="$(OutDir)/stl_test.exe" ProgramDatabaseFile="$(OutDir)/stl_test.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/stl_test" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalOptions="/bigobj" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_SCL_SECURE_NO_WARNINGS;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/stl_test.pch" AssemblerListingLocation="$(OutDir)/stl_test/" ObjectFile="$(OutDir)/stl_test/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib libdb_stl48d.lib" AdditionalLibraryDirectories="$(OutDir);$(OutDir)" OutputFile="$(OutDir)/stl_test.exe" ProgramDatabaseFile="$(OutDir)/stl_test.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/stl_test" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalOptions="/bigobj" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_SCL_SECURE_NO_WARNINGS;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/stl_test.pch" AssemblerListingLocation="$(OutDir)/stl_test/" ObjectFile="$(OutDir)/stl_test/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib libdb_stl48.lib" AdditionalLibraryDirectories="$(OutDir);$(OutDir)" OutputFile="$(OutDir)/stl_test.exe" ProgramDatabaseFile="$(OutDir)/stl_test.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\test_stl\base\ptype.h"/> + <File RelativePath="..\test_stl\base\test.h"/> + <File RelativePath="..\test_stl\base\test_assoc.h"/> + <File RelativePath="..\test_stl\base\test_dbstl.cpp"/> + <File RelativePath="..\test_stl\base\test_mt.h"/> + <File RelativePath="..\test_stl\base\test_util.cpp"/> + <File RelativePath="..\test_stl\base\test_util.h"/> + <File RelativePath="..\test_stl\base\test_vector.h"/> + <File RelativePath="..\clib\getopt.c"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/stl_test_msexamples.vcproj b/build_windows/stl_test_msexamples.vcproj new file mode 100644 index 0000000..cc69b90 --- /dev/null +++ b/build_windows/stl_test_msexamples.vcproj @@ -0,0 +1,86 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="stl_test_msexamples" ProjectGUID="{284CC196-0C66-11DE-8C30-0800200C9A66}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/stl_test_msexamples" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_SCL_SECURE_NO_WARNINGS;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/stl_test_msexamples.pch" AssemblerListingLocation="$(OutDir)/stl_test_msexamples/" ObjectFile="$(OutDir)/stl_test_msexamples/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib libdb_stl48d.lib" AdditionalLibraryDirectories="$(OutDir);$(OutDir)" OutputFile="$(OutDir)/stl_test_msexamples.exe" ProgramDatabaseFile="$(OutDir)/stl_test_msexamples.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/stl_test_msexamples" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_SCL_SECURE_NO_WARNINGS;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/stl_test_msexamples.pch" AssemblerListingLocation="$(OutDir)/stl_test_msexamples/" ObjectFile="$(OutDir)/stl_test_msexamples/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib libdb_stl48.lib" AdditionalLibraryDirectories="$(OutDir);$(OutDir)" OutputFile="$(OutDir)/stl_test_msexamples.exe" ProgramDatabaseFile="$(OutDir)/stl_test_msexamples.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/stl_test_msexamples" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalOptions="/bigobj" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_SCL_SECURE_NO_WARNINGS;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/stl_test_msexamples.pch" AssemblerListingLocation="$(OutDir)/stl_test_msexamples/" ObjectFile="$(OutDir)/stl_test_msexamples/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib libdb_stl48d.lib" AdditionalLibraryDirectories="$(OutDir);$(OutDir)" OutputFile="$(OutDir)/stl_test_msexamples.exe" ProgramDatabaseFile="$(OutDir)/stl_test_msexamples.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/stl_test_msexamples" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalOptions="/bigobj" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_SCL_SECURE_NO_WARNINGS;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/stl_test_msexamples.pch" AssemblerListingLocation="$(OutDir)/stl_test_msexamples/" ObjectFile="$(OutDir)/stl_test_msexamples/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib libdb_stl48.lib" AdditionalLibraryDirectories="$(OutDir);$(OutDir)" OutputFile="$(OutDir)/stl_test_msexamples.exe" ProgramDatabaseFile="$(OutDir)/stl_test_msexamples.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/stl_test_msexamples" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalOptions="/bigobj" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_SCL_SECURE_NO_WARNINGS;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/stl_test_msexamples.pch" AssemblerListingLocation="$(OutDir)/stl_test_msexamples/" ObjectFile="$(OutDir)/stl_test_msexamples/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib libdb_stl48d.lib" AdditionalLibraryDirectories="$(OutDir);$(OutDir)" OutputFile="$(OutDir)/stl_test_msexamples.exe" ProgramDatabaseFile="$(OutDir)/stl_test_msexamples.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/stl_test_msexamples" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalOptions="/bigobj" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_SCL_SECURE_NO_WARNINGS;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/stl_test_msexamples.pch" AssemblerListingLocation="$(OutDir)/stl_test_msexamples/" ObjectFile="$(OutDir)/stl_test_msexamples/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib libdb_stl48.lib" AdditionalLibraryDirectories="$(OutDir);$(OutDir)" OutputFile="$(OutDir)/stl_test_msexamples.exe" ProgramDatabaseFile="$(OutDir)/stl_test_msexamples.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\test_stl\ms_examples\ms_stl_common.cpp"/> + <File RelativePath="..\test_stl\ms_examples\ms_stl_common.hpp"/> + <File RelativePath="..\test_stl\ms_examples\ms_stl_main.cpp"/> + <File RelativePath="..\test_stl\ms_examples\ptype.h"/> + <File RelativePath="..\test_stl\ms_examples\tgetopt.cpp"/> + <File RelativePath="..\test_stl\ms_examples\test_builder.cpp"/> + <File RelativePath="..\clib\getopt.c"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/stl_test_stlport.vcproj b/build_windows/stl_test_stlport.vcproj new file mode 100644 index 0000000..d280141 --- /dev/null +++ b/build_windows/stl_test_stlport.vcproj @@ -0,0 +1,89 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="stl_test_stlport" ProjectGUID="{284CC195-0C66-11DE-8C30-0800200C9A66}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/stl_test_stlport" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_SCL_SECURE_NO_WARNINGS;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/stl_test_stlport.pch" AssemblerListingLocation="$(OutDir)/stl_test_stlport/" ObjectFile="$(OutDir)/stl_test_stlport/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib libdb_stl48d.lib" AdditionalLibraryDirectories="$(OutDir);$(OutDir)" OutputFile="$(OutDir)/stl_test_stlport.exe" ProgramDatabaseFile="$(OutDir)/stl_test_stlport.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/stl_test_stlport" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_SCL_SECURE_NO_WARNINGS;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/stl_test_stlport.pch" AssemblerListingLocation="$(OutDir)/stl_test_stlport/" ObjectFile="$(OutDir)/stl_test_stlport/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib libdb_stl48.lib" AdditionalLibraryDirectories="$(OutDir);$(OutDir)" OutputFile="$(OutDir)/stl_test_stlport.exe" ProgramDatabaseFile="$(OutDir)/stl_test_stlport.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/stl_test_stlport" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalOptions="/bigobj" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_SCL_SECURE_NO_WARNINGS;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/stl_test_stlport.pch" AssemblerListingLocation="$(OutDir)/stl_test_stlport/" ObjectFile="$(OutDir)/stl_test_stlport/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib libdb_stl48d.lib" AdditionalLibraryDirectories="$(OutDir);$(OutDir)" OutputFile="$(OutDir)/stl_test_stlport.exe" ProgramDatabaseFile="$(OutDir)/stl_test_stlport.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/stl_test_stlport" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalOptions="/bigobj" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_SCL_SECURE_NO_WARNINGS;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/stl_test_stlport.pch" AssemblerListingLocation="$(OutDir)/stl_test_stlport/" ObjectFile="$(OutDir)/stl_test_stlport/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib libdb_stl48.lib" AdditionalLibraryDirectories="$(OutDir);$(OutDir)" OutputFile="$(OutDir)/stl_test_stlport.exe" ProgramDatabaseFile="$(OutDir)/stl_test_stlport.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/stl_test_stlport" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalOptions="/bigobj" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_SCL_SECURE_NO_WARNINGS;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/stl_test_stlport.pch" AssemblerListingLocation="$(OutDir)/stl_test_stlport/" ObjectFile="$(OutDir)/stl_test_stlport/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib libdb_stl48d.lib" AdditionalLibraryDirectories="$(OutDir);$(OutDir)" OutputFile="$(OutDir)/stl_test_stlport.exe" ProgramDatabaseFile="$(OutDir)/stl_test_stlport.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/stl_test_stlport" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalOptions="/bigobj" AdditionalIncludeDirectories="../build_windows,../,../dbinc,../stl,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_SCL_SECURE_NO_WARNINGS;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/stl_test_stlport.pch" AssemblerListingLocation="$(OutDir)/stl_test_stlport/" ObjectFile="$(OutDir)/stl_test_stlport/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib libdb_stl48.lib" AdditionalLibraryDirectories="$(OutDir);$(OutDir)" OutputFile="$(OutDir)/stl_test_stlport.exe" ProgramDatabaseFile="$(OutDir)/stl_test_stlport.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\test_stl\stlport\fadapter.h"/> + <File RelativePath="..\test_stl\stlport\fib.h"/> + <File RelativePath="..\test_stl\stlport\iota.h"/> + <File RelativePath="..\test_stl\stlport\map1.h"/> + <File RelativePath="..\test_stl\stlport\rand.h"/> + <File RelativePath="..\test_stl\stlport\stl_test.cpp"/> + <File RelativePath="..\test_stl\stlport\stl_test.h"/> + <File RelativePath="..\test_stl\stlport\test_builder.cpp"/> + <File RelativePath="..\test_stl\stlport\unary.h"/> + <File RelativePath="..\test_stl\stlport\utility.cpp"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/test_micro.dsp b/build_windows/test_micro.dsp new file mode 100644 index 0000000..25ffd45 --- /dev/null +++ b/build_windows/test_micro.dsp @@ -0,0 +1,158 @@ +# Microsoft Developer Studio Project File - Name="test_micro" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=test_micro - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "test_micro.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "test_micro.mak" CFG="test_micro - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "test_micro - Win32 Release x86" (based on "Win32 (x86) Console Application")
+!MESSAGE "test_micro - Win32 Debug x86" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "test_micro - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32/Release"
+# PROP BASE Intermediate_Dir "Win32/Release/test_micro"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32/Release"
+# PROP Intermediate_Dir "Win32/Release/test_micro"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 libdb48.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386 /nodefaultlib:"libcmt" /libpath:"$(OUTDIR)"
+
+!ELSEIF "$(CFG)" == "test_micro - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32/Debug"
+# PROP BASE Intermediate_Dir "Win32/Debug/test_micro"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32/Debug"
+# PROP Intermediate_Dir "Win32/Debug/test_micro"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 libdb48d.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /nodefaultlib:"libcmtd" /fixed:no /libpath:"$(OUTDIR)"
+
+!ENDIF
+
+# Begin Target
+
+# Name "test_micro - Win32 Release x86"
+# Name "test_micro - Win32 Debug x86"
+# Begin Source File
+
+SOURCE=..\common\util_arg.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\test_micro\source\b_curalloc.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\test_micro\source\b_curwalk.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\test_micro\source\b_del.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\test_micro\source\b_get.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\test_micro\source\b_inmem.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\test_micro\source\b_latch.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\test_micro\source\b_load.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\test_micro\source\b_open.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\test_micro\source\b_put.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\test_micro\source\b_recover.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\test_micro\source\b_txn.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\test_micro\source\b_txn_write.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\test_micro\source\b_uname.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\test_micro\source\b_util.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\test_micro\source\b_workload.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\test_micro\source\test_micro.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\clib\getopt.c
+# End Source File
+# End Target
+# End Project
diff --git a/build_windows/test_micro.vcproj b/build_windows/test_micro.vcproj new file mode 100644 index 0000000..d20d29d --- /dev/null +++ b/build_windows/test_micro.vcproj @@ -0,0 +1,97 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="test_micro" ProjectGUID="{9556E0A0-2E25-11DE-8C30-0800200C9A66}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/test_micro" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/test_micro.pch" AssemblerListingLocation="$(OutDir)/test_micro/" ObjectFile="$(OutDir)/test_micro/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/test_micro.exe" ProgramDatabaseFile="$(OutDir)/test_micro.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/test_micro" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/test_micro.pch" AssemblerListingLocation="$(OutDir)/test_micro/" ObjectFile="$(OutDir)/test_micro/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/test_micro.exe" ProgramDatabaseFile="$(OutDir)/test_micro.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/test_micro" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/test_micro.pch" AssemblerListingLocation="$(OutDir)/test_micro/" ObjectFile="$(OutDir)/test_micro/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/test_micro.exe" ProgramDatabaseFile="$(OutDir)/test_micro.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/test_micro" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/test_micro.pch" AssemblerListingLocation="$(OutDir)/test_micro/" ObjectFile="$(OutDir)/test_micro/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/test_micro.exe" ProgramDatabaseFile="$(OutDir)/test_micro.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/test_micro" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/test_micro.pch" AssemblerListingLocation="$(OutDir)/test_micro/" ObjectFile="$(OutDir)/test_micro/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/test_micro.exe" ProgramDatabaseFile="$(OutDir)/test_micro.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/test_micro" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/test_micro.pch" AssemblerListingLocation="$(OutDir)/test_micro/" ObjectFile="$(OutDir)/test_micro/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/test_micro.exe" ProgramDatabaseFile="$(OutDir)/test_micro.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\test_micro\source\b_curalloc.c"/> + <File RelativePath="..\test_micro\source\b_curwalk.c"/> + <File RelativePath="..\test_micro\source\b_del.c"/> + <File RelativePath="..\test_micro\source\b_get.c"/> + <File RelativePath="..\test_micro\source\b_inmem.c"/> + <File RelativePath="..\test_micro\source\b_latch.c"/> + <File RelativePath="..\test_micro\source\b_load.c"/> + <File RelativePath="..\test_micro\source\b_open.c"/> + <File RelativePath="..\test_micro\source\b_put.c"/> + <File RelativePath="..\test_micro\source\b_recover.c"/> + <File RelativePath="..\test_micro\source\b_txn.c"/> + <File RelativePath="..\test_micro\source\b_txn_write.c"/> + <File RelativePath="..\test_micro\source\b_uname.c"/> + <File RelativePath="..\test_micro\source\b_util.c"/> + <File RelativePath="..\test_micro\source\b_workload.c"/> + <File RelativePath="..\test_micro\source\test_micro.c"/> + <File RelativePath="..\common\util_arg.c"/> + <File RelativePath="..\clib\getopt.c"/> + </Files> + <Globals/> +</VisualStudioProject> diff --git a/build_windows/test_mutex.dsp b/build_windows/test_mutex.dsp new file mode 100644 index 0000000..f6b36bd --- /dev/null +++ b/build_windows/test_mutex.dsp @@ -0,0 +1,94 @@ +# Microsoft Developer Studio Project File - Name="test_mutex" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=test_mutex - Win32 Debug x86
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "test_mutex.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "test_mutex.mak" CFG="test_mutex - Win32 Debug x86"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "test_mutex - Win32 Release x86" (based on "Win32 (x86) Console Application")
+!MESSAGE "test_mutex - Win32 Debug x86" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "test_mutex - Win32 Release x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Win32/Release"
+# PROP BASE Intermediate_Dir "Win32/Release/test_mutex"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Win32/Release"
+# PROP Intermediate_Dir "Win32/Release/test_mutex"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 libdb48.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /machine:I386 /nodefaultlib:"libcmt" /libpath:"$(OUTDIR)"
+
+!ELSEIF "$(CFG)" == "test_mutex - Win32 Debug x86"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Win32/Debug"
+# PROP BASE Intermediate_Dir "Win32/Debug/test_mutex"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Win32/Debug"
+# PROP Intermediate_Dir "Win32/Debug/test_mutex"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /FD /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 libdb48d.lib kernel32.lib user32.lib advapi32.lib shell32.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /nodefaultlib:"libcmtd" /fixed:no /libpath:"$(OUTDIR)"
+
+!ENDIF
+
+# Begin Target
+
+# Name "test_mutex - Win32 Release x86"
+# Name "test_mutex - Win32 Debug x86"
+# Begin Source File
+
+SOURCE=..\mutex\test_mutex.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\clib\getopt.c
+# End Source File
+# End Target
+# End Project
diff --git a/build_windows/test_mutex.vcproj b/build_windows/test_mutex.vcproj new file mode 100644 index 0000000..daa3d5d --- /dev/null +++ b/build_windows/test_mutex.vcproj @@ -0,0 +1,81 @@ +<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="test_mutex" ProjectGUID="{9556E0A1-2E25-11DE-8C30-0800200C9A66}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/> + <Platform Name="IA64"/> + </Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/test_mutex" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/test_mutex.pch" AssemblerListingLocation="$(OutDir)/test_mutex/" ObjectFile="$(OutDir)/test_mutex/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/test_mutex.exe" ProgramDatabaseFile="$(OutDir)/test_mutex.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/test_mutex" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/test_mutex.pch" AssemblerListingLocation="$(OutDir)/test_mutex/" ObjectFile="$(OutDir)/test_mutex/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x86" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/test_mutex.exe" ProgramDatabaseFile="$(OutDir)/test_mutex.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/test_mutex" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/test_mutex.pch" AssemblerListingLocation="$(OutDir)/test_mutex/" ObjectFile="$(OutDir)/test_mutex/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/test_mutex.exe" ProgramDatabaseFile="$(OutDir)/test_mutex.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/test_mutex" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/test_mutex.pch" AssemblerListingLocation="$(OutDir)/test_mutex/" ObjectFile="$(OutDir)/test_mutex/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:x64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/test_mutex.exe" ProgramDatabaseFile="$(OutDir)/test_mutex.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Debug|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Debug" IntermediateDirectory="./$(OutDir)/test_mutex" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="0" MinimalRebuild="TRUE" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="3" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/test_mutex.pch" AssemblerListingLocation="$(OutDir)/test_mutex/" ObjectFile="$(OutDir)/test_mutex/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" BasicRuntimeChecks="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48d.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/test_mutex.exe" ProgramDatabaseFile="$(OutDir)/test_mutex.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + <Configuration Name="Release|IA64" OutputDirectory="..\build_windows\$(PlatformName)\Release" IntermediateDirectory="./$(OutDir)/test_mutex" ConfigurationType="1" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> + <Tool Name="VCPreBuildEventTool"/> + <Tool Name="VCPreLinkEventTool"/> + <Tool Name="VCResourceCompilerTool"/> + <Tool Name="VCXMLDataGeneratorTool"/> + <Tool Name="VCManagedWrapperGeneratorTool"/> + <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + <Tool Name="VCCLCompilerTool" Optimization="2" MinimalRebuild="TRUE" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../build_windows,../,../dbinc" PreprocessorDefinitions="WIN32;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_CONSOLE" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="0" PrecompiledHeaderFile="./$(OutDir)/test_mutex.pch" AssemblerListingLocation="$(OutDir)/test_mutex/" ObjectFile="$(OutDir)/test_mutex/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="3" CompileAs="0"/> + <Tool Name="VCLinkerTool" AdditionalOptions="/machine:IA64" AdditionalDependencies="libdb48.lib" AdditionalLibraryDirectories="$(OutDir)" OutputFile="$(OutDir)/test_mutex.exe" ProgramDatabaseFile="$(OutDir)/test_mutex.pdb" LinkIncremental="1" GenerateDebugInformation="TRUE" SuppressStartupBanner="TRUE" OptimizeReferences="2" TargetMachine="0"/> + <Tool Name="VCPostBuildEventTool"/> + <Tool Name="VCCustomBuildTool"/></Configuration> + </Configurations> + <References/> + <Files> + <File RelativePath="..\mutex\test_mutex.c"/> + <File RelativePath="..\clib\getopt.c"/> + </Files> + <Globals/> +</VisualStudioProject> |