lqml/examples/clog-demo/run.lisp
2022-03-23 15:39:17 +01:00

36 lines
783 B
Common Lisp

(in-package :qml-user)
(require :asdf)
(pushnew :mobile *features*)
(asdf:load-system :clog)
(push (merge-pathnames "./")
asdf:*central-registry*)
(pushnew :interpreter *features*)
(asdf:operate 'asdf:load-source-op :app)
(setf *features* (remove :mobile *features*))
(qset *quick-view*
|x| 75
|y| 75)
(defun option (name)
(find name (ext:command-args) :test 'search))
;;; trivial auto reload of all QML files after saving any change
(when (option "-auto")
(load "lisp/qml-reload/auto-reload"))
;;; for Slime after copying 'lqml-start-swank.lisp' from LQML sources
;;; to your Slime directory, which is assumed to be '~/slime/'
(when (option "-slime")
(load "~/slime/lqml-start-swank")) ; for 'slime-connect' from Emacs
(clog-demo-1:start-demo)