Skip to content

Commit

Permalink
(conan-io#11208) [atk]: use shared glib for shared atk
Browse files Browse the repository at this point in the history
  • Loading branch information
theartful authored Jun 16, 2022
1 parent fd48306 commit ddf5074
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions recipes/atk/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,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 source(self):
tools.get(**self.conan_data["sources"][self.version])
Expand Down Expand Up @@ -89,3 +97,6 @@ def package(self):
def package_info(self):
self.cpp_info.libs = tools.collect_libs(self)
self.cpp_info.includedirs = ['include/atk-1.0']

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

0 comments on commit ddf5074

Please sign in to comment.