From e11cc40a2eab0af601f75259da45e1ffb44b11c4 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Mon, 26 Oct 2020 14:21:19 -0400 Subject: * meson.build: Fix resource compilation on Windows. This is copied from GStreamer's meson port of FreeType. (ft2_sources): Add both debug and resource file (the latter for Windows only). (ft2_debug_src): Removed. --- meson.build | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 15cc9dfc9..df61dec12 100644 --- a/meson.build +++ b/meson.build @@ -215,11 +215,14 @@ endif # into `ftsystem.c` as well. # if host_machine.system() == 'windows' - ft2_debug_src = 'builds/windows/ftdebug.c' + winmod = import('windows') + ft2_sources += [ + 'builds/windows/ftdebug.c', + winmod.compile_resources('src/base/ftver.rc'), + ] else - ft2_debug_src = 'src/base/ftdebug.c' + ft2_sources += 'src/base/ftdebug.c' endif -ft2_sources += files([ft2_debug_src]) ft2_deps = [] -- cgit v1.2.1