You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: win32/README.md
+24-28Lines changed: 24 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,25 +2,42 @@ Overview
2
2
--------
3
3
4
4
This directory contains all of the files needed to build under Windows.
5
-
Currently we build using cmake and MSVC 2015 and above.
5
+
Currently we build using CMake and MSVC 2015 and above.
6
6
7
7
Prerequisites
8
8
-------------
9
9
10
10
1. Boost C++ library installed to a default location on the machine
11
+
2. PowerShell 3+
12
+
3. If you don't already have 7zip, it will be downloaded and placed in the Windows Temp directory to untar glib.
11
13
14
+
Dependencies
15
+
------------
16
+
17
+
The SDK depends upon several open source libraries.
18
+
19
+
To acquire the dependencies, follow the following procedure:
20
+
21
+
1. Ensure the built dependency directory at `/win32/deps/install` is empty.
22
+
2. Download and extract the dependency library packages. Depending on whether you want 32 or 64 bit libs, run one of the following:
23
+
*`\win32\deps\build\download_and_unzip.bat`
24
+
*`\win32\deps\build\download_and_unzip_64.bat`
25
+
* You can also manually download the URLs and extract using whatever utility you like. Note that the glib package must be extracted to `/win32/deps/build/prebuilt`.
26
+
3. The Windows batch file `/win32/deps/install(_64).bat` compiles and installs the dependencies into the `/win32/deps/install` directory. It executes the Visual Studio 14 2015 Command Prompt environment script, so if you're using a different version you'll have to modify the Visual Studio install path inside of `install(_64).bat`.
12
27
13
-
Basic Build
28
+
29
+
Build
14
30
-----------
15
31
16
32
To build the client library
17
33
18
34
19
35
1. Open a new Visual Studio Command Prompt.
20
-
2. Navigate to the ds3_c_sdk directory.
21
-
3. Run the following command: `cmake -G "Visual Studio 14 2015"`
22
-
4. Either open the resulting 'libds3.sln' in Visual Studio and build it from
23
-
there, or run the command 'msbuild libds3.sln' from the command prompt.
36
+
2. Navigate to the ds3_c_sdk\win32 directory.
37
+
3. Run `package(_64).bat`, which will use CMake to create a Visual Studio 14 2015 solution, and then compile from the command line using msbuild, and compress all requiredSDK dependencies into a `ds3_win(32 or 64).zip`
38
+
3. Run the following command: `cmake .. -G "Visual Studio 14 2015 {Win64}"`
39
+
4. Either open the resulting `libds3.sln` in Visual Studio and build it from
40
+
there, or run the command `msbuild libds3.sln` from the command prompt.
24
41
This should build the libds3 library, which is placed in the directory '<rootofrepo>/win32/output/bin'
25
42
26
43
@@ -29,31 +46,10 @@ Unit Tests
29
46
30
47
1. Open a new Visual Studio Command Prompt.
31
48
2. Navigate to the ds3_c_sdk/test directory.
32
-
3. Run the following command: `cmake -G "Visual Studio 14 2015"`
49
+
3. Run the following command: `cmake ..\.. -G "Visual Studio 14 2015 {Win64}"`
33
50
4. Either open the resulting 'libds3_tests.sln' in Visual Studio and build it
34
51
from there, or run the command 'msbuild libds3_tests.sln' from the command
35
52
prompt. This should build the libds3 library, which is placed in the directory
36
53
'<rootofrepo>/tests/bin'
37
54
38
55
39
-
Dependencies
40
-
------------
41
-
42
-
The SDK depends upon several open source libraries. For convenience we
43
-
redistribute these dependencies in the `/win32/deps/install` directory,
44
-
except for the Boost library headers.
45
-
46
-
To re-build the dependencies, follow the following procedure:
47
-
48
-
1. Delete the built dependency directory at `/win32/deps/install`.
49
-
2. Download and extract the dependency library packages.
50
-
* The Unix shell script at `/win32/deps/build/download_and_unzip.sh` can do
51
-
this for you, but you don't strictly need to use it. You can also manually
52
-
download the URLs and extract using whatever utility you like. Note that
53
-
the glib package must be extracted to `/win32/deps/build/prebuilt`.
54
-
3. The Windows batch file `/win32/deps/install.bat` compiles and installs the
55
-
dependencies into the `/win32/deps/install` directory. It executes the
56
-
Visual Studio 2012 Command Prompt environment script, so if you're using a
57
-
different version you'll have to modify the Visual Studio install path inside
0 commit comments