Add libsodium license, even though the source is not really included in this repo, update cinterop def to point to absolute path (still missingfor linker)

This commit is contained in:
Ugljesa Jovanovic 2020-05-28 23:33:08 +02:00 committed by Ugljesa Jovanovic
parent 1a4c07b961
commit c3ffc75474
No known key found for this signature in database
GPG Key ID: 178E6DFCECCB0E0F
3 changed files with 26 additions and 2 deletions

23
EXTERNAL_LICENSES Normal file
View File

@ -0,0 +1,23 @@
Libraries used by multipatform-crypto-delegated follow:
Libsodium, licensed under ISC License
/*
* ISC License
*
* Copyright (c) 2013-2020
* Frank Denis <j at pureftpd dot org>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/

View File

@ -196,6 +196,7 @@ kotlin {
if (!name.contains("ios")) {
val libsodiumCinterop by cinterops.creating {
defFile(project.file("src/nativeInterop/cinterop/libsodium.def"))
compilerOpts.add("-I${project.rootDir}/sodiumWrapper/include/")
}
}
}

View File

@ -1,6 +1,6 @@
headers = sodium.h
headerFilter = sodium.h sodium/**
staticLibraries = libsodium.a
libraryPaths = /home/ionspin/Projects/Future/sodiumWrapper/lib
compilerOpts = -I/home/ionspin/Projects/Future/sodiumWrapper/include
libraryPaths = sodiumWrapper/lib
#compilerOpts = -I./sodiumWrapper/include
linkerOpts =