Skip to content

Commit

Permalink
link win64 lib statically
Browse files Browse the repository at this point in the history
  • Loading branch information
GiviMAD committed Jul 14, 2023
1 parent 070c65d commit 5e92812
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build_win.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<artifactId>libfvad-jni</artifactId>
<name>libfvad-jni</name>
<url>https://github.com/GiviMAD/libfvad-jni</url>
<version>1.0.0</version>
<version>1.0.0-0</version>
<description>A JNI wrapper for using libfvad</description>
<licenses>
<license>
Expand Down

0 comments on commit 5e92812

Please sign in to comment.