From e60a02941fa0329f4f7c30d6e0b9560b95570bb9 Mon Sep 17 00:00:00 2001 From: sethg Date: Thu, 31 Mar 2022 19:08:46 +0200 Subject: Update Windows CMake builds to use NuGet package for PCRE2 --- Doc/Manual/Windows.html | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/Doc/Manual/Windows.html b/Doc/Manual/Windows.html index 7a39e88f3..106319687 100644 --- a/Doc/Manual/Windows.html +++ b/Doc/Manual/Windows.html @@ -248,16 +248,9 @@ For fully working build steps always check the Continuous Integration (CI) setup and save to a folder e.g. C:\Tools\Bison
  • - Unfortunately, PCRE2 is not yet available on Nuget. Instead we will use CMake to build and install PCRE2 to C:\Tools\pcre2 using the following commands: -
    -cd C:\
    -SET PATH=C:\Tools\CMake\CMake-win64.3.15.5\bin;%PATH%
    -git clone https://github.com/PhilipHazel/pcre2.git
    -cd pcre2
    -cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_INSTALL_PREFIX=C:/Tools/pcre2 -S . -B build
    -cmake --build build --config Release --target install
    -        
    - Alternatively, set WITH_PCRE=OFF to disable PCRE2 support if you are sure you do not require it. + Install the PCRE2 Nuget package using the following command:
    C:\Tools\nuget install PCRE2 -Version 10.39 -OutputDirectory C:\Tools\pcre2
    . + Note this is a x64 build, if this is not suitable PCRE2 can be built from source using https://github.com/PhilipHazel/pcre2/. + Alternatively, set WITH_PCRE=OFF to disable PCRE2 support if you are sure you do not require it.
  • We will also need the SWIG source code. Either download a zipped archive from GitHub, or if git is installed clone the latest codebase @@ -271,10 +264,12 @@ cmake --build build --config Release --target install architecture. We add the required build tools to the system PATH, and then build a Release version of SWIG. If all runs successfully a new swig.exe should be generated in the C:/swig/install2/bin folder.

    -
    +    
  • + +
     cd C:\swig
     SET PATH=C:\Tools\CMake\CMake-win64.3.15.5\bin;C:\Tools\bison\Bison.3.7.4\bin;%PATH%
    -SET PCRE_ROOT=C:/Tools/pcre2
    +SET PCRE_ROOT=C:\Tools\pcre2\PCRE2.10.39.0
     SET PCRE_PLATFORM=x64
     cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_INSTALL_PREFIX="%CD:\=/%/install2" -DCMAKE_C_FLAGS="/DPCRE2_STATIC" ^
     -DCMAKE_CXX_FLAGS="/DPCRE2_STATIC" -DPCRE2_INCLUDE_DIR=%PCRE_ROOT%/include -DPCRE2_LIBRARY=%PCRE_ROOT%/lib/pcre2-8-static.lib -S . -B build
    @@ -283,9 +278,8 @@ cmake --build build --config Release --target install
     REM to test the exe
     cd install2/bin
     swig.exe -help
    -    
    - - + +

    In addition to Release builds you can create a Debug build using:

    -- cgit v1.2.1