2020-07-31 09:26:11 +02:00
|
|
|
fccache = executable('fc-cache', ['fc-cache.c', fcstdint_h, alias_headers, ft_alias_headers],
|
|
|
|
include_directories: [incbase, incsrc],
|
|
|
|
link_with: [libfontconfig],
|
|
|
|
c_args: c_args,
|
|
|
|
install: true,
|
|
|
|
)
|
|
|
|
|
|
|
|
tools_man_pages += ['fc-cache']
|
2020-10-24 10:18:55 +02:00
|
|
|
|
|
|
|
# Do not try to execute target's fc-cache on host when cross compiling
|
2021-10-14 10:52:03 +02:00
|
|
|
if get_option('cache-build').enabled() and not meson.is_cross_build()
|
2022-09-07 15:32:31 +02:00
|
|
|
meson.add_install_script(fccache, '-s', '-f', '-v',
|
|
|
|
skip_if_destdir: true)
|
2020-10-24 10:18:55 +02:00
|
|
|
endif
|