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

nvcloth: migrate to Conan v2 #18626

Closed
wants to merge 17 commits into from
Closed

nvcloth: migrate to Conan v2 #18626

wants to merge 17 commits into from

Conversation

jstzwj
Copy link
Contributor

@jstzwj jstzwj commented Jul 18, 2023

Specify library name and version: nvcloth/1.1.6
migrate to Conan v2


@CLAassistant
Copy link

CLAassistant commented Jul 18, 2023

CLA assistant check
All committers have signed the CLA.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@stale
Copy link

stale bot commented Oct 15, 2023

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Oct 15, 2023
@stale stale bot removed the stale label Oct 15, 2023
@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ✔️

All green in build 8 (d646ee291e7513c6a54b97f73d505f80f876df8d):

  • nvcloth/1.1.6:
    All packages built successfully! (All logs)

Conan v2 pipeline ✔️

Note: Conan v2 builds are now mandatory. Please read our discussion about it.

All green in build 7 (d646ee291e7513c6a54b97f73d505f80f876df8d):

  • nvcloth/1.1.6:
    All packages built successfully! (All logs)

Copy link
Member

@uilianries uilianries left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jstzwj thank you for your PR! I'm concerned about the shared option managing. I need more information about this change first.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We no longer use the CMake wrapper, please, use Cmaketoolchain instead: https://docs.conan.io/2/reference/tools/cmake/cmaketoolchain.html

@@ -5,8 +5,8 @@ sources:
patches:
"1.1.6":
- patch_file: "patches/0001-PsAllocator-include-typeinfo.patch"
base_path: "source_subfolder"
base_path: "."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
base_path: "."

It's not needed anymore with new tools like apply_conandata_patch

for patch in self.conan_data.get("patches", {}).get(self.version, []):
self.copy(patch["patch_file"])

copy(self, "CMakeLists.txt", self.recipe_folder, os.path.join(self.export_sources_folder, "src"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
copy(self, "CMakeLists.txt", self.recipe_folder, os.path.join(self.export_sources_folder, "src"))

def configure(self):
if self.settings.os in ["Windows", "Macos"]:
# static builds are not supported
self.options.rm_safe("shared")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not clear how is it not supported. I see the default option was shared by default, but where can I find an evidence of this breaking change?

if self.settings.os in ["Windows", "Macos"]:
# static builds are not supported
self.options.rm_safe("shared")
self.package_type = "shared-library"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
self.package_type = "shared-library"

Please, do not change the package-type in case both type are supported in any OS.

self._remove_samples()

env = Environment()
env.define("GW_DEPS_ROOT", os.path.abspath(self.source_folder))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why cant you pass it directly to CMake as a variable?

Comment on lines +183 to +186
self.cpp_info.includedirs = ['include']
self.cpp_info.libdirs = ['lib']
self.cpp_info.bindirs = ['bin']

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
self.cpp_info.includedirs = ['include']
self.cpp_info.libdirs = ['lib']
self.cpp_info.bindirs = ['bin']

These are configured already by default: https://docs.conan.io/2/reference/conanfile/methods/package_info.html#cpp-info-library-and-build-information

@ghost
Copy link

ghost commented Mar 19, 2024

I detected other pull requests that are modifying nvcloth/1.1.6 recipe:

This message is automatically generated by https://github.com/ericLemanissier/conan-center-conflicting-prs so don't hesitate to report issues/improvements there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants