summaryrefslogtreecommitdiffstats
path: root/subprojects/libgd/Makefile.am
blob: 5a071446a431bb41d7109b5c537b5e3303b723a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
AUTOMAKE_OPTIONS=subdir-objects
NULL =
CLEANFILES =
MAINTAINERCLEANFILES =
EXTRA_DIST =
noinst_DATA =

AM_CPPFLAGS =					\
        -I$(top_srcdir)				\
        -DPREFIX=\"$(prefix)\"			\
        -DLIBDIR=\"$(libdir)\"			\
        -DG_LOG_DOMAIN=\"libgd\"		\
        -DG_DISABLE_DEPRECATED			\
        $(LIBGD_CFLAGS)				\
        $(NULL)

noinst_PROGRAMS =

if LIBGD_STATIC
noinst_LTLIBRARIES = libgd.la
else
pkglib_LTLIBRARIES = libgd.la
endif

libgd_la_LIBADD = $(LIBGD_LIBS) $(LIBM)
libgd_la_LDFLAGS = -avoid-version
libgd_la_SOURCES = libgd/gd.h
nodist_libgd_la_SOURCES =

catalog_sources =				\
	libgd/gd-types-catalog.c		\
	libgd/gd-types-catalog.h		\
	$(NULL)

nodist_libgd_la_SOURCES += $(catalog_sources)
EXTRA_DIST += $(catalog_sources)

if LIBGD_GTK_HACKS
gtk_hacks_sources =                             \
        libgd/gd-icon-utils.c		        \
        libgd/gd-icon-utils.h			\
        $(NULL)

nodist_libgd_la_SOURCES += $(gtk_hacks_sources)
EXTRA_DIST += $(gtk_hacks_sources)
endif

if LIBGD__BOX_COMMON
box_common_sources =				\
	libgd/gd-main-box-child.c		\
	libgd/gd-main-box-child.h		\
	libgd/gd-main-box-generic.c		\
	libgd/gd-main-box-generic.h		\
	libgd/gd-main-box-item.c		\
	libgd/gd-main-box-item.h		\
	$(NULL)

nodist_libgd_la_SOURCES += $(box_common_sources)
EXTRA_DIST += $(box_common_sources)
endif

if LIBGD_MAIN_ICON_BOX
main_icon_box_sources =				\
	libgd/gd-main-icon-box.c		\
	libgd/gd-main-icon-box.h		\
	libgd/gd-main-icon-box-child.c		\
	libgd/gd-main-icon-box-child.h		\
	libgd/gd-main-icon-box-icon.c		\
	libgd/gd-main-icon-box-icon.h		\
	$(NULL)

nodist_libgd_la_SOURCES += $(main_icon_box_sources)
EXTRA_DIST += $(main_icon_box_sources)
endif

if LIBGD_MAIN_BOX
main_box_sources =				\
	libgd/gd-main-box.c			\
	libgd/gd-main-box.h			\
	$(NULL)

nodist_libgd_la_SOURCES += $(main_box_sources)
EXTRA_DIST += $(main_box_sources)
endif

if LIBGD__VIEW_COMMON
view_common_sources =				\
	libgd/gd-main-view-generic.c		\
	libgd/gd-main-view-generic.h		\
	libgd/gd-styled-text-renderer.c		\
	libgd/gd-styled-text-renderer.h		\
	libgd/gd-two-lines-renderer.c		\
	libgd/gd-two-lines-renderer.h		\
	$(NULL)

nodist_libgd_la_SOURCES += $(view_common_sources)
EXTRA_DIST += $(view_common_sources)
endif

if LIBGD_MAIN_ICON_VIEW
main_icon_view_sources =			\
	libgd/gd-main-icon-view.c		\
	libgd/gd-main-icon-view.h		\
	libgd/gd-toggle-pixbuf-renderer.c	\
	libgd/gd-toggle-pixbuf-renderer.h	\
	$(NULL)

nodist_libgd_la_SOURCES += $(main_icon_view_sources)
EXTRA_DIST += $(main_icon_view_sources)
endif

if LIBGD_MAIN_LIST_VIEW
main_list_view_sources =			\
	libgd/gd-main-list-view.c		\
	libgd/gd-main-list-view.h		\
	$(NULL)

nodist_libgd_la_SOURCES += $(main_list_view_sources)
EXTRA_DIST += $(main_list_view_sources)
endif

if LIBGD_MAIN_VIEW
main_view_sources =				\
	libgd/gd-main-view.c			\
	libgd/gd-main-view.h			\
	$(NULL)

nodist_libgd_la_SOURCES += $(main_view_sources)
EXTRA_DIST += $(main_view_sources)
endif

if LIBGD_MARGIN_CONTAINER
margin_container_sources =			\
	libgd/gd-margin-container.c		\
	libgd/gd-margin-container.h		\
	$(NULL)

nodist_libgd_la_SOURCES += $(margin_container_sources)
EXTRA_DIST += $(margin_container_sources)
endif

if LIBGD_NOTIFICATION
notification_sources =				\
	libgd/gd-notification.c			\
	libgd/gd-notification.h			\
	$(NULL)

nodist_libgd_la_SOURCES += $(notification_sources)
EXTRA_DIST += $(notification_sources)
endif

if LIBGD_TAGGED_ENTRY
tagged_entry_sources =				\
	libgd/gd-tagged-entry.c			\
	libgd/gd-tagged-entry.h			\
	$(NULL)

nodist_libgd_la_SOURCES += $(tagged_entry_sources)
EXTRA_DIST += $(tagged_entry_sources)

noinst_PROGRAMS +=				\
	test-tagged-entry			\
	test-tagged-entry-2			\
	$(null)

test_tagged_entry_SOURCES =				\
	test-tagged-entry.c				\
	$(NULL)
test_tagged_entry_LDADD =				\
	$(LIBGD_LIBS)				\
	libgd.la				\
	$(NULL)

test_tagged_entry_2_SOURCES =			\
	test-tagged-entry-2.c			\
	$(NULL)
test_tagged_entry_2_LDADD =			\
	$(LIBGD_LIBS)				\
	libgd.la				\
	$(NULL)
endif

if LIBGD_GIR
include $(INTROSPECTION_MAKEFILE)
INTROSPECTION_GIRS = Gd-1.0.gir

Gd-1.0.gir: libgd.la Makefile
Gd_1_0_gir_NAMESPACE = Gd
Gd_1_0_gir_VERSION = 1.0
Gd_1_0_gir_LIBS = libgd.la
Gd_1_0_gir_CFLAGS = $(AM_CPPFLAGS)
Gd_1_0_gir_SCANNERFLAGS =			\
       --warn-all				\
       --symbol-prefix=gd			\
       --identifier-prefix=Gd			\
        --c-include="libgd/gd.h"	        \
       $(NULL)
Gd_1_0_gir_INCLUDES = $(LIBGD_GIR_INCLUDES)
Gd_1_0_gir_FILES = $(nodist_libgd_la_SOURCES)

if LIBGD_STATIC
noinst_DATA += Gd-1.0.gir
CLEANFILES += Gd-1.0.gir
else
girdir= $(pkgdatadir)/gir-1.0
typelibdir= $(pkglibdir)/girepository-1.0

gir_DATA = $(INTROSPECTION_GIRS)
typelib_DATA = $(gir_DATA:.gir=.typelib)

CLEANFILES += $(gir_DATA) $(typelib_DATA)
endif
endif

if LIBGD_VAPI
VAPIS = gd-1.0.vapi

gd-1.0.vapi: Gd-1.0.gir
	$(AM_V_GEN)$(VAPIGEN)			\
		--library gd-1.0		\
		--pkg gtk+-3.0			\
		$<
#This 'touch' is a workaround for vapigen not touching the dest file if
#its content hasn't changed, which causes the rule to generate the .vapi
#file to always trigger
	@touch $@

noinst_DATA += $(VAPIS)
CLEANFILES += $(VAPIS)
endif