whisper.cpp/bindings/ruby/ext
Daniel Bevenius 2679bec6e0
ruby : add cleaning of library names in dependencies (#3241)
* ruby : add cleaning of library names in dependencies

This commit adds a cleaning step to the library names in the
`Dependencies` class of the Ruby bindings.

The motivation for this is that with the introduction of a library name
alias for ggml in Commit (b933d17c30
"Add in-build ggml::ggml ALIAS library (ggml/1260)) causes the Makefile
generation to break:
```console
$ sed -n '165,170p' ext/Makefile
CLEANOBJS     = $(OBJS) *.bak
TARGET_SO_DIR_TIMESTAMP = $(TIMESTAMP_DIR)/.sitearchdir.time
$(TARGET_SO): libcommon.a libwhisper.a libggml\n(ggml::ggml).a libggml-cpu.a libggml-base.a
libcommon.a libwhisper.a libggml\n(ggml::ggml).a libggml-cpu.a libggml-base.a: cmake-targets
cmake-targets:
	/usr/bin/cmake -S sources -B build -D BUILD_SHARED_LIBS=OFF -D CMAKE_ARCHIVE_OUTPUT_DIRECTORY=/home/danbev/work/ai/whisper.cpp/bindings/ruby/ext -D CMAKE_POSITION_INDEPENDENT_CODE=ON
```

* squash! ruby : add cleaning of library names in dependencies

Apply PR review feedback.
2025-06-10 15:06:40 +02:00
..
sources ruby: use CMake in build process (#3043) 2025-04-14 18:18:27 +09:00
.gitignore ruby : add Core ML support (#3214) 2025-06-01 18:16:02 +09:00
dependencies.rb ruby : add cleaning of library names in dependencies (#3241) 2025-06-10 15:06:40 +02:00
extconf.rb ruby : handle build options on installation (#3206) 2025-05-30 01:32:49 +09:00
options.rb ruby : add Core ML support (#3214) 2025-06-01 18:16:02 +09:00
ruby_whisper_context.c ruby : output format (#3237) 2025-06-10 06:10:17 +02:00
ruby_whisper_error.c ruby : Make context accept initial parameters, API to retrieve a segment and more (#2749) 2025-01-21 09:39:54 +02:00
ruby_whisper_model.c ruby : add Core ML support (#3214) 2025-06-01 18:16:02 +09:00
ruby_whisper_params.c ruby : add Core ML support (#3214) 2025-06-01 18:16:02 +09:00
ruby_whisper_segment.c ruby : output format (#3237) 2025-06-10 06:10:17 +02:00
ruby_whisper_transcribe.cpp ruby : output format (#3237) 2025-06-10 06:10:17 +02:00
ruby_whisper_vad_params.c ruby : handle build options on installation (#3206) 2025-05-30 01:32:49 +09:00
ruby_whisper.c ruby : output format (#3237) 2025-06-10 06:10:17 +02:00
ruby_whisper.h ruby : add VAD support, migration to Ruby's newer API (#3197) 2025-05-28 20:05:12 +09:00