-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpox.setup
More file actions
28 lines (23 loc) · 806 Bytes
/
pox.setup
File metadata and controls
28 lines (23 loc) · 806 Bytes
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
(use system coops srfi-1)
(define-method (rebuild-file after: (sf <scheme-file>))
(let* ((path (pathname-replace-extension (file-path sf) "import.scm"))
(out (pathname-replace-extension path "so")))
(run (csc -s ,path -o ,out))))
(load "pox.system")
(build-system pox)
(install-extension
'pox
(append-map (lambda (c)
(list
(pathname-replace-extension c "so")
(pathname-replace-extension c "import.so")))
(map component-name
(filter (lambda (c)
(subclass? (class-of c) <scheme-file>))
(system-components pox))))
'((version "0.0.1")))
(compile start-pox-server.scm -o pox-server)
(install-program
'pox-server-cmd
'("pox-server")
`((version "0.0.1")))