diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2020-07-31 07:26:11 +0000 |
---|---|---|
committer | Akira TAGOH <akira@tagoh.org> | 2020-07-31 07:26:11 +0000 |
commit | 57a224f51d6c019e4ce5d75efb22f34a8330423e (patch) | |
tree | e3d7acfe511c07650db57c485c6dcf134e2c78a5 /fc-cache | |
parent | 03aa12c75e117acb0d160212536f6f832e0dc8d9 (diff) | |
download | fontconfig-57a224f51d6c019e4ce5d75efb22f34a8330423e.tar.gz |
Add Meson build system
See https://mesonbuild.com
Diffstat (limited to 'fc-cache')
-rw-r--r-- | fc-cache/fc-cache.c | 4 | ||||
-rw-r--r-- | fc-cache/meson.build | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/fc-cache/fc-cache.c b/fc-cache/fc-cache.c index 2e4eeb2..a99adba 100644 --- a/fc-cache/fc-cache.c +++ b/fc-cache/fc-cache.c @@ -66,6 +66,10 @@ #define O_BINARY 0 #endif +#ifndef S_ISDIR +#define S_ISDIR(m) (((m) & _S_IFMT) == _S_IFDIR) +#endif + #ifndef HAVE_GETOPT #define HAVE_GETOPT 0 #endif diff --git a/fc-cache/meson.build b/fc-cache/meson.build new file mode 100644 index 0000000..9e0fe72 --- /dev/null +++ b/fc-cache/meson.build @@ -0,0 +1,8 @@ +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'] |