summaryrefslogtreecommitdiff
path: root/kms++util/meson.build
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ideasonboard.com>2026-05-04 16:19:04 +0300
committerTomi Valkeinen <tomi.valkeinen@ideasonboard.com>2026-05-08 17:25:34 +0300
commit549c347d6feb2e94a810a720c97a8bf0f57317a1 (patch)
tree8225a757a97e3aadb561f107adee7b1bc526c711 /kms++util/meson.build
parent4e2b291a4acdc2cbd39f005c88bda363bc06bd34 (diff)
kms++util: Replace test-pattern generator with pixpat
Switch draw_test_pattern() to call libpixpat (linked statically into libkms++util.so) instead of the in-tree pattern generator. Pixpat covers every pattern (kmstest, smpte, solid colors) and every pixel format the previous generator handled, so behavior is unchanged for all callers. Drop the now-unused machinery: conv.h and conv-*.h template writers, color16.h (RGB16/YUV16 plus conversions), the *_old / _single / _multi declarations that had no definitions or callers, and the c_draw_test_pattern C ABI which had no callers anywhere in the tree. RecStandard and ColorRange move from color16.h directly into kms++util.h, since they are still part of the public TestPatternOptions struct.
Diffstat (limited to 'kms++util/meson.build')
-rw-r--r--kms++util/meson.build9
1 files changed, 6 insertions, 3 deletions
diff --git a/kms++util/meson.build b/kms++util/meson.build
index e2beed6..dcdae8f 100644
--- a/kms++util/meson.build
+++ b/kms++util/meson.build
@@ -19,7 +19,6 @@ libkmsxxutil_sources = files([
public_headers = [
'inc/kms++util/color.h',
- 'inc/kms++util/color16.h',
'inc/kms++util/kms++util.h',
'inc/kms++util/stopwatch.h',
'inc/kms++util/cpuframebuffer.h',
@@ -29,7 +28,7 @@ public_headers = [
'inc/kms++util/resourcemanager.h',
]
-private_includes = include_directories('src', 'inc', '../ext/mdspan/include')
+private_includes = include_directories('src', 'inc')
public_includes = include_directories('inc')
thread_dep = dependency('threads', required : false)
@@ -40,7 +39,11 @@ if thread_dep.found()
libkmsxxutil_args += [ '-DHAS_PTHREAD' ]
endif
-libkmsxxutil_deps = [ libkmsxx_dep, thread_dep ]
+pixpat_proj = subproject('pixpat',
+ default_options : ['config=pixpat-native/profiles/pattern_only.toml'])
+libpixpat_dep = pixpat_proj.get_variable('libpixpat_static_dep')
+
+libkmsxxutil_deps = [ libkmsxx_dep, thread_dep, libpixpat_dep ]
libkmsxxutil = library('kms++util',
libkmsxxutil_sources,