From b8b8f8c6c35f6806f3dd735bc0c21be392ed9274 Mon Sep 17 00:00:00 2001
From: gcontini <1121667+gcontini@users.noreply.github.com>
Date: 周六, 10 10月 2020 22:02:04 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/feature/vs2019_github_actions' into develop

---
 doc/development/Build-the-library-windows.rst |   38 ++++++++++++++++++++++++++++++++++++--
 1 files changed, 36 insertions(+), 2 deletions(-)

diff --git a/doc/development/Build-the-library-windows.rst b/doc/development/Build-the-library-windows.rst
index 845c2f9..c689b09 100644
--- a/doc/development/Build-the-library-windows.rst
+++ b/doc/development/Build-the-library-windows.rst
@@ -100,8 +100,42 @@
 MINGW
 *****************
 
-
 .. TODO::
    
-   MINGW documentation need to be done. Refer to file .travis.yml to see a list of commands for windows-mingw
+   Describe how to install and configure mingw
+
+Prerequistites:
+
+* Powershell
+* 7zip
+* git
+* cmake
+
+Install and compile boost:
+
+.. code-block:: console
+
+    wget https://dl.bintray.com/boostorg/release/1.68.0/source/boost_1_68_0.7z
+    7z x boost_1_68_0.7z -oC:/local
+    cd "C:\local\boost_1_68_0"
+    bootstrap.bat gcc 
+    b2.exe -d0 --with-date_time --with-test --with-filesystem --with-program_options --with-regex --with-serialization --with-system runtime-link=static toolset=gcc --prefix=C:\local\boost_1_68_0\boost-mingw install
+    cd C:/local/boost_1_68_0/boost-mingw/lib
+    dir 
+
+Verify boost is really compiled. Go to the folder where you want to download `licensecc` 
+
+.. code-block:: console
+
+   git clone --recursive https://github.com/open-license-manager/open-license-manager.git
+   cd build && cmake -G "MinGW Makefiles" -DBOOST_ROOT="C:/local/boost_1_68_0/boost-mingw" -DBoost_ARCHITECTURE="-x64" -DCMAKE_CXX_COMPILER_ARCHITECTURE_ID="x64" -DCMAKE_SH="CMAKE_SH-NOTFOUND" ..
+   cmake --build . --target install --config Release
+
+And then you can test it:
+   
+.. code-block:: console
+
+   ctest -C Release
+    
+
 

--
Gitblit v1.9.1