From 93f00789dd48efb2547b718e4ac547cd5adb8a48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milo=C5=A1=20Komar=C4=8Devi=C4=87?= Date: Thu, 26 Sep 2024 14:49:51 +0200 Subject: [PATCH] Add UTF-8 resource to meson --- meson.build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 2534afc488..faceff630c 100644 --- a/meson.build +++ b/meson.build @@ -142,9 +142,13 @@ exiv2_sources = files( 'app/app_utils.cpp', 'app/exiv2.cpp', 'app/getopt.cpp', - host_machine.system() == 'windows' ? 'app/wmain.cpp' : [], ) +if host_machine.system() == 'windows' + windows = import('windows') + exiv2_sources += windows.compile_resources('app/utf8.rc', depend_files: 'app/utf8.manifest') +endif + exiv2inc = include_directories('src', 'include/exiv2') executable( 'exiv2',