scsh-make/packages.scm

376 lines
6.5 KiB
Scheme
Raw Normal View History

(define-interface jobd-interface
(export make-jobd
jobd?
version
execute
stop
continue
shutdown
set-jobbers!))
(define-structure jobd jobd-interface
(open scheme-with-scsh
let-opt
formats
srfi-1
(with-prefix srfi-8 srfi-8/)
srfi-9
srfi-11
threads
threads-internal
(with-prefix rendezvous cml-rv/)
(with-prefix mcast-channels cml-mcast-ch/)
(with-prefix rendezvous-channels cml-sync-ch/)
(with-prefix rendezvous-async-channels cml-async-ch/)
finite-types
job
cml-pe)
(files jobd))
(define-interface cml-pe-interface
(export cml-fork
cml-fork/collecting))
(define-structure cml-pe cml-pe-interface
(open scheme-with-scsh
srfi-9
threads
(with-prefix rendezvous cml-rv/)
(with-prefix rendezvous-channels cml-sync-ch/))
(files cml-pe))
(define-interface mcast-channels-interface
(export make-mcast-channel
mcast-channel?
mcast-port?
mcast
mcast-port
mcast-port-receive
mcast-port-receive-rv))
(define-structure mcast-channels mcast-channels-interface
(open scheme
srfi-9
threads
finite-types
rendezvous
rendezvous-channels)
(files mcast-channels))
(define-interface job-interface
(export make-job-desc
job-desc?
job-desc-wd
job-desc-env
job-desc-cmd
make-job-res
job-res?
job-res-errno
job-res-stdout
job-res-stderr
display-job-output))
(define-structure job job-interface
(open scheme-with-scsh
srfi-9)
(files job))
(define-structure test-jobd
(export do-some-jobs)
(open scheme-with-scsh
locks
threads
threads-internal
srfi-1
(with-prefix rendezvous cml-rv/)
(with-prefix rendezvous-channels cml-sync-ch/)
(with-prefix rendezvous-async-channels cml-async-ch/)
cml-pe
job
(with-prefix jobd jobd/))
(files test-jobd))
(define-structure test-mcast-channels
(export test-it)
(open scheme
srfi-9
threads
rendezvous
rendezvous-channels
mcast-channels)
(files test-mcast-channels))
2005-01-13 06:30:05 -05:00
(define-interface collect-channels-interface
(export make-tagged-msg
is-tagged-msg?
tagged-msg-tag
tagged-msg-stripped
make-cmd-msg
is-cmd-msg?
cmd-msg-cmd
cmd-msg-data
print-info
2005-01-13 06:30:05 -05:00
collect&reply/make-channel
send&collect/make-channel
is-collect&reply-channel?
is-send&collect-channel?
make-link
collect-cmd
2005-01-13 06:30:05 -05:00
collect&reply/receive
collect&reply/receive-rv
collect&reply/send
; collect&reply/send-rv
2005-01-13 06:30:05 -05:00
send&collect/send
; send&collect/send-rv
2005-01-13 06:30:05 -05:00
send&collect/receive
send&collect/receive-rv))
(define-structure collect-channels collect-channels-interface
(open scheme-with-scsh
finite-types
srfi-9
2005-03-07 12:37:46 -05:00
; big-util ; for breakpoints
; let-opt ; for logging
2005-01-13 06:30:05 -05:00
threads
threads-internal
(with-prefix rendezvous cml-rv/)
(with-prefix rendezvous-channels cml-sync-ch/)
(with-prefix rendezvous-async-channels cml-async-ch/))
2005-01-13 06:30:05 -05:00
(files collect-channels))
(define-interface make-rule-interface
(export make-rule
2005-03-07 12:37:46 -05:00
; set!-target/rule-alist
2005-01-13 06:30:05 -05:00
is-rule?
make-empty-rule-set
rule-set-add
is-rule-set?
make-rule-result
is-rule-result?
rule-result-wants-build?
rule-result-build-func
2005-01-13 06:30:05 -05:00
rule-make))
(define-structure make-rule-cml make-rule-interface
2005-01-13 06:30:05 -05:00
(open scheme-with-scsh
locks
with-lock
threads
threads-internal
2005-03-07 12:37:46 -05:00
; big-util ; for breakpoints
2005-01-13 06:30:05 -05:00
srfi-1
srfi-9
finite-types
collect-channels
dfs
2005-01-13 06:30:05 -05:00
(with-prefix rendezvous cml-rv/)
(with-prefix rendezvous-channels cml-sync-ch/))
(files make-rule))
(define-structure make-rule-no-cml make-rule-interface
2005-01-13 06:30:05 -05:00
(open scheme-with-scsh
locks
with-lock
srfi-1
srfi-9)
(files make-rule-no-cml))
(define-interface macros-interface
2005-03-07 12:37:46 -05:00
(export (makefile :syntax)))
(define-structure macros macros-interface
(open scheme-with-scsh
srfi-1
to-rule-set
2005-03-08 08:14:36 -05:00
rule-cand
autovars
make)
(files macros))
(define-interface to-rule-set-interface
(export lookup-rc
lookup-fname
lookup-rule
rcs->dag
dag->rcs
2005-03-07 12:37:46 -05:00
rcs+commons->rules
rules->rule-set))
(define-structure to-rule-set to-rule-set-interface
(open scheme-with-scsh
srfi-1
2005-03-08 08:14:36 -05:00
srfi-9
templates
2005-01-18 14:28:50 -05:00
make-rule
common-rules
2005-03-08 08:14:36 -05:00
rule-cand
dfs)
(files to-rule-set))
(define-interface dfs-interface
(export make-dfs
dfs->list
dfs
dfs-dag-show
sort))
(define-structure dfs dfs-interface
(open scheme-with-scsh
finite-types
threads
srfi-1
srfi-9
let-opt
(with-prefix rendezvous-channels cml-sync-ch/))
(files dfs))
(define-interface templates-interface
2005-03-07 12:37:46 -05:00
(export all
file
md5
always
perms
md5-perms
paranoid
once))
(define-structure templates templates-interface
(open scheme-with-scsh
common-rules
autovars
srfi-1
2005-03-07 12:37:46 -05:00
; big-util
srfi-13)
(files templates))
(define-interface autovars-interface
(export bind-fluids-common
bind-fluids-gnu
2005-03-07 12:37:46 -05:00
bind-all-fluids
fluid-$@
fluid-$<
fluid-$?
fluid-$^
fluid-$+
fluid-$*
fluid-$=*
fluid-$*=
fluid-$=*=
fluid-$@/
fluid-/$@
fluid-$=*=/
fluid-/$=*=
fluid-$</
fluid-/$<
fluid-$^/
fluid-/$^
fluid-$+/
fluid-/$+
fluid-$?/
fluid-/$?
$@
$<
$?
$^
$+
$*
$=*
$*=
$=*=
$@/
/$@
$=*=/
/$=*=
$</
/$<
$^/
/$^
$+/
/$+
$?/
/$?
bind-fluids-human))
(define-structure autovars autovars-interface
(open scheme-with-scsh
make-rule
thread-fluids
srfi-1
srfi-13)
(files autovars))
(define-interface common-rules-interface
2005-03-08 08:14:36 -05:00
(export common-rcs->common-rules
make-empty-common-rules
2005-03-07 12:37:46 -05:00
add-common-rules
2005-03-08 08:14:36 -05:00
search-match-in-common-rules))
(define-structure common-rules common-rules-interface
(open scheme-with-scsh
autovars
srfi-1
srfi-9
2005-03-08 08:14:36 -05:00
rule-cand
srfi-13)
(files common-rules))
2005-03-08 08:14:36 -05:00
(define-interface rule-cand-interface
(export make-rule-cand
is-rule-cand?
rule-cand-target
rule-cand-prereqs
rule-cand-up-to-date?-func
rule-cand-build-func))
(define-structure rule-cand rule-cand-interface
(open scheme-with-scsh
srfi-9)
(files rule-cand))
(define-interface make-interface
(export make
make-rc
file->rc
once->rc
all->rc
always->rc
perms->rc
md5->rc
md5-perms->rc
paranoid->rc
%-pattern->match
%-pattern->rx
2005-03-09 10:24:10 -05:00
file-rx
once-rx
all-rx
always-rx
perms-rx
md5-rx
md5-perms-rx
paranoid-rx
file-%
once-%
all-%
always-%
perms-%
md5-%
md5-perms-%
paranoid-%
%->func
rx->func
common->func))
(define-structure make make-interface
(open scheme-with-scsh
srfi-1
; macros
let-opt
to-rule-set
templates
autovars
rule-cand
make-rule)
(files make))
(define make-rule make-rule-no-cml)