| 1 | ;;; -*- Mode: lisp -*- |
| 2 | |
| 3 | (asdf:oos 'asdf:load-op :clg-tools) |
| 4 | (asdf:oos 'asdf:load-op :gffi) |
| 5 | |
| 6 | (defpackage "GLIB-SYSTEM" |
| 7 | (:use "COMMON-LISP" "ASDF" "PKG-CONFIG")) |
| 8 | |
| 9 | ;;; Better put this in ~/.cmucl-init.lisp or some other file read at startup |
| 10 | ;; (setf |
| 11 | ;; (logical-pathname-translations "clg") |
| 12 | ;; '(("**;*.*.*" "/home/espen/src/clg/**/"))) |
| 13 | |
| 14 | (in-package "GLIB-SYSTEM") |
| 15 | |
| 16 | (pkg-exists-p "glib-2.0" :atleast-version "2.4.0" :error t) |
| 17 | |
| 18 | (defsystem glib |
| 19 | :depends-on (clg-tools gffi) |
| 20 | :components ((:file "defpackage") |
| 21 | ;; For preloading to work in glib 2.6, the library needs to |
| 22 | ;; be configured and build with '--disable-visibility' |
| 23 | (:unix-dso "preload" |
| 24 | :components ((:c-source-file "logging" |
| 25 | :cflags #.(pkg-cflags "glib-2.0")))) |
| 26 | (:library "libglib-2.0" |
| 27 | :libdir #.(pkg-variable "glib-2.0" "libdir") |
| 28 | :depends-on ("preload")) |
| 29 | (:library "libgobject-2.0" |
| 30 | :libdir #.(pkg-variable "glib-2.0" "libdir") |
| 31 | :depends-on ("libglib-2.0")) |
| 32 | (:unix-dso "alien" |
| 33 | :components ((:c-source-file "gobject" |
| 34 | :cflags #.(pkg-cflags "glib-2.0"))) |
| 35 | :depends-on ("libgobject-2.0")) |
| 36 | (:file "glib" :depends-on ("libglib-2.0" "defpackage")) |
| 37 | (:file "gtype" :depends-on ("alien" "libgobject-2.0" "glib")) |
| 38 | (:file "gboxed" :depends-on ("gtype")) |
| 39 | (:file "genums" :depends-on ("gtype")) |
| 40 | (:file "gparam" :depends-on ("genums")) |
| 41 | (:file "gobject" :depends-on ("gparam")) |
| 42 | (:file "ginterface" :depends-on ("gobject")) |
| 43 | (:file "gcallback" :depends-on ("gtype" "gparam" "gobject")) |
| 44 | (:file "gerror" :depends-on ("gcallback")))) |