[cairo-commit] meson.build

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Aug 6 14:07:47 UTC 2020


 meson.build |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit efc508bdb97d249592af226c7abe0a2365b1731d
Author: Nirbheek Chauhan <nirbheek at centricular.com>
Date:   Thu Aug 6 02:06:45 2020 +0530

    meson: Fix win32 libs in cairo-win32*.pc files
    
    Fixes https://gitlab.freedesktop.org/cairo/cairo/-/issues/419

diff --git a/meson.build b/meson.build
index 7054232d1..c39fb2720 100644
--- a/meson.build
+++ b/meson.build
@@ -374,9 +374,10 @@ if cc.has_header('ApplicationServices/ApplicationServices.h')
 endif
 
 if host_machine.system() == 'windows'
-  win32_extra_libs = ['gdi32', 'msimg32']
-  foreach libname: win32_extra_libs
+  win32_extra_libs = []
+  foreach libname: ['gdi32', 'msimg32']
     deps += [cc.find_library(libname)]
+    win32_extra_libs += ['-l' + libname]
   endforeach
 
   feature_conf.set('CAIRO_HAS_WIN32_SURFACE', 1)


More information about the cairo-commit mailing list