Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions ports/uriparser/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO uriparser/uriparser
REF uriparser-${VERSION}
SHA512 0ab98e3172d9767ec0a62018c70190efb5aec813c310e7305fb4ffeb187976734d35ba2f83f6ea0b3f390f13740491d9538e5960b93ca1bbb848a1fe41c559a3
REF "uriparser-${VERSION}"
SHA512 17526795bf78211ecff2b6b6f632c168ba33ed7763c5ad94fcc5bdff19542025be8a7079701e261d8992fff9077f59448fb9b8983cfab38d972228b7e353c9cd
HEAD_REF master
)

Expand All @@ -12,16 +12,14 @@ else()
set(URIPARSER_BUILD_TOOLS OFF)
endif()

# On Android, we need to set C standard to C99 (headers on ndk uses `inline`)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Normally I would be asking to see why this is no longer needed but this looks like a response to a build error, so no change requested.

Copy link
Copy Markdown
Contributor Author

@SunBlack SunBlack Feb 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing to replace anymore. They changed the line in their repo to C99 ;-) uriparser/uriparser#273

if(VCPKG_TARGET_IS_ANDROID)
vcpkg_replace_string("${SOURCE_PATH}/CMakeLists.txt" "set(CMAKE_C_STANDARD 90)" "set(CMAKE_C_STANDARD 99)")
endif()
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" URIPARSER_CRT_LINKAGE)

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DURIPARSER_BUILD_DOCS=OFF
-DURIPARSER_BUILD_TESTS=OFF
-DURIPARSER_MSVC_STATIC_CRT=${URIPARSER_CRT_LINKAGE}
OPTIONS_DEBUG
-DURIPARSER_BUILD_TOOLS=OFF
OPTIONS_RELEASE
Expand All @@ -39,7 +37,7 @@ if(URIPARSER_BUILD_TOOLS)
)
endif()

set(_package_version_re "#define[ ]+PACKAGE_VERSION[ ]+\"([0-9]+.[0-9]+.[0-9]+)\"")
set(_package_version_re "#[ ]*define[ ]+PACKAGE_VERSION[ ]+\"([0-9]+.[0-9]+.[0-9]+)\"")
file(STRINGS
"${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/UriConfig.h"
_package_version_define REGEX "${_package_version_re}"
Expand Down
2 changes: 1 addition & 1 deletion ports/uriparser/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "uriparser",
"version": "0.9.9",
"version": "1.0.0",
"description": "Strictly RFC 3986 compliant URI parsing and handling library written in C89.",
"homepage": "https://uriparser.github.io/",
"license": "BSD-3-Clause",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -10173,7 +10173,7 @@
"port-version": 0
},
"uriparser": {
"baseline": "0.9.9",
"baseline": "1.0.0",
"port-version": 0
},
"usbmuxd": {
Expand Down
5 changes: 5 additions & 0 deletions versions/u-/uriparser.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "0840f209304679568b0f5d874ce80af58061010f",
"version": "1.0.0",
"port-version": 0
},
{
"git-tree": "4fc07e07ff0138b5e0c9714983a12070f9c67a63",
"version": "0.9.9",
Expand Down