-
Notifications
You must be signed in to change notification settings - Fork 532
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
export platform #4574
export platform #4574
Conversation
cdc2238
to
36ca8b5
Compare
This is a draft PR and need more work done for it.
@nibanks can you help me to solve these issue in this PR? |
9cbe47d
to
e615e0f
Compare
Is there any new progress? |
On my side I need active ci. Because I never contribute to this repo, each change I made, @nibanks need to approve the ci. In conclusion I am waiting for my other PR will be review and merge to continue this PR. |
@BillyONeal can you help to promote this PR? It needed to update msh3 v0.7 in vcpkg. |
@talregev there are many failures in the CI. Please have a look. |
Thank you! I will take a look, and I start develop. Now I have active ci. |
e615e0f
to
5bc4d05
Compare
@nibanks Not sure why I don't have active ci. How I can get one? |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4574 +/- ##
==========================================
- Coverage 87.22% 86.84% -0.39%
==========================================
Files 56 56
Lines 17357 17357
==========================================
- Hits 15140 15073 -67
- Misses 2217 2284 +67 ☔ View full report in Codecov by Sentry. |
@nibanks Ready for review. |
I'm not involved in msquic sadly. I have my own PRs here :) |
@talregev how did you validate this? Is there any way to add some kind of validation here in this PR? |
I create this PR to compile msh3 that msquic is external lib. I validate this by modify locally vcpkg msquic port that will take this changes, and modify msh3 port by update it to v0.7.0 and that it will take ls-qpack and msquic as external libs. My suggestion to validate in this PR is to create a simple test that use the above symbols. (I am not sure the params that needed for these functions). Can you help me to create such a simple test that just compile with the above symbols? |
I notice that there is unittest for platform. |
@nibanks I manage to create an external cmake and connected it to windows ci. |
5cdbff4
to
df2eeb8
Compare
@nibanks I finished the PR. I also created external cmake that validate the change I did. Can you review my PR? |
c20bba6
to
28b4e51
Compare
@nibanks Anything I can do for move forward this PR? |
28b4e51
to
48e37e1
Compare
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 sorry it's taken so long. I've just been unsure of how I want to proceed here. I'm super thankful you added a test to validate, but having this separate cmake seems undesirable. What do you think about updating the normal unittest (platform & core) to dynamic link to msquic.dll / libmsquic.so (which is what I understand this to do), instead of adding a separate file?
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 do you think about updating the normal unittest (platform & core) to dynamic link to msquic.dll / libmsquic.so (which is what I understand this to do)
This is not what the test doing.
The external cmake is compile the test platform dynamic and static.
The test validate that it can find the symbols in the official exported lib.
I cannot modify the exist test cmake files. The exist test cmake files are connected to the cmake that generate the libs (dynamic or static). When the cmake is generated, there is no libs yet, and that this point for validate the exported symbol, I must find the libs (static or dynamic).
To test external symbol, it must be different cmake file. One file is to create the lib, and other to use them. (consumers).
Can you please merge |
I will try to merge it today. |
48e37e1
to
24ac41f
Compare
@nibanks I rebase to main. |
Description
For support compile msquic with external msh3 version 0.7.0. It require symbol that found on platform target.
I export these symbols
I rename the target platform to msquic_platform, because when platform is exported it create a lib file. Create a lib file with generic name will interfere with other libraries when install together. When the name is renamed to specific name it will allow to integrate more easy on libraries managers such as vcpkg.
Other info
fix #4569