# This package contains the LibXML2, LibXSLT, OpenSSL, and XMLSec binaries for Win64 (/MD runtime).

## LibXML2 (@libxml2_version@)

```sh

CMAKE_XMLSEC_ARCH="x64"
CMAKE_XMLSEC_GENERATOR="Visual Studio 17 2022"
CMAKE_XMLSEC_RUNTIME="MultiThreadedDLL"
CMAKE_XMLSEC_CONFIG=Release
CMAKE_XMLSEC_SHARED_LIBS=ON

cmake -B <build-path>" -A "${CMAKE_XMLSEC_ARCH}" -G "${CMAKE_XMLSEC_GENERATOR}" \
    -D CMAKE_MSVC_RUNTIME_LIBRARY="${CMAKE_XMLSEC_RUNTIME}" \
    -D BUILD_SHARED_LIBS="${CMAKE_XMLSEC_SHARED_LIBS}" \
    -D CMAKE_PREFIX_PATH="<top-install-path>" \
    -D CMAKE_INSTALL_PREFIX="<libxml2-install-path>" \
    -D LIBXML2_WITH_ICONV=OFF \
    -D LIBXML2_WITH_PYTHON=OFF \
    -D LIBXML2_WITH_ZLIB=OFF \
    -D LIBXML2_WITH_TESTS=OFF

cmake --build <build-path>" --config "${CMAKE_XMLSEC_CONFIG}" 

cmake --install "<build-path>" --config "${CMAKE_XMLSEC_CONFIG}"

```

## LibXSLT (@libxslt_version@)

```sh

CMAKE_XMLSEC_ARCH="x64"
CMAKE_XMLSEC_GENERATOR="Visual Studio 17 2022"
CMAKE_XMLSEC_RUNTIME="MultiThreadedDLL"
CMAKE_XMLSEC_CONFIG=Release
CMAKE_XMLSEC_SHARED_LIBS=ON

cmake -B "<build-path>" -A "${CMAKE_XMLSEC_ARCH}" -G "${CMAKE_XMLSEC_GENERATOR}" \
    -D CMAKE_MSVC_RUNTIME_LIBRARY="${CMAKE_XMLSEC_RUNTIME}" \
    -D BUILD_SHARED_LIBS="${CMAKE_XMLSEC_SHARED_LIBS}" \
    -D CMAKE_PREFIX_PATH="<top-install-path>" \
    -D CMAKE_INSTALL_PREFIX="<libxslt-install-path>" \
    -D LIBXSLT_WITH_PYTHON=OFF \
    -D LIBXSLT_WITH_TESTS=OFF

cmake --build "<build-path>" --config "${CMAKE_XMLSEC_CONFIG}"

cmake --install "<build-path>" --config "${CMAKE_XMLSEC_CONFIG}"

```

## OpenSSL (@openssl_version@)

```sh

C:\Strawberry\perl\bin\perl.exe Configure no-unit-test --prefix=c:\local\distro\openssl --release VC-WIN64A

nmake

nmake install_sw

```

## XMLSec (@xmlsec_version@)

```sh

cd win32

powershell -ExecutionPolicy Bypass -File configure.ps1 pedantic=yes werror=yes static=no cruntime=/MD xslt=yes crypto=openssl,mscng unicode=yes prefix=C:\local\distro\xmlsec include=C:\local\distro\libxml2\include;C:\local\distro\libxml2\include\libxml2;C:\local\distro\libxslt\include;C:\local\distro\openssl\include; lib=C:\local\distro\libxml2\lib;C:\local\distro\libxslt\lib;C:\local\distro\openssl\lib

nmake

nmake install

```

## Archive

```sh

cd c:\local\distro

find . -name "*.pdb" -exec rm {} \;

zip -r xmlsec1-@xmlsec_version@-win64.zip libxml2 libxslt openssl xmlsec README.md

```
