1; -*- mode: lisp -*-
2(cl:defpackage :chipz-system
3  (:use :cl :asdf)
4  (:export #:gray-streams))
5(cl:in-package :chipz-system)
6
7(defclass txt-file (doc-file) ((type :initform "txt")))
8(defclass css-file (doc-file) ((type :initform "css")))
9
10(eval-when (:compile-toplevel :load-toplevel :execute)
11  #+(or sbcl lispworks openmcl cmu allegro clisp ecl genera)
12  (pushnew 'chipz-system:gray-streams cl:*features*))
13
14(asdf:defsystem :chipz
15  :version "0.8"
16  :author "Nathan Froyd <froydnj@gmail.com>"
17  :maintainer "Nathan Froyd <froydnj@gmail.com>"
18  :description "A library for decompressing deflate, zlib, and gzip data"
19  :license "BSD style"
20  :components ((:static-file "NEWS")
21               (:static-file "LICENSE")
22               (:static-file "TODO")
23               (:file "package")
24               (:module "doc"
25                        :components
26                        ((:html-file "index")
27                         (:txt-file "chipz-doc")
28                         (:css-file "style")))
29               (:file "constants" :depends-on ("package"))
30               (:file "types-and-tables" :depends-on ("constants"))
31               (:file "crc32" :depends-on ("types-and-tables"))
32               (:file "adler32" :depends-on ("types-and-tables"))
33               (:file "conditions" :depends-on ("package"))
34               (:file "dstate" :depends-on ("package"))
35               (:file "inflate-state" :depends-on ("dstate" "crc32" "adler32"))
36               (:file "gzip" :depends-on ("inflate-state" "conditions"))
37               (:file "zlib" :depends-on ("inflate-state" "conditions"))
38               (:file "inflate" :depends-on ("inflate-state"
39                                             "gzip" "zlib"
40                                             "conditions"))
41               (:file "bzip2" :depends-on ("dstate" "constants"))
42               (:file "decompress" :depends-on ("inflate-state"
43                                                "inflate" "bzip2"))
44               #+chipz-system:gray-streams
45               (:file "stream" :depends-on ("inflate-state" "inflate"))
46
47               #-chipz-system:gray-streams
48               (:file "stream-fallback" :depends-on ("package"))))
49