From 84702ba79df11ca657947c622fe4458431b69af7 Mon Sep 17 00:00:00 2001 From: Chris McArthur Date: Wed, 6 Sep 2023 11:11:29 -0700 Subject: [PATCH] fix our recipe for `conan create` migration f479a22e24b0b39c5cfd5f0d2cb7d9104ebbbbc0 --- backend/conanfile.py | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/backend/conanfile.py b/backend/conanfile.py index 86dbdb01..06b83b91 100644 --- a/backend/conanfile.py +++ b/backend/conanfile.py @@ -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} @@ -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")