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

Add ohNetGenerated #24600

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Conversation

DoomHammer
Copy link
Contributor

Summary

Changes to recipe: ohNetGenerated/1.1.143

Motivation

Add ohNetGenerated

Details

Part of the OpenHome networked audio suite.


@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.

@AbrilRBS AbrilRBS self-assigned this Jul 15, 2024
Copy link
Member

@AbrilRBS AbrilRBS left a comment

Choose a reason for hiding this comment

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

Hi @DoomHammer thanks a lot for taking the time to add the library, we appreciate it! I have a few questions before approving, but overall it looks good :)


def configure(self):
if self.options.shared:
raise ConanInvalidConfiguration(f"{self.ref} doesn't support shared builds")
Copy link
Member

Choose a reason for hiding this comment

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

Then this library should:

  • Remove the shared option
  • Set the package_type = "static-libary"

basic_layout(self, src_folder="src")

def requirements(self):
self.requires("ohnet/[>=1.36.5182]", transitive_headers=True, transitive_libs=True)
Copy link
Member

Choose a reason for hiding this comment

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

Again, for now, we need to pin this version. If there's a 1:1 correspondence we can map that, but version ranges should be treated with care in this context :)

tc.generate()
else:
tc = AutotoolsToolchain(self)
tc.make_args.append("-j1")
Copy link
Member

Choose a reason for hiding this comment

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

Why is this necessary? Does the compilation fail if it tries to paralellize?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm afraid so. Some files are being copied after they are read which results in file not found errors more or less.

targets = "proxies devices"

include_dir = self.dependencies["ohnet"].cpp_info.includedirs[0]
lib_dir = self.dependencies["ohnet"].cpp_info.libdirs[0]
Copy link
Member

Choose a reason for hiding this comment

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

In the other PR you've extracted this into a function, I think it looks better like that, could you also do the same here? Thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure!

args.extend([f"openhome_architecture={openhome_architecture}", f"detected_openhome_architecture={openhome_architecture}"])
return args

def config_options(self):
Copy link
Member

Choose a reason for hiding this comment

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

What is the minimum C++ version that this library supports?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

C++11 I think

@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ✔️

All green in build 9 (36dd9cab4629d39223aec836c1e177ebf2ed39fc):

  • ohnetgenerated/1.1.143:
    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 9 (36dd9cab4629d39223aec836c1e177ebf2ed39fc):

  • ohnetgenerated/1.1.143:
    All packages built successfully! (All logs)

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.

3 participants