Add Google's LevelDB support
[novacoin.git] / src / leveldb / WINDOWS.md
1 # Building LevelDB On Windows
2
3 ## Prereqs 
4
5 Install the [Windows Software Development Kit version 7.1](http://www.microsoft.com/downloads/dlx/en-us/listdetailsview.aspx?FamilyID=6b6c21d2-2006-4afa-9702-529fa782d63b).
6
7 Download and extract the [Snappy source distribution](http://snappy.googlecode.com/files/snappy-1.0.5.tar.gz)
8
9 1. Open the "Windows SDK 7.1 Command Prompt" :
10    Start Menu -> "Microsoft Windows SDK v7.1" > "Windows SDK 7.1 Command Prompt"
11 2. Change the directory to the leveldb project
12
13 ## Building the Static lib 
14
15 * 32 bit Version 
16
17         setenv /x86
18         msbuild.exe /p:Configuration=Release /p:Platform=Win32 /p:Snappy=..\snappy-1.0.5
19
20 * 64 bit Version 
21
22         setenv /x64
23         msbuild.exe /p:Configuration=Release /p:Platform=x64 /p:Snappy=..\snappy-1.0.5
24
25
26 ## Building and Running the Benchmark app
27
28 * 32 bit Version 
29
30             setenv /x86
31             msbuild.exe /p:Configuration=Benchmark /p:Platform=Win32 /p:Snappy=..\snappy-1.0.5
32                 Benchmark\leveldb.exe
33
34 * 64 bit Version 
35
36             setenv /x64
37             msbuild.exe /p:Configuration=Benchmark /p:Platform=x64 /p:Snappy=..\snappy-1.0.5
38             x64\Benchmark\leveldb.exe
39