-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathsdr.cabal
145 lines (139 loc) · 5.17 KB
/
sdr.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
name: sdr
version: 0.1.0.14
synopsis: A software defined radio library
description:
Write software defined radio applications in Haskell.
.
Features:
.
* Signal processing blocks can be chained together using the <https://hackage.haskell.org/package/pipes Pipes> library
.
* Zero copy design
.
* Signal processing functions are implemented in both Haskell and C (with SIMD acceleration)
.
* Can FIR filter, decimate and resample
.
* Helper functions for FIR filter design using window functions and plotting of the frequency response
.
* FFTs using <http://www.fftw.org/ FFTW>
.
* Line and waterfall plots using OpenGL
.
* FM demodulation
.
* PulseAudio sound sink
.
* <http://sdr.osmocom.org/trac/wiki/rtl-sdr rtl-sdr> and <https://nuand.com BladeRF> based radio sources/sinks supported and other sources are easily added
.
See <https://github.com/adamwalker/sdr> for more features and screenshots.
.
A collection of simple apps that use this library can be found <https://github.com/adamwalker/sdr-apps here>. These include an FM radio receiver, an OpenGL waterfall plotter and an AM radio receiver.
license: BSD3
license-file: LICENSE
author: Adam Walker
maintainer: adamwalker10@gmail.com
copyright: 2023 Adam Walker
category: Software Defined Radio
homepage: https://github.com/adamwalker/sdr
bug-reports: https://github.com/adamwalker/sdr/issues
build-type: Simple
extra-source-files: Readme.md
cabal-version: >=1.10
source-repository head
type: git
location: https://github.com/adamwalker/sdr
library
if arch(i386)
Buildable: False
exposed-modules:
SDR.Pulse,
SDR.RTLSDRStream,
SDR.Util,
SDR.Plot,
SDR.Filter,
SDR.Demod,
SDR.FFT,
SDR.FilterInternal,
SDR.Serialize,
SDR.PipeUtils,
SDR.VectorUtils,
SDR.ArgUtils,
SDR.FilterDesign,
SDR.CPUID
SDR.NetworkStream
-- other-modules:
other-extensions: ScopedTypeVariables, GADTs
build-depends:
base >=4.7 && <5,
fftwRaw >=0.1 && <0.2,
bytestring >=0.10 && <0.12,
pulse-simple >=0.1 && <0.2,
pipes >=4.1 && <4.4,
pipes-concurrency >=2.0 && <2.1,
time >=1.4 && <1.13,
rtlsdr >=0.1 && <0.2,
storable-complex >=0.2 && <0.3,
pipes-bytestring >=2.0 && <2.2,
dynamic-graph >=0.1.0.12 && <0.2,
array >=0.4 && <0.6,
vector >=0.11 && <0.14,
tuple >=0.2 && <0.4,
OpenGL >=2.11 && <3.1,
GLFW-b >=1.4.8 && <4,
primitive >=0.5 && <0.9,
colour >=2.3 && <2.4,
pango >=0.13 && <0.14,
containers >=0.5 && <0.7,
cairo >=0.13 && <0.14,
cereal >=0.4 && <0.6,
optparse-applicative >=0.11 && <0.19,
Decimal >=0.4 && <0.6,
Chart >=1.3 && <1.10,
Chart-cairo >=1.3 && <1.10,
transformers >=0.5 && <0.7,
network >=3 && <4,
bytestring-to-vector >=0.3 && <0.5,
mwc-random >=0.15 && <0.16
-- hs-source-dirs:
default-language: Haskell2010
ghc-options: -O2
includes: c_sources/common.h
install-includes: c_sources/common.h
c-sources:
c_sources/filter.c,
c_sources/decimate.c,
c_sources/convert.c,
c_sources/resample.c,
c_sources/scale.c,
c_sources/cpuid.c
hs-source-dirs: hs_sources
cc-options: -mavx2 -msse4 -g
Test-Suite test
type: exitcode-stdio-1.0
main-is: TestSuite.hs
build-depends:
base >=4.6 && <5,
QuickCheck >=2.8 && <2.15,
vector >=0.11 && <0.14,
primitive >=0.5 && <0.9,
storable-complex >=0.2 && <0.3,
test-framework >=0.8 && <0.9,
test-framework-quickcheck2 >=0.3 && <0.4,
sdr
hs-source-dirs: tests
ghc-options: -O2
default-language: Haskell2010
benchmark benchmark
type: exitcode-stdio-1.0
main-is: Benchmarks.hs
build-depends:
base >=4.6 && <5,
criterion >=1.0 && <1.7,
vector >=0.11 && <0.14,
primitive >=0.5 && <0.9,
storable-complex >=0.2 && <0.3,
sdr
hs-source-dirs: benchmarks
ghc-options: -O2
default-language: Haskell2010