diff --git a/extra/sodium/authors.txt b/extra/sodium/authors.txt new file mode 100644 index 0000000000..8e1955f8e1 --- /dev/null +++ b/extra/sodium/authors.txt @@ -0,0 +1 @@ +Alexander Ilin diff --git a/extra/sodium/ffi/ffi.factor b/extra/sodium/ffi/ffi.factor new file mode 100644 index 0000000000..6a1ba89755 --- /dev/null +++ b/extra/sodium/ffi/ffi.factor @@ -0,0 +1,12 @@ +! Copyright (C) 2017 Alexander Ilin. +! See http://factorcode.org/license.txt for BSD license. +USING: alien alien.libraries alien.syntax combinators system ; +IN: sodium.ffi + +<< "sodium" { + { [ os windows? ] [ "libsodium.dll" ] } + { [ os macosx? ] [ "libsodium.dylib" ] } + { [ os unix? ] [ "libsodium.so" ] } +} cond cdecl add-library >> + +LIBRARY: sodium diff --git a/extra/sodium/summary.txt b/extra/sodium/summary.txt new file mode 100644 index 0000000000..c2b7fea495 --- /dev/null +++ b/extra/sodium/summary.txt @@ -0,0 +1 @@ +The Sodium crypto library