diff options
| author | quapka | 2024-07-23 18:28:42 +0200 |
|---|---|---|
| committer | quapka | 2024-07-23 18:28:42 +0200 |
| commit | 1d108189cf1e018e7ad43d591fed0ee95b2cf5bf (patch) | |
| tree | 35671a3b8ac788748d043998f82f7abb41babf89 | |
| parent | bddeacb5fa82b3d066230f08f706266b9e3d7674 (diff) | |
| download | ECTester-1d108189cf1e018e7ad43d591fed0ee95b2cf5bf.tar.gz ECTester-1d108189cf1e018e7ad43d591fed0ee95b2cf5bf.tar.zst ECTester-1d108189cf1e018e7ad43d591fed0ee95b2cf5bf.zip | |
Clean unnecessary WolfCrypt build instructions
| -rw-r--r-- | standalone/build.gradle.kts | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/standalone/build.gradle.kts b/standalone/build.gradle.kts index 5ad3fb4..9a15e48 100644 --- a/standalone/build.gradle.kts +++ b/standalone/build.gradle.kts @@ -10,12 +10,8 @@ repositories { } dependencies { - // Fallback to bundled wolfcrypt-jni if the submodule one is not built. - if (file("$rootDir/ext/wolfcrypt-jni/lib/wolfcrypt-jni.jar").exists()) { - implementation(files("$rootDir/ext/wolfcrypt-jni/lib/wolfcrypt-jni.jar")) - } else { - implementation(files("$rootDir/ext/wolfcrypt-jni.jar")) - } + val wolfcryptLibPath = System.getenv("WOLFCRYPT_LIB_PATH") + "/wolfcrypt-jni.jar"; + implementation(files(wolfcryptLibPath)) implementation(project(":common")) testImplementation(platform("org.junit:junit-bom:5.10.2")) @@ -51,10 +47,6 @@ tasks.named<Test>("test") { jvmArgs("--add-exports", "java.base/sun.security.ec=ALL-UNNAMED") } - // Add wolfcrypt JNI lib path to LD_LIBRARY_PATH (as our native library loading does not handle it) - environment( - "LD_LIBRARY_PATH", "$rootDir/ext/wolfcrypt-jni/lib/:" + System.getenv("LD_LIBRARY_PATH") - ) // Add a path where we will store our test results. environment( "RESULT_PATH", resultsDir.absolutePath |
