Changes between Version 8 and Version 9 of BuildingWindowsDependencies


Ignore:
Timestamp:
Feb 17, 2018, 4:51:28 PM (6 years ago)
Author:
Itms
Comment:

libsodium

Legend:

Unmodified
Added
Removed
Modified
  • BuildingWindowsDependencies

    v8 v9  
    11This page will document how to build the game's Windows dependencies, useful for updating them to newer versions.
    22
    3 This is a work in progress and incomplete.
     3This is a work in progress and incomplete. It can also include libraries that are not (yet) dependencies.
    44
    55[[TOC(inline)]]
     
    184184        * Repeat for '''Release''' configuration
    185185        * `lpng1xxx\installdir` should contain the newly built libs
    186        
     186
     187== libsodium ==
     188
     189Download the latest source from https://download.libsodium.org/libsodium/releases/.
     190
     191It contains a folder `builds/msvc/` with all the solutions for recent and old versions of Visual Studio. Pick yours.
     192
     193Open `Project > Properties`.
     194* Select '''All configurations''' and change the toolset to support target XP.
     195* Select all '''Debug''' configurations (either one by one or with the multiple selection tool) and change '''Target Name''' so that `d` is added to the filename base (for instance `$(TargetName)d` instead of `$(TargetName)`).
     196* Build both Dynamic configurations.
     197* Copy `bin/Win32/{Debug,Release}/[toolset]/dynamic/libsodium{d,}.dll` to `binaries/system/`.
     198* Copy `bin/Win32/{Debug,Release}/[toolset]/dynamic/libsodium{d,}.lib` to `libraries/win32/libsodium/lib/`.
     199* Copy headers to `libraries/win32/libsodium/include/`. It looks like the build doesn't create a minimal folder of headers, so my advice is downloading the zip with prebuilt libs for msvc from [https://download.libsodium.org/libsodium/releases/ the download page] and using the `include` folder from that.
     200
    187201== libxml2 ==
    188202