| 1 |
|
| 2 |
font_viewer_gresource_xml_file = files('font-viewer-gresources.xml') |
| 3 |
|
| 4 |
font_viewer_gresources = gnome.compile_resources('font-viewer-gresources', |
| 5 |
font_viewer_gresource_xml_file) |
| 6 |
|
| 7 |
result = run_command(python, '-c', list_vala_sources, check: true) |
| 8 |
font_viewer_sources = result.stdout().strip().split('\n') |
| 9 |
|
| 10 |
dependencies = [ vapi, vala_deps ] |
| 11 |
|
| 12 |
if get_option('adwaita') |
| 13 |
dependencies += adwaita |
| 14 |
endif |
| 15 |
|
| 16 |
executable('font-viewer', |
| 17 |
[font_viewer_sources, font_viewer_gresources, config_vapi], |
| 18 |
dependencies: dependencies, |
| 19 |
include_directories: includes, |
| 20 |
link_with: libfontmanager, |
| 21 |
link_whole: vala_common_library, |
| 22 |
install: true, |
| 23 |
install_dir: pkglibexec_dir, |
| 24 |
install_rpath: pkglib_dir, |
| 25 |
# Silence warnings we can do nothing about. |
| 26 |
# These are expected in code generated by Vala. |
| 27 |
c_args: [ '-w' ]) |
| 28 |
|