Imported Upstream version 1.39.90
[platform/upstream/gobject-introspection.git] / Makefile-girepository.am
1 EXTRA_DIST +=                                           \
2         girepository/docs.c
3
4 girepodir = $(includedir)/gobject-introspection-1.0/
5 girepo_HEADERS =                                        \
6         girepository/giarginfo.h                        \
7         girepository/gibaseinfo.h                       \
8         girepository/gicallableinfo.h                   \
9         girepository/giconstantinfo.h                   \
10         girepository/gienuminfo.h                       \
11         girepository/gifieldinfo.h                      \
12         girepository/gifunctioninfo.h                   \
13         girepository/giinterfaceinfo.h                  \
14         girepository/giobjectinfo.h                     \
15         girepository/gipropertyinfo.h                   \
16         girepository/giregisteredtypeinfo.h             \
17         girepository/girepository.h                     \
18         girepository/girffi.h                           \
19         girepository/gisignalinfo.h                     \
20         girepository/gistructinfo.h                     \
21         girepository/gitypeinfo.h                       \
22         girepository/gitypelib.h                        \
23         girepository/gitypes.h                          \
24         girepository/giunioninfo.h                      \
25         girepository/givfuncinfo.h
26
27 lib_LTLIBRARIES += libgirepository-1.0.la
28 noinst_LTLIBRARIES += libgirepository-internals.la libgirepository-gthash.la
29
30 libgirepository_gthash_la_SOURCES =                             \
31         girepository/gthash.c
32 libgirepository_gthash_la_CFLAGS = $(GIREPO_CFLAGS) -I$(top_srcdir)/girepository
33 libgirepository_gthash_la_LIBADD = libcmph.la $(GIREPO_LIBS)
34
35 libgirepository_internals_la_SOURCES =                          \
36         girepository/girmodule.c                                \
37         girepository/girmodule.h                                \
38         girepository/girnode.c                                  \
39         girepository/girnode.h                                  \
40         girepository/giroffsets.c                               \
41         girepository/girparser.c                                \
42         girepository/girparser.h                                \
43         girepository/girwriter.c                                \
44         girepository/girwriter.h
45
46 libgirepository_internals_la_CFLAGS = $(GIREPO_CFLAGS) -I$(top_srcdir)/girepository
47 libgirepository_internals_la_LIBADD = libgirepository-gthash.la $(GIREPO_LIBS)
48
49 libgirepository_1_0_la_SOURCES =                        \
50         girepository/gdump.c                            \
51         girepository/giarginfo.c                        \
52         girepository/gibaseinfo.c                       \
53         girepository/gicallableinfo.c                   \
54         girepository/giconstantinfo.c                   \
55         girepository/gienuminfo.c                       \
56         girepository/gifieldinfo.c                      \
57         girepository/gifunctioninfo.c                   \
58         girepository/ginvoke.c                          \
59         girepository/giinterfaceinfo.c                  \
60         girepository/giobjectinfo.c                     \
61         girepository/gipropertyinfo.c                   \
62         girepository/giregisteredtypeinfo.c             \
63         girepository/girepository.c                     \
64         girepository/girepository-private.h             \
65         girepository/girffi.c                           \
66         girepository/girffi.h                           \
67         girepository/gisignalinfo.c                     \
68         girepository/gistructinfo.c                     \
69         girepository/gitypeinfo.c                       \
70         girepository/gitypelib.c                        \
71         girepository/gitypelib-internal.h               \
72         girepository/giunioninfo.c                      \
73         girepository/givfuncinfo.c
74
75 libgirepository_1_0_la_CPPFLAGS = $(GIREPO_CFLAGS) -I$(top_srcdir)/girepository -DG_IREPOSITORY_COMPILATION
76 libgirepository_1_0_la_LIBADD = libgirepository-gthash.la $(GIREPO_LIBS)
77 libgirepository_1_0_la_LDFLAGS = \
78         $(EXTRA_LINK_FLAGS) \
79         -no-undefined -version-number 1:0:0 \
80         -export-symbols $(srcdir)/girepository/girepository.symbols
81
82 gdumpdir = $(datadir)/gobject-introspection-1.0/
83 gdump_DATA = girepository/gdump.c
84
85 if !OS_WIN32
86 noinst_PROGRAMS += gi-dump-types
87
88 gi_dump_types_SOURCES = girepository/gdump.c girepository/gi-dump-types.c
89 gi_dump_types_CFLAGS = $(GIO_UNIX_CFLAGS) $(GMODULE_CFLAGS)
90 gi_dump_types_LDADD = $(GIO_UNIX_LIBS) $(GMODULE_LIBS)
91 endif
92
93 EXTRA_PROGRAMS += gthash-test
94 CLEANFILES += gthash-test
95 TESTS += gthash-test
96
97 gthash_test_SOURCES = girepository/gthash.c girepository/gthash-test.c
98 gthash_test_CFLAGS = -I$(top_srcdir)/girepository $(GOBJECT_CFLAGS)
99 gthash_test_LDADD = libcmph.la libgirepository-1.0.la $(GOBJECT_LIBS)