-
-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Various TLS enhancements and some other smaller fixes
- Loading branch information
Showing
75 changed files
with
929 additions
and
3,288 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
# Building NSClient++ on Windows | ||
|
||
This is the embryo of instruction for building NSClient++ on Windows. | ||
I always recommend to use the Pipelines in GitHub Actions to build the project. | ||
|
||
But if you want to build it locally, here is how you can do it. | ||
|
||
|
||
## Prerequisites | ||
|
||
You need the following tools installed on your machine and likely in your path: | ||
* Visual Studio (Community Edition is fine) | ||
* CMake | ||
* 7zip | ||
* Perl (I use strawberry perl) | ||
|
||
## Libraries | ||
|
||
### Open SSL | ||
|
||
Run the following commands in a Visual Studio Command Prompt (2015 x64 Native): | ||
|
||
```commandline | ||
SET OPENSSL_VERSION=1.1.1w | ||
curl -L https://www.openssl.org/source/openssl-%OPENSSL_VERSION%.tar.gz --output openssl.tar.gz | ||
7z x openssl.tar.gz | ||
7z x openssl.tar | ||
cd openssl-%OPENSSL_VERSION% | ||
perl Configure VC-WIN64A no-asm no-shared | ||
nmake | ||
cd .. | ||
``` | ||
|
||
### Boost | ||
|
||
Run the following commands in a Visual Studio Command Prompt (2015 x64 Native): | ||
|
||
```commandline | ||
SET BOOST_VERSION=1.82.0 | ||
SET BOOST_VERSION_=%BOOST_VERSION:.=_% | ||
curl -L https://archives.boost.io/release/%BOOST_VERSION%/source/boost_%BOOST_VERSION_%.tar.gz --output boost.tar.gz | ||
7z x -y boost.tar.gz | ||
7z x -y boost.tar | ||
xcopy boost_%BOOST_VERSION_% boost_%BOOST_VERSION_%_static /E /I | ||
cd boost_%BOOST_VERSION_% | ||
call bootstrap.bat | ||
b2.exe --layout=system address-model=64 toolset=msvc-14.16 variant=release link=shared runtime-link=shared warnings=off -d0 --with-system --with-filesystem --with-thread --with-regex --with-date_time --with-program_options --with-python --with-chrono | ||
cd .. | ||
cd boost_%BOOST_VERSION_%_static | ||
call bootstrap.bat | ||
b2.exe --layout=system address-model=64 toolset=msvc-14.16 variant=release link=static runtime-link=shared warnings=off -d0 --with-system --with-filesystem | ||
cd .. | ||
``` | ||
|
||
### Build Crypto++ | ||
|
||
TODO | ||
|
||
## Build installer library | ||
|
||
```commandline | ||
set SOURCE_ROOT=<where you cloned the repository> | ||
set BUILD_FOLDER=<where you build everything> | ||
set VERSION=0.6.0 | ||
mkdir installer_lib | ||
cd installer_lib | ||
cmake %SOURCE_ROOT%/installer_lib -T v141 -G "Visual Studio 17" -A x64 -DBOOST_ROOT=%BUILD_FOLDER%\boost_%BOOST_VERSION_%_static -DBOOST_LIBRARYDIR=%BUILD_FOLDER%\boost_%BOOST_VERSION_%_static/stage/lib -DOPENSSL_ROOT_DIR=%BUILD_FOLDER%\openssl-%OPENSSL_VERSION% -DBUILD_VERSION=%VERSION% | ||
msbuild installer_lib.sln /p:Configuration=Release /p:Platform=x64 | ||
``` |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
mkdocs==1.5.1 | ||
protobuf==4.23.4 | ||
jinja2==3.1.2 | ||
jinja2==3.1.5 | ||
mkdocs-material==9.1.21 | ||
setuptools==65.5.0 | ||
json-protobuf==2.0.1 | ||
lua-protobuf==2.0.3 | ||
md-protobuf==2.0.1 | ||
setuptools==65.5.0 | ||
setuptools==70.0.0 |
Oops, something went wrong.