#|
  This file is a part of stoe-game project.
  Copyright (c) 2015 Renaud Casenave-Péré (renaud@casenave-pere.fr)
|#

#|
  SaintOEngine Game - A test game using stoe

  Author: Renaud Casenave-Péré (renaud@casenave-pere.fr)
|#

(in-package :cl-user)
(defpackage stoe-game-asd
  (:use :cl :asdf))
(in-package :stoe-game-asd)

(defsystem stoe-game
  :version (:read-file-form "VERSION")
  :author "Renaud Casenave-Péré"
  :license "LLGPL"
  :description "SaintOEngine Game - A test game using stoe"
  :long-description
  #.(with-open-file (stream (merge-pathnames
                             #p"README.md"
                             (or *load-pathname* *compile-file-pathname*))
                            :if-does-not-exist nil
                            :direction :input)
      (when stream
        (let ((seq (make-array (file-length stream)
                               :element-type 'character
                               :fill-pointer t)))
          (setf (fill-pointer seq) (read-sequence seq stream))
          seq)))
  :defsystem-depends-on (:asdf-package-system)
  :class :package-inferred-system
  :around-compile (lambda (thunk)
                    (proclaim '(optimize (debug 3) (safety 3) (speed 0)))
                    (funcall thunk))
  :depends-on ("stoe")
  :components ((:file "stoe-game"))
  :in-order-to ((test-op (load-op stoe-game/test))))

(defsystem stoe-game/test
  :depends-on ("prove" "stoe-game/test/all"))
