chiark / gitweb /
Adding libraries as components
[clg] / glib / glib.asd
CommitLineData
f11b84f6 1;;; -*- Mode: lisp -*-
2
3(asdf:oos 'asdf:load-op :clg-tools)
4
5(defpackage "GLIB-SYSTEM"
a3259739 6 (:use "COMMON-LISP" "ASDF" "PKG-CONFIG")
f11b84f6 7 (:export "*GTK-LIBRARY-PATH*"))
8
a3259739 9(ext:unlock-all-packages)
f11b84f6 10
11;;; Better put this in ~/.cmucl-init.lisp or some other file read at startup
12;; (setf
13;; (logical-pathname-translations "clg")
14;; '(("**;*.*.*" "/home/espen/src/clg/**/")))
15
f11b84f6 16(in-package "GLIB-SYSTEM")
17
18(pkg-exists-p "glib-2.0" :atleast-version "2.4.0")
19
20(defvar *cmucl-include-path* "/usr/lib/cmucl/include")
f11b84f6 21
a3259739 22;; TODO: remove this
23(defvar *gtk-library-path* (pkg-variable "gtk+-2.0" "libdir"))
f11b84f6 24
25
26(defsystem glib
27 :depends-on (clg-tools)
28 :components ((:file "defpackage")
29 (:file "pcl")
a3259739 30 ;; It is necessary to load this before libglib-2.0.so,
31 ;; otherwise our implementation of g_logv won't be
32 ;; used by the library
f11b84f6 33 (:unix-dso "alien"
34 :components ((:c-source-file "callback"
35 :definitions ("CMUCL")
36 :include-paths (#.*cmucl-include-path*)
37 :cflags #.(pkg-cflags "glib-2.0"))
38 (:c-source-file "gobject"
39 :cflags #.(pkg-cflags "glib-2.0"))))
a3259739 40 (:library "libglib-2.0"
41 :libdir #.(pkg-variable "glib-2.0" "libdir")
42 :depends-on ("alien"))
43 (:library "libgobject-2.0"
44 :libdir #.(pkg-variable "glib-2.0" "libdir")
45 :depends-on ("libglib-2.0"))
f11b84f6 46 (:file "utils" :depends-on ("defpackage"))
a3259739 47 (:file "ffi" :depends-on ("utils"))
48 (:file "glib" :depends-on ("ffi" "libglib-2.0"))
f11b84f6 49 (:file "proxy" :depends-on ("pcl" "glib"))
a3259739 50 (:file "gtype" :depends-on ("proxy" "libgobject-2.0"))
f11b84f6 51 (:file "gboxed" :depends-on ("gtype"))
52 (:file "genums" :depends-on ("gtype"))
53 (:file "gparam" :depends-on ("genums"))
f11b84f6 54 (:file "gobject" :depends-on ("gparam"))
a3259739 55 (:file "ginterface" :depends-on ("gobject"))
f11b84f6 56 (:file "gcallback" :depends-on ("gtype" "gparam" "gobject" "alien"))
57 (:file "export" :depends-on ("utils" "glib" "proxy" "gboxed" "gtype" "gparam" "gcallback" "genums" "gobject"))))