mirror of
https://gitlab.com/eql/lqml.git
synced 2025-12-07 02:51:09 -08:00
add Qt6 version of some examples (see below); revisions
'9999', 'advanced-qml-auto-reload', 'planets', 'sokoban'
This commit is contained in:
parent
ca79dec909
commit
dc29ac9084
87 changed files with 963 additions and 74 deletions
|
|
@ -0,0 +1,22 @@
|
|||
(in-package :cl-user)
|
||||
|
||||
(defparameter *dir* *load-truename*)
|
||||
|
||||
(defvar *template* (with-open-file (s (merge-pathnames ".template.qml" *dir*))
|
||||
(let ((str (make-string (file-length s))))
|
||||
(read-sequence str s)
|
||||
str)))
|
||||
|
||||
(defun create-qml-loaders ()
|
||||
(dolist (file (directory (merge-pathnames "ext/**/*.qml" *dir*)))
|
||||
(let* ((name (namestring file))
|
||||
(p (1+ (search "/ext/" name)))
|
||||
(loader (concatenate 'string (subseq name 0 p) "." (subseq name p))))
|
||||
(unless (probe-file loader)
|
||||
(ensure-directories-exist loader)
|
||||
(with-open-file (s loader :direction :output)
|
||||
(let ((new (subseq name p)))
|
||||
(format t "~&creating .~A~%" new)
|
||||
(format s *template* (subseq name p))))))))
|
||||
|
||||
(create-qml-loaders)
|
||||
Loading…
Add table
Add a link
Reference in a new issue