16
-I$(srcdir)/deprecated \
18
-I$(srcdir)/driver/gl \
19
-I$(srcdir)/driver/gl/gl \
20
-I$(srcdir)/driver/gl/gles \
24
-DG_LOG_DOMAIN=\"Cogl\" \
26
-DCOGL_GL_LIBNAME=\"$(COGL_GL_LIBNAME)\" \
27
-DCOGL_GLES1_LIBNAME=\"$(COGL_GLES1_LIBNAME)\" \
28
-DCOGL_GLES2_LIBNAME=\"$(COGL_GLES2_LIBNAME)\" \
29
-DCOGL_LOCALEDIR=\""$(localedir)"\" \
32
if HAVE_COGL_DEFAULT_DRIVER
34
-DCOGL_DEFAULT_DRIVER=\"$(COGL_DEFAULT_DRIVER)\"
38
AM_CFLAGS = $(COGL_DEP_CFLAGS) $(COGL_EXTRA_CFLAGS) $(MAINTAINER_CFLAGS)
40
BUILT_SOURCES += cogl-defines.h cogl-egl-defines.h cogl-gl-header.h
41
DISTCLEANFILES += cogl-defines.h cogl-egl-defines.h cogl-gl-header.h
42
EXTRA_DIST += cogl-defines.h.in cogl-egl-defines.h.in cogl-gl-header.h.in
44
pc_files = mutter-cogl-1.0.pc
46
pkgconfigdir = $(libdir)/pkgconfig
47
pkgconfig_DATA = $(pc_files)
49
DISTCLEANFILES += $(pc_files)
52
deprecated/cogl-clip-state.h \
53
deprecated/cogl-fixed.h \
54
deprecated/cogl-material-compat.h \
55
deprecated/cogl-vertex-buffer.h \
56
deprecated/cogl-shader.h \
57
deprecated/cogl-clutter.h \
58
deprecated/cogl-type-casts.h \
59
deprecated/cogl-framebuffer-deprecated.h \
60
deprecated/cogl-texture-deprecated.h \
61
deprecated/cogl-auto-texture.h \
64
# public 1.x api headers
66
$(cogl_deprecated_h) \
78
# experimental 2.0 api headers
79
# Note: we don't run glib-mkenums over these headers
80
cogl_experimental_h = \
84
cogl-onscreen-template.h \
88
cogl-pipeline-state.h \
89
cogl-pipeline-layer-state.h \
94
cogl-attribute-buffer.h \
105
cogl-matrix-stack.h \
109
cogl-texture-2d-gl.h \
110
cogl-texture-rectangle.h \
111
cogl-texture-2d-sliced.h \
113
cogl-atlas-texture.h \
114
cogl-meta-texture.h \
115
cogl-primitive-texture.h \
118
cogl-pixel-buffer.h \
119
cogl2-experimental.h \
126
cogl_additional_experimental_h = \
132
cogl-gtype-private.h \
135
cogl_nodist_experimental_h = \
139
cogl_driver_sources = \
140
driver/nop/cogl-driver-nop.c \
141
driver/nop/cogl-framebuffer-nop-private.h \
142
driver/nop/cogl-framebuffer-nop.c \
143
driver/nop/cogl-attribute-nop-private.h \
144
driver/nop/cogl-attribute-nop.c \
145
driver/nop/cogl-clip-stack-nop-private.h \
146
driver/nop/cogl-clip-stack-nop.c \
147
driver/nop/cogl-texture-2d-nop-private.h \
148
driver/nop/cogl-texture-2d-nop.c \
152
cogl_gl_prototypes_h = \
153
gl-prototypes/cogl-gles2-functions.h \
154
gl-prototypes/cogl-core-functions.h \
155
gl-prototypes/cogl-in-gles-core-functions.h \
156
gl-prototypes/cogl-in-gles2-core-functions.h \
157
gl-prototypes/cogl-glsl-functions.h \
160
cogl_driver_sources += \
161
driver/gl/cogl-util-gl-private.h \
162
driver/gl/cogl-util-gl.c \
163
driver/gl/cogl-framebuffer-gl-private.h \
164
driver/gl/cogl-framebuffer-gl.c \
165
driver/gl/cogl-texture-gl-private.h \
166
driver/gl/cogl-texture-gl.c \
167
driver/gl/cogl-texture-2d-gl-private.h \
168
driver/gl/cogl-texture-2d-gl.c \
169
driver/gl/cogl-attribute-gl-private.h \
170
driver/gl/cogl-attribute-gl.c \
171
driver/gl/cogl-clip-stack-gl-private.h \
172
driver/gl/cogl-clip-stack-gl.c \
173
driver/gl/cogl-buffer-gl-private.h \
174
driver/gl/cogl-buffer-gl.c \
175
driver/gl/cogl-pipeline-opengl.c \
176
driver/gl/cogl-pipeline-opengl-private.h \
177
driver/gl/cogl-pipeline-fragend-glsl.c \
178
driver/gl/cogl-pipeline-fragend-glsl-private.h \
179
driver/gl/gl/cogl-pipeline-fragend-arbfp.c \
180
driver/gl/gl/cogl-pipeline-fragend-arbfp-private.h \
181
driver/gl/gl/cogl-pipeline-progend-fixed-arbfp.c \
182
driver/gl/gl/cogl-pipeline-progend-fixed-arbfp-private.h \
183
driver/gl/cogl-pipeline-fragend-fixed.c \
184
driver/gl/cogl-pipeline-fragend-fixed-private.h \
185
driver/gl/cogl-pipeline-vertend-glsl.c \
186
driver/gl/cogl-pipeline-vertend-glsl-private.h \
187
driver/gl/cogl-pipeline-vertend-fixed.c \
188
driver/gl/cogl-pipeline-vertend-fixed-private.h \
189
driver/gl/cogl-pipeline-progend-fixed.c \
190
driver/gl/cogl-pipeline-progend-fixed-private.h \
191
driver/gl/cogl-pipeline-progend-glsl.c \
192
driver/gl/cogl-pipeline-progend-glsl-private.h \
195
if COGL_DRIVER_GL_SUPPORTED
196
cogl_driver_sources += \
197
driver/gl/gl/cogl-driver-gl.c \
198
driver/gl/gl/cogl-texture-driver-gl.c \
202
if COGL_DRIVER_GLES_SUPPORTED
203
cogl_driver_sources += \
204
driver/gl/gles/cogl-driver-gles.c \
205
driver/gl/gles/cogl-texture-driver-gles.c \
209
# winsys sources, common to all backends
210
cogl_winsys_common_sources = \
211
winsys/cogl-winsys-private.h \
212
winsys/cogl-winsys.c \
217
$(cogl_driver_sources) \
218
$(cogl_winsys_common_sources) \
220
cogl-i18n-private.h \
222
cogl-debug-options.h \
224
cogl-gpu-info-private.h \
225
cogl-context-private.h \
227
cogl-renderer-private.h \
230
cogl-swap-chain-private.h \
233
cogl-onscreen-template-private.h \
234
cogl-onscreen-template.h \
235
cogl-onscreen-template.c \
236
cogl-display-private.h \
241
cogl-object-private.h \
246
cogl-bitmap-private.h \
248
cogl-bitmap-conversion.c \
249
cogl-bitmap-packing.h \
250
cogl-primitives-private.h \
253
cogl-bitmap-pixbuf.c \
256
cogl-feature-private.h \
257
cogl-feature-private.c \
258
cogl-color-private.h \
260
cogl-buffer-private.h \
262
cogl-pixel-buffer-private.h \
263
cogl-pixel-buffer.c \
264
cogl-index-buffer-private.h \
265
cogl-index-buffer.c \
266
cogl-attribute-buffer-private.h \
267
cogl-attribute-buffer.c \
268
cogl-indices-private.h \
270
cogl-attribute-private.h \
272
cogl-primitive-private.h \
277
cogl-quaternion-private.h \
279
cogl-matrix-private.h \
280
cogl-matrix-stack.c \
281
cogl-matrix-stack-private.h \
283
cogl-depth-state-private.h \
285
cogl-node-private.h \
287
cogl-pipeline-private.h \
288
cogl-pipeline-layer.c \
289
cogl-pipeline-layer-private.h \
290
cogl-pipeline-state.c \
291
cogl-pipeline-layer-state-private.h \
292
cogl-pipeline-layer-state.c \
293
cogl-pipeline-state-private.h \
294
cogl-pipeline-debug.c \
296
cogl-glsl-shader-private.h \
297
cogl-glsl-shader-boilerplate.h \
298
cogl-pipeline-snippet-private.h \
299
cogl-pipeline-snippet.c \
300
cogl-pipeline-cache.h \
301
cogl-pipeline-cache.c \
302
cogl-pipeline-hash-table.h \
303
cogl-pipeline-hash-table.c \
304
cogl-sampler-cache.c \
305
cogl-sampler-cache-private.h \
306
cogl-blend-string.c \
307
cogl-blend-string.h \
309
cogl-sub-texture-private.h \
310
cogl-texture-private.h \
311
cogl-texture-2d-private.h \
312
cogl-texture-2d-sliced-private.h \
313
cogl-texture-3d-private.h \
314
cogl-texture-driver.h \
318
cogl-texture-2d-sliced.c \
320
cogl-texture-rectangle-private.h \
321
cogl-texture-rectangle.c \
322
cogl-rectangle-map.h \
323
cogl-rectangle-map.c \
326
cogl-atlas-texture-private.h \
327
cogl-atlas-texture.c \
328
cogl-meta-texture.c \
329
cogl-primitive-texture.c \
334
cogl-journal-private.h \
336
cogl-frame-info-private.h \
338
cogl-framebuffer-private.h \
340
cogl-onscreen-private.h \
342
cogl-output-private.h \
350
cogl-gtype-private.h \
351
cogl-point-in-poly-private.h \
352
cogl-point-in-poly.c \
355
winsys/cogl-winsys-stub-private.h \
356
winsys/cogl-winsys-stub.c \
357
cogl-config-private.h \
361
cogl-snippet-private.h \
363
cogl-poll-private.h \
365
gl-prototypes/cogl-all-functions.h \
366
gl-prototypes/cogl-gles1-functions.h \
367
gl-prototypes/cogl-gles2-functions.h \
368
gl-prototypes/cogl-core-functions.h \
369
gl-prototypes/cogl-in-gles-core-functions.h \
370
gl-prototypes/cogl-in-gles1-core-functions.h \
371
gl-prototypes/cogl-in-gles2-core-functions.h \
372
gl-prototypes/cogl-fixed-functions.h \
373
gl-prototypes/cogl-glsl-functions.h \
374
cogl-memory-stack-private.h \
375
cogl-memory-stack.c \
376
cogl-magazine-private.h \
378
cogl-gles2-context-private.h \
379
cogl-gles2-context.c \
380
cogl-error-private.h \
382
cogl-closure-list-private.h \
383
cogl-closure-list.c \
385
cogl-fence-private.h \
386
deprecated/cogl-clip-state.c \
387
deprecated/cogl-fixed.c \
388
deprecated/cogl-vertex-buffer-private.h \
389
deprecated/cogl-vertex-buffer.c \
390
deprecated/cogl-material-compat.c \
391
deprecated/cogl-program.c \
392
deprecated/cogl-program-private.h \
393
deprecated/cogl-auto-texture.c \
394
deprecated/cogl-shader-private.h \
395
deprecated/cogl-shader.c \
396
deprecated/cogl-clutter.c \
397
deprecated/cogl-framebuffer-deprecated.c \
398
deprecated/cogl-texture-deprecated.c \
401
cogl_experimental_h += cogl-glib-source.h
402
cogl_sources_c += cogl-glib-source.c
405
cogl_deprecated_h += deprecated/cogl-clutter-xlib.h
406
cogl_1_public_h += cogl-xlib-renderer.h
408
cogl_experimental_h += \
409
winsys/cogl-texture-pixmap-x11.h \
413
cogl-x11-renderer-private.h \
414
cogl-xlib-renderer-private.h \
415
cogl-xlib-renderer.c \
417
cogl-xlib-private.h \
418
winsys/cogl-texture-pixmap-x11.c \
419
winsys/cogl-texture-pixmap-x11-private.h
422
cogl_experimental_h += cogl-glx.h
424
cogl-glx-renderer-private.h \
425
cogl-glx-display-private.h \
426
winsys/cogl-winsys-glx-feature-functions.h \
427
winsys/cogl-winsys-glx-private.h \
428
winsys/cogl-winsys-glx.c
430
if SUPPORT_WAYLAND_EGL_SERVER
431
cogl_experimental_h += cogl-wayland-server.h
433
if SUPPORT_EGL_PLATFORM_KMS
434
cogl_experimental_h += \
435
cogl-kms-renderer.h \
438
winsys/cogl-winsys-egl-kms.c \
439
winsys/cogl-winsys-egl-kms-private.h
441
if SUPPORT_EGL_PLATFORM_XLIB
443
winsys/cogl-winsys-egl-x11.c \
444
winsys/cogl-winsys-egl-x11-private.h
447
cogl_experimental_h += cogl-egl.h
448
cogl_nodist_experimental_h += cogl-egl-defines.h
452
winsys/cogl-winsys-egl.c \
453
winsys/cogl-winsys-egl-feature-functions.h \
454
winsys/cogl-winsys-egl-private.h
458
glib_enum_h = cogl-enum-types.h
459
glib_enum_c = cogl-enum-types.c
460
glib_enum_headers = $(cogl_1_public_h)
461
include $(top_srcdir)/build/autotools/Makefile.am.enums
463
mutterlibdir = $(libdir)/mutter
464
mutterlib_LTLIBRARIES = libmutter-cogl.la
466
libmutter_cogl_la_LIBADD = $(LIBM) $(COGL_DEP_LIBS) $(COGL_EXTRA_LDFLAGS)
468
libmutter_cogl_la_LIBADD += $(top_builddir)/test-fixtures/libtest-fixtures.la
470
# XXX: The aim is to eventually get rid of all private API exports
472
libmutter_cogl_la_LDFLAGS = \
474
-version-info @COGL_LT_CURRENT@:@COGL_LT_REVISION@:@COGL_LT_AGE@ \
476
-rpath $(mutterlibdir) \
477
-export-symbols-regex "^(cogl|_cogl_debug_flags|_cogl_atlas_new|_cogl_atlas_add_reorganize_callback|_cogl_atlas_reserve_space|_cogl_callback|_cogl_util_get_eye_planes_for_screen_poly|_cogl_atlas_texture_remove_reorganize_callback|_cogl_atlas_texture_add_reorganize_callback|_cogl_texture_get_format|_cogl_texture_foreach_sub_texture_in_region|_cogl_profile_trace_message|_cogl_context_get_default|_cogl_framebuffer_get_stencil_bits|_cogl_clip_stack_push_rectangle|_cogl_framebuffer_get_modelview_stack|_cogl_object_default_unref|_cogl_pipeline_foreach_layer_internal|_cogl_clip_stack_push_primitive|_cogl_buffer_unmap_for_fill_or_fallback|_cogl_framebuffer_draw_primitive|_cogl_debug_instances|_cogl_framebuffer_get_projection_stack|_cogl_pipeline_layer_get_texture|_cogl_buffer_map_for_fill_or_fallback|_cogl_texture_can_hardware_repeat|_cogl_pipeline_prune_to_n_layers|_cogl_primitive_draw|test_|unit_test_).*"
479
libmutter_cogl_la_SOURCES = $(cogl_sources_c)
480
nodist_libmutter_cogl_la_SOURCES = $(BUILT_SOURCES)
482
# Cogl installed headers
489
cogl_base_includedir = $(includedir)/mutter
490
cogldeprecatedincludedir = $(cogl_base_includedir)/cogl/cogl/deprecated
491
cogldeprecatedinclude_HEADERS = $(cogl_deprecated_h)
493
coglincludedir = $(cogl_base_includedir)/cogl/cogl
494
coglinclude_HEADERS = $(cogl_headers) $(cogl_experimental_h)
495
nodist_coglinclude_HEADERS = $(cogl_nodist_experimental_h) cogl-defines.h cogl-enum-types.h
497
cogl_proto_includedir = $(cogl_base_includedir)/cogl/cogl/gl-prototypes
498
cogl_proto_include_HEADERS = $(cogl_gl_prototypes_h)
503
-include $(INTROSPECTION_MAKEFILE)
507
if HAVE_INTROSPECTION
508
Cogl-1.0.gir: libmutter-cogl.la Makefile
510
Cogl_1_0_gir_NAMESPACE = Cogl
511
Cogl_1_0_gir_VERSION = 1.0
512
Cogl_1_0_gir_LIBS = libmutter-cogl.la
514
Cogl_1_0_gir_LIBS += $(top_builddir)/test-fixtures/libtest-fixtures.la
516
Cogl_1_0_gir_FILES = $(cogl_1_public_h) cogl-enum-types.h
518
Cogl-2.0.gir: libmutter-cogl.la Makefile
520
Cogl_2_0_gir_NAMESPACE = Cogl
521
Cogl_2_0_gir_VERSION = 2.0
522
Cogl_2_0_gir_LIBS = libmutter-cogl.la
524
Cogl_2_0_gir_LIBS += $(top_builddir)/test-fixtures/libtest-fixtures.la
526
Cogl_2_0_gir_FILES = $(cogl_experimental_h) $(cogl_additional_experimental_h) cogl-enum-types.h
528
Cogl_1_0_gir_CFLAGS = $(AM_CPPFLAGS) $(COGL_DEP_CFLAGS) -UCOGL_ENABLE_EXPERIMENTAL_API -UCOGL_ENABLE_EXPERIMENTAL_2_0_API -UCOGL_COMPILATION -D__COGL_H_INSIDE__ -D__COGL_XLIB_H_INSIDE__ -D__COGL_EGL_H_INSIDE__ -D__COGL_GLX_H_INSIDE__ -DCOGL_GIR_SCANNING
529
Cogl_1_0_gir_INCLUDES = GL-1.0 GObject-2.0
530
Cogl_1_0_gir_EXPORT_PACKAGES = cogl-1.0
531
Cogl_1_0_gir_SCANNERFLAGS = --warn-all --c-include='cogl/cogl.h'
533
Cogl_2_0_gir_CFLAGS = $(AM_CPPFLAGS) $(COGL_DEP_CFLAGS) -DCOGL_ENABLE_EXPERIMENTAL_API=1 -UCOGL_COMPILATION -D__COGL_H_INSIDE__ -D__COGL_XLIB_H_INSIDE__ -DCOGL_GIR_SCANNING
534
Cogl_2_0_gir_INCLUDES = GL-1.0 GObject-2.0
535
Cogl_2_0_gir_EXPORT_PACKAGES = cogl-2.0-experimental
536
Cogl_2_0_gir_SCANNERFLAGS = --warn-all --c-include='cogl/cogl.h' --symbol-prefix=cogl --symbol-prefix=cogl2
538
INTROSPECTION_GIRS += Cogl-1.0.gir Cogl-2.0.gir
540
girdir = $(mutterlibdir)
541
gir_DATA = $(INTROSPECTION_GIRS)
543
typelibdir = $(mutterlibdir)
544
typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
546
CLEANFILES += $(gir_DATA) $(typelib_DATA)