~bratsche/libgrip/python-fu

« back to all changes in this revision

Viewing changes to src/Makefile.am

  • Committer: Cody Russell
  • Date: 2010-11-10 20:53:49 UTC
  • mfrom: (5.1.4 gobject-introspection)
  • Revision ID: crussell@canonical.com-20101110205349-a5qye15a899s0whg
Add gobject-introspection support

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
        gropetypebuiltins.c
7
7
 
8
8
sources_h =                             \
9
 
        gropegesturemanager.h           \
10
 
        grope.h
 
9
        gropegesturemanager.h
11
10
 
12
11
EXTRA_DIST =                            \
13
12
        gropetypebuiltins.h.in          \
26
25
          $(sources_h) ) > xgen-gtbc                                                            \
27
26
        && cp xgen-gtbc gropetypebuiltins.c && rm -f xgen-gtbc
28
27
 
 
28
CLEANFILES =
 
29
 
 
30
if HAVE_INTROSPECTION
 
31
 
 
32
BUILT_GIRSOURCES =
 
33
 
 
34
introspection_sources = $(patsubst %,$(srcdir)/%,$(sources_h))
 
35
 
 
36
irscanner_headers = $(patsubst %,$(srcdir)/%,$(sources_h))
 
37
Grope-0.1.gir: $(INTROSPECTION_SCANNER) $(irscanner_headers) Makefile.am
 
38
        $(INTROSPECTION_SCANNER)                                                \
 
39
                -v --namespace Grope                                            \
 
40
                --nsversion=0.1                                                 \
 
41
                --add-include-path=$(srcdir) $(GTK_CFLAGS)                      \
 
42
                --include=GObject-2.0                                           \
 
43
                --include=GLib-2.0                                              \
 
44
                --include=Gtk-2.0                                               \
 
45
                --library=grope-0.1                                             \
 
46
                --output Grope-0.1.gir $(irscanner_headers)                     \
 
47
                $(addprefix --c-include=src/, $(grope_headers))
 
48
 
 
49
BUILT_GIRSOURCES += Grope-0.1.gir
 
50
 
 
51
girdir = $(datadir)/gir-1.0
 
52
gir_DATA = $(BUILT_GIRSOURCES)
 
53
 
 
54
typelibsdir = $(libdir)/girepository-1.0
 
55
typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
 
56
%.typelib: %.gir $(INTROSPECTION_COMPILER)
 
57
        $(INTROSPECTION_COMPILER)                       \
 
58
                --includedir=$(srcdir)                  \
 
59
                --includedir=.                          \
 
60
                --includedir=$(top_builddir)/src        \
 
61
                $(INTROSPECTION_COMPILER_OPTS)          \
 
62
                $< -o $(@F)
 
63
 
 
64
CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)
 
65
 
 
66
 
 
67
endif
 
68
 
 
69
 
29
70
INCLUDES =                              \
30
71
        -I$(srcdir)                     \
31
72
        -I$(top_srcdir)                 \