forked from mighty-gerbils/gerbil
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-config.ss
25 lines (23 loc) · 847 Bytes
/
build-config.ss
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
;;; -*- Gerbil -*-
;;; Gerbil stdlib build configuration
package: std
;; feature macro
(defsyntax (enable stx)
(syntax-case stx ()
((_ feature #t)
(with-syntax ((config-have-feature
(stx-identifier #'feature "config-have-" #'feature))
(config-enable-feature
(stx-identifier #'feature "config-enable-" #'feature)))
#'(begin
(export config-have-feature config-enable-feature)
(provide config-have-feature)
(def config-enable-feature #t))))
((_ feature #f)
(with-syntax ((config-enable-feature
(stx-identifier #'feature "config-enable-" #'feature)))
#'(begin
(export config-enable-feature)
(def config-enable-feature #f))))))
;;; Build Configuration
(include "build-features.ss")