| 1 |
examples = [] |
| 2 |
|
| 3 |
if pango_cairo_backends.contains('png') |
| 4 |
examples += [ |
| 5 |
'cairoshape', |
| 6 |
'cairosimple', |
| 7 |
'cairotwisted', |
| 8 |
] |
| 9 |
endif |
| 10 |
|
| 11 |
examples_deps = [ libpango_dep, libpangocairo_dep, ] |
| 12 |
|
| 13 |
if pango_font_backends.contains('freetype') |
| 14 |
examples_deps += libpangoft2_dep |
| 15 |
endif |
| 16 |
|
| 17 |
# somebody will have to fix this |
| 18 |
# if host_system == 'windows' |
| 19 |
# # This hasn't been built in years, most likely, but try now |
| 20 |
# examples += [ 'pangowin32tobmp' ] |
| 21 |
# examples_deps += [ libpangowin32_dep ] |
| 22 |
# endif |
| 23 |
|
| 24 |
foreach e: examples |
| 25 |
executable(e, '@[email protected]'.format(e), |
| 26 |
dependencies: examples_deps + pango_deps, |
| 27 |
c_args: common_cflags, |
| 28 |
include_directories: root_inc, |
| 29 |
install: false) |
| 30 |
endforeach |