-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
[async-mqtt] Add new port #31902
[async-mqtt] Add new port #31902
Conversation
@microsoft-github-policy-service agree |
3c8f86f
to
02110f9
Compare
ports/async-mqtt/portfile.cmake
Outdated
|
||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") | ||
|
||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) |
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.
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) |
Just need function vcpkg_install_copyright
.
ports/async-mqtt/portfile.cmake
Outdated
vcpkg_from_github( | ||
OUT_SOURCE_PATH SOURCE_PATH | ||
REPO redboltz/async_mqtt | ||
REF 1.0.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.
REF 1.0.1 | |
REF "${VERSION}" |
We can use the new function.
ports/async-mqtt/portfile.cmake
Outdated
|
||
vcpkg_cmake_install() | ||
|
||
vcpkg_cmake_config_fixup(PACKAGE_NAME async_mqtt_iface CONFIG_PATH lib/cmake/async_mqtt_iface) |
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.
vcpkg_cmake_config_fixup(PACKAGE_NAME async_mqtt_iface CONFIG_PATH lib/cmake/async_mqtt_iface) | |
vcpkg_cmake_config_fixup(PACKAGE_NAME async_mqtt_iface CONFIG_PATH "lib/cmake/async_mqtt_iface") |
ports/async-mqtt/portfile.cmake
Outdated
|
||
vcpkg_cmake_config_fixup(PACKAGE_NAME async_mqtt_iface CONFIG_PATH lib/cmake/async_mqtt_iface) | ||
|
||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib") |
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 port a header-only
or only dynamic
.?
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 portis a header-only.
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.
Should these two lines be removed if the port is a header-only library?
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.
No, keep two lines. We don't need empty folders.
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.
"${CURRENT_PACKAGES_DIR}/debug" is no longer needed, with VCPKG_BUILD_TYPE
set to release
.
Note: I will be converting your PR to draft status. When you respond, please revert to "ready for review". |
@@ -0,0 +1,27 @@ | |||
vcpkg_from_github( |
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.
vcpkg_from_github( | |
#header-only library | |
vcpkg_from_github( |
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.
Rather:
set(VCPKG_BUILD_TYPE release) # header-only
and there is no need to remove any debug dirs...
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 looked over this comment. I just reflected it.
ports/async-mqtt/portfile.cmake
Outdated
|
||
vcpkg_cmake_config_fixup(PACKAGE_NAME async_mqtt_iface CONFIG_PATH lib/cmake/async_mqtt_iface) | ||
|
||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib") |
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.
No, keep two lines. We don't need empty folders.
ports/async-mqtt/portfile.cmake
Outdated
-DASYNC_MQTT_BUILD_TOOLS=OFF | ||
-DASYNC_MQTT_BUILD_EXAMPLES=OFF | ||
-DASYNC_MQTT_BUILD_UNIT_TESTS=OFF | ||
-DASYNC_MQTT_BUILD_SYSTEM_TESTS=OFF | ||
-DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=ON |
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 indent the actual options:
OPTIONS
-DASYNC_MQTT_BUILD_TOOLS=OFF
-DASYNC_MQTT_BUILD_EXAMPLES=OFF
-DASYNC_MQTT_BUILD_UNIT_TESTS=OFF
-DASYNC_MQTT_BUILD_SYSTEM_TESTS=OFF
-DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=ON
Add header-only on the top of file. Use ${VERSION} instead of the literal. Fix indent. Add double qoute to path Remove copyright install.
I think that all changes request is reflected. |
#31902 (comment) is fixed too. |
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.
Just from looking at it in GH, only one nit-pick left.
The port is submitted from the owner, and it is not yet a project with many GH stars, so vcpkg maintainers must decide if they want the port under this name or under redboltz-async-mqtt
. (There is at least a JS project under the same name. https://github.com/search?q=async-mqtt&type=repositories)
ports/async-mqtt/portfile.cmake
Outdated
|
||
vcpkg_cmake_config_fixup(PACKAGE_NAME async_mqtt_iface CONFIG_PATH lib/cmake/async_mqtt_iface) | ||
|
||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib") |
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.
"${CURRENT_PACKAGES_DIR}/debug" is no longer needed, with VCPKG_BUILD_TYPE
set to release
.
Thank you for the comment. I fixed that removing debug directory. After I released async_mqtt, vcpkg support is requested by user redboltz/async_mqtt#16 |
@redboltz
|
There is a double |
|
Note: I will be converting your PR to draft status. When you respond, please revert to "ready for review". |
I fixed async_mqtt cmake config issue and then released it as 1.0.2. |
All checks have passed, now ready for review. |
The usage has been tested successfully locally.
|
If this PR adds a new port, please uncomment and fill out this checklist:
find_package
calls are REQUIRED, are satisfied byvcpkg.json
's declared dependencies, or disabled with CMAKE_DISABLE_FIND_PACKAGE_Xxxvcpkg.json
matches what upstream says.vcpkg.json
matches what upstream says../vcpkg x-add-version --all
and committing the result.END OF NEW PORT CHECKLIST (delete this line)