Skip to content

Commit

Permalink
fix our recipe for conan create migration
Browse files Browse the repository at this point in the history
  • Loading branch information
prince-chrismc committed Sep 6, 2023
1 parent 41e70df commit 84702ba
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions backend/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class UserManagementConanFile(ConanFile):
license = "MIT"
url = "https://github.com/prince-chrismc/user-management"
description = "An open-source application delivering a responsive user management experience."
package_type = "application"
settings = "os", "compiler", "build_type", "arch"
options = {"logging": ["console", "syslog"]}
default_options = {"logging": "syslog", "restinio/*:with_openssl": True}
Expand Down Expand Up @@ -56,16 +57,9 @@ def build(self):
cmake.build()

def package(self):
self.copy("*.hpp", src=".")
self.copy("*.lib", dst="lib", keep_path=False)
self.copy("*.dll", dst="bin", keep_path=False)
self.copy("*.so", dst="lib", keep_path=False)
self.copy("*.dylib", dst="lib", keep_path=False)
self.copy("*.a", dst="lib", keep_path=False)
self.copy("*user_database_app", dst="bin", keep_path=False)

def package_info(self):
self.cpp_info.libs = ["user-management"]
# TODO(prince-chrismc): Revisit requirements when we look into deploying
copy(self, "*.hpp", src=path.join(self.source_folder, "include"), dst=path.join(self.package_folder, "include"))
copy(self, "*user_database_app", src=path.join(self.build_folder, "src"), dst=path.join(self.package_folder, "bin"), keep_path=False)

def deploy(self):
self.copy("user_database_app", src="bin", dst="bin")

0 comments on commit 84702ba

Please sign in to comment.