-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
[triangle] Add new port #13322
[triangle] Add new port #13322
Conversation
Unnecessary Port-Version Co-authored-by: NancyLi1013 <[email protected]>
Unnecessary inclusion of vcpkg_common_functions Co-authored-by: NancyLi1013 <[email protected]>
Use README from source as the copyright file Co-authored-by: NancyLi1013 <[email protected]>
Can you please use official sources and not unofficial repository? |
Also, you install the header both in the CMakeLists and in the portfile. One should be enough :) |
Final note: can you please also provide CMake targets, to link to triangle (prefixed with unofficial is ok if you prefer) |
It seems the repository is not unofficial repository. I noticed that @BillyONeal |
It is. I am also a user of triangle :) |
It is really the same sources, nothing looks like might warrant even a libigl-triangle duplicate here |
Co-authored-by: NancyLi1013 <[email protected]>
Co-authored-by: NancyLi1013 <[email protected]>
I would like to. The reason I did not is because this is actually not a true mirror of the original sources. It has modifications to the source code that allow it to build as a library and also to support 64-bit architecture. However, I think I should be able to add these changes using patches. I will have to learn how to do the patching. Hopefully the documentation at https://vcpkg.readthedocs.io/en/latest/examples/patching will help. Also, this should allow me to change the port name to just triangle. |
yes please. |
I would like to, but I am pretty new to both creating vcpkg ports (which is probably pretty obvious by now) and CMake. So I don't really know how to do this. But I will try to figure it out. If you or somebody else can help that would be great. Even just pointing to a good example that I can copy from would be helpful. |
I wrote many CMakeLists.txt for vcpkg. Look for example to ports/vlfeat for an example of a library that installs header files and provides targets for end users |
Yeah right direction! 👆🏻 |
I believe I have implemented all suggested changes. I really appreciate all the suggestions. You are all awesome. Note that there is one more change request which I believe is not going to be made. How do I close that? Or is that something that the person who made the request must do? |
Would you mind creating the triangle.exe target and move it to tools? That would make this a fully complete port (and in return you would also learn how to deal with executable tools in vcpkg ;) ) |
Yes. This has been done now. |
The regressions on x64-linux:
Could you please look into this? |
I believe I have fixed this. However, the checks are not re-running. Is that expected? |
Try rebasing on master to re-trigger CI checks In any case, thanks for applying all suggestions. Port looks very fine for me :) |
Is this rebasing something I need to do? Because I have never had to do a rebase before and I am worried about messing something up. |
I have merged master to re-trigger CI checks. Let's see the new check results. |
Co-authored-by: NancyLi1013 <[email protected]>
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.
Thanks for the PR!
Other than my one comment, LGTM.
Also, define FLOAT and VOID in the header so the user of the library does not have to define them
…be float or double. Also make the define for VOID be void rather than replacing all VOID with void in order to reduce the patch size.
Thanks for the PR! |
Add the libigl-triangle port as per Issue #12564
Fixes #12564