Conversation
e8086cb to
3cc3b56
Compare
|
Note: I will be converting your PR to draft status. When you respond, please revert to "ready for review". That way, I can be aware that you've responded since you can't modify the tags. |
fdff8ad to
8b16f85
Compare
|
@JonLiu1993 Thank you for your review. I've gone ahead and opened a PR on the docs site MicrosoftDocs/vcpkg-docs#405 to include some of the best practices you are showing here. |
|
Tested usage successfully by |
dg0yt
left a comment
There was a problem hiding this comment.
The manifest lacks a license field.
The patch could be minimized.
| -FetchContent_MakeAvailable(googletest) | ||
| -include(GoogleTest) |
There was a problem hiding this comment.
It is more or less enough to remove those two lines.
There was a problem hiding this comment.
I see, so that's the line that does the download, not the declare line.
| ) | ||
| - | ||
| - # Add the test, if requested. | ||
| - if (DEFINED ARG_GTEST_SRCS) |
There was a problem hiding this comment.
Changing this line to if(0) would be sufficient.
There was a problem hiding this comment.
Thanks, patch looks much smaller now
| REF "${VERSION}" | ||
| SHA512 4aa3282f6b76fbadd04ca572734f72c86b1b0b4e85fc21a03d1ab00b83d3aea319ab2dac3934361b5f6fa7c4a0dccece94fe0a57f3d73d208315b51b1950e374 | ||
| HEAD_REF main | ||
| PATCHES cmakelists.patch |
There was a problem hiding this comment.
Nit-pick:
| PATCHES cmakelists.patch | |
| PATCHES | |
| cmakelists.patch |
| # (This is necessary for it to be usable in other CMake projects.) | ||
|
|
||
| -set(AU_CMAKE_DIR ${CMAKE_INSTALL_LIBDIR}/cmake/Au) | ||
| +set(AU_CMAKE_DIR ${CMAKE_INSTALL_DATAROOTDIR}/cmake/Au) |
There was a problem hiding this comment.
This would be solved without patching with vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Au) (from the vpckg-cmake-config host port).
share/cmake/Au is also wrong, vcpkg wants share/au. (vcpkg_cmake_config_fixup would do it right, given the port name.)
There was a problem hiding this comment.
Thanks, that works, although I then needed to add
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
because vcpkg_cmake_config_fixup left behind an empty lib folder.
| vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}") | ||
| vcpkg_cmake_install() | ||
|
|
||
| file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug") |
There was a problem hiding this comment.
Wait, is this header-only? Then we don't need to build debug.
| file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug") |
here, and add the top of the file, add
set(VCPKG_BUILD_TYPE release) # header-onlyThere was a problem hiding this comment.
Looks like this works. 👍🏼
Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>
8b16f85 to
9e1c61c
Compare
|
Since this port is attempting to take a two letter name, I'm tagging vcpkg-team-review to discuss whether or not there is a need for disambiguation. |
|
@JavierMatosD just wondering, what is typically the review turnaround time? |
|
@ras0219-msft, @data-queue, @BillyONeal, @AugP and I discussed this today. @andre-nguyen, we ask that you prepend 'Aurora-' to the port name ( @chiphogg, + courtesy ping |
We typically hold weekly team meetings to review PRs that need more detailed attention. However, we often receive more PRs than we can reasonably review in a week, so things may occasionally pile up. While there isn’t a “typical” turnaround time, we’re actively working on streamlining the review process to improve the experience for everyone. |
chiphogg
left a comment
There was a problem hiding this comment.
Wow, this is really exciting!
Independently, other contributors have started the process of bringing Au into conan. That process is suggesting some CMake changes that I think would help the vcpkg port as well, namely, making it easier to avoid the googletest dependency natively without patching.
I'm excited to see the library reach a wider audience, and grateful for the support!
|
Hello @JonLiu1993, just want to check in and see if you are aware the PR has been updated and is ready for another review. |
|
@andre-nguyen, When I tested the usage by |
Possible places to check for this: |
|
There is a patch to disable the googletest dependency on port build. I would also suggest to rename the patch to |
|
Thank you everyone for the tips.
|
|
Tested usage successfully by |
|
Thanks @andre-nguyen for adding this! When I look at the official entry on vcpkg, it says "Documentation: Unavailable". We actually have a full doc website, for both the listed version 0.3.5, and for head. How hard would it be to add these links? |
Looks fairly straightforward, its just a documentation field in the json file. I can do it later. |
|
@andre-nguyen, would you be able/interested in updating to Au 0.4.0? It's out now, and it should avoid the need for a lot of the CMake workarounds! (I thought I'd ask you first because I've never used vcpkg, never put together a vcpkg PR, and haven't signed the CLA.) |
I commit a PR #42679 update aurora-au to the 0.4.0 |
"port-version"is reset (removed fromvcpkg.json)../vcpkg x-add-version --alland committing the result.