-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
base: master
Are you sure you want to change the base?
Add ohNetGenerated #24600
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this 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") |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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") |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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] |
There was a problem hiding this comment.
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!
There was a problem hiding this comment.
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): |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
C++11 I think
e5b3484
to
36dd9ca
Compare
Conan v1 pipeline ✔️All green in build 9 (
Conan v2 pipeline ✔️
All green in build 9 (
|
Summary
Changes to recipe: ohNetGenerated/1.1.143
Motivation
Add ohNetGenerated
Details
Part of the OpenHome networked audio suite.