ggerganov / ggwave

Tiny data-over-sound library
https://youtu.be/Zcgf77T71QM
MIT License
1.9k stars 141 forks source link

Can you provide a static lib instead of dynamic .dylib when build the ggwave cli or ggwave-rx cli? #92

Open dongyuwei opened 1 year ago

dongyuwei commented 1 year ago

So we can embed the ggwave-rx cli in App easily.

I'm not familiar with cmake, don't know how to modify the config.

Thanks!

goldyfruit commented 9 months ago

This is what I ended-up with:

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 28cd09f..cfeaf7b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -31,7 +31,7 @@ else()
     if (WIN32)
         set(BUILD_SHARED_LIBS_DEFAULT OFF)
     else()
-        set(BUILD_SHARED_LIBS_DEFAULT ON)
+           set(BUILD_SHARED_LIBS_DEFAULT OFF)
     endif()
 endif()
dongyuwei commented 9 months ago

Thanks for your reply!