blob: 14be0521408b620d15a625c4458f52a4cc4fca43 (
plain)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
BUILT_SOURCES =
G_IR_SCANNER = $(top_srcdir)/tools/g-ir-scanner
G_IR_SCANNER_FILES = $(top_srcdir)/giscanner/*.py \
$(top_builddir)/giscanner/libgiscanner.la
# glib
GLIB_INCLUDEDIR=`pkg-config --variable=includedir glib-2.0`/glib-2.0
GLIB_LIBDIR=`pkg-config --variable=libdir glib-2.0`
GLib.gir: $(G_IR_SCANNER) $(G_IR_SCANNER_FILES)
PYTHONPATH=$(top_srcdir):$$PYTHONPATH $(G_IR_SCANNER) \
-v --namespace GLib \
--noclosure \
--output $@ \
--strip-prefix=g \
--library=glib-2.0 \
-I$(GLIB_INCLUDEDIR) \
-I$(GLIB_LIBDIR)/glib-2.0/include \
-DGETTEXT_PACKAGE=Dummy \
-D__G_I18N_LIB_H__ \
-D__G_LIBCONFIG_H__ \
$(top_builddir)/giscanner/glibconfig-scanner.h \
$(GLIB_INCLUDEDIR)/glib/*.h
BUILT_SOURCES += GLib.gir
# gobject
GOBJECT_INCLUDEDIR=`pkg-config --variable=includedir gobject-2.0`/glib-2.0
GOBJECT_LIBDIR=`pkg-config --variable=libdir gobject-2.0`
GObject.gir: GLib.gir $(G_IR_SCANNER) $(G_IR_SCANNER_FILES)
PYTHONPATH=$(top_srcdir):$$PYTHONPATH $(G_IR_SCANNER) \
-v --namespace GObject \
--noclosure \
--output $@ \
--strip-prefix=g \
--include=$(top_builddir)/gir/GLib.gir \
--library=gobject-2.0 \
-I$(GOBJECT_INCLUDEDIR) \
-I$(GOBJECT_LIBDIR)/glib-2.0/include \
-DGOBJECT_COMPILATION \
--pkg glib-2.0 \
$(GLIB_INCLUDEDIR)/gobject/*.h
BUILT_SOURCES += GObject.gir
# gio
GIO_INCLUDEDIR=`pkg-config --variable=includedir gio-2.0`/glib-2.0
GIO_LIBDIR=`pkg-config --variable=libdir gio-2.0`
Gio.gir: GObject.gir $(G_IR_SCANNER) $(G_IR_SCANNER_FILES)
PYTHONPATH=$(top_srcdir):$$PYTHONPATH $(G_IR_SCANNER) \
-v --namespace Gio \
--noclosure \
--output $@ \
--strip-prefix=g \
--include=$(top_builddir)/gir/GLib.gir \
--include=$(top_builddir)/gir/GObject.gir \
--library=gio-2.0 \
-I$(GIO_INCLUDEDIR) \
-I$(GIO_LIBDIR)/glib-2.0/include \
-DGIO_COMPILATION \
--pkg glib-2.0 \
--pkg gobject-2.0 \
$(GLIB_INCLUDEDIR)/gio/*.h
BUILT_SOURCES += Gio.gir
CLEANFILES = $(BUILT_SOURCES)
girdir=$(datadir)/gir
dist_gir_DATA = $(BUILT_SOURCES)
%.typelib: %.gir
$(top_builddir)/tools/g-ir-compiler $< --raw -o $@
typelibsdir = $(datadir)/gitypelibs
typelibs_DATA = GLib.typelib GObject.typelib Gio.typelib
CLEANFILES += $(typelibs_DATA)
EXTRA_DIST = glib-2.0-good.gir gobject-2.0-good.gir gobject-2.0-gio.gir
|