-
Notifications
You must be signed in to change notification settings - Fork 0
/
dub.sdl
142 lines (124 loc) · 3.26 KB
/
dub.sdl
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
name "libsoundio-d"
description "D translation of libsoundio"
authors "dkorpel"
copyright "Copyright © 2020, dkorpel"
license "MIT"
targetName "libsoundio-d"
targetPath "build"
targetType "library"
dflags "-preview=dip1000"
dflags "-mixin=build/mixin.d"
sourcePaths // no default sourcepath
sourceFiles "source/soundio/api.d"
sourceFiles "source/soundio/atomics.d"
sourceFiles "source/soundio/channel_layout.d"
sourceFiles "source/soundio/config.d" // enums only
sourceFiles "source/soundio/list.d" // templates only
sourceFiles "source/soundio/dummy.d"
sourceFiles "source/soundio/os.d"
sourceFiles "source/soundio/package.d"
sourceFiles "source/soundio/ring_buffer.d"
sourceFiles "source/soundio/soundio.d"
sourceFiles "source/soundio/soundio_internal.d" // list template instantiations are in here sometimes
sourceFiles "source/soundio/soundio_private.d"
sourceFiles "source/soundio/util.d"
configuration "linux" {
platforms "linux"
libs "asound"
versions "SOUNDIO_HAVE_ALSA"
sourceFiles "source/soundio/alsa.d"
libs "pulse"
versions "SOUNDIO_HAVE_PULSEAUDIO"
sourceFiles "source/soundio/pulseaudio.d"
}
configuration "windows" {
platforms "windows"
versions "SOUNDIO_HAVE_WASAPI"
sourceFiles "source/soundio/wasapi.d"
sourceFiles "source/soundio/headers/wasapiheader.d"
libs "Ole32" // CoCreateInstance, CoTaskMemFree, PropVariantClear
}
configuration "dummy" {
sourceFiles "source/soundio/dummy.d" // redundant, but config can't be empty
}
configuration "jack" {
versions "SOUNDIO_HAVE_JACK"
sourceFiles "source/soundio/jack.d"
}
// Examples
subPackage {
name "sine"
targetPath "build"
targetType "executable"
sourcePaths
sourceFiles "examples/sio_sine.d"
dependency "libsoundio-d" version="*"
}
subPackage {
name "list-devices"
targetPath "build"
targetType "executable"
sourcePaths
sourceFiles "examples/sio_list_devices.d"
dependency "libsoundio-d" version="*"
}
subPackage {
name "record"
targetPath "build"
targetType "executable"
sourcePaths
sourceFiles "examples/sio_record.d"
dependency "libsoundio-d" version="*"
buildRequirements "silenceWarnings" // statements after main-loop not reachable
}
subPackage {
name "microphone"
targetPath "build"
targetType "executable"
sourcePaths
sourceFiles "examples/sio_microphone.d"
dependency "libsoundio-d" version="*"
buildRequirements "silenceWarnings" // statement after main-loop not reachable
}
// Tests
subPackage {
name "backend-disconnect-recover"
targetPath "build"
targetType "executable"
sourcePaths
sourceFiles "test/backend_disconnect_recover.d"
dependency "libsoundio-d" version="*"
}
subPackage {
name "latency"
targetPath "build"
targetType "executable"
sourcePaths
sourceFiles "test/latency.d"
dependency "libsoundio-d" version="*"
buildRequirements "silenceWarnings" // statement after main-loop not reachable
}
subPackage {
name "overflow"
targetPath "build"
targetType "executable"
sourcePaths
sourceFiles "test/overflow.d"
dependency "libsoundio-d" version="*"
}
subPackage {
name "underflow"
targetPath "build"
targetType "executable"
sourcePaths
sourceFiles "test/underflow.d"
dependency "libsoundio-d" version="*"
}
subPackage {
name "unit-tests"
targetPath "build"
targetType "executable"
sourcePaths
sourceFiles "test/unit_tests.d"
dependency "libsoundio-d" version="*"
}