asdf.asd 2.83 KB
Newer Older
1 2 3 4 5
;;; -*- mode: lisp -*-
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;                                                                  ;;;
;;; Free Software available under an MIT-style license.              ;;;
;;;                                                                  ;;;
6
;;; Copyright (c) 2001-2012 Daniel Barlow and contributors           ;;;
7 8 9
;;;                                                                  ;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

10 11 12
(in-package :asdf)

(defsystem :asdf
13
  :author ("Daniel Barlow")
14
  :maintainer ("Francois-Rene Rideau")
15 16 17
  :licence "MIT"
  :description "Another System Definition Facility"
  :long-description "ASDF builds Common Lisp software organized into defined systems."
18
  :version "2.26.117" ;; to be automatically updated by bin/bump-revision
19
  :depends-on ()
20 21
  :components ((:module "build" :components ((:file "asdf"))))
  :in-order-to (#+asdf2.27 (compile-op (monolithic-load-concatenated-source-op generate-asdf))))
22

23
#-asdf2.27
24 25 26 27
(defmethod perform :before
    ((o compile-op)
     (c (eql (first (module-components
                     (first (module-components (find-system :asdf))))))))
28 29 30 31 32
  (declare (ignorable o))
  (perform (make-instance 'load-source-op) c))

#+(and clisp (not asdf2.27))
(rename-package :asdf :asdf-utilities)
33 34 35 36 37 38 39

#+asdf2.27
(defsystem :asdf/generate
  :licence "MIT"
  :description "All the components needed to build asdf.lisp"
  :description "Generate asdf.lisp based on this and monolithic-concatenate-source-op"
  :defsystem-depends-on (:asdf)
40
  :version (:read-file-form "version.lisp-expr")
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
  :class :bundle-system
  :build-operation monolithic-concatenate-source-op
  :bundle-pathname "build/asdf"
  :translate-output-p nil
  :serial t
  :around-compile call-without-redefinition-warnings ;; be the same as asdf-driver
  :depends-on (:asdf/header :asdf-driver)
  :components
  ((:file "upgrade")
   (:file "component")
   (:file "system" :depends-on ("component"))
   (:file "find-system" :depends-on ("system"))
   (:file "find-component" :depends-on ("find-system"))
   (:file "operation")
   (:file "action" :depends-on ("find-component" "operation"))
   (:file "lisp-action" :depends-on ("action"))
   (:file "plan" :depends-on ("action"))
   (:file "operate" :depends-on ("plan"))
   (:file "output-translations" :depends-on ("operate"))
   (:file "source-registry" :depends-on ("find-system"))
   (:file "backward-internals" :depends-on ("action" "operate"))
   (:file "defsystem" :depends-on ("backward-internals"))
   (:file "bundle" :depends-on ("lisp-action"))
   (:file "concatenate-source" :depends-on ("lisp-action"))
   (:file "backward-interface" :depends-on ("lisp-action"))
   (:file "interface")
   (:file "footer" :depends-on ("interface"))))

69
#+asdf2.27
70 71 72
(defsystem :asdf/header
  :components
  ((:static-file "header.lisp")))