chiark / gitweb /
Bug fix
[clg] / glib / glib.asd
CommitLineData
f11b84f6 1;;; -*- Mode: lisp -*-
2
3(asdf:oos 'asdf:load-op :clg-tools)
0811f929 4(asdf:oos 'asdf:load-op :gffi)
f11b84f6 5
6(defpackage "GLIB-SYSTEM"
9adccb27 7 (:use "COMMON-LISP" "ASDF" "PKG-CONFIG"))
f11b84f6 8
f11b84f6 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
f11b84f6 14(in-package "GLIB-SYSTEM")
15
0811f929 16(pkg-exists-p "glib-2.0" :atleast-version "2.4.0" :error t)
f204f1f5 17
f11b84f6 18(defsystem glib
0811f929 19 :depends-on (clg-tools gffi)
f11b84f6 20 :components ((:file "defpackage")
56a1f31a 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"))))
a3259739 26 (:library "libglib-2.0"
56a1f31a 27 :libdir #.(pkg-variable "glib-2.0" "libdir")
28 :depends-on ("preload"))
a3259739 29 (:library "libgobject-2.0"
30 :libdir #.(pkg-variable "glib-2.0" "libdir")
31 :depends-on ("libglib-2.0"))
73572c12 32 (:unix-dso "alien"
33 :components ((:c-source-file "callback"
34 :cflags #.(pkg-cflags "glib-2.0"))
35 (:c-source-file "gobject"
36 :cflags #.(pkg-cflags "glib-2.0")))
37 :depends-on ("libgobject-2.0"))
0811f929 38 (:file "glib" :depends-on ("libglib-2.0" "defpackage"))
39 (:file "gtype" :depends-on ("alien" "libgobject-2.0" "glib"))
f11b84f6 40 (:file "gboxed" :depends-on ("gtype"))
41 (:file "genums" :depends-on ("gtype"))
42 (:file "gparam" :depends-on ("genums"))
f11b84f6 43 (:file "gobject" :depends-on ("gparam"))
a3259739 44 (:file "ginterface" :depends-on ("gobject"))
f11b84f6 45 (:file "gcallback" :depends-on ("gtype" "gparam" "gobject" "alien"))
22fc11df 46 (:file "gerror" :depends-on ("gcallback"))))