Contents
#### Building on Windows
- Download libsodium >= 1.018 and unzip
- Download and run the postgresql installer
- From the
/pgsodium/builddirectory, runmsbuildonpgsodium.vcxprojmsbuildcan be invoked though the x64 Native Tools Command Prompt for VS 2022
The following properties ( /p or /property ) must be specified:
- libsodiumLocation: root libsodium directory
- PostgreSQLLocation: root postgresql directory, typically C:\Program Files\PostgreSQL\<version>
-Configuration: [Release,Debug]
-Platform: [x64]
-platformToolset: [v142,v143`]
ie.
msbuild pgsodium.vcxproj /p:libsodiumLocation="C:\libsodium" /p:PostgreSQLLocation="C:\Program Files\PostgreSQL\15" /p:Configuration=Release /p:Platform=x64 /p:platformToolset=v143
- Copy the
libsodium.dll(fromlibsodium\x64\Release\<platformToolset>\dynamic) and the newly builtpgsodium.dllinto your\PostgreSQL\<version>\libdirectory