-
Notifications
You must be signed in to change notification settings - Fork 27
RSDK-9740: Make google libraries a private dependency of the SDK #357
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
Changes from all commits
cf3256a
7ece1c8
3f32c12
e9bbc32
d940b1a
1448de3
8fe505f
334b528
bac8c8a
92af179
bfe6e21
413e162
c88e685
3577cbc
c600fdd
f223455
c193784
cbcfd23
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -47,11 +47,11 @@ def requirements(self): | |
|
|
||
| # The SDK supports older grpc and protobuf, but these are the oldest | ||
| # maintained conan packages. | ||
| self.requires('grpc/[>=1.48.4]', transitive_headers=True) | ||
| self.requires('protobuf/[>=3.17.1]', transitive_headers=True) | ||
| self.requires('grpc/[>=1.48.4]') | ||
| self.requires('protobuf/[>=3.17.1]') | ||
|
|
||
| self.requires('xtensor/[>=0.24.3]') | ||
| self.requires('abseil/[>=20230125.3]', transitive_libs=True) | ||
| self.requires('abseil/[>=20230125.3]') | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this actually still needed? I'd expect absl to be a transitive dep of proto/grpc so not needing to be mentioned here?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I was surprised by this too but yes--my working theory is that it's because the API gencode does include some abseil headers/need some of their symbols, this was making the build fail with undefined symbol errors when I took it out |
||
|
|
||
| def build_requirements(self): | ||
| if self.options.offline_proto_generation: | ||
|
|
@@ -94,6 +94,8 @@ def package_info(self): | |
| if self.settings.os in ["Linux", "FreeBSD"]: | ||
| self.cpp_info.components[component].system_libs = ["pthread"] | ||
|
|
||
| self.cpp_info.components["viamapi"].requires.append("abseil::absl_strings") | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Guessing this is related to above inclusion.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Exactly! |
||
|
|
||
| if self.settings.os in ["Linux", "FreeBSD"]: | ||
| self.cpp_info.components["viamsdk"].system_libs.extend(["dl", "rt"]) | ||
|
|
||
|
|
@@ -119,8 +121,7 @@ def package_info(self): | |
| "xtensor::xtensor", | ||
|
|
||
| "viamapi", | ||
| "viam_rust_utils", | ||
| "abseil::absl_strings", | ||
| "viam_rust_utils" | ||
| ]) | ||
|
|
||
| self.cpp_info.components["viamsdk"].frameworks = ["Security"] | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -236,14 +236,13 @@ target_link_directories(viamsdk | |
| viamcppsdk_link_viam_api(viamsdk PRIVATE) | ||
|
|
||
| target_link_libraries(viamsdk | ||
| PUBLIC ${VIAMCPPSDK_GRPCXX_LIBRARIES} | ||
| PUBLIC ${VIAMCPPSDK_GRPC_LIBRARIES} | ||
| PUBLIC ${VIAMCPPSDK_PROTOBUF_LIBRARIES} | ||
| PUBLIC Boost::headers | ||
| PUBLIC Boost::log | ||
| PUBLIC xtensor | ||
| PRIVATE ${VIAMCPPSDK_GRPCXX_REFLECTION_LIBRARIES} | ||
| PRIVATE absl::strings | ||
| PRIVATE ${VIAMCPPSDK_GRPCXX_LIBRARIES} | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎉 |
||
| PRIVATE ${VIAMCPPSDK_GRPC_LIBRARIES} | ||
| PRIVATE ${VIAMCPPSDK_PROTOBUF_LIBRARIES} | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ⬇️ - I have a suspicion there may no longer be any actual direct usage of abseil in viamsdk. Can you please check?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. happily you're right! |
||
| PRIVATE viam_rust_utils | ||
| PRIVATE Threads::Threads | ||
| ) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.