-
Notifications
You must be signed in to change notification settings - Fork 0
/
ensemble.egg
84 lines (84 loc) · 2.58 KB
/
ensemble.egg
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
((synopsis "Client for the Matrix.org protocol")
(author "Adrien (Kooda) Ramos")
(category net)
(dependencies
utf8
http-client
rest-bind
openssl
intarweb
gochan
uri-common
medea
cjson
vector-lib
ioctl
srfi-18
srfi-69
srfi-71
ncurses
miscmacros)
(platform (not windows))
(cond-expand
(release (component-options (linkage static)))
(else (component-options (linkage dynamic))))
(components
;; Helper libraries
(extension ensemble.libs.debug
(source "libs/debug.scm")
(csc-options "-d0"))
(extension ensemble.libs.locations
(source "libs/locations.scm")
(csc-options "-d0"))
(extension ensemble.libs.nonblocking-ports
(source "libs/nonblocking-ports.scm")
(csc-options "-d0"))
(extension ensemble.libs.json-help
(source "libs/json-help.scm")
(csc-options "-d0"))
(extension ensemble.libs.bindings
(source "libs/bindings.scm")
(csc-options "-d0"))
(extension ensemble.libs.concurrency
(source "libs/concurrency.scm")
(csc-options "-d0")
(component-dependencies
ensemble.libs.debug
ensemble.libs.nonblocking-ports))
;; Matrix backend
(program ensemble.backend.matrix
(source "backend/matrix/main.scm")
(component-dependencies
ensemble.libs.debug
ensemble.libs.locations
ensemble.libs.json-help
ensemble.libs.bindings
ensemble.libs.nonblocking-ports
ensemble.libs.concurrency)
(source-dependencies
"ipc.scm"
"backend/matrix/data.scm"
"backend/matrix/low-level.scm"
"backend/matrix/client.scm")
(cond-expand
(release (custom-build "build-ssl"))
(else)))
;; Console interface
(extension ensemble.interface.console
(source "interface/console/main.scm")
(source-dependencies
"ipc.scm"
"interface/console/input.scm")
(component-dependencies
ensemble.libs.debug
ensemble.libs.locations
ensemble.libs.concurrency))
(program ensemble
(csc-options "-d0")
(component-dependencies
ensemble.libs.bindings
ensemble.interface.console)
(cond-expand
(release (custom-build "./chicken-ncurses/build"))
(else)))
))