Skip to content

Commit

Permalink
[uriparser] Update to 0.8.5
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkaratarakis committed Feb 14, 2018
1 parent 78b1396 commit d1e8095
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 32 deletions.
28 changes: 3 additions & 25 deletions ports/uriparser/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,36 +1,15 @@
cmake_minimum_required(VERSION 3.8)
project(uriparser C CXX)
project(uriparser C)

if(MSVC)
add_compile_options(/W3 /wd4005 /wd4996 /wd4018 -D_CRT_SECURE_NO_WARNINGS)
endif()

include_directories(include)

set(SRC
src/UriCommon.c
src/UriCommon.h
src/UriCompare.c
src/UriEscape.c
src/UriFile.c
src/UriIp4.c
src/UriIp4Base.c
src/UriIp4Base.h
src/UriNormalize.c
src/UriNormalizeBase.c
src/UriNormalizeBase.h
src/UriParse.c
src/UriParseBase.c
src/UriParseBase.h
src/UriQuery.c
src/UriRecompose.c
src/UriResolve.c
src/UriShorten.c
)
file(GLOB SRC src/*.c)

if(BUILD_SHARED_LIBS)
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
endif()
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)

add_library(uriparser ${SRC})

Expand All @@ -41,7 +20,6 @@ install(
ARCHIVE DESTINATION lib
)


if(NOT DISABLE_INSTALL_HEADERS)
install(DIRECTORY include/ DESTINATION include)
endif()
2 changes: 1 addition & 1 deletion ports/uriparser/CONTROL
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Source: uriparser
Version: 0.8.4-1
Version: 0.8.5
Description: uriparser is a strictly RFC 3986 compliant URI parsing and handling library written in C. uriparser is cross-platform, fast, supports Unicode
13 changes: 7 additions & 6 deletions ports/uriparser/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@

include(vcpkg_common_functions)
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/uriparser-0.8.4)
vcpkg_download_distfile(ARCHIVE
URLS "https://sourceforge.net/projects/uriparser/files/Sources/0.8.4/uriparser-0.8.4.zip/download"
FILENAME "uriparser-0.8.4.zip"
SHA512 c22a98a027c4caa1d3559b1d3112f7ac567a489037d2b38f1999483f623a2e8d79fbacdc8859fe4e669a12f0f55935179f7be2f4424c61e51d1d68f6ced37185

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO uriparser/uriparser
REF uriparser-0.8.5
SHA512 b5a4eb316b96bdd5b87cac9fdd30b8988c158914e71030a45aafabd04df67a94bba9696782d98e9fa2169baf351e95ab1479bc76d8afe37968a941bc27a3ffb6
HEAD_REF master
)
vcpkg_extract_source_archive(${ARCHIVE})

file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})

Expand Down

0 comments on commit d1e8095

Please sign in to comment.