cemu-vcpkg/ports/uriparser/portfile.cmake

28 lines
807 B
CMake
Raw Normal View History

2017-07-21 21:56:20 -07:00
include(vcpkg_common_functions)
2018-02-13 16:43:42 -08:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO uriparser/uriparser
2019-04-24 00:02:52 +02:00
REF uriparser-0.9.2
SHA512 58c1c473b33a2a5ffa2b3eb02f527de0efea228d84e2189b764515c3b884b73f36bb8baf143b719cd43006ef23f116cd7b2368bf828fe3e5b839c674daf5ea3f
2017-07-21 21:56:20 -07:00
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
2019-04-24 00:02:52 +02:00
OPTIONS
-DURIPARSER_BUILD_DOCS=OFF
-DURIPARSER_BUILD_TESTS=OFF
-DURIPARSER_BUILD_TOOLS=OFF
2017-07-21 21:56:20 -07:00
)
vcpkg_install_cmake()
2019-04-24 00:02:52 +02:00
vcpkg_fixup_cmake_targets(CONFIG_PATH "lib/cmake/uriparser-0.9.2")
2017-07-21 21:56:20 -07:00
vcpkg_copy_pdbs()
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/uriparser RENAME copyright)
2019-04-24 00:02:52 +02:00
# Remove duplicate info
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)