annotationparser: correct "maximium" in error messages
[platform/upstream/gobject-introspection.git] / tests / Makefile.am
1 include $(top_srcdir)/common.mk
2
3 SUBDIRS = . scanner repository offsets warn
4 DIST_SUBDIRS = $(SUBDIRS)
5 if BUILD_DOCTOOL
6 SUBDIRS += doctool
7 else
8 DIST_SUBDIRS += doctool
9 endif
10
11 EXTRA_DIST=
12 BUILT_SOURCES=
13 CLEANFILES=
14
15 INCLUDES = $(GOBJECT_CFLAGS)
16 LIBADD = $(GOBJECT_LIBS)
17
18 testsdir = $(datadir)/gobject-introspection-1.0/tests
19 tests_DATA =                \
20     everything.c            \
21     everything.h            \
22     gimarshallingtests.c    \
23     gimarshallingtests.h
24
25 check_LTLIBRARIES = libeverything-1.0.la libgimarshallingtests-1.0.la
26
27 libeverything_1_0_la_SOURCES = everything.c
28 libgimarshallingtests_1_0_la_SOURCES = gimarshallingtests.c
29
30 EXTRA_DIST += gimarshallingtests.h
31
32 BUILT_SOURCES += everything.c everything.h
33
34 CLEANFILES += \
35     $(BUILT_SOURCES) \
36     everything-stamp.h \
37     Everything-1.0.typelib \
38     GIMarshallingTests-1.0.typelib
39
40 everything-stamp.h: Makefile
41         $(AM_V_GEN) $(INTROSPECTION_SCANNER) $(INTROSPECTION_SCANNER_ARGS) --generate-typelib-tests=Everything,everything.h,everything.c
42         touch $@
43
44 everything.c: everything-stamp.h
45         @true
46
47 everything.h: everything-stamp.h
48         @true
49
50 Everything-1.0.gir: libeverything-1.0.la Makefile
51         $(AM_V_GEN) $(INTROSPECTION_SCANNER) $(INTROSPECTION_SCANNER_ARGS) --warn-all --warn-error --reparse-validate \
52         --namespace=Everything --nsversion=1.0 \
53         --libtool="$(LIBTOOL)" \
54         --add-include-path=$(top_builddir) --include=Gio-2.0 \
55         --library=libeverything-1.0.la --output=$@ \
56         everything.h everything.c
57
58 GIMarshallingTests-1.0.gir: libgimarshallingtests-1.0.la Makefile
59         $(AM_V_GEN) $(INTROSPECTION_SCANNER) $(INTROSPECTION_SCANNER_ARGS) --warn-all --warn-error --reparse-validate \
60         --namespace=GIMarshallingTests --symbol-prefix=gi_marshalling_tests --nsversion=1.0 \
61         --libtool="$(LIBTOOL)" \
62         --add-include-path=$(top_builddir) --include=Gio-2.0 \
63         --library=libgimarshallingtests-1.0.la  --output=$@ \
64         --c-include="tests/gimarshallingtests.h" \
65         $(srcdir)/gimarshallingtests.h $(srcdir)/gimarshallingtests.c
66
67 %.typelib: %.gir
68         $(AM_V_GEN) $(INTROSPECTION_COMPILER) $(INTROSPECTION_COMPILER_ARGS) $< -o $@
69
70 check: Everything-1.0.typelib GIMarshallingTests-1.0.typelib
71