Skip to content
io.multiplex.asd 3.01 KiB
Newer Older
;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Indent-tabs-mode: NIL -*-
;;;
;;; io-multiplex.asd --- ASDF system definition.
;;;
;;; Copyright (C) 2006-2008, Stelian Ionescu  <sionescu@common-lisp.net>
;;;
;;; This code is free software; you can redistribute it and/or
;;; modify it under the terms of the version 2.1 of
;;; the GNU Lesser General Public License as published by
;;; the Free Software Foundation, as clarified by the
;;; preamble found here:
;;;     http://opensource.franz.com/preamble.html
;;;
;;; This program is distributed in the hope that it will be useful,
;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU Lesser General
;;; Public License along with this library; if not, write to the
;;; Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
;;; Boston, MA 02110-1301, USA
(in-package :common-lisp-user)
;;; Need trivial-features to correctly handle the reader conditionals
;;; in the system definition form.
(eval-when (:load-toplevel)
  (asdf:oos 'asdf:load-op :cffi)
  (asdf:oos 'asdf:load-op :trivial-features))
(asdf:defsystem :io.multiplex
Stelian Ionescu's avatar
Stelian Ionescu committed
  :description "I/O multiplexing library."
  :author "Stelian Ionescu <sionescu@common-lisp.net>"
  :maintainer "Stelian Ionescu <sionescu@common-lisp.net>"
Stelian Ionescu's avatar
Stelian Ionescu committed
  :licence "LLGPL-2.1"
  :depends-on (:osicat :alexandria :series)
  :pathname (merge-pathnames #p"io.multiplex/" *load-truename*)
  ((:file "pkgdcl")

   ;; Foreign definitions
   (cffi-grovel:grovel-file "grovel" :depends-on ("pkgdcl"))
   (:file "foreign-unix" :depends-on ("pkgdcl" "grovel"))
   #+linux (:file "foreign-linux" :depends-on ("pkgdcl" "grovel"))
   #+bsd (:file "foreign-bsd" :depends-on ("pkgdcl" "grovel"))

   ;; Scheduler
   (:file "time" :depends-on ("pkgdcl"))
   (:file "utils" :depends-on ("pkgdcl" "grovel" "time"))
   (:file "timers" :depends-on ("pkgdcl" "time"))
   (:file "queue" :depends-on ("pkgdcl"))
   (:file "scheduler" :depends-on ("pkgdcl" "timers" "queue"))
Stelian Ionescu's avatar
Stelian Ionescu committed
   (:file "fd-entry" :depends-on ("pkgdcl" "timers"))
   (:file "multiplexer" :depends-on ("pkgdcl" "utils" "fd-entry"))
   (:file "event-loop" :depends-on ("pkgdcl" "time" "timers" "queue"
                                    "scheduler" "fd-entry" "multiplexer"))

   ;; FD wait
   (:file "fd-wait" :depends-on ("pkgdcl" "grovel" "foreign-unix" "utils"))

   ;; Event sources
   (:file "select" :depends-on ("pkgdcl" "utils" "grovel" "foreign-unix"
                                "fd-entry" "multiplexer"))
   #+linux (:file "epoll" :depends-on ("pkgdcl" "grovel" "foreign-linux"
                                       "utils" "fd-entry" "multiplexer"))
   #+bsd (:file "kqueue" :depends-on ("pkgdcl" "grovel" "foreign-bsd"
                                      "utils" "fd-entry" "multiplexer"))
   (:file "detect" :depends-on ("pkgdcl" "multiplexer" "select"
                                #+linux "epoll" #+bsd "kqueue"))))