summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2019-02-11 16:43:05 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2019-02-11 18:05:53 +0800
commitf325fd7e9f5c85c11a9f94c391cbb25dc8438f15 (patch)
tree83abf3613144b407a7fc2f0d722c21e60ac0ee1c
parentb0f92effdc3f64f914109a145e1e2fdbd9164346 (diff)
downloadcogl-f325fd7e9f5c85c11a9f94c391cbb25dc8438f15.tar.gz
cogl: Split out source listings
This way, we can allow the source listings to be shared with other Makefile-based build systems, such as NMake. We also split the Cogl sources up a bit further, by differentiating the private headers (*-private.h) from the other sources and headers.
-rw-r--r--cogl/Makefile.am459
-rw-r--r--cogl/cogl-srcs.mak449
2 files changed, 501 insertions, 407 deletions
diff --git a/cogl/Makefile.am b/cogl/Makefile.am
index 7de750c1..fdb3f099 100644
--- a/cogl/Makefile.am
+++ b/cogl/Makefile.am
@@ -68,471 +68,117 @@ pkgconfig_DATA = $(pc_files)
EXTRA_DIST += cogl-1.0.pc.in cogl-$(COGL_API_VERSION)-experimental.pc.in
DISTCLEANFILES += $(pc_files)
-cogl_deprecated_h = \
- deprecated/cogl-clip-state.h \
- deprecated/cogl-fixed.h \
- deprecated/cogl-material-compat.h \
- deprecated/cogl-vertex-buffer.h \
- deprecated/cogl-shader.h \
- deprecated/cogl-clutter.h \
- deprecated/cogl-type-casts.h \
- deprecated/cogl-framebuffer-deprecated.h \
- deprecated/cogl-texture-deprecated.h \
- deprecated/cogl-auto-texture.h \
- $(NULL)
+include cogl-srcs.mak
+
+cogl_deprecated_h = $(COGL_DEPRECATED_HDRS)
# public 1.x api headers
-cogl_1_public_h = \
- $(cogl_deprecated_h) \
- cogl1-context.h \
- cogl-bitmap.h \
- cogl-color.h \
- cogl-matrix.h \
- cogl-offscreen.h \
- cogl-primitives.h \
- cogl-texture.h \
- cogl-types.h \
- cogl.h \
- $(NULL)
+cogl_1_public_h = $(COGL_1_PUB_HDRS)
# experimental 2.0 api headers
# Note: we don't run glib-mkenums over these headers
-cogl_experimental_h = \
- cogl-object.h \
- cogl-renderer.h \
- cogl-swap-chain.h \
- cogl-onscreen-template.h \
- cogl-display.h \
- cogl-context.h \
- cogl-pipeline.h \
- cogl-pipeline-state.h \
- cogl-pipeline-layer-state.h \
- cogl-snippet.h \
- cogl-gles2.h \
- cogl-gles2-types.h \
- cogl-index-buffer.h \
- cogl-attribute-buffer.h \
- cogl-indices.h \
- cogl-attribute.h \
- cogl-primitive.h \
- cogl-framebuffer.h \
- cogl-onscreen.h \
- cogl-frame-info.h \
- cogl-vector.h \
- cogl-euler.h \
- cogl-output.h \
- cogl-quaternion.h \
- cogl-matrix-stack.h \
- cogl-poll.h \
- cogl-texture-3d.h \
- cogl-texture-2d.h \
- cogl-texture-2d-gl.h \
- cogl-texture-rectangle.h \
- cogl-texture-2d-sliced.h \
- cogl-sub-texture.h \
- cogl-atlas-texture.h \
- cogl-meta-texture.h \
- cogl-primitive-texture.h \
- cogl-depth-state.h \
- cogl-buffer.h \
- cogl-pixel-buffer.h \
- cogl2-experimental.h \
- cogl-macros.h \
- cogl-fence.h \
- cogl-version.h \
- cogl-error.h \
- $(NULL)
-
-cogl_additional_experimental_h = \
- cogl-bitmap.h \
- cogl-color.h \
- cogl-matrix.h \
- cogl-texture.h \
- cogl-types.h \
- cogl-gtype-private.h \
- $(NULL)
+cogl_experimental_h = $(COGL_EXPERIMENTAL_HDRS)
cogl_nodist_experimental_h = \
$(NULL)
# nop driver
-cogl_driver_sources = \
- driver/nop/cogl-driver-nop.c \
- driver/nop/cogl-framebuffer-nop-private.h \
- driver/nop/cogl-framebuffer-nop.c \
- driver/nop/cogl-attribute-nop-private.h \
- driver/nop/cogl-attribute-nop.c \
- driver/nop/cogl-clip-stack-nop-private.h \
- driver/nop/cogl-clip-stack-nop.c \
- driver/nop/cogl-texture-2d-nop-private.h \
- driver/nop/cogl-texture-2d-nop.c \
- $(NULL)
+cogl_driver_sources = $(COGL_NOP_DRIVER_SRCS)
# gl driver sources
-cogl_gl_prototypes_h = \
- gl-prototypes/cogl-gles2-functions.h \
- gl-prototypes/cogl-core-functions.h \
- gl-prototypes/cogl-in-gles-core-functions.h \
- gl-prototypes/cogl-in-gles2-core-functions.h \
- gl-prototypes/cogl-glsl-functions.h \
- $(NULL)
+cogl_gl_prototypes_h = $(COGL_GL_PROTOTYPE_HDRS)
-cogl_driver_sources += \
- driver/gl/cogl-util-gl-private.h \
- driver/gl/cogl-util-gl.c \
- driver/gl/cogl-framebuffer-gl-private.h \
- driver/gl/cogl-framebuffer-gl.c \
- driver/gl/cogl-texture-gl-private.h \
- driver/gl/cogl-texture-gl.c \
- driver/gl/cogl-texture-2d-gl-private.h \
- driver/gl/cogl-texture-2d-gl.c \
- driver/gl/cogl-attribute-gl-private.h \
- driver/gl/cogl-attribute-gl.c \
- driver/gl/cogl-clip-stack-gl-private.h \
- driver/gl/cogl-clip-stack-gl.c \
- driver/gl/cogl-buffer-gl-private.h \
- driver/gl/cogl-buffer-gl.c \
- driver/gl/cogl-pipeline-opengl.c \
- driver/gl/cogl-pipeline-opengl-private.h \
- driver/gl/cogl-pipeline-fragend-glsl.c \
- driver/gl/cogl-pipeline-fragend-glsl-private.h \
- driver/gl/gl/cogl-pipeline-fragend-arbfp.c \
- driver/gl/gl/cogl-pipeline-fragend-arbfp-private.h \
- driver/gl/gl/cogl-pipeline-progend-fixed-arbfp.c \
- driver/gl/gl/cogl-pipeline-progend-fixed-arbfp-private.h \
- driver/gl/cogl-pipeline-fragend-fixed.c \
- driver/gl/cogl-pipeline-fragend-fixed-private.h \
- driver/gl/cogl-pipeline-vertend-glsl.c \
- driver/gl/cogl-pipeline-vertend-glsl-private.h \
- driver/gl/cogl-pipeline-vertend-fixed.c \
- driver/gl/cogl-pipeline-vertend-fixed-private.h \
- driver/gl/cogl-pipeline-progend-fixed.c \
- driver/gl/cogl-pipeline-progend-fixed-private.h \
- driver/gl/cogl-pipeline-progend-glsl.c \
- driver/gl/cogl-pipeline-progend-glsl-private.h \
- $(NULL)
+cogl_driver_sources += $(COGL_GL_DRIVER_SRCS)
if COGL_DRIVER_GL_SUPPORTED
-cogl_driver_sources += \
- driver/gl/gl/cogl-driver-gl.c \
- driver/gl/gl/cogl-texture-driver-gl.c \
- $(NULL)
+cogl_driver_sources += $(COGL_GL_DRIVER_SUPPORT_SRCS)
endif
if COGL_DRIVER_GLES_SUPPORTED
-cogl_driver_sources += \
- driver/gl/gles/cogl-driver-gles.c \
- driver/gl/gles/cogl-texture-driver-gles.c \
- $(NULL)
+cogl_driver_sources += $(COGL_GLES_DRIVER_SUPPORT_SRCS)
endif
# winsys sources, common to all backends
-cogl_winsys_common_sources = \
- winsys/cogl-winsys-private.h \
- winsys/cogl-winsys.c \
- $(NULL)
+cogl_winsys_common_sources = $(COGL_WINSYS_COMMON_SRCS)
# sources
cogl_sources_c = \
$(cogl_driver_sources) \
$(cogl_winsys_common_sources) \
- cogl-private.h \
- cogl-i18n-private.h \
- cogl-debug.h \
- cogl-debug-options.h \
- cogl-gpu-info.c \
- cogl-gpu-info-private.h \
- cogl-context-private.h \
- cogl-context.c \
- cogl-renderer-private.h \
- cogl-renderer.h \
- cogl-renderer.c \
- cogl-swap-chain-private.h \
- cogl-swap-chain.h \
- cogl-swap-chain.c \
- cogl-onscreen-template-private.h \
- cogl-onscreen-template.h \
- cogl-onscreen-template.c \
- cogl-display-private.h \
- cogl-display.h \
- cogl-display.c \
- cogl-driver.h \
- cogl.c \
- cogl-object-private.h \
- cogl-object.h \
- cogl-object.c \
- cogl-util.h \
- cogl-util.c \
- cogl-bitmap-private.h \
- cogl-bitmap.c \
- cogl-bitmap-conversion.c \
- cogl-bitmap-packing.h \
- cogl-primitives-private.h \
- cogl-primitives.h \
- cogl-primitives.c \
- cogl-bitmap-pixbuf.c \
- cogl-clip-stack.h \
- cogl-clip-stack.c \
- cogl-feature-private.h \
- cogl-feature-private.c \
- cogl-color-private.h \
- cogl-color.c \
- cogl-buffer-private.h \
- cogl-buffer.c \
- cogl-pixel-buffer-private.h \
- cogl-pixel-buffer.c \
- cogl-index-buffer-private.h \
- cogl-index-buffer.c \
- cogl-attribute-buffer-private.h \
- cogl-attribute-buffer.c \
- cogl-indices-private.h \
- cogl-indices.c \
- cogl-attribute-private.h \
- cogl-attribute.c \
- cogl-primitive-private.h \
- cogl-primitive.c \
- cogl-matrix.c \
- cogl-vector.c \
- cogl-euler.c \
- cogl-quaternion-private.h \
- cogl-quaternion.c \
- cogl-matrix-private.h \
- cogl-matrix-stack.c \
- cogl-matrix-stack-private.h \
- cogl-depth-state.c \
- cogl-depth-state-private.h \
- cogl-node.c \
- cogl-node-private.h \
- cogl-pipeline.c \
- cogl-pipeline-private.h \
- cogl-pipeline-layer.c \
- cogl-pipeline-layer-private.h \
- cogl-pipeline-state.c \
- cogl-pipeline-layer-state-private.h \
- cogl-pipeline-layer-state.c \
- cogl-pipeline-state-private.h \
- cogl-pipeline-debug.c \
- cogl-glsl-shader.c \
- cogl-glsl-shader-private.h \
- cogl-glsl-shader-boilerplate.h \
- cogl-pipeline-snippet-private.h \
- cogl-pipeline-snippet.c \
- cogl-pipeline-cache.h \
- cogl-pipeline-cache.c \
- cogl-pipeline-hash-table.h \
- cogl-pipeline-hash-table.c \
- cogl-sampler-cache.c \
- cogl-sampler-cache-private.h \
- cogl-blend-string.c \
- cogl-blend-string.h \
- cogl-debug.c \
- cogl-sub-texture-private.h \
- cogl-texture-private.h \
- cogl-texture-2d-private.h \
- cogl-texture-2d-sliced-private.h \
- cogl-texture-3d-private.h \
- cogl-texture-driver.h \
- cogl-sub-texture.c \
- cogl-texture.c \
- cogl-texture-2d.c \
- cogl-texture-2d-sliced.c \
- cogl-texture-3d.c \
- cogl-texture-rectangle-private.h \
- cogl-texture-rectangle.c \
- cogl-rectangle-map.h \
- cogl-rectangle-map.c \
- cogl-atlas.h \
- cogl-atlas.c \
- cogl-atlas-texture-private.h \
- cogl-atlas-texture.c \
- cogl-meta-texture.c \
- cogl-primitive-texture.c \
- cogl-blit.h \
- cogl-blit.c \
- cogl-spans.h \
- cogl-spans.c \
- cogl-journal-private.h \
- cogl-journal.c \
- cogl-frame-info-private.h \
- cogl-frame-info.c \
- cogl-framebuffer-private.h \
- cogl-framebuffer.c \
- cogl-onscreen-private.h \
- cogl-onscreen.c \
- cogl-output-private.h \
- cogl-output.c \
- cogl-profile.h \
- cogl-profile.c \
- cogl-flags.h \
- cogl-bitmask.h \
- cogl-bitmask.c \
- cogl-gtype.c \
- cogl-gtype-private.h \
- cogl-point-in-poly-private.h \
- cogl-point-in-poly.c \
- cogl-list.c \
- cogl-list.h \
- winsys/cogl-winsys-stub-private.h \
- winsys/cogl-winsys-stub.c \
- cogl-config-private.h \
- cogl-config.c \
- cogl-boxed-value.h \
- cogl-boxed-value.c \
- cogl-snippet-private.h \
- cogl-snippet.c \
- cogl-poll-private.h \
- cogl-poll.c \
- gl-prototypes/cogl-all-functions.h \
- gl-prototypes/cogl-gles1-functions.h \
- gl-prototypes/cogl-gles2-functions.h \
- gl-prototypes/cogl-core-functions.h \
- gl-prototypes/cogl-in-gles-core-functions.h \
- gl-prototypes/cogl-in-gles1-core-functions.h \
- gl-prototypes/cogl-in-gles2-core-functions.h \
- gl-prototypes/cogl-fixed-functions.h \
- gl-prototypes/cogl-glsl-functions.h \
- cogl-memory-stack-private.h \
- cogl-memory-stack.c \
- cogl-magazine-private.h \
- cogl-magazine.c \
- cogl-gles2-context-private.h \
- cogl-gles2-context.c \
- cogl-error-private.h \
- cogl-error.c \
- cogl-closure-list-private.h \
- cogl-closure-list.c \
- cogl-fence.c \
- cogl-fence-private.h \
- deprecated/cogl-clip-state.c \
- deprecated/cogl-fixed.c \
- deprecated/cogl-vertex-buffer-private.h \
- deprecated/cogl-vertex-buffer.c \
- deprecated/cogl-material-compat.c \
- deprecated/cogl-program.c \
- deprecated/cogl-program-private.h \
- deprecated/cogl-auto-texture.c \
- deprecated/cogl-shader-private.h \
- deprecated/cogl-shader.c \
- deprecated/cogl-clutter.c \
- deprecated/cogl-framebuffer-deprecated.c \
- deprecated/cogl-texture-deprecated.c \
- $(NULL)
+ $(COGL_BASE_SRCS) \
+ $(COGL_DEPRECATED_SRCS) \
+ $(COGL_PRIVATE_HDRS) \
+ $(COGL_GL_PROTOTYPE_PRIVATE_HDRS)
if USE_GLIB
-cogl_experimental_h += cogl-glib-source.h
-cogl_sources_c += cogl-glib-source.c
+cogl_experimental_h += $(COGL_GLIB_HDRS)
+cogl_sources_c += $(COGL_GLIB_SRCS)
endif
if SUPPORT_XLIB
-cogl_deprecated_h += deprecated/cogl-clutter-xlib.h
-cogl_1_public_h += cogl-xlib-renderer.h
-
-cogl_experimental_h += \
- winsys/cogl-texture-pixmap-x11.h \
- cogl-xlib.h
-
-cogl_sources_c += \
- cogl-x11-renderer-private.h \
- cogl-xlib-renderer-private.h \
- cogl-xlib-renderer.c \
- cogl-xlib.c \
- cogl-xlib-private.h \
- winsys/cogl-texture-pixmap-x11.c \
- winsys/cogl-texture-pixmap-x11-private.h
+cogl_deprecated_h += $(COGL_XLIB_DEPRECATED_HDRS)
+cogl_1_public_h += $(COGL_XLIB_1_PUB_HDRS)
+
+cogl_experimental_h += $(COGL_XLIB_HDRS)
+
+cogl_sources_c += $(COGL_XLIB_SRCS)
endif
if SUPPORT_GLX
-cogl_experimental_h += cogl-glx.h
-cogl_sources_c += \
- cogl-glx-renderer-private.h \
- cogl-glx-display-private.h \
- winsys/cogl-winsys-glx-feature-functions.h \
- winsys/cogl-winsys-glx-private.h \
- winsys/cogl-winsys-glx.c
+cogl_experimental_h += $(COGL_GLX_HDRS)
+cogl_sources_c += $(COGL_GLX_SRCS)
endif
if SUPPORT_WGL
-cogl_experimental_h += cogl-win32-renderer.h
+cogl_experimental_h += $(COGL_WGL_HDRS)
-cogl_sources_c += \
- cogl-win32-renderer.c \
- winsys/cogl-winsys-wgl-private.h \
- winsys/cogl-winsys-wgl.c \
- winsys/cogl-winsys-wgl-feature-functions.h
+cogl_sources_c += $(COGL_WGL_SRCS)
endif
if SUPPORT_WAYLAND_EGL_SERVER
-cogl_experimental_h += cogl-wayland-server.h
+cogl_experimental_h += $(COGL_WAYLAND_SERVER_HDRS)
endif
if SUPPORT_EGL_PLATFORM_WAYLAND
-cogl_experimental_h += \
- cogl-wayland-renderer.h \
- cogl-wayland-client.h
-cogl_sources_c += \
- winsys/cogl-winsys-egl-wayland.c \
- winsys/cogl-winsys-egl-wayland-private.h
+cogl_experimental_h += $(COGL_WAYLAND_EGL_HDRS)
+cogl_sources_c += $(COGL_WAYLAND_EGL_SRCS)
endif
if SUPPORT_EGL_PLATFORM_KMS
-cogl_experimental_h += \
- cogl-kms-renderer.h \
- cogl-kms-display.h
-cogl_sources_c += \
- winsys/cogl-winsys-egl-kms.c \
- winsys/cogl-winsys-egl-kms-private.h
+cogl_experimental_h += $(COGL_KMS_HDRS)
+cogl_sources_c += $(COGL_KMS_SRCS)
endif
if SUPPORT_EGL_PLATFORM_XLIB
-cogl_sources_c += \
- winsys/cogl-winsys-egl-x11.c \
- winsys/cogl-winsys-egl-x11-private.h
+cogl_sources_c += $(COGL_X11_EGL_SRCS)
endif
if SUPPORT_EGL_PLATFORM_POWERVR_NULL
-cogl_sources_c += \
- winsys/cogl-winsys-egl-null.c \
- winsys/cogl-winsys-egl-null-private.h
+cogl_sources_c += $(COGL_POWERVR_EGL_NULL_SRCS)
endif
if SUPPORT_EGL_PLATFORM_GDL
-cogl_sources_c += \
- winsys/cogl-winsys-egl-gdl.c \
- winsys/cogl-winsys-egl-gdl-private.h
+cogl_sources_c += $(COGL_GDL_EGL_SRCS)
endif
if SUPPORT_EGL_PLATFORM_ANDROID
-cogl_sources_c += \
- winsys/cogl-winsys-egl-android.c \
- winsys/cogl-winsys-egl-android-private.h
+cogl_sources_c += $(COGL_ANDROID_EGL_SRCS)
endif
if SUPPORT_EGL_PLATFORM_MIR
-cogl_experimental_h += cogl-mir-renderer.h
-cogl_sources_c += \
- winsys/cogl-winsys-egl-mir.c \
- winsys/cogl-winsys-egl-mir-private.h
+cogl_experimental_h += $(COGL_MIR_EGL_HDRS)
+cogl_sources_c += $(COGL_MIR_EGL_SRCS)
endif
if SUPPORT_EGL
-cogl_experimental_h += cogl-egl.h
-cogl_nodist_experimental_h += cogl-egl-defines.h
-
-cogl_sources_c += \
- cogl-egl-private.h \
- winsys/cogl-winsys-egl.c \
- winsys/cogl-winsys-egl-feature-functions.h \
- winsys/cogl-winsys-egl-private.h
+cogl_experimental_h += $(COGL_EGL_HDRS)
+cogl_nodist_experimental_h += $(COGL_EGL_GEN_HDRS)
+
+cogl_sources_c += $(COGL_EGL_SRCS)
endif
if SUPPORT_SDL
-cogl_experimental_h += $(srcdir)/cogl-sdl.h
-cogl_sources_c += \
- winsys/cogl-winsys-sdl-private.h \
- winsys/cogl-winsys-sdl.c \
- cogl-sdl.c
+cogl_experimental_h += $(COGL_SDL_HDRS)
+cogl_sources_c += $(COGL_SDL_SRCS) $(COGL_SDL1_SRCS)
endif
if SUPPORT_SDL2
-cogl_experimental_h += $(srcdir)/cogl-sdl.h
-cogl_sources_c += \
- winsys/cogl-winsys-sdl-private.h \
- winsys/cogl-winsys-sdl2.c \
- cogl-sdl.c
+cogl_experimental_h += $(COGL_SDL_HDRS)
+cogl_sources_c += $(COGL_SDL_SRCS) $(COGL_SDL2_SRCS)
endif
EXTRA_DIST += stb_image.c
# glib-mkenums rules
-glib_enum_h = cogl-enum-types.h
-glib_enum_c = cogl-enum-types.c
+glib_enum_h = $(COGL_ENUMS_HDRS)
+glib_enum_c = $(COGL_ENUMS_SRCS)
glib_enum_headers = $(cogl_1_public_h)
include $(top_srcdir)/build/autotools/Makefile.am.enums
@@ -560,8 +206,7 @@ nodist_libcogl_la_SOURCES = $(BUILT_SOURCES)
# Cogl installed headers
cogl_headers = \
$(cogl_1_public_h) \
- cogl-deprecated.h \
- cogl-pango.h \
+ $(COGL_OTHER_HDRS) \
$(NULL)
cogldeprecatedincludedir = $(includedir)/cogl/cogl/deprecated
@@ -569,7 +214,7 @@ cogldeprecatedinclude_HEADERS = $(cogl_deprecated_h)
coglincludedir = $(includedir)/cogl/cogl
coglinclude_HEADERS = $(cogl_headers) $(cogl_experimental_h)
-nodist_coglinclude_HEADERS = $(cogl_nodist_experimental_h) cogl-defines.h cogl-enum-types.h
+nodist_coglinclude_HEADERS = $(cogl_nodist_experimental_h) cogl-defines.h $(COGL_ENUMS_HDRS)
cogl_proto_includedir = $(includedir)/cogl/cogl/gl-prototypes
cogl_proto_include_HEADERS = $(cogl_gl_prototypes_h)
@@ -675,7 +320,7 @@ Cogl_1_0_gir_LIBS = libcogl.la
if UNIT_TESTS
Cogl_1_0_gir_LIBS += $(top_builddir)/test-fixtures/libtest-fixtures.la
endif
-Cogl_1_0_gir_FILES = $(cogl_1_public_h) cogl-enum-types.h
+Cogl_1_0_gir_FILES = $(cogl_1_public_h) $(COGL_ENUMS_HDRS)
Cogl-2.0.gir: libcogl.la Makefile
@@ -685,7 +330,7 @@ Cogl_2_0_gir_LIBS = libcogl.la
if UNIT_TESTS
Cogl_2_0_gir_LIBS += $(top_builddir)/test-fixtures/libtest-fixtures.la
endif
-Cogl_2_0_gir_FILES = $(cogl_experimental_h) $(cogl_additional_experimental_h) cogl-enum-types.h
+Cogl_2_0_gir_FILES = $(cogl_experimental_h) $(COGL_ADDITIONAL_EXPERIMENTAL_HDRS) $(COGL_ENUMS_HDRS)
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
Cogl_1_0_gir_INCLUDES = GL-1.0 GObject-2.0
diff --git a/cogl/cogl-srcs.mak b/cogl/cogl-srcs.mak
new file mode 100644
index 00000000..f10ba58f
--- /dev/null
+++ b/cogl/cogl-srcs.mak
@@ -0,0 +1,449 @@
+# cogl-srcs.mak: Listing of various source files for Cogl
+
+COGL_DEPRECATED_HDRS = \
+ deprecated/cogl-clip-state.h \
+ deprecated/cogl-fixed.h \
+ deprecated/cogl-material-compat.h \
+ deprecated/cogl-vertex-buffer.h \
+ deprecated/cogl-shader.h \
+ deprecated/cogl-clutter.h \
+ deprecated/cogl-type-casts.h \
+ deprecated/cogl-framebuffer-deprecated.h \
+ deprecated/cogl-texture-deprecated.h \
+ deprecated/cogl-auto-texture.h \
+ $(NULL)
+
+COGL_1_PUB_HDRS = \
+ $(COGL_DEPRECATED_HDRS) \
+ cogl1-context.h \
+ cogl-bitmap.h \
+ cogl-color.h \
+ cogl-matrix.h \
+ cogl-offscreen.h \
+ cogl-primitives.h \
+ cogl-texture.h \
+ cogl-types.h \
+ cogl.h \
+ $(NULL)
+
+COGL_EXPERIMENTAL_HDRS = \
+ cogl-object.h \
+ cogl-renderer.h \
+ cogl-swap-chain.h \
+ cogl-onscreen-template.h \
+ cogl-display.h \
+ cogl-context.h \
+ cogl-pipeline.h \
+ cogl-pipeline-state.h \
+ cogl-pipeline-layer-state.h \
+ cogl-snippet.h \
+ cogl-gles2.h \
+ cogl-gles2-types.h \
+ cogl-index-buffer.h \
+ cogl-attribute-buffer.h \
+ cogl-indices.h \
+ cogl-attribute.h \
+ cogl-primitive.h \
+ cogl-framebuffer.h \
+ cogl-onscreen.h \
+ cogl-frame-info.h \
+ cogl-vector.h \
+ cogl-euler.h \
+ cogl-output.h \
+ cogl-quaternion.h \
+ cogl-matrix-stack.h \
+ cogl-poll.h \
+ cogl-texture-3d.h \
+ cogl-texture-2d.h \
+ cogl-texture-2d-gl.h \
+ cogl-texture-rectangle.h \
+ cogl-texture-2d-sliced.h \
+ cogl-sub-texture.h \
+ cogl-atlas-texture.h \
+ cogl-meta-texture.h \
+ cogl-primitive-texture.h \
+ cogl-depth-state.h \
+ cogl-buffer.h \
+ cogl-pixel-buffer.h \
+ cogl2-experimental.h \
+ cogl-macros.h \
+ cogl-fence.h \
+ cogl-version.h \
+ cogl-error.h \
+ $(NULL)
+
+COGL_OTHER_HDRS = \
+ cogl-deprecated.h \
+ cogl-pango.h \
+ $(NULL)
+
+COGL_ADDITIONAL_EXPERIMENTAL_HDRS = \
+ cogl-bitmap.h \
+ cogl-color.h \
+ cogl-matrix.h \
+ cogl-texture.h \
+ cogl-types.h \
+ cogl-gtype-private.h \
+ $(NULL)
+
+COGL_NOP_DRIVER_SRCS = \
+ driver/nop/cogl-driver-nop.c \
+ driver/nop/cogl-framebuffer-nop-private.h \
+ driver/nop/cogl-framebuffer-nop.c \
+ driver/nop/cogl-attribute-nop-private.h \
+ driver/nop/cogl-attribute-nop.c \
+ driver/nop/cogl-clip-stack-nop-private.h \
+ driver/nop/cogl-clip-stack-nop.c \
+ driver/nop/cogl-texture-2d-nop-private.h \
+ driver/nop/cogl-texture-2d-nop.c \
+ $(NULL)
+
+COGL_GL_PROTOTYPE_HDRS = \
+ gl-prototypes/cogl-gles2-functions.h \
+ gl-prototypes/cogl-core-functions.h \
+ gl-prototypes/cogl-in-gles-core-functions.h \
+ gl-prototypes/cogl-in-gles2-core-functions.h \
+ gl-prototypes/cogl-glsl-functions.h \
+ $(NULL)
+
+COGL_GL_DRIVER_SRCS = \
+ driver/gl/cogl-util-gl-private.h \
+ driver/gl/cogl-util-gl.c \
+ driver/gl/cogl-framebuffer-gl-private.h \
+ driver/gl/cogl-framebuffer-gl.c \
+ driver/gl/cogl-texture-gl-private.h \
+ driver/gl/cogl-texture-gl.c \
+ driver/gl/cogl-texture-2d-gl-private.h \
+ driver/gl/cogl-texture-2d-gl.c \
+ driver/gl/cogl-attribute-gl-private.h \
+ driver/gl/cogl-attribute-gl.c \
+ driver/gl/cogl-clip-stack-gl-private.h \
+ driver/gl/cogl-clip-stack-gl.c \
+ driver/gl/cogl-buffer-gl-private.h \
+ driver/gl/cogl-buffer-gl.c \
+ driver/gl/cogl-pipeline-opengl.c \
+ driver/gl/cogl-pipeline-opengl-private.h \
+ driver/gl/cogl-pipeline-fragend-glsl.c \
+ driver/gl/cogl-pipeline-fragend-glsl-private.h \
+ driver/gl/gl/cogl-pipeline-fragend-arbfp.c \
+ driver/gl/gl/cogl-pipeline-fragend-arbfp-private.h \
+ driver/gl/gl/cogl-pipeline-progend-fixed-arbfp.c \
+ driver/gl/gl/cogl-pipeline-progend-fixed-arbfp-private.h \
+ driver/gl/cogl-pipeline-fragend-fixed.c \
+ driver/gl/cogl-pipeline-fragend-fixed-private.h \
+ driver/gl/cogl-pipeline-vertend-glsl.c \
+ driver/gl/cogl-pipeline-vertend-glsl-private.h \
+ driver/gl/cogl-pipeline-vertend-fixed.c \
+ driver/gl/cogl-pipeline-vertend-fixed-private.h \
+ driver/gl/cogl-pipeline-progend-fixed.c \
+ driver/gl/cogl-pipeline-progend-fixed-private.h \
+ driver/gl/cogl-pipeline-progend-glsl.c \
+ driver/gl/cogl-pipeline-progend-glsl-private.h \
+ $(NULL)
+
+COGL_GL_DRIVER_SUPPORT_SRCS = \
+ driver/gl/gl/cogl-driver-gl.c \
+ driver/gl/gl/cogl-texture-driver-gl.c \
+ $(NULL)
+
+COGL_GLES_DRIVER_SUPPORT_SRCS = \
+ driver/gl/gles/cogl-driver-gles.c \
+ driver/gl/gles/cogl-texture-driver-gles.c \
+ $(NULL)
+
+COGL_WINSYS_COMMON_SRCS = \
+ winsys/cogl-winsys-private.h \
+ winsys/cogl-winsys.c \
+ winsys/cogl-winsys-stub-private.h \
+ winsys/cogl-winsys-stub.c \
+ $(NULL)
+
+COGL_BASE_SRCS = \
+ cogl-debug.h \
+ cogl-debug-options.h \
+ cogl-gpu-info.c \
+ cogl-context.c \
+ cogl-renderer.h \
+ cogl-renderer.c \
+ cogl-swap-chain.h \
+ cogl-swap-chain.c \
+ cogl-onscreen-template.h \
+ cogl-onscreen-template.c \
+ cogl-display.h \
+ cogl-display.c \
+ cogl-driver.h \
+ cogl.c \
+ cogl-object.h \
+ cogl-object.c \
+ cogl-util.h \
+ cogl-util.c \
+ cogl-bitmap.c \
+ cogl-bitmap-conversion.c \
+ cogl-bitmap-packing.h \
+ cogl-primitives.h \
+ cogl-primitives.c \
+ cogl-bitmap-pixbuf.c \
+ cogl-clip-stack.h \
+ cogl-clip-stack.c \
+ cogl-feature-private.c \
+ cogl-color.c \
+ cogl-buffer.c \
+ cogl-pixel-buffer.c \
+ cogl-index-buffer.c \
+ cogl-attribute-buffer.c \
+ cogl-indices.c \
+ cogl-attribute.c \
+ cogl-primitive.c \
+ cogl-matrix.c \
+ cogl-vector.c \
+ cogl-euler.c \
+ cogl-quaternion.c \
+ cogl-matrix-stack.c \
+ cogl-depth-state.c \
+ cogl-node.c \
+ cogl-pipeline.c \
+ cogl-pipeline-layer.c \
+ cogl-pipeline-state.c \
+ cogl-pipeline-layer-state.c \
+ cogl-pipeline-debug.c \
+ cogl-glsl-shader.c \
+ cogl-glsl-shader-boilerplate.h \
+ cogl-pipeline-snippet.c \
+ cogl-pipeline-cache.h \
+ cogl-pipeline-cache.c \
+ cogl-pipeline-hash-table.h \
+ cogl-pipeline-hash-table.c \
+ cogl-sampler-cache.c \
+ cogl-blend-string.c \
+ cogl-blend-string.h \
+ cogl-debug.c \
+ cogl-texture-driver.h \
+ cogl-sub-texture.c \
+ cogl-texture.c \
+ cogl-texture-2d.c \
+ cogl-texture-2d-sliced.c \
+ cogl-texture-3d.c \
+ cogl-texture-rectangle.c \
+ cogl-rectangle-map.h \
+ cogl-rectangle-map.c \
+ cogl-atlas.h \
+ cogl-atlas.c \
+ cogl-atlas-texture.c \
+ cogl-meta-texture.c \
+ cogl-primitive-texture.c \
+ cogl-blit.h \
+ cogl-blit.c \
+ cogl-spans.h \
+ cogl-spans.c \
+ cogl-frame-info.c \
+ cogl-journal.c \
+ cogl-framebuffer.c \
+ cogl-onscreen.c \
+ cogl-output.c \
+ cogl-profile.h \
+ cogl-profile.c \
+ cogl-flags.h \
+ cogl-bitmask.h \
+ cogl-bitmask.c \
+ cogl-gtype.c \
+ cogl-point-in-poly.c \
+ cogl-list.c \
+ cogl-list.h \
+ cogl-config.c \
+ cogl-boxed-value.h \
+ cogl-boxed-value.c \
+ cogl-snippet.c \
+ cogl-poll.c \
+ gl-prototypes/cogl-core-functions.h \
+ gl-prototypes/cogl-gles2-functions.h \
+ gl-prototypes/cogl-in-gles-core-functions.h \
+ gl-prototypes/cogl-in-gles2-core-functions.h \
+ gl-prototypes/cogl-glsl-functions.h \
+ cogl-memory-stack.c \
+ cogl-magazine.c \
+ cogl-gles2-context.c \
+ cogl-error.c \
+ cogl-closure-list.c \
+ cogl-fence.c \
+ $(NULL)
+
+COGL_DEPRECATED_SRCS = \
+ deprecated/cogl-clip-state.c \
+ deprecated/cogl-fixed.c \
+ deprecated/cogl-vertex-buffer-private.h \
+ deprecated/cogl-vertex-buffer.c \
+ deprecated/cogl-material-compat.c \
+ deprecated/cogl-program.c \
+ deprecated/cogl-program-private.h \
+ deprecated/cogl-auto-texture.c \
+ deprecated/cogl-shader-private.h \
+ deprecated/cogl-shader.c \
+ deprecated/cogl-clutter.c \
+ deprecated/cogl-framebuffer-deprecated.c \
+ deprecated/cogl-texture-deprecated.c \
+ $(NULL)
+
+COGL_PRIVATE_HDRS = \
+ cogl-atlas-texture-private.h \
+ cogl-attribute-buffer-private.h \
+ cogl-attribute-private.h \
+ cogl-bitmap-private.h \
+ cogl-buffer-private.h \
+ cogl-closure-list-private.h \
+ cogl-config-private.h \
+ cogl-color-private.h \
+ cogl-context-private.h \
+ cogl-depth-state-private.h \
+ cogl-display-private.h \
+ cogl-error-private.h \
+ cogl-feature-private.h \
+ cogl-fence-private.h \
+ cogl-frame-info-private.h \
+ cogl-framebuffer-private.h \
+ cogl-gles2-context-private.h \
+ cogl-glsl-shader-private.h \
+ cogl-gpu-info-private.h \
+ cogl-gtype-private.h \
+ cogl-index-buffer-private.h \
+ cogl-indices-private.h \
+ cogl-i18n-private.h \
+ cogl-journal-private.h \
+ cogl-magazine-private.h \
+ cogl-matrix-private.h \
+ cogl-matrix-stack-private.h \
+ cogl-memory-stack-private.h \
+ cogl-node-private.h \
+ cogl-object-private.h \
+ cogl-onscreen-template-private.h \
+ cogl-onscreen-private.h \
+ cogl-output-private.h \
+ cogl-pipeline-layer-private.h \
+ cogl-pipeline-layer-state-private.h \
+ cogl-pipeline-private.h \
+ cogl-pipeline-snippet-private.h \
+ cogl-pipeline-state-private.h \
+ cogl-pixel-buffer-private.h \
+ cogl-point-in-poly-private.h \
+ cogl-poll-private.h \
+ cogl-primitive-private.h \
+ cogl-primitives-private.h \
+ cogl-private.h \
+ cogl-quaternion-private.h \
+ cogl-renderer-private.h \
+ cogl-sampler-cache-private.h \
+ cogl-snippet-private.h \
+ cogl-sub-texture-private.h \
+ cogl-swap-chain-private.h \
+ cogl-texture-private.h \
+ cogl-texture-rectangle-private.h \
+ cogl-texture-2d-private.h \
+ cogl-texture-2d-sliced-private.h \
+ cogl-texture-3d-private.h \
+ $(NULL)
+
+COGL_GL_PROTOTYPE_PRIVATE_HDRS = \
+ gl-prototypes/cogl-all-functions.h \
+ gl-prototypes/cogl-fixed-functions.h \
+ gl-prototypes/cogl-gles1-functions.h \
+ gl-prototypes/cogl-in-gles1-core-functions.h \
+ $(NULL)
+
+# GLib-using sources
+COGL_GLIB_SRCS = cogl-glib-source.c
+COGL_GLIB_HDRS = cogl-glib-source.h
+
+# Xlib-using sources
+COGL_XLIB_DEPRECATED_HDRS = deprecated/cogl-clutter-xlib.h
+COGL_XLIB_1_PUB_HDRS = cogl-xlib-renderer.h
+COGL_XLIB_HDRS = \
+ winsys/cogl-texture-pixmap-x11.h \
+ cogl-xlib.h
+
+COGL_XLIB_SRCS = \
+ cogl-x11-renderer-private.h \
+ cogl-xlib-renderer-private.h \
+ cogl-xlib-renderer.c \
+ cogl-xlib.c \
+ cogl-xlib-private.h \
+ winsys/cogl-texture-pixmap-x11.c \
+ winsys/cogl-texture-pixmap-x11-private.h
+
+COGL_X11_EGL_SRCS = \
+ winsys/cogl-winsys-egl-x11.c \
+ winsys/cogl-winsys-egl-x11-private.h
+
+# GLX-using sources
+COGL_GLX_HDRS = cogl-glx.h
+COGL_GLX_SRCS = \
+ cogl-glx-renderer-private.h \
+ cogl-glx-display-private.h \
+ winsys/cogl-winsys-glx-feature-functions.h \
+ winsys/cogl-winsys-glx-private.h \
+ winsys/cogl-winsys-glx.c
+
+# WGL-using sources
+COGL_WGL_HDRS = cogl-win32-renderer.h
+COGL_WGL_SRCS = \
+ cogl-win32-renderer.c \
+ winsys/cogl-winsys-wgl-private.h \
+ winsys/cogl-winsys-wgl.c \
+ winsys/cogl-winsys-wgl-feature-functions.h
+
+# Wayland-using EGL/client/server sources
+COGL_WAYLAND_SERVER_HDRS = cogl-wayland-server.h
+COGL_WAYLAND_EGL_HDRS = \
+ cogl-wayland-renderer.h \
+ cogl-wayland-client.h
+
+COGL_WAYLAND_EGL_SRCS = \
+ winsys/cogl-winsys-egl-wayland.c \
+ winsys/cogl-winsys-egl-wayland-private.h
+
+# KMS-using sources
+COGL_KMS_HDRS = \
+ cogl-kms-renderer.h \
+ cogl-kms-display.h
+
+COGL_KMS_SRCS = \
+ winsys/cogl-winsys-egl-kms.c \
+ winsys/cogl-winsys-egl-kms-private.h
+
+# PowerVR EGL-using null sources
+COGL_POWERVR_EGL_NULL_SRCS = \
+ winsys/cogl-winsys-egl-null.c \
+ winsys/cogl-winsys-egl-null-private.h
+
+# Gdl EGL-using sources
+COGL_GDL_EGL_SRCS = \
+ winsys/cogl-winsys-egl-gdl.c \
+ winsys/cogl-winsys-egl-gdl-private.h
+
+# Android EGL-using sources
+COGL_ANDROID_EGL_SRCS = \
+ winsys/cogl-winsys-egl-android.c \
+ winsys/cogl-winsys-egl-android-private.h
+
+# MIR EGL-using sources
+COGL_MIR_EGL_HDRS = cogl-mir-renderer.h
+COGL_MIR_EGL_SRCS = \
+ winsys/cogl-winsys-egl-mir.c \
+ winsys/cogl-winsys-egl-mir-private.h
+
+# Generic EGL headers
+COGL_EGL_HDRS = cogl-egl.h
+COGL_EGL_GEN_HDRS = cogl-egl-defines.h
+COGL_EGL_SRCS = \
+ cogl-egl-private.h \
+ winsys/cogl-winsys-egl.c \
+ winsys/cogl-winsys-egl-feature-functions.h \
+ winsys/cogl-winsys-egl-private.h
+
+# SDL-using sources
+COGL_SDL_HDRS = cogl-sdl.h
+COGL_SDL_SRCS = winsys/cogl-winsys-sdl-private.h cogl-sdl.c
+COGL_SDL1_SRCS = winsys/cogl-winsys-sdl.c
+COGL_SDL2_SRCS = winsys/cogl-winsys-sdl2.c
+
+# Enum (generated by glib-mkenums sources)
+COGL_ENUMS_HDRS = cogl-enum-types.h
+COGL_ENUMS_SRCS = cogl-enum-types.c