File: meson.build

package info (click to toggle)
phoc 0.53.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,152 kB
  • sloc: ansic: 108,724; xml: 3,963; sh: 138; makefile: 33; javascript: 5
file content (25 lines) | stat: -rw-r--r-- 540 bytes parent folder | download
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
embed = find_program('./embed.sh', native: true)
shader_headers = []

shaders = ['cutout-rect.vert', 'cutout-rect.frag']

foreach name : shaders
  custom_target(
    'gles2-' + name,
    input: name,
    output: name + '-check',
    command: [glslang, '@INPUT@'],
    build_by_default: true,
  )

  output = name.replace('.', '-') + '-src.h'
  var = name.underscorify() + '_src'
  shader_headers += custom_target(
    output,
    command: [embed, var],
    input: name,
    output: output,
    feed: true,
    capture: true,
  )
endforeach