Skip to content

Commit

Permalink
libmount: Make the libblkid and libmount libraries separate components
Browse files Browse the repository at this point in the history
Adding the eudev package requires `libblkid` only.
Adding a separate libblkid recipe hasn't gotten anywhere yet.
This PR uses an alternative approach and separates the libraries.
Each library is split into its own component.
  • Loading branch information
jwillikers committed Jan 18, 2024
1 parent 3b78ae0 commit 2b236c1
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions recipes/libmount/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@ def package(self):
rm(self, "*.la", os.path.join(self.package_folder, "lib"))

def package_info(self):
self.cpp_info.libs = ["mount", "blkid"]
self.cpp_info.system_libs = ["rt"]
self.cpp_info.includedirs.append(os.path.join("include", "libmount"))
self.cpp_info.set_property("pkg_config_name", "mount")
self.cpp_info.components["libblkid"].libs = ["blkid"]
self.cpp_info.components["libblkid"].set_property("pkg_config_name", "blkid")

self.cpp_info.components["libmount"].libs = ["mount"]
self.cpp_info.components["libmount"].system_libs = ["rt"]
self.cpp_info.components["libmount"].includedirs.append(os.path.join("include", "libmount"))
self.cpp_info.components["libmount"].set_property("pkg_config_name", "mount")
self.cpp_info.components["libmount"].requires = ["libblkid"]

0 comments on commit 2b236c1

Please sign in to comment.