ab6c44876a59f88af603256e4e61285633463c44
[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_CFLAGS) \
6                     $(DBIND_CFLAGS)     \
7                     $(GLIB_CFLAGS)     \
8                     -I$(top_srcdir)/registryd \
9                     -I$(top_builddir)/registryd \
10                     -I$(top_builddir) \
11                     -I$(top_srcdir)
12
13 libatspi_la_LIBADD = $(DBUS_LIBS) \
14         $(GOBJ_LIBS) \
15         $(X11_LIBS) \
16         $(top_builddir)/dbind/libdbind.la
17
18 libatspiincludedir = $(includedir)/at-spi-2.0/atspi
19
20 libatspiinclude_HEADERS = \
21         atspi.h \
22         atspi-accessible.h \
23         atspi-action.h \
24         atspi-application.h \
25         atspi-collection.h \
26         atspi-component.h \
27         atspi-constants.h \
28         atspi-device-listener.h \
29         atspi-device-listener-private.h \
30         atspi-document.h \
31         atspi-editabletext.h \
32         atspi-enum-types.h \
33         atspi-event-listener.h \
34         atspi-event-listener-private.h \
35 atspi-gmain.c \
36 atspi-gmain.h \
37         atspi-hyperlink.h \
38         atspi-hypertext.h \
39         atspi-image.h \
40         atspi-matchrule.h \
41         atspi-misc.h \
42         atspi-object.h \
43         atspi-private.h \
44         atspi-registry.h \
45         atspi-relation.h \
46         atspi-selection.h \
47         atspi-stateset.h \
48         atspi-table.h \
49         atspi-table-cell.h \
50         atspi-text.h \
51         atspi-types.h \
52         atspi-value.h
53
54 libatspi_la_SOURCES =           \
55         $(BUILT_SOURCES) \
56         $(libatspiinclude_HEADERS) \
57         atspi.h \
58         atspi-accessible.c \
59         atspi-accessible.h \
60         atspi-accessible-private.h \
61         atspi-action.c \
62         atspi-action.h \
63         atspi-application.c \
64         atspi-application.h \
65         atspi-collection.c \
66         atspi-collection.h \
67         atspi-component.c \
68         atspi-component.h \
69         atspi-constants.h \
70         atspi-device-listener.c \
71         atspi-device-listener.h \
72         atspi-device-listener-private.h \
73         atspi-document.c \
74         atspi-document.h \
75         atspi-editabletext.c \
76         atspi-editabletext.h \
77         atspi-event-listener.c \
78         atspi-event-listener.h \
79         atspi-event-listener-private.h \
80         atspi-hyperlink.c \
81         atspi-hyperlink.h \
82         atspi-hypertext.c \
83         atspi-hypertext.h \
84         atspi-image.c \
85         atspi-image.h \
86         atspi-matchrule.c \
87         atspi-matchrule.h \
88         atspi-matchrule-private.h \
89         atspi-misc.c \
90         atspi-misc.h \
91         atspi-misc-private.h \
92         atspi-object.c \
93         atspi-object.h \
94         atspi-private.h \
95         atspi-registry.c \
96         atspi-registry.h \
97         atspi-relation.c \
98         atspi-relation.h \
99         atspi-selection.c \
100         atspi-selection.h \
101         atspi-stateset.c \
102         atspi-stateset.h \
103         atspi-table.c \
104         atspi-table-cell.c \
105         atspi-table.h \
106         atspi-text.c \
107         atspi-text.h \
108         atspi-types.h \
109         atspi-value.c \
110         atspi-value.h
111
112 BUILT_SOURCES = \
113         atspi-enum-types.c \
114         atspi-enum-types.h
115
116 #CLEANFILES = atspi-constants.h
117
118 #atspi-constants.h: $(top_srcdir)/xml/spec.xml $(top_srcdir)/tools/c-constants-gen.py
119 #       python $(top_srcdir)/tools/c-constants-gen.py Atspi $(top_srcdir)/xml/spec.xml atspi-constants
120
121 ENUM_TYPES = \
122         atspi-constants.h \
123         atspi-types.h
124
125 atspi-enum-types.h: atspi-enum-types.h.template $(ENUM_TYPES) $(GLIB_MKENUMS)
126         $(AM_V_GEN) (cd $(srcdir) && $(GLIB_MKENUMS) --template atspi-enum-types.h.template $(ENUM_TYPES)) > $@
127
128 atspi-enum-types.c: atspi-enum-types.c.template $(ENUM_TYPES) $(GLIB_MKENUMS)
129         $(AM_V_GEN) (cd $(srcdir) && $(GLIB_MKENUMS) --template atspi-enum-types.c.template $(ENUM_TYPES)) > $@
130
131 -include $(INTROSPECTION_MAKEFILE)
132 INTROSPECTION_GIRS =
133 INTROSPECTION_SCANNER_ARGS = --add-include-path=$(srcdir) --warn-all
134 INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)
135
136 EXTRA_DIST = \
137         atspi-enum-types.c.template \
138         atspi-enum-types.h.template
139
140 if HAVE_INTROSPECTION
141 Atspi-2.0.gir: libatspi.la
142 Atspi_2_0_gir_INCLUDES = GLib-2.0 GObject-2.0
143 Atspi_2_0_gir_PACKAGES = dbus-1
144 Atspi_2_0_gir_EXPORT_PACKAGES = atspi-2
145 Atspi_2_0_gir_CFLAGS = -I$(top_builddir) -I$(top_srcdir)
146 Atspi_2_0_gir_LIBS = libatspi.la $(top_builddir)/dbind/libdbind.la
147 Atspi_2_0_gir_FILES = $(libatspi_la_SOURCES)
148 Atspi_2_0_gir_SCANNERFLAGS = --namespace Atspi --nsversion=2.0
149 INTROSPECTION_SCANNER_ARGS += --c-include='atspi/atspi.h'
150 INTROSPECTION_GIRS += Atspi-2.0.gir
151
152 girdir = $(datadir)/gir-1.0
153 gir_DATA = $(INTROSPECTION_GIRS)
154
155 typelibdir = $(libdir)/girepository-1.0
156 typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
157
158 CLEANFILES = \
159     $(gir_DATA) \
160     $(typelib_DATA)
161
162 endif
163
164 -include $(top_srcdir)/git.mk