summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2019-02-11 16:51:10 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2019-02-11 18:05:57 +0800
commitf38562e1bfa30ead48eba4509304629860957abc (patch)
treec38cd43334874fdc7eb4f4ebff4b90e1dec8d97b
parent56009ce002eadb8111b89fc65623409ef6101769 (diff)
downloadcogl-f38562e1bfa30ead48eba4509304629860957abc.tar.gz
tests/conform: Split out the source listings
So that we can share this with other Makefile-based build systems.
-rw-r--r--tests/conform/Makefile.am74
-rw-r--r--tests/conform/conform-test-srcs.mak70
2 files changed, 75 insertions, 69 deletions
diff --git a/tests/conform/Makefile.am b/tests/conform/Makefile.am
index 55008225..5701b1bd 100644
--- a/tests/conform/Makefile.am
+++ b/tests/conform/Makefile.am
@@ -4,82 +4,18 @@ NULL =
noinst_PROGRAMS = test-conformance
-common_sources = \
- test-conform-main.c \
- $(NULL)
-
-unported_test_sources = \
- test-fixed.c \
- test-materials.c \
- test-viewport.c \
- test-multitexture.c \
- test-npot-texture.c \
- test-object.c \
- test-readpixels.c \
- test-texture-mipmaps.c \
- test-texture-pixmap-x11.c \
- test-texture-rectangle.c \
- test-vertex-buffer-contiguous.c \
- test-vertex-buffer-interleved.c \
- test-vertex-buffer-mutability.c \
- $(NULL)
-
-test_sources = \
- test-atlas-migration.c \
- test-blend-strings.c \
- test-blend.c \
- test-depth-test.c \
- test-color-hsl.c \
- test-color-mask.c \
- test-backface-culling.c \
- test-just-vertex-shader.c \
- test-pipeline-user-matrix.c \
- test-pipeline-uniforms.c \
- test-pixel-buffer.c \
- test-premult.c \
- test-snippets.c \
- test-wrap-modes.c \
- test-sub-texture.c \
- test-custom-attributes.c \
- test-offscreen.c \
- test-primitive.c \
- test-texture-3d.c \
- test-sparse-pipeline.c \
- test-read-texture-formats.c \
- test-write-texture-formats.c \
- test-point-size.c \
- test-point-size-attribute.c \
- test-point-sprite.c \
- test-no-gl-header.c \
- test-version.c \
- test-gles2-context.c \
- test-euler-quaternion.c \
- test-layer-remove.c \
- test-alpha-test.c \
- test-map-buffer-range.c \
- test-npot-texture.c \
- test-alpha-textures.c \
- test-wrap-rectangle-textures.c \
- test-texture-get-set-data.c \
- test-framebuffer-get-bits.c \
- test-primitive-and-journal.c \
- test-copy-replace-texture.c \
- test-pipeline-cache-unrefs-texture.c \
- test-texture-no-allocate.c \
- test-pipeline-shader-state.c \
- test-texture-rg.c \
- $(NULL)
+include conform-test-srcs.mak
+
+test_sources = $(base_test_srcs)
if !USING_EMSCRIPTEN
# test-fence depends on the glib mainloop so it won't compile if using
# emscripten which builds in standalone mode.
-test_sources += test-fence.c
+test_sources += $(test_srcs_no_emscripten)
endif
if BUILD_COGL_PATH
-test_sources += \
- test-path.c \
- test-path-clip.c
+test_sources += $(test_srcs_path)
endif
test_conformance_SOURCES = $(common_sources) $(test_sources)
diff --git a/tests/conform/conform-test-srcs.mak b/tests/conform/conform-test-srcs.mak
new file mode 100644
index 00000000..ca34a2e7
--- /dev/null
+++ b/tests/conform/conform-test-srcs.mak
@@ -0,0 +1,70 @@
+# Sources for conformance tests
+
+common_sources = \
+ test-conform-main.c \
+ $(NULL)
+
+unported_test_sources = \
+ test-fixed.c \
+ test-materials.c \
+ test-viewport.c \
+ test-multitexture.c \
+ test-npot-texture.c \
+ test-object.c \
+ test-readpixels.c \
+ test-texture-mipmaps.c \
+ test-texture-pixmap-x11.c \
+ test-texture-rectangle.c \
+ test-vertex-buffer-contiguous.c \
+ test-vertex-buffer-interleved.c \
+ test-vertex-buffer-mutability.c \
+ $(NULL)
+
+base_test_srcs = \
+ test-atlas-migration.c \
+ test-blend-strings.c \
+ test-blend.c \
+ test-depth-test.c \
+ test-color-hsl.c \
+ test-color-mask.c \
+ test-backface-culling.c \
+ test-just-vertex-shader.c \
+ test-pipeline-user-matrix.c \
+ test-pipeline-uniforms.c \
+ test-pixel-buffer.c \
+ test-premult.c \
+ test-snippets.c \
+ test-wrap-modes.c \
+ test-sub-texture.c \
+ test-custom-attributes.c \
+ test-offscreen.c \
+ test-primitive.c \
+ test-texture-3d.c \
+ test-sparse-pipeline.c \
+ test-read-texture-formats.c \
+ test-write-texture-formats.c \
+ test-point-size.c \
+ test-point-size-attribute.c \
+ test-point-sprite.c \
+ test-no-gl-header.c \
+ test-version.c \
+ test-gles2-context.c \
+ test-euler-quaternion.c \
+ test-layer-remove.c \
+ test-alpha-test.c \
+ test-map-buffer-range.c \
+ test-npot-texture.c \
+ test-alpha-textures.c \
+ test-wrap-rectangle-textures.c \
+ test-texture-get-set-data.c \
+ test-framebuffer-get-bits.c \
+ test-primitive-and-journal.c \
+ test-copy-replace-texture.c \
+ test-pipeline-cache-unrefs-texture.c \
+ test-texture-no-allocate.c \
+ test-pipeline-shader-state.c \
+ test-texture-rg.c \
+ $(NULL)
+
+test_srcs_no_emscripten = test-fence.c
+test_srcs_path = test-path.c test-path-clip.c \ No newline at end of file