diff options
| author | Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> | 2021-08-27 01:09:08 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-26 10:09:08 -0700 |
| commit | 383060ffb686cc87404cc972e39cb77d3b1ef4e1 (patch) | |
| tree | f23a0f2360f06da6b2747dfcddc5b2e6951a67c2 /ports/c-ares | |
| parent | e0a5659774a65988fe1a8d3a9b1061efb0481336 (diff) | |
| download | vcpkg-383060ffb686cc87404cc972e39cb77d3b1ef4e1.tar.gz vcpkg-383060ffb686cc87404cc972e39cb77d3b1ef4e1.zip | |
[many ports] Add vcpkg_fixup_pkgconfig (#19721)
* [many ports]Add vcpkg_fixup_pkgconfig
* version
* Update ports/libepoxy/vcpkg.json
Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
* Update versions/l-/libepoxy.json
* Update versions/l-/libepoxy.json
Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
Diffstat (limited to 'ports/c-ares')
| -rw-r--r-- | ports/c-ares/portfile.cmake | 13 | ||||
| -rw-r--r-- | ports/c-ares/vcpkg.json | 15 |
2 files changed, 20 insertions, 8 deletions
diff --git a/ports/c-ares/portfile.cmake b/ports/c-ares/portfile.cmake index 8f54a176d..4e9ee8266 100644 --- a/ports/c-ares/portfile.cmake +++ b/ports/c-ares/portfile.cmake @@ -11,9 +11,8 @@ vcpkg_from_github( string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" BUILD_STATIC) string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_SHARED) -vcpkg_configure_cmake( +vcpkg_cmake_configure( SOURCE_PATH ${SOURCE_PATH} - PREFER_NINJA OPTIONS -DCARES_STATIC=${BUILD_STATIC} -DCARES_SHARED=${BUILD_SHARED} @@ -22,14 +21,16 @@ vcpkg_configure_cmake( -DCARES_BUILD_CONTAINER_TESTS=OFF ) -vcpkg_install_cmake() - -vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/c-ares) +vcpkg_cmake_install() vcpkg_copy_pdbs() +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/c-ares) +vcpkg_fixup_pkgconfig() + if(VCPKG_LIBRARY_LINKAGE STREQUAL static) - vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/include/ares.h + vcpkg_replace_string( + "${CURRENT_PACKAGES_DIR}/include/ares.h" "#ifdef CARES_STATICLIB" "#if 1" ) endif() diff --git a/ports/c-ares/vcpkg.json b/ports/c-ares/vcpkg.json index 331ca600f..da731a90c 100644 --- a/ports/c-ares/vcpkg.json +++ b/ports/c-ares/vcpkg.json @@ -1,7 +1,18 @@ { "name": "c-ares", - "version": "1.17.2", + "version-semver": "1.17.2", + "port-version": 1, "description": "A C library for asynchronous DNS requests", "homepage": "https://github.com/c-ares/c-ares", - "supports": "!uwp" + "supports": "!uwp", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] } |
