summaryrefslogtreecommitdiff
path: root/data/frames/meson.build
blob: f4ec8e30bdac58f0155a555443920e1b10a7cef5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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')