From ce2c37356c674e5893f80786616355b4659b43ad Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Fri, 4 Apr 2025 03:12:26 +0300 Subject: Convert from make to meson Meson makes cross compilation easier. Replace the make-based build system with meson. Signed-off-by: Laurent Pinchart --- data/frames/meson.build | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 data/frames/meson.build (limited to 'data/frames/meson.build') diff --git a/data/frames/meson.build b/data/frames/meson.build new file mode 100644 index 0000000..f4ec8e3 --- /dev/null +++ b/data/frames/meson.build @@ -0,0 +1,28 @@ +# SPDX-License-Identifier: CC0-1.0 + +gen_lut = find_program('./gen-lut.py') +gzip = find_program('gzip') + +tables = [ + ['clu', 'identity'], + ['clu', 'wave'], + ['clu', 'zero'], + ['lut', 'gamma'], + ['lut', 'identity'], + ['lut', 'zero'], +] + +foreach table : tables + name = '@0@-@1@.bin'.format(table[0], table[1]) + custom_target(output : name, + command : [gen_lut, '-o', '@OUTPUT@', '-t', table[0], table[1]], + install : true, + install_dir : 'frames') +endforeach + +custom_target(input : files('frame-reference-1024x768.pnm.gz'), + output : 'frame-reference-1024x768.pnm', + capture : true, + command : [gzip, '-cd', '@INPUT@'], + install : true, + install_dir : 'frames') -- cgit v1.2.3