Makefile.am 14.9 KB
Newer Older
1
## Makefile.am for gtk+/gdk
2
include $(top_srcdir)/Makefile.decl
3
-include $(INTROSPECTION_MAKEFILE)
Johan Dahlin's avatar
Johan Dahlin committed
4
INTROSPECTION_GIRS =
5 6
INTROSPECTION_SCANNER_ENV = \
   CC="$(CC)"
Johan Dahlin's avatar
Johan Dahlin committed
7
INTROSPECTION_SCANNER_ARGS = \
8 9
	--add-include-path=../gdk \
	--warn-all
Johan Dahlin's avatar
Johan Dahlin committed
10 11
INTROSPECTION_COMPILER_ARGS = \
   --includedir=$(srcdir) \
12
   --includedir=.
Elliot Lee's avatar
Elliot Lee committed
13

14
SUBDIRS = $(GDK_BACKENDS) .
15

16
DIST_SUBDIRS = win32 x11 quartz broadway wayland mir
Tor Lillqvist's avatar
Tor Lillqvist committed
17

18 19
CLEANFILES =

20
EXTRA_DIST += 			\
21
	keynames.txt		\
22
	keynames-translate.txt	\
23
	keyname-table.h		\
24
	gdkkeynames.c		\
25
	gen-keyname-table.pl	\
26
	gdkconfig.h.win32	\
27
	gdkconfig.h.win32_broadway	\
28
	gdkkeysyms-update.pl	\
29
	gdkmarshalers.list	\
30
	gdkwindowimpl.h		\
31
	makefile.msc		\
32 33
	gdkenumtypes.c.template	\
	gdkenumtypes.h.template	\
Matthias Clasen's avatar
Matthias Clasen committed
34
	gdkversionmacros.h.in
35

36
GDK_CFLAGS_DEFINES =	\
Owen Taylor's avatar
Owen Taylor committed
37
	-DG_LOG_DOMAIN=\"Gdk\"		\
38 39 40 41 42
	-DGDK_COMPILATION


AM_CPPFLAGS =				\
	$(GDK_CFLAGS_DEFINES)		\
43
	-I$(top_builddir)		\
Owen Taylor's avatar
Owen Taylor committed
44
	-I$(top_builddir)/gdk		\
45
	-I$(top_srcdir)			\
46
	$(GTK_DEBUG_FLAGS)		\
47
	$(GDK_DEP_CFLAGS)
48 49

# libtool stuff: set version and export symbols for resolving
50 51
# since automake doesn't support conditionalized libsomething_la_LDFLAGS
# we use the general approach here
52 53 54 55 56
LDADD = 					\
	$(GTK_LINK_FLAGS)			\
	-version-info $(LT_VERSION_INFO)	\
	-export-dynamic 			\
	-rpath $(libdir) 			\
57
	$(no_undefined)
58

59 60 61
#
# setup source file variables
#
Owen Taylor's avatar
Started  
Owen Taylor committed
62
#
63
# GDK header files for public installation (non-generated)
Owen Taylor's avatar
Started  
Owen Taylor committed
64
#
Matthias Clasen's avatar
Matthias Clasen committed
65
#
66
gdk_public_h_sources = 				\
67
	gdk.h					\
68
	gdk-autocleanup.h			\
69
	gdkapplaunchcontext.h			\
70
	gdkcairo.h				\
71
	gdkcursor.h				\
72
	gdkdevice.h				\
73
	gdkdevicetool.h				\
74
	gdkdevicemanager.h			\
75
	gdkdisplay.h				\
76
	gdkdisplaymanager.h			\
77
	gdkdnd.h				\
Emmanuele Bassi's avatar
Emmanuele Bassi committed
78
	gdkdrawingcontext.h			\
79
	gdkevents.h				\
80
	gdkframetimings.h			\
81
	gdkglcontext.h				\
82
	gdkkeys.h				\
83
	gdkkeysyms.h				\
84
	gdkkeysyms-compat.h			\
85
	gdkmain.h				\
Matthias Clasen's avatar
Matthias Clasen committed
86
	gdkmonitor.h				\
87
	gdkpango.h				\
Owen W. Taylor's avatar
Owen W. Taylor committed
88
	gdkframeclock.h				\
89
	gdkpixbuf.h				\
90
	gdkprivate.h				\
91
	gdkproperty.h				\
92
	gdkrectangle.h				\
93
	gdkrgba.h				\
94
	gdkscreen.h				\
Carlos Garnacho's avatar
Carlos Garnacho committed
95
	gdkseat.h				\
96
	gdkselection.h				\
97
	gdktestutils.h				\
98
	gdkthreads.h				\
99 100
	gdktypes.h				\
	gdkvisual.h				\
101
	gdkwindow.h
102

Matthias Clasen's avatar
Matthias Clasen committed
103 104 105 106 107 108 109
deprecated_h_sources =				\
	deprecated/gdkcolor.h

gdk_h_sources =					\
	$(gdk_public_h_sources)			\
	$(deprecated_h_sources)

110
gdk_private_headers = 				\
111
	gdk-private.h				\
112
	gdkapplaunchcontextprivate.h		\
113
	gdkcursorprivate.h			\
114
	gdkdevicemanagerprivate.h		\
115
	gdkdeviceprivate.h			\
116
	gdkdevicetoolprivate.h			\
117 118 119
	gdkdisplaymanagerprivate.h		\
	gdkdisplayprivate.h			\
	gdkdndprivate.h				\
Emmanuele Bassi's avatar
Emmanuele Bassi committed
120
	gdkdrawingcontextprivate.h		\
Owen W. Taylor's avatar
Owen W. Taylor committed
121
	gdkframeclockidle.h			\
122
	gdkframeclockprivate.h			\
123
	gdkglcontextprivate.h			\
124
	gdkmonitorprivate.h			\
125
	gdkscreenprivate.h			\
Carlos Garnacho's avatar
Carlos Garnacho committed
126
	gdkseatprivate.h			\
Carlos Garnacho's avatar
Carlos Garnacho committed
127
	gdkseatdefaultprivate.h			\
128
	gdkinternals.h				\
129
	gdkintl.h				\
130
	gdkkeysprivate.h			\
131 132
	gdkvisualprivate.h			\
	gdkx.h
133

Matthias Clasen's avatar
Matthias Clasen committed
134 135 136
deprecated_c_sources =				\
	deprecated/gdkcolor.c

137
gdk_c_sources = 				\
Matthias Clasen's avatar
Matthias Clasen committed
138
	$(deprecated_c_sources)			\
139
	gdk-private.c				\
140 141 142 143
	gdk.c					\
	gdkapplaunchcontext.c			\
	gdkcairo.c				\
	gdkcursor.c				\
144
	gdkdeprecated.c				\
145
	gdkdevice.c				\
146
	gdkdevicetool.c				\
147 148 149 150
	gdkdevicemanager.c			\
	gdkdisplay.c				\
	gdkdisplaymanager.c			\
	gdkdnd.c				\
Emmanuele Bassi's avatar
Emmanuele Bassi committed
151
	gdkdrawingcontext.c			\
152
	gdkevents.c     			\
153
	gdkframetimings.c			\
154 155
	gdkgl.c					\
	gdkglcontext.c				\
156 157 158
	gdkglobals.c				\
	gdkkeys.c				\
	gdkkeyuni.c				\
Matthias Clasen's avatar
Matthias Clasen committed
159
	gdkmonitor.c				\
160
	gdkoffscreenwindow.c			\
Owen W. Taylor's avatar
Owen W. Taylor committed
161 162
	gdkframeclock.c				\
	gdkframeclockidle.c			\
163 164
	gdkpango.c				\
	gdkpixbuf-drawable.c			\
165
	gdkproperty.c				\
166 167 168
	gdkrectangle.c				\
	gdkrgba.c				\
	gdkscreen.c				\
Carlos Garnacho's avatar
Carlos Garnacho committed
169
	gdkseat.c				\
Carlos Garnacho's avatar
Carlos Garnacho committed
170
	gdkseatdefault.c			\
171 172 173
	gdkselection.c				\
	gdkvisual.c				\
	gdkwindow.c				\
174
	gdkwindowimpl.c
175

176
gdk_built_sources = 				\
177
	gdkenumtypes.h				\
178 179 180
	gdkenumtypes.c				\
	gdkmarshalers.h 			\
	gdkmarshalers.c				\
181 182
	gdkresources.h				\
	gdkresources.c				\
183
	gdkversionmacros.h
184

185
#
186
# setup GDK sources and their dependencies
187
#
188

189
gdkincludedir = $(includedir)/gtk-3.0/gdk
190 191
gdkinclude_HEADERS = $(gdk_public_h_sources)
nodist_gdkinclude_HEADERS = gdkconfig.h gdkenumtypes.h gdkversionmacros.h
192

Matthias Clasen's avatar
Matthias Clasen committed
193 194 195
deprecatedincludedir = $(includedir)/gtk-3.0/gdk/deprecated
deprecatedinclude_HEADERS = $(deprecated_h_sources)

Matthias Clasen's avatar
Matthias Clasen committed
196 197 198
common_sources = 		\
	$(gdk_private_headers)	\
	$(gdk_c_sources)	\
199
	gdkenumtypes.c		\
200
	gdkmarshalers.c		\
201 202 203
	gdkmarshalers.h		\
	gdkresources.h		\
	gdkresources.c
204

Matthias Clasen's avatar
Matthias Clasen committed
205
libgdk_3_la_SOURCES = $(common_sources)
206
libgdk_3_la_CFLAGS = $(AM_CFLAGS) $(GDK_HIDDEN_VISIBILITY_CFLAGS)
Matthias Clasen's avatar
Matthias Clasen committed
207 208
libgdk_3_la_LIBADD = $(GDK_DEP_LIBS)
libgdk_3_la_LDFLAGS = $(LDADD)
209

210
if USE_X11
Matthias Clasen's avatar
Matthias Clasen committed
211
libgdk_3_la_LIBADD += x11/libgdk-x11.la
212 213 214
endif # USE_X11

if USE_QUARTZ
Benjamin Otte's avatar
Benjamin Otte committed
215
libgdk_3_la_CFLAGS += -xobjective-c
Matthias Clasen's avatar
Matthias Clasen committed
216
libgdk_3_la_LIBADD += quartz/libgdk-quartz.la
217
endif # USE_QUARTZ
218

219
if USE_WIN32
Matthias Clasen's avatar
Matthias Clasen committed
220
libgdk_3_la_LIBADD += win32/libgdk-win32.la
221 222
libgdk_3_la_DEPENDENCIES = win32/libgdk-win32.la win32/rc/gdk-win32-res.o
libgdk_3_la_LDFLAGS += -Wl,win32/rc/gdk-win32-res.o
223
endif # USE_WIN32
Anders Carlsson's avatar
Anders Carlsson committed
224

225
if USE_BROADWAY
226
libgdk_3_la_LIBADD += broadway/libgdk-broadway.la
227
endif # USE_BROADWAY
228

Kristian Høgsberg's avatar
Kristian Høgsberg committed
229
if USE_WAYLAND
230
libgdk_3_la_LIBADD += wayland/libgdk-wayland.la
Kristian Høgsberg's avatar
Kristian Høgsberg committed
231 232
endif

233 234 235 236
if USE_MIR
libgdk_3_la_LIBADD += mir/libgdk-mir.la
endif

237 238
if HAVE_INTROSPECTION

Matthias Clasen's avatar
Matthias Clasen committed
239
introspection_files = 		\
Matthias Clasen's avatar
Matthias Clasen committed
240
	$(filter-out gdkkeysyms-compat.h, $(gdk_h_sources))	\
Matthias Clasen's avatar
Matthias Clasen committed
241 242
	$(gdk_c_sources)	\
        gdkenumtypes.c		\
243
        gdkenumtypes.h
244

Matthias Clasen's avatar
Matthias Clasen committed
245
Gdk-3.0.gir: libgdk-3.la Makefile
246 247
Gdk_3_0_gir_SCANNERFLAGS = 	\
	--c-include="gdk/gdk.h"
248
Gdk_3_0_gir_INCLUDES = Gio-2.0 GdkPixbuf-2.0 Pango-1.0 cairo-1.0
Matthias Clasen's avatar
Matthias Clasen committed
249
Gdk_3_0_gir_LIBS = libgdk-3.la
250
Gdk_3_0_gir_FILES = $(introspection_files)
251
Gdk_3_0_gir_CFLAGS = $(AM_CPPFLAGS)
252
Gdk_3_0_gir_EXPORT_PACKAGES = gdk-3.0
253
INTROSPECTION_GIRS += Gdk-3.0.gir
254 255 256
if OS_WIN32
Gdk_3_0_gir_CFLAGS += -I$(srcdir)/win32 -I$(srcdir)
endif
257
if USE_X11
Matthias Clasen's avatar
Matthias Clasen committed
258 259 260 261
x11_introspection_files = 		\
	x11/gdkapplaunchcontext-x11.c	\
	x11/gdkasync.c			\
	x11/gdkcursor-x11.c		\
262 263
	x11/gdkdevice-core-x11.c	\
	x11/gdkdevicemanager-core-x11.c	\
Matthias Clasen's avatar
Matthias Clasen committed
264
	x11/gdkdevicemanager-x11.c	\
265
	x11/gdkdevicemanager-xi2.c	\
Matthias Clasen's avatar
Matthias Clasen committed
266 267
	x11/gdkdevice-xi2.c		\
	x11/gdkdisplay-x11.c		\
268
	x11/gdkdisplaymanager-x11.c	\
Matthias Clasen's avatar
Matthias Clasen committed
269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284
	x11/gdkdnd-x11.c		\
	x11/gdkeventsource.c		\
	x11/gdkeventtranslator.c	\
	x11/gdkgeometry-x11.c		\
	x11/gdkkeys-x11.c		\
	x11/gdkmain-x11.c		\
	x11/gdkproperty-x11.c		\
	x11/gdkscreen-x11.c		\
	x11/gdkselection-x11.c		\
	x11/gdksettings.c		\
	x11/gdktestutils-x11.c		\
	x11/gdkvisual-x11.c		\
	x11/gdkwindow-x11.c		\
	x11/gdkxftdefaults.c		\
	x11/gdkxid.c			\
	x11/xsettings-client.c		\
Matthias Clasen's avatar
Matthias Clasen committed
285
	x11/gdkx.h			\
286
	x11/gdkx11applaunchcontext.h	\
287
	x11/gdkx11cursor.h		\
288 289 290 291 292 293
	x11/gdkx11device.h		\
	x11/gdkx11device-core.h		\
	x11/gdkx11device-xi2.h		\
	x11/gdkx11devicemanager.h	\
	x11/gdkx11devicemanager-core.h	\
	x11/gdkx11devicemanager-xi2.h	\
294
	x11/gdkx11display.h		\
295 296 297
	x11/gdkx11displaymanager.h	\
	x11/gdkx11dnd.h			\
	x11/gdkx11keys.h		\
298
	x11/gdkx11property.h		\
299
	x11/gdkx11screen.h		\
300
	x11/gdkx11selection.h		\
301
	x11/gdkx11utils.h		\
302
	x11/gdkx11visual.h		\
303
	x11/gdkx11window.h
304

Matthias Clasen's avatar
Matthias Clasen committed
305
GdkX11-3.0.gir: libgdk-3.la Gdk-3.0.gir Makefile
306
GdkX11_3_0_gir_SCANNERFLAGS = 		\
307
	--identifier-prefix=Gdk		\
308 309
	--c-include="gdk/gdkx.h"	\
	--include-uninstalled=$(top_builddir)/gdk/Gdk-3.0.gir
310
GdkX11_3_0_gir_INCLUDES = Gio-2.0 GdkPixbuf-2.0 Pango-1.0 xlib-2.0
Matthias Clasen's avatar
Matthias Clasen committed
311
GdkX11_3_0_gir_LIBS = libgdk-3.la
312
GdkX11_3_0_gir_FILES = $(x11_introspection_files)
313
GdkX11_3_0_gir_CFLAGS = $(AM_CPPFLAGS) -L$(top_builddir)/gdk
314
GdkX11_3_0_gir_EXPORT_PACKAGES = gdk-x11-3.0
315
INTROSPECTION_GIRS += GdkX11-3.0.gir
316

317 318
endif # USE_X11

319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348
w32_introspection_files =		\
	win32/gdkcursor-win32.c		\
	win32/gdkdevicemanager-win32.c	\
	win32/gdkdevice-virtual.c	\
	win32/gdkdevice-win32.c		\
	win32/gdkdevice-wintab.c	\
	win32/gdkdisplaymanager-win32.c	\
	win32/gdkdisplay-win32.c	\
	win32/gdkdnd-win32.c		\
	win32/gdkevents-win32.c		\
	win32/gdkgeometry-win32.c	\
	win32/gdkglobals-win32.c	\
	win32/gdkkeys-win32.c		\
	win32/gdkmain-win32.c		\
	win32/gdkproperty-win32.c	\
	win32/gdkscreen-win32.c		\
	win32/gdkselection-win32.c	\
	win32/gdktestutils-win32.c	\
	win32/gdkwin32.h		\
	win32/gdkwin32cursor.h		\
	win32/gdkwin32display.h		\
	win32/gdkwin32displaymanager.h	\
	win32/gdkwin32dnd.h		\
	win32/gdkwin32id.c		\
	win32/gdkwin32keys.h		\
	win32/gdkwin32misc.h		\
	win32/gdkwin32screen.h		\
	win32/gdkwin32window.h		\
	win32/gdkwindow-win32.c

349
if OS_WIN32
350 351 352 353 354 355 356 357 358 359 360 361 362
GdkWin32-3.0.gir: libgdk-3.la Gdk-3.0.gir Makefile
GdkWin32_3_0_gir_SCANNERFLAGS = \
	--identifier-prefix=Gdk		\
	--c-include="gdk/gdkwin32.h"	\
	--include-uninstalled=$(top_builddir)/gdk/Gdk-3.0.gir
GdkWin32_3_0_gir_INCLUDES = Gio-2.0 GdkPixbuf-2.0 Pango-1.0
GdkWin32_3_0_gir_LIBS = libgdk-3.la
GdkWin32_3_0_gir_FILES = $(w32_introspection_files)
GdkWin32_3_0_gir_CFLAGS = $(AM_CPPFLAGS) -L$(top_builddir)/gdk -I$(srcdir)/win32 -I$(srcdir)
INTROSPECTION_GIRS += GdkWin32-3.0.gir

endif # OS_WIN32

363
girdir = $(datadir)/gir-1.0
Javier Jardón's avatar
Javier Jardón committed
364
gir_DATA = $(INTROSPECTION_GIRS)
365

366
typelibsdir = $(libdir)/girepository-1.0
367
typelibs_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
368

Javier Jardón's avatar
Javier Jardón committed
369
CLEANFILES += $(gir_DATA) $(typelibs_DATA)
370 371

endif # HAVE_INTROSPECTION
372

373
if OS_WIN32
374 375 376 377
gdk.def: libgdk-3.la
	echo "LIBRARY libgdk-$(GTK_MAJOR_VERSION)-@LT_CURRENT_MINUS_AGE@" >$@
	echo "EXPORTS" >>$@
	objdump -p .libs/libgdk-$(GTK_MAJOR_VERSION)-@LT_CURRENT_MINUS_AGE@.dll | sed -n -e 's/\t\[\s\+\([0-9]\+\)\]\s\([A-Za-z_][A-Za-z0-9_]\)/\2/p' >>$@
378 379
install-def-file: gdk.def
	mkdir -p $(DESTDIR)$(libdir)
380
	$(INSTALL) gdk.def $(DESTDIR)$(libdir)/gdk-win32-3.0.def
381 382 383 384 385 386 387
uninstall-def-file:
	-rm $(DESTDIR)$(libdir)/gdk-win32-3.0.def
else
install-def-file:
uninstall-def-file:
endif

388 389 390
if MS_LIB_AVAILABLE
noinst_DATA = gdk-win32-$(GTK_API_VERSION).lib

Tom Schoonjans's avatar
Tom Schoonjans committed
391
gdk-win32-$(GTK_API_VERSION).lib: libgdk-3.la gdk.def
392
	lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgdk-win32-$(GTK_API_VERSION)-@LT_CURRENT_MINUS_AGE@.dll -def:gdk.def -out:$@
393 394

install-ms-lib:
395
	mkdir -p $(DESTDIR)$(libdir)
396 397 398 399 400 401 402 403 404
	$(INSTALL) gdk-win32-$(GTK_API_VERSION).lib $(DESTDIR)$(libdir)

uninstall-ms-lib:
	-rm $(DESTDIR)$(libdir)/gdk-win32-$(GTK_API_VERSION).lib
else
install-ms-lib:
uninstall-ms-lib:
endif

Matthias Clasen's avatar
Matthias Clasen committed
405
lib_LTLIBRARIES = libgdk-3.la
406

407
MAINTAINERCLEANFILES = $(gdk_built_sources) stamp-gdkenumtypes.h
408 409 410
EXTRA_DIST += \
	$(gdk_built_sources)	\
	fallback-c89.c
411

412 413
install-exec-hook:
if DISABLE_EXPLICIT_DEPS
Matthias Clasen's avatar
Matthias Clasen committed
414
	$(SHELL) $(top_srcdir)/sanitize-la.sh $(DESTDIR)$(libdir)/libgdk-3.la
415 416
endif

417 418
BUILT_SOURCES = \
	$(gdk_built_sources)			\
419 420 421
	gdkconfig.h

gdkenumtypes.h: stamp-gdkenumtypes.h
422
	@true
Matthias Clasen's avatar
Matthias Clasen committed
423
stamp-gdkenumtypes.h: $(gdk_h_sources) gdkenumtypes.h.template
424
	$(AM_V_GEN) ( cd $(srcdir) && $(GLIB_MKENUMS) --template gdkenumtypes.h.template \
Matthias Clasen's avatar
Matthias Clasen committed
425
		$(gdk_h_sources) ) >> xgen-geth \
426
	&& (cmp -s xgen-geth gdkenumtypes.h || cp xgen-geth gdkenumtypes.h ) \
427 428
	&& rm -f xgen-geth \
	&& echo timestamp > $(@F)
Matthias Clasen's avatar
Matthias Clasen committed
429
gdkenumtypes.c: $(gdk_h_sources) gdkenumtypes.c.template
430
	$(AM_V_GEN) ( cd $(srcdir) && $(GLIB_MKENUMS) --template gdkenumtypes.c.template \
Matthias Clasen's avatar
Matthias Clasen committed
431
		$(gdk_h_sources) ) > xgen-getc \
432
	&& cp xgen-getc gdkenumtypes.c  \
433
	&& rm -f xgen-getc
434

435
#
436 437
# Marshaller generation
#
438
gdkmarshalers.h: gdkmarshalers.list
439
	$(AM_V_GEN) $(GLIB_GENMARSHAL) --prefix=_gdk_marshal $(srcdir)/gdkmarshalers.list --header > gdkmarshalers-h.tmp \
440 441
	&& mv gdkmarshalers-h.tmp gdkmarshalers.h \
	|| ( rm -f gdkmarshalers-h.tmp && exit 1)
442
gdkmarshalers.c: gdkmarshalers.list
443 444
	$(AM_V_GEN) (echo "#include \"gdkmarshalers.h\""; \
	 $(GLIB_GENMARSHAL) --prefix=_gdk_marshal $(srcdir)/gdkmarshalers.list --body) > gdkmarshalers-c.tmp	\
445 446
	&& mv gdkmarshalers-c.tmp gdkmarshalers.c \
	|| ( rm -f gdkmarshalers-c.tmp && exit 1 )
447

448
gdkconfig.h: stamp-gc-h
449
	$(AM_V_GEN) if test -f gdkconfig.h; then :; \
450
	else rm -f stamp-gc-h; $(MAKE) stamp-gc-h; fi
451
stamp-gc-h: $(top_builddir)/config.status
Matthias Clasen's avatar
Matthias Clasen committed
452
	$(AM_V_at) cd $(top_builddir) && $(SHELL) ./config.status gdk/gdkconfig.h \
453
	&& echo timestamp > gdk/$(@F)
454

455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476
#
# Resources
#
gdk.gresource.xml: Makefile.am
	$(AM_V_GEN) echo "<?xml version='1.0' encoding='UTF-8'?>" > $@; \
	echo "<gresources>" >> $@; \
	echo "  <gresource prefix='/org/gtk/libgdk'>" >> $@; \
	for f in $(srcdir)/resources/glsl/*.glsl; do \
	  n=`basename $$f`; \
	  echo "    <file alias='glsl/$$n'>resources/glsl/$$n</file>" >> $@; \
	done; \
	echo "  </gresource>" >> $@; \
	echo "</gresources>" >> $@;

glsl_sources = \
	resources/glsl/gl3-texture-2d.fs.glsl \
	resources/glsl/gl3-texture-2d.vs.glsl \
	resources/glsl/gl3-texture-rect.fs.glsl \
	resources/glsl/gl3-texture-rect.vs.glsl \
	resources/glsl/gl2-texture-2d.fs.glsl \
	resources/glsl/gl2-texture-2d.fs.glsl \
	resources/glsl/gl2-texture-rect.vs.glsl \
Emmanuele Bassi's avatar
Emmanuele Bassi committed
477 478 479
	resources/glsl/gl2-texture-rect.vs.glsl \
	resources/glsl/gles2-texture.fs.glsl \
	resources/glsl/gles2-texture.vs.glsl
480 481 482 483 484 485 486 487 488 489 490 491 492

EXTRA_DIST += $(glsl_sources)
CLEANFILES += gdk.gresource.xml

resource_files = $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir) --generate-dependencies $(builddir)/gdk.gresource.xml)

gdkresources.h: gdk.gresource.xml
	$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) $< --target=$@ \
		--sourcedir=$(srcdir) --c-name _gdk --generate-header --manual-register
gdkresources.c: gdk.gresource.xml $(resource_files)
	$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) $< --target=$@ \
		--sourcedir=$(srcdir) --c-name _gdk --generate-source --manual-register

493
# ------------------- MSVC Build Items ----------------
494
MSVCPROJS = gdk-3
495

496 497 498
gdk_3_FILES = $(libgdk_3_la_SOURCES)
gdk_3_EXCLUDES = dummy
gdk_3_HEADERS_DIR = $(gdkincludedir)
499

500
gdk_3_HEADERS_INST = \
501 502 503 504
	$(gdkinclude_HEADERS)		\
	$(deprecatedinclude_HEADERS)	\
	$(nodist_gdkinclude_HEADERS)

505
gdk_3_HEADERS_EXCLUDES = dummy
506 507 508

include $(top_srcdir)/build/Makefile.msvcproj

509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544
if HAVE_INTROSPECTION
# Introspection Items for MSVC
MSVC_INTROSPECT_GIRS = Gdk-3.0.gir GdkWin32-3.0.gir

BASE_MSVC_GIR_CFLAGS =			\
	$(GDK_CFLAGS_DEFINES)		\
	-I../.. -I../../gdk -I.../../gdk/win32

INTROSPECTION_INTERMEDIATE_ITEMS = \
	$(top_builddir)/build/win32/Gdk-3.0.gir.msvc.introspect	\
	$(top_builddir)/build/win32/Gdk_3_0_gir_list			\
	$(top_builddir)/build/win32/GdkWin32-3.0.gir.msvc.introspect	\
	$(top_builddir)/build/win32/GdkWin32_3_0_gir_list

Gdk_3_0_gir_MSVC_FILES = $(introspection_files)
Gdk_3_0_gir_MSVC_EXPORT_PACKAGES = $(Gdk_3_0_gir_EXPORT_PACKAGES)
Gdk_3_0_gir_MSVC_INCLUDE_GIRS = $(Gdk_3_0_gir_INCLUDES)
Gdk_3_0_gir_MSVC_LIBS = gdk-3.0
Gdk_3_0_gir_MSVC_CFLAGS = $(BASE_MSVC_GIR_CFLAGS)
Gdk_3_0_gir_MSVC_SCANNERFLAGS = $(Gdk_3_0_gir_SCANNERFLAGS)

GdkWin32_3_0_gir_MSVC_FILES = $(w32_introspection_files)
GdkWin32_3_0_gir_MSVC_INCLUDE_GIRS = $(GdkWin32_3_0_gir_INCLUDES)
GdkWin32_3_0_gir_MSVC_LIBS = $(Gdk_3_0_gir_MSVC_LIBS)
GdkWin32_3_0_gir_MSVC_CFLAGS = $(BASE_MSVC_GIR_CFLAGS)
GdkWin32_3_0_gir_MSVC_SCANNERFLAGS =	\
	--identifier-prefix=Gdk		\
	--c-include="gdk/gdkwin32.h"	\
	--include-uninstalled=./Gdk-3.0.gir

include $(top_srcdir)/build/Makefile.msvc-introspection

else
INTROSPECTION_INTERMEDIATE_ITEMS =
endif

545
dist-hook: \
546
	$(top_builddir)/build/win32/vs9/gdk-3.vcproj	\
547 548
	$(top_builddir)/build/win32/vs9/gdk-3.headers	\
	$(INTROSPECTION_INTERMEDIATE_ITEMS)
549

550 551
DISTCLEANFILES = gdkconfig.h stamp-gc-h

552
install-data-local: install-ms-lib install-def-file
Tor Lillqvist's avatar
Tor Lillqvist committed
553

554
uninstall-local: uninstall-ms-lib uninstall-def-file
555 556 557 558 559 560 561 562
	rm -f $(DESTDIR)$(configexecincludedir)/gdkconfig.h

# if srcdir!=builddir, clean out maintainer-clean files from builddir
# this allows dist to pass.
distclean-local:
	if test $(srcdir) != .; then \
	  rm -f $(MAINTAINERCLEANFILES); \
	fi
Tor Lillqvist's avatar
Tor Lillqvist committed
563

Elliot Lee's avatar
Elliot Lee committed
564 565 566 567 568 569
.PHONY: files

files:
	@files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
	  echo $$p; \
	done
570 571

-include $(top_srcdir)/git.mk