Add first pass at text interface
[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 libatspidir = $(includedir)/at-spi-1.0/atspi
14
15 libatspi_la_SOURCES =           \
16         atspi.h                 \
17         atspi-accessible.c \
18         atspi-accessible.h \
19         atspi-application.c \
20         atspi-application.h \
21         atspi-component.c \
22         atspi-component.h \
23         atspi-constants.h \
24         atspi-device-listener.c \
25         atspi-device-listener.h \
26         atspi-device-listener-private.h \
27         atspi-event-listener.c \
28         atspi-event-listener.h \
29         atspi-event-listener-private.h \
30         atspi-misc.c \
31         atspi-misc.h \
32         atspi-misc-private.h \
33         atspi-private.h \
34         atspi-registry.c \
35         atspi-registry.h \
36         atspi-stateset.c \
37         atspi-stateset.h \
38         atspi-text.c \
39         atspi-text.h \
40         atspi-types.h
41
42 #BUILT_SOURCES = atspi-constants.h
43
44 #CLEANFILES = atspi-constants.h
45
46 #atspi-constants.h: $(top_srcdir)/xml/spec.xml $(top_srcdir)/tools/c-constants-gen.py
47 #       python $(top_srcdir)/tools/c-constants-gen.py Atspi $(top_srcdir)/xml/spec.xml atspi-constants
48
49 if HAVE_INTROSPECTION
50 INTROSPECTION_FILES = $(libatspi_la_SOURCES)
51
52 Atspi-2.0.gir: $(INTROSPECTION_SCANNER) \
53                 libatspi.la \
54                 $(INTROSPECTION_FILES)
55         $(AM_V_GEN)$(INTROSPECTION_SCANNER) -v \
56                 --namespace Atspi \
57                 --nsversion=2.0 \
58                 -I$(top_builddir) \
59                 -I$(top_srcdir) \
60                 --include=GLib-2.0 \
61                 --include=GObject-2.0 \
62                 --libtool="$(top_builddir)/libtool" \
63                 --library=libatspi.la \
64                 --library=$(top_builddir)/dbind/libdbind.la \
65                 --pkg dbus-glib-1 \
66                 --warn-all \
67                 --output $@ \
68                 $(INTROSPECTION_FILES)
69
70 girdir = $(datadir)/gir-1.0
71 gir_DATA = Atspi-2.0.gir
72
73 %.typelib: %.gir $(INTROSPECTION_COMPILER)
74         $(AM_V_GEN)$(top_builddir)/libtool --mode=execute \
75             $(INTROSPECTION_COMPILER) \
76                 --includedir=$(srcdir) \
77                 --includedir=. \
78                 $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
79
80 typelibsdir = $(libdir)/girepository-1.0/
81 typelibs_DATA = $(gir_DATA:.gir=.typelib)
82
83 CLEANFILES = \
84     $(gir_DATA) \
85     $(typelibs_DATA)
86
87 endif