Skip to content

Commit

Permalink
ocilib: apply conan pipeline reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
inPhraZ committed Jun 20, 2024
1 parent 8c125c0 commit 3e2c6de
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion recipes/ocilib/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ def build(self):
autotools.make()

def package(self):
copy(self, "LICENSE", self.source_folder, os.path.join(self.package_folder, "licenses"))
autotools = Autotools(self)
autotools.install()

copy(self, "COPYING", self.source_folder, os.path.join(self.package_folder, "licenses"))
copy(self, "*", os.path.join(self.source_folder, "include"), os.path.join(self.package_folder, "include"))
copy(self, "*.lib", self.source_folder, os.path.join(self.package_folder, "lib"), keep_path=False)
copy(self, "*.a", self.source_folder, os.path.join(self.package_folder, "lib"), keep_path=False)
Expand All @@ -66,4 +69,5 @@ def package(self):

def package_info(self):
self.cpp_info.libs = ["ocilib"]
self.cpp_info.set_property("pkg_config_name", "ocilib")
self.cpp_info.system_libs.append("dl")

0 comments on commit 3e2c6de

Please sign in to comment.