diff --git a/EXTERNAL_LICENSES b/EXTERNAL_LICENSES new file mode 100644 index 0000000..68bdf97 --- /dev/null +++ b/EXTERNAL_LICENSES @@ -0,0 +1,23 @@ +Libraries used by multipatform-crypto-delegated follow: + +Libsodium, licensed under ISC License + +/* +* ISC License +* +* Copyright (c) 2013-2020 +* Frank Denis +* +* 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. +*/ + diff --git a/multiplatform-crypto-delegated/build.gradle.kts b/multiplatform-crypto-delegated/build.gradle.kts index b53574c..3d27975 100644 --- a/multiplatform-crypto-delegated/build.gradle.kts +++ b/multiplatform-crypto-delegated/build.gradle.kts @@ -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/") } } } diff --git a/multiplatform-crypto-delegated/src/nativeInterop/cinterop/libsodium.def b/multiplatform-crypto-delegated/src/nativeInterop/cinterop/libsodium.def index 759fb82..b940dea 100644 --- a/multiplatform-crypto-delegated/src/nativeInterop/cinterop/libsodium.def +++ b/multiplatform-crypto-delegated/src/nativeInterop/cinterop/libsodium.def @@ -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 = \ No newline at end of file