chiark / gitweb /
Initial checkin
[clg] / glib / glib.asd
CommitLineData
f11b84f6 1;;; -*- Mode: lisp -*-
2
3(asdf:oos 'asdf:load-op :clg-tools)
4
5(defpackage "GLIB-SYSTEM"
6 (:use "COMMON-LISP" "ASDF" "PKG-CONFIG" "SHAREDLIB")
7 (:export "*GTK-LIBRARY-PATH*"))
8
9
10;;; Better put this in ~/.cmucl-init.lisp or some other file read at startup
11;; (setf
12;; (logical-pathname-translations "clg")
13;; '(("**;*.*.*" "/home/espen/src/clg/**/")))
14
15(ext:unlock-all-packages)
16
17(in-package "GLIB-SYSTEM")
18
19(pkg-exists-p "glib-2.0" :atleast-version "2.4.0")
20
21(defvar *cmucl-include-path* "/usr/lib/cmucl/include")
22(defvar *gtk-library-path* (pkg-variable "gtk+-2.0" "libdir"))
23
24
25(load-shared-library "libglib-2.0")
26(load-shared-library "libgobject-2.0" :init "g_type_init")
27
28
29(defsystem glib
30 :depends-on (clg-tools)
31 :components ((:file "defpackage")
32 (:file "pcl")
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"))))
40 (:file "utils" :depends-on ("defpackage"))
41 (:file "ffi" :depends-on ("utils" "alien"))
42 (:file "glib" :depends-on ("ffi"))
43 (:file "proxy" :depends-on ("pcl" "glib"))
44 (:file "gtype" :depends-on ("proxy"))
45 (:file "gboxed" :depends-on ("gtype"))
46 (:file "genums" :depends-on ("gtype"))
47 (:file "gparam" :depends-on ("genums"))
48 (:file "ginterface" :depends-on ("gtype"))
49 (:file "gobject" :depends-on ("gparam"))
50 (:file "gcallback" :depends-on ("gtype" "gparam" "gobject" "alien"))
51 (:file "export" :depends-on ("utils" "glib" "proxy" "gboxed" "gtype" "gparam" "gcallback" "genums" "gobject"))))