-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
[osgEarth] Update port version to 3.5 #37613
base: master
Are you sure you want to change the base?
Conversation
ports/osgearth/find-package.patch
Outdated
if(OSGEARTH_BUILD_CESIUM_NODEKIT) | ||
find_package(CesiumNative) | ||
endif() | ||
|
||
if(OSGEARTH_BUILD_TRITON_NODEKIT) | ||
- find_package(Triton) | ||
+ find_package(Triton REQUIRED) | ||
endif() | ||
|
||
if(OSGEARTH_BUILD_SILVERLINING_NODEKIT) | ||
- find_package(SilverLining) | ||
+ find_package(SilverLining REQUIRED) | ||
endif() |
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.
These now need to be added as features to support. Otherwise they cannot be used :)
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.
-These now need to be added as features to support.
+These now need to be added as dependencies.
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.
Since Silverlining, Triton, and Cesium Native do not have vcpkg ports, the intention is not to be used and fail if someone tries to enable them. All 3 are going to be off by default as we did this with Silverlining and Triton in past ports.
Thank you
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.
Since Silverlining, Triton, and Cesium Native do not have vcpkg ports,
Silverlining :
If the feature is not implemented, don't modify it
vcpkg/ports/osgearth/portfile.cmake
Line 64 in a34c873
-DOSGEARTH_BUILD_SILVERLINING_NODEKIT=OFF |
Triton:
If you want to modify find_package(Triton REQUIRED)
, please improve it to a feature (if the port is correct https://github.com/microsoft/vcpkg/blob/master/ports/triton/portfile.cmake)
Cesium Native:
If it's not supported, don't modify it. :)
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.
FTR the lines are only moved, not added,
I will be converting your PR to draft status. When you respond, please revert to "ready for review". |
I removed the modifications to Triton and Silverlining. The Triton that we use is this one: Different than the other Triton with a port. |
versions/o-/osgearth.json
Outdated
{ | ||
"git-tree": "66666b6eb6c6823bce9b00d8651e6bd2fda42722", | ||
"version": "3.5", | ||
"port-version": 1 | ||
}, |
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.
{ | |
"git-tree": "66666b6eb6c6823bce9b00d8651e6bd2fda42722", | |
"version": "3.5", | |
"port-version": 1 | |
}, |
Co-authored-by: Frank <65999885+FrankXie05@users.noreply.github.com>
@FrankXie05 @dg0yt I'd still like to complete this port. Any suggestions on how to move it forward? |
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.
After committing the changes, run vcpkg x-add-version --overwrite-version osgearth
, and commit that, too.
And please fix an "osgEath" typo in the PR title.
ports/osgearth/link-libraries.patch
Outdated
MACRO(LINK_WITH_VARIABLES TRGTNAME) | ||
+ string(REPLACE "_LIBRARY" "_LIBRARIES" lwv_libraries "${varname}") | ||
+ if(DEFINED ${lwv_libraries}) | ||
+ TARGET_LINK_LIBRARIES(${TRGTNAME} ${${lwv_libraries}}) | ||
+ continue() | ||
+ endif() | ||
FOREACH(varname ${ARGN}) | ||
+ string(REPLACE "_LIBRARY" "_LIBRARIES" lwv_libraries "${varname}") | ||
+ if(DEFINED ${lwv_libraries}) | ||
+ TARGET_LINK_LIBRARIES(${TRGTNAME} ${${lwv_libraries}}) | ||
+ continue() | ||
+ endif() | ||
IF(${varname}_DEBUG) |
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.
This change looks invalid. The extra code is to use varname
which is controlled by FOREACH(varname ${ARGN})
.
@@ -1,6 +1,6 @@ | |||
{ | |||
"name": "osgearth", | |||
"version": "3.4", | |||
"version": "3.5", | |||
"port-version": 1, |
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.
"port-version": 1, |
It cannot be merged in this state. Please respond to the review comments. |
Fixed the patch but the build fails now. My cmake skills aren't strong, can you take a quick look at the failure. I think you wrote the original patch. |
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.
Please apply the suggestions in the source and recreate the patch.
Co-authored-by: Kai Pastor <dg0yt@darc.de>
Co-authored-by: Kai Pastor <dg0yt@darc.de>
+ string(REPLACE "_LIBRARY" "_LINK_LIBRARIES" lwv_link_libraries "${varname}") | ||
+ if(DEFINED ${lwv_link_libraries}) | ||
+ TARGET_LINK_LIBRARIES(${TRGTNAME} PRIVATE ${${lwv_link_libraries}}) | ||
+ continue() | ||
+ endif() | ||
+ string(REPLACE "_LIBRARY" "_LIBRARIES" lwv_libraries "${varname}") | ||
+ if(DEFINED ${lwv_libraries}) | ||
+ TARGET_LINK_LIBRARIES(${TRGTNAME} ${${lwv_libraries}}) | ||
+ TARGET_LINK_LIBRARIES(${TRGTNAME} PRIVATE ${${lwv_libraries}}) | ||
+ continue() | ||
+ endif() |
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 think this will add some libraries twice now. LIBRARIES are included in LINK_LIBRARIES if the latter is defined. This should be avoided.
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.
Can you respond to dg0yt's feedback?
template<typename FUNC_TYPE> | ||
struct Action { | ||
FUNC_TYPE func; | ||
- bool eat = 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.
Is this patch submitted upstream?
If this PR updates an existing port, please uncomment and fill out this checklist:
./vcpkg x-add-version --all
and committing the result.