1 ;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; indent-tabs-mode: nil -*-
3 (in-package :common-lisp-user)
5 ;;; Need trivial-features to correctly handle the reader conditionals
6 ;;; in the system definition form.
7 (eval-when (:load-toplevel :execute)
8 (asdf:oos 'asdf:load-op :cffi-grovel)
9 (asdf:oos 'asdf:load-op :trivial-features))
11 (asdf:defsystem :io.multiplex
12 :description "I/O multiplexing library."
13 :author "Stelian Ionescu <sionescu@common-lisp.net>"
14 :maintainer "Stelian Ionescu <sionescu@common-lisp.net>"
16 :depends-on (:iolib.base :trivial-features :cffi :cffi-grovel :osicat)
17 :pathname (merge-pathnames #p"io.multiplex/" *load-truename*)
21 ;; Foreign definitions
22 (cffi-grovel:grovel-file "grovel" :depends-on ("pkgdcl"))
23 (:file "foreign-unix" :depends-on ("pkgdcl" "grovel"))
25 (:file "foreign-linux" :depends-on ("pkgdcl" "grovel"))
27 (:file "foreign-bsd" :depends-on ("pkgdcl" "grovel"))
30 (:file "time" :depends-on ("pkgdcl"))
31 (:file "utils" :depends-on ("pkgdcl" "grovel" "time"))
32 (:file "timers" :depends-on ("pkgdcl" "time"))
33 (:file "queue" :depends-on ("pkgdcl"))
34 (:file "scheduler" :depends-on ("pkgdcl" "timers" "queue"))
37 (:file "fd-entry" :depends-on ("pkgdcl" "timers"))
38 (:file "multiplexer" :depends-on ("pkgdcl" "utils" "fd-entry"))
39 (:file "event-loop" :depends-on ("pkgdcl" "time" "timers" "queue"
40 "scheduler" "fd-entry" "multiplexer"))
43 (:file "fd-wait" :depends-on ("pkgdcl" "grovel" "foreign-unix" "utils"))
46 (:file "backend-select"
47 :depends-on ("pkgdcl" "utils" "grovel" "foreign-unix"
48 "fd-entry" "multiplexer"))
50 (:file "backend-epoll"
51 :depends-on ("pkgdcl" "grovel" "foreign-linux"
52 "utils" "fd-entry" "multiplexer"))
54 (:file "backend-kqueue"
55 :depends-on ("pkgdcl" "grovel" "foreign-bsd"
56 "utils" "fd-entry" "multiplexer"))
58 :depends-on ("pkgdcl" "multiplexer" "backend-select"
59 #+linux "backend-epoll" #+bsd "backend-kqueue"))))