Skip to content

Commit

Permalink
[vcpkg-scripts] Use pkgconf in vcpkg pkgconfig get modules (#20527)
Browse files Browse the repository at this point in the history
* use pkgconf

* version stuff

* Update ports/vcpkg-pkgconfig-get-modules/x_vcpkg_pkgconfig_get_modules.cmake

Co-authored-by: Robert Schumacher <roschuma@microsoft.com>

* version stuff

* fix obviuos error

* bit of version playaround

* version stuff

Co-authored-by: PhoebeHui <20694052+PhoebeHui@users.noreply.github.com>
Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
  • Loading branch information
3 people authored Feb 1, 2022
1 parent 864a477 commit 84d9d9b
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 6 deletions.
3 changes: 2 additions & 1 deletion ports/vcpkg-pkgconfig-get-modules/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ if(NOT TARGET_TRIPLET STREQUAL HOST_TRIPLET)
endif()

file(COPY
"${CMAKE_CURRENT_LIST_DIR}/x_vcpkg_pkgconfig_get_modules.cmake"
"${CMAKE_CURRENT_LIST_DIR}/vcpkg-port-config.cmake"
"${CMAKE_CURRENT_LIST_DIR}/copyright"
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")

configure_file("${CMAKE_CURRENT_LIST_DIR}/x_vcpkg_pkgconfig_get_modules.cmake" "${CURRENT_PACKAGES_DIR}/share/${PORT}/x_vcpkg_pkgconfig_get_modules.cmake" @ONLY)

set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
10 changes: 8 additions & 2 deletions ports/vcpkg-pkgconfig-get-modules/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
{
"name": "vcpkg-pkgconfig-get-modules",
"version-date": "2021-04-02",
"port-version": 1
"version-date": "2022-01-10",
"dependencies": [
{
"name": "pkgconf",
"host": true,
"default-features": false
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ function(x_vcpkg_pkgconfig_get_modules)
message(FATAL_ERROR "extra arguments passed to x_vcpkg_pkgconfig_get_modules: ${arg_UNPARSED_ARGUMENTS}")
endif()

vcpkg_find_acquire_program(PKGCONFIG)
set(PKGCONFIG "${CURRENT_INSTALLED_DIR}/../@HOST_TRIPLET@/tools/pkgconf/pkgconf@VCPKG_HOST_EXECUTABLE_SUFFIX@")

set(backup_PKG_CONFIG_PATH "$ENV{PKG_CONFIG_PATH}")

set(var_suffixes)
Expand Down
4 changes: 2 additions & 2 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -7185,8 +7185,8 @@
"port-version": 0
},
"vcpkg-pkgconfig-get-modules": {
"baseline": "2021-04-02",
"port-version": 1
"baseline": "2022-01-10",
"port-version": 0
},
"vcpkg-qmake": {
"baseline": "2021-10-23",
Expand Down
5 changes: 5 additions & 0 deletions versions/v-/vcpkg-pkgconfig-get-modules.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "1fae7b16a1eb390ca9239c3e82aa0fdb41f9565b",
"version-date": "2022-01-10",
"port-version": 0
},
{
"git-tree": "558512de1cc52fd9e246d6e7b99575418dd8500f",
"version-date": "2021-04-02",
Expand Down

0 comments on commit 84d9d9b

Please sign in to comment.