]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
examples : refactor in order to reuse code and reduce duplication (#482)
authorGeorgi Gerganov <redacted>
Wed, 15 Feb 2023 17:28:10 +0000 (19:28 +0200)
committerGitHub <redacted>
Wed, 15 Feb 2023 17:28:10 +0000 (19:28 +0200)
commit09d7d2b68e9e5ca32b045f200aedf9b05b874e5c
treeb6331bcae9f54655b43519b9ceecc15adcfade73
parent0336161b7ddf93aa117f61a1a6bb055f51c4de3a
examples : refactor in order to reuse code and reduce duplication (#482)

* examples : refactor common code into a library

* examples : refactor common SDL code into a library

* make : update Makefile to use common libs

* common : fix MSVC M_PI ..

* addon.node : link common lib
19 files changed:
Makefile
bindings/javascript/whisper.js
examples/CMakeLists.txt
examples/addon.node/CMakeLists.txt
examples/addon.node/addon.cpp
examples/command.wasm/CMakeLists.txt
examples/command.wasm/emscripten.cpp
examples/command/CMakeLists.txt
examples/command/command.cpp
examples/common-sdl.cpp [new file with mode: 0644]
examples/common-sdl.h [new file with mode: 0644]
examples/common.cpp [new file with mode: 0644]
examples/common.h [new file with mode: 0644]
examples/main/CMakeLists.txt
examples/main/main.cpp
examples/stream/CMakeLists.txt
examples/stream/stream.cpp
examples/talk/CMakeLists.txt
examples/talk/talk.cpp