Skip to content

Commit

Permalink
(conan-io#11212) [gdk-pixbuf]: use shared glib for shared gdk-pixbuf
Browse files Browse the repository at this point in the history
  • Loading branch information
theartful authored Jun 16, 2022
1 parent 2885829 commit 6204d71
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions recipes/gdk-pixbuf/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ def configure(self):
del self.options.fPIC
del self.settings.compiler.libcxx
del self.settings.compiler.cppstd
if self.options.shared:
self.options["glib"].shared = True

def validate(self):
if self.options.shared and not self.options["glib"].shared:
raise ConanInvalidConfiguration(
"Linking a shared library against static glib can cause unexpected behaviour."
)

def requirements(self):
if self.settings.compiler == "clang":
Expand Down Expand Up @@ -162,3 +170,6 @@ def package_info(self):

# TODO: to remove in conan v2 once pkg_config generator removed
self.cpp_info.names["pkg_config"] = "gdk-pixbuf-2.0"

def package_id(self):
self.info.requires["glib"].full_package_mode()

0 comments on commit 6204d71

Please sign in to comment.