Skip to content

Commit

Permalink
cairo is always required
Browse files Browse the repository at this point in the history
the meson build script for gtk3 has:
- cairo_dep      = dependency('cairo', version: cairo_req, required: cc.get_id() != 'msvc')
that is cairo is not required if msvc, but this is because they use
another search criteria right after for windows
- if not cairo_dep.found() and cc.get_id() == 'msvc'
-   if cc.has_header('cairo.h') and cc.has_header('cairo-win32.h')
-     cairo_dep = cc.find_library('cairo', required: false)
-   endif
- endif
-
- if not cairo_dep.found()
-   cairo_dep      = dependency('cairo', version: cairo_req,
-                               fallback : ['cairo', 'libcairo_dep'])
- endif
and eventually cairo has to be found for gtk to be built
  • Loading branch information
theartful committed Jul 1, 2022
1 parent 598afb3 commit 6bdeb0d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions recipes/gtk/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,7 @@ def build_requirements(self):
def requirements(self):
self.requires("gdk-pixbuf/2.42.8")
self.requires("glib/2.73.0")
if self._gtk4 or self.settings.compiler != "Visual Studio":
self.requires("cairo/1.17.4")
self.requires("cairo/1.17.4")
if self._gtk4:
self.requires("graphene/1.10.8")
self.requires("fribidi/1.0.12")
Expand Down

0 comments on commit 6bdeb0d

Please sign in to comment.