-
Notifications
You must be signed in to change notification settings - Fork 9
/
cl-gdk4.asd
42 lines (39 loc) · 1.5 KB
/
cl-gdk4.asd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#+sbcl
(eval-when (:compile-toplevel :load-toplevel :execute)
(sb-int:set-floating-point-modes :traps nil))
(defsystem cl-gdk4
:version "1.0.0"
:author "Bohong Huang <[email protected]>"
:maintainer "Bohong Huang <[email protected]>"
:license "LGPLv3"
:description "GDK4 bindings for Common Lisp."
:homepage "https://github.com/bohonghuang/cl-gtk4"
:bug-tracker "https://github.com/bohonghuang/cl-gtk4/issues"
:source-control (:git "https://github.com/bohonghuang/cl-gtk4.git")
:serial t
:components ((:file "gdk-pixbuf2")
(:file "gdk4" :depends-on ("gdk-pixbuf2")))
:depends-on (#:cl-gobject-introspection-wrapper))
(uiop:register-image-restore-hook
(lambda ()
(let* ((namespace "Gdk")
(package (find-package (string-upcase namespace))))
(when package
(setf (symbol-value (find-symbol "*NS*" package))
(uiop:symbol-call :gir :require-namespace namespace "4.0"))))
(let* ((namespace "GdkPixbuf")
(package (find-package '#:gdk-pixbuf2)))
(when package
(setf (symbol-value (find-symbol "*NS*" package))
(uiop:symbol-call :gir :require-namespace namespace "2.0"))))))
(defsystem cl-gdk4/example
:depends-on (#:asdf
#:cl-gtk4
#:cl-gdk4
#:cl-cairo2)
:build-operation program-op
:build-pathname "cl-gdk4-example"
:entry-point "gdk4.example:cairo-test"
:pathname "examples/"
:components ((:file "gdk4")
(:file "gdk4-cairo" :depends-on ("gdk4"))))