From 5e928129d9a3c2017970e301fa88a2fbc713a29e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20=C3=81lvarez?= Date: Fri, 14 Jul 2023 16:19:39 +0200 Subject: [PATCH] link win64 lib statically --- build_win.ps1 | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build_win.ps1 b/build_win.ps1 index d57183b..a042616 100755 --- a/build_win.ps1 +++ b/build_win.ps1 @@ -7,7 +7,7 @@ cd ..\..\..\..\ g++ -c -std=c++11 -O3 -DNDEBUG -fPIC -I $env:JAVA_HOME\include -I $env:JAVA_HOME\include\win32 -I src\main\native\libfvad\include -I src\main\native src\main\native\io_github_givimad_libfvadjni_VoiceActivityDetector.cpp -o src\main\native\io_github_givimad_libfvadjni_VoiceActivityDetector.o -g++ -shared -I src\main\native\libfvad\include -I src\main\native -o src\main\resources\win-amd64\libfvadjni.dll src\main\native\libfvad\src\CMakeFiles\fvad.dir\*.c.obj src\main\native\libfvad\src\CMakeFiles\fvad.dir\vad\*.c.obj src\main\native\libfvad\src\CMakeFiles\fvad.dir\signal_processing\*.c.obj src\main\native\libfvad\src\libfvad.a src\main\native\io_github_givimad_libfvadjni_VoiceActivityDetector.o +g++ -shared -static -I src\main\native\libfvad\include -I src\main\native -o src\main\resources\win-amd64\libfvadjni.dll src\main\native\libfvad\src\CMakeFiles\fvad.dir\*.c.obj src\main\native\libfvad\src\CMakeFiles\fvad.dir\vad\*.c.obj src\main\native\libfvad\src\CMakeFiles\fvad.dir\signal_processing\*.c.obj src\main\native\libfvad\src\libfvad.a src\main\native\io_github_givimad_libfvadjni_VoiceActivityDetector.o if ($LastExitCode -ne 0) { Write-Error "Unable to build library" diff --git a/pom.xml b/pom.xml index 38bf70f..f563e7f 100644 --- a/pom.xml +++ b/pom.xml @@ -8,7 +8,7 @@ libfvad-jni libfvad-jni https://github.com/GiviMAD/libfvad-jni - 1.0.0 + 1.0.0-0 A JNI wrapper for using libfvad