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