Skip to content

Commit

Permalink
gtk: fix gtk3 linker error
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Nov 15, 2023
1 parent 1891e45 commit 5f13232
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions recipes/gtk/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,12 +211,12 @@ def package_info(self):
self.cpp_info.components["gdk-3.0"].set_property("pkg_config_name", "gdk-3.0")

self.cpp_info.components["gtk+-3.0"].libs = ["gtk-3"]
self.cpp_info.components["gtk+-3.0"].requires = ["gdk-3.0", "at-spi2-core::atk"]
self.cpp_info.components["gtk+-3.0"].requires = ["gdk-3.0", "at-spi2-core::at-spi2-core"]
if not is_msvc(self):
self.cpp_info.components["gtk+-3.0"].requires.extend(["cairo::cairo", "cairo::cairo-gobject"])
self.cpp_info.components["gtk+-3.0"].requires.extend(["gdk-pixbuf::gdk-pixbuf", "glib::gio-2.0"])
if self.settings.os in ["Linux", "FreeBSD"]:
self.cpp_info.components["gtk+-3.0"].requires.append("at-spi2-core::atk")
self.cpp_info.components["gtk+-3.0"].requires.append("at-spi2-core::at-spi2-core")
self.cpp_info.components["gtk+-3.0"].requires.append("libepoxy::libepoxy")
if self.options.with_pango:
self.cpp_info.components["gtk+-3.0"].requires.append("pango::pangoft2")
Expand All @@ -226,7 +226,7 @@ def package_info(self):
self.cpp_info.components["gtk+-3.0"].set_property("pkg_config_name", "gtk+-3.0")

self.cpp_info.components["gail-3.0"].libs = ["gailutil-3"]
self.cpp_info.components["gail-3.0"].requires = ["gtk+-3.0", "at-spi2-core::atk"]
self.cpp_info.components["gail-3.0"].requires = ["gtk+-3.0", "at-spi2-core::at-spi2-core"]
self.cpp_info.components["gail-3.0"].includedirs = [os.path.join("include", "gail-3.0")]
self.cpp_info.components["gail-3.0"].set_property("pkg_config_name", "gail-3.0")
elif self._gtk4:
Expand Down

0 comments on commit 5f13232

Please sign in to comment.