Install public headers
[platform/upstream/at-spi2-core.git] / atspi / Makefile.am
1 lib_LTLIBRARIES = libatspi.la
2
3 libatspi_la_LDFLAGS = @LDFLAGS@ @LT_VERSION_INFO@ @LIBTOOL_EXPORT_OPTIONS@ -no-undefined
4
5 libatspi_la_CFLAGS = $(DBUS_GLIB_CFLAGS) \
6                     $(DBIND_CFLAGS)     \
7                     -I$(top_srcdir)
8
9 libatspi_la_LIBADD = $(DBUS_GLIB_LIBS) \
10         $(X_LIBS) \
11         $(top_builddir)/dbind/libdbind.la
12
13 libatspiincludedir = $(includedir)/at-spi-2.0/atspi
14
15 libatspiinclude_HEADERS = \ 
16         atspi.h \
17         atspi-accessible.h \
18         atspi-action.h \
19         atspi-application.h \
20         atspi-collection.h \
21         atspi-component.h \
22         atspi-constants.h \
23         atspi-device-listener.h \
24         atspi-device-listener-private.h \
25         atspi-document.h \
26         atspi-editabletext.h \
27         atspi-event-listener.h \
28         atspi-event-listener-private.h \
29         atspi-hyperlink.h \
30         atspi-hypertext.h \
31         atspi-image.h \
32         atspi-matchrule.h \
33         atspi-misc.h \
34         atspi-object.h \
35         atspi-private.h \
36         atspi-registry.h \
37         atspi-relation.h \
38         atspi-selection.h \
39         atspi-stateset.h \
40         atspi-table.h \
41         atspi-text.h \
42         atspi-types.h \
43         atspi-value.h
44
45 libatspi_la_SOURCES =           \
46         $(libatspiinclude_HEADERS) \
47         atspi.h \
48         atspi-accessible.c \
49         atspi-accessible.h \
50         atspi-action.c \
51         atspi-action.h \
52         atspi-application.c \
53         atspi-application.h \
54         atspi-collection.c \
55         atspi-collection.h \
56         atspi-component.c \
57         atspi-component.h \
58         atspi-constants.h \
59         atspi-device-listener.c \
60         atspi-device-listener.h \
61         atspi-device-listener-private.h \
62         atspi-document.c \
63         atspi-document.h \
64         atspi-editabletext.c \
65         atspi-editabletext.h \
66         atspi-event-listener.c \
67         atspi-event-listener.h \
68         atspi-event-listener-private.h \
69         atspi-hyperlink.c \
70         atspi-hyperlink.h \
71         atspi-hypertext.c \
72         atspi-hypertext.h \
73         atspi-image.c \
74         atspi-image.h \
75         atspi-matchrule.c \
76         atspi-matchrule.h \
77         atspi-matchrule-private.h \
78         atspi-misc.c \
79         atspi-misc.h \
80         atspi-misc-private.h \
81         atspi-object.c \
82         atspi-object.h \
83         atspi-private.h \
84         atspi-registry.c \
85         atspi-registry.h \
86         atspi-relation.c \
87         atspi-relation.h \
88         atspi-selection.c \
89         atspi-selection.h \
90         atspi-stateset.c \
91         atspi-stateset.h \
92         atspi-table.c \
93         atspi-table.h \
94         atspi-text.c \
95         atspi-text.h \
96         atspi-types.h \
97         atspi-value.c \
98         atspi-value.h
99
100 #BUILT_SOURCES = atspi-constants.h
101
102 #CLEANFILES = atspi-constants.h
103
104 #atspi-constants.h: $(top_srcdir)/xml/spec.xml $(top_srcdir)/tools/c-constants-gen.py
105 #       python $(top_srcdir)/tools/c-constants-gen.py Atspi $(top_srcdir)/xml/spec.xml atspi-constants
106
107 if HAVE_INTROSPECTION
108 INTROSPECTION_FILES = $(libatspi_la_SOURCES)
109
110 Atspi-2.0.gir: $(INTROSPECTION_SCANNER) \
111                 libatspi.la \
112                 $(INTROSPECTION_FILES)
113         $(AM_V_GEN)$(INTROSPECTION_SCANNER) -v \
114                 --namespace Atspi \
115                 --nsversion=2.0 \
116                 -I$(top_builddir) \
117                 -I$(top_srcdir) \
118                 --include=GLib-2.0 \
119                 --include=GObject-2.0 \
120                 --libtool="$(top_builddir)/libtool" \
121                 --library=libatspi.la \
122                 --library=$(top_builddir)/dbind/libdbind.la \
123                 --pkg dbus-glib-1 \
124                 --warn-all \
125                 --output $@ \
126                 $(addprefix $(srcdir)/, $(INTROSPECTION_FILES))
127
128 girdir = $(datadir)/gir-1.0
129 gir_DATA = Atspi-2.0.gir
130
131 %.typelib: %.gir $(INTROSPECTION_COMPILER)
132         $(AM_V_GEN)$(top_builddir)/libtool --mode=execute \
133             $(INTROSPECTION_COMPILER) \
134                 --includedir=$(srcdir) \
135                 --includedir=. \
136                 $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
137
138 typelibsdir = $(libdir)/girepository-1.0/
139 typelibs_DATA = $(gir_DATA:.gir=.typelib)
140
141 CLEANFILES = \
142     $(gir_DATA) \
143     $(typelibs_DATA)
144
145 endif