This repository has been archived by the owner on Jan 20, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathproject.b
70 lines (62 loc) · 1.48 KB
/
project.b
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
options [
flac: 'libflac "FLAC loader implementation ('libflac 'foxen none)"
static: false "Build static library"
ftest: false "Build faun_test program (modifies library)"
load-mem: true "Include functions to load buffers from memory"
]
if int? flac [
flac: pick [libflac foxen] flac
]
libfaun: [
cflags "-DUSE_SFX_GEN"
switch flac [
libflac [cflags "-DUSE_FLAC=1"]
foxen [cflags "-DUSE_FLAC=2"]
]
if ftest [cflags "-DCAPTURE"]
if load-mem [cflags "-DUSE_LOAD_MEM"]
include_from %support
if msvc [include_from %../usr/include]
sources [
%support/tmsg.c
%faun.c
]
]
faun-dep: [
if eq? flac 'libflac [libs %FLAC]
linux [libs [%pulse %vorbisfile %pthread %m]]
win32 [
either msvc
[libs_from %../usr/lib [%vorbisfile]]
[libs [%vorbisfile]]
;libs [%dsound %dxguid %uuid %user32]
libs [%ole32 %user32]
]
]
flink: [
include_from %.
libs_from %. %faun
]
either static [
lib %faun libfaun
faun-link: does append flink faun-dep
][
shlib [%faun 0,2,0] append append libfaun faun-dep [
win32 [lflags either msvc "/def:faun.def" "faun.def"]
]
faun-link: does flink
]
if ftest [
exe %faun_test [
console faun-link sources [%faun_test.c]
]
]
exe %basic [
console faun-link sources [%example/basic.c]
]
dist [
%faun.def
%support/cpuCounter.h
%sys_pulseaudio.c
%sys_wasapi.c
]