summaryrefslogtreecommitdiff
path: root/examples/meson.build
blob: 8c7275f25a3a345aa5269c5b0bc58dc9256c1dc9 (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
examples = []

if pango_cairo_backends.contains('png')
  examples += [
    'cairoshape',
    'cairosimple',
    'cairotwisted',
  ]
endif

examples_deps = [ libpango_dep, libpangocairo_dep, ]

if pango_font_backends.contains('freetype')
  examples_deps += libpangoft2_dep
endif

if host_system == 'windows'
  # This hasn't been built in years, most likely, but try now
  examples += [ 'pangowin32tobmp' ]
  examples_deps += [ libpangowin32_dep ]
endif

foreach e: examples
  executable(e, '@0@.c'.format(e),
             dependencies: examples_deps + pango_deps,
             include_directories: root_inc,
             install: false)
endforeach