Skip to content

Commit

Permalink
Add extra-source-files
Browse files Browse the repository at this point in the history
  • Loading branch information
qwbarch committed Dec 26, 2024
1 parent 8b613d9 commit 0aca97a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 11 deletions.
15 changes: 11 additions & 4 deletions package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: silero-vad
version: 0.1.0.3
version: 0.1.0.4
tested-with: GHC == 9.8, GHC == 9.2.8, GHC == 8.10.7
license: MIT
license-file: LICENSE
Expand All @@ -17,17 +17,24 @@ description: A haskell implentation of SileroVAD, a pre-trained enterprise-grade

include-dirs:
- cbits
- cbits/silero
- lib/onnxruntime
- lib
c-sources: cbits/**/*.c
cc-options: -Wno-unused-result
extra-source-files:
- cbits/**/*
- lib/**/*.h
- lib/onnxruntime/linux-x64/libonnxruntime.so
- lib/onnxruntime/mac-x64/libonnxruntime.dylib
- lib/onnxruntime/mac-arm64/libonnxruntime.dylib
- lib/onnxruntime/windows-x64/onnxruntime.dll
- lib/silero_vad.onnx
data-files:
- lib/onnxruntime/linux-x64/libonnxruntime.so
- lib/onnxruntime/mac-x64/libonnxruntime.dylib
- lib/onnxruntime/mac-arm64/libonnxruntime.dylib
- lib/onnxruntime/windows-x64/onnxruntime.dll
- lib/silero_vad.onnx
- lib/jfk.wav
cc-options: -Wno-unused-result

flags:
build-readme:
Expand Down
24 changes: 17 additions & 7 deletions silero-vad.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cabal-version: 1.18
-- see: https://github.com/sol/hpack

name: silero-vad
version: 0.1.0.3
version: 0.1.0.4
synopsis: Voice activity detection powered by SileroVAD.
description: A haskell implentation of SileroVAD, a pre-trained enterprise-grade voice activity detector.
category: Audio, Sound
Expand All @@ -18,6 +18,19 @@ license-file: LICENSE
build-type: Simple
tested-with:
GHC == 9.8, GHC == 9.2.8, GHC == 8.10.7
extra-source-files:
cbits/silero/detector.c
cbits/silero/detector.h
cbits/silero/model.c
cbits/silero/model.h
cbits/vec.c
cbits/vec.h
lib/onnxruntime/onnxruntime_c_api.h
lib/onnxruntime/linux-x64/libonnxruntime.so
lib/onnxruntime/mac-x64/libonnxruntime.dylib
lib/onnxruntime/mac-arm64/libonnxruntime.dylib
lib/onnxruntime/windows-x64/onnxruntime.dll
lib/silero_vad.onnx
extra-doc-files:
README.md
CHANGELOG.md
Expand Down Expand Up @@ -70,8 +83,7 @@ library
cc-options: -Wno-unused-result
include-dirs:
cbits
cbits/silero
lib/onnxruntime
lib
c-sources:
cbits/silero/detector.c
cbits/silero/model.c
Expand Down Expand Up @@ -127,8 +139,7 @@ executable readme
cc-options: -Wno-unused-result
include-dirs:
cbits
cbits/silero
lib/onnxruntime
lib
c-sources:
cbits/silero/detector.c
cbits/silero/model.c
Expand Down Expand Up @@ -190,8 +201,7 @@ test-suite test
cc-options: -Wno-unused-result
include-dirs:
cbits
cbits/silero
lib/onnxruntime
lib
c-sources:
cbits/silero/detector.c
cbits/silero/model.c
Expand Down

0 comments on commit 0aca97a

Please sign in to comment.