Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cairomm]: use shared glib for shared cairomm #11470

Merged
merged 1 commit into from
Jul 1, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions recipes/cairomm/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ def validate(self):
tools.check_min_cppstd(self, 17)
else:
tools.check_min_cppstd(self, 11)
if self.options.shared and not self.options["cairo"].shared:
raise ConanInvalidConfiguration(
"Linking against static cairo would cause shared cairomm to link "
"against static glib which can cause problems."
)

@property
def _source_subfolder(self):
Expand Down Expand Up @@ -69,6 +74,8 @@ def config_options(self):
def configure(self):
if self.options.shared:
del self.options.fPIC
if self.options.shared:
self.options["cairo"].shared = True

def build_requirements(self):
self.build_requires("meson/0.59.1")
Expand Down Expand Up @@ -182,3 +189,6 @@ def package_info(self):
self.cpp_info.components["cairomm-1.0"].frameworks = [
"CoreFoundation"
]

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