4 :components ((:file "qt-libs"))
5 :depends-on (:qt-lib-generator
8 - :perform (asdf:load-op :after (op c) (uiop:symbol-call :qt-libs :ensure-standalone-libs)))
15 (defun %ensure-lib-loaded (file)
16 - (let ((file (etypecase file
18 - (string (installed-library-file file))))
19 - (name (intern (string-upcase (pathname-name file))))
20 - #+sbcl(sb-ext:*muffled-warnings* 'style-warning))
21 - (cffi::register-foreign-library
23 - :search-path (to-directory file))
24 - (unless (cffi:foreign-library-loaded-p name)
25 - (cffi:load-foreign-library name))))
26 + (let ((name (make-pathname :name (format nil "lib~a" file)
29 + (or (find-if (lambda (lib)
30 + (equal (cffi:foreign-library-pathname lib)
32 + (cffi:list-foreign-libraries))
33 + (cffi:load-foreign-library name))))
35 (defun ensure-lib-loaded (file)
36 (cond ((pathnamep file)