-
Notifications
You must be signed in to change notification settings - Fork 42
/
cl-pdf.asd
69 lines (60 loc) · 3.05 KB
/
cl-pdf.asd
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
;;;; -*- Mode: LISP; Syntax: ANSI-Common-Lisp; Base: 10 -*-
;;; cl-pdf copyright 2002-2013 Marc Battyani and contributors see license.txt for the details
;;; You can reach me at marc.battyani@fractalconcept.com or marc@battyani.net
;;; The homepage of cl-pdf is here: http://www.fractalconcept.com/asp/html/cl-pdf.html
(in-package :common-lisp-user)
(defpackage #:cl-pdf-system
(:use #:cl #:asdf))
(in-package #:cl-pdf-system)
;;;Choose the zlib implementation you want to use (only one!)
;; Put one of those preferably somewhere else than in that file
(eval-when (:load-toplevel :compile-toplevel :execute)
;;(pushnew :use-salza2-zlib *features*)
;;(pushnew :use-salza-zlib *features*)
;;(pushnew :use-uffi-zlib *features*)
;;(pushnew :use-abcl-zlib *features*)
(when (notany #'(lambda (feature) (find feature *features*))
'(:use-salza2-zlib :use-salza-zlib :use-uffi-zlib :use-abcl-zlib :use-no-zlib))
(push :use-no-zlib *features*))
)
#-(or use-uffi-zlib use-salza-zlib use-salza2-zlib use-abcl-zlib use-no-zlib)
(error "You must choose which zlib implementation you want to use!")
#+(and (not uffi) use-uffi-zlib)
(ignore-errors
(print "Trying to load UFFI:")
(operate 'load-op :uffi)
(pushnew :uffi *features*)
(print "UFFI loaded."))
#+clisp (setf *warn-on-floating-point-contagion* nil)
(defsystem :cl-pdf
:name "cl-pdf"
:author "Marc Battyani <marc.battyani@fractalconcept.com>"
:version "2.0"
:maintainer "Marc Battyani <marc.battyani@fractalconcept.com>"
:licence "BSD like licence"
:description "Common Lisp PDF Generation Library"
:long-description "The cl-pdf package provides a stand-alone Common Lisp library to generate PDF files."
:perform (load-op :after (op cl-pdf)
(pushnew :cl-pdf *features*))
:components ((:file "defpackage")
(:file "config" :depends-on ("defpackage"))
#+use-uffi-zlib (:file "init" :depends-on ("config"))
(:file "zlib"
:depends-on ("config" "defpackage"
#+use-uffi-zlib "init"))
(:file "font-metrics" :depends-on ("config"))
(:file "encodings" :depends-on ("config"))
(:file "t1-font" :depends-on ("font-metrics" "encodings"))
(:file "ttu-font" :depends-on ("font-metrics"))
(:file "zpb-ttf-load" :depends-on ("ttu-font"))
(:file "font" :depends-on ("t1-font" "ttu-font"))
(:file "pdf" :depends-on ("font"))
(:file "x11-colors" :depends-on ("defpackage"))
(:file "pdf-base" :depends-on ("pdf" "x11-colors"))
(:file "png" :depends-on ("pdf-base"))
(:file "pdf-geom" :depends-on ("pdf-base"))
(:file "text" :depends-on ("pdf-base"))
(:file "bar-codes" :depends-on ("pdf-geom"))
(:file "chart" :depends-on ("text" "pdf-geom"))
(:file "zzinit" :depends-on ("config")))
:depends-on (:iterate #+use-salza-zlib :salza #+use-salza2-zlib :salza2 :zpb-ttf :uiop))