Skip to content

Commit

Permalink
Delete use of vcpkg_test_cmake and vcpkg_common_functions. (#13065)
Browse files Browse the repository at this point in the history
  • Loading branch information
BillyONeal committed Oct 28, 2020
1 parent ead8d6b commit 09a647a
Show file tree
Hide file tree
Showing 503 changed files with 167 additions and 1,207 deletions.
5 changes: 2 additions & 3 deletions docs/maintainers/portfile-functions.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!-- Run regenerate.ps1 to extract documentation from scripts\cmake\*.cmake -->

<!-- Run regenerate.ps1 to extract documentation from scripts\cmake\*.cmake -->

# Portfile helper functions
- [execute\_process](execute_process.md)
- [vcpkg\_acquire\_msys](vcpkg_acquire_msys.md)
Expand Down Expand Up @@ -45,4 +45,3 @@
- [vcpkg\_install\_nmake](vcpkg_install_nmake.md)
- [vcpkg\_install\_qmake](vcpkg_install_qmake.md)
- [vcpkg\_prettify\_command](vcpkg_prettify_command.md)
- [vcpkg\_test\_cmake](vcpkg_test_cmake.md)
20 changes: 0 additions & 20 deletions docs/maintainers/vcpkg_test_cmake.md

This file was deleted.

2 changes: 0 additions & 2 deletions ports/3fd/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include(vcpkg_common_functions)

# Check architecture:
if (VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
set(BUILD_ARCH "Win32")
Expand Down
2 changes: 0 additions & 2 deletions ports/ade/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include(vcpkg_common_functions)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO opencv/ade
Expand Down
7 changes: 1 addition & 6 deletions ports/aixlog/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
include(vcpkg_common_functions)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO badaix/aixlog
REF c268f271ef7e7181389205e985740f29e6744a8c # v1.4.0
REF c268f271ef7e7181389205e985740f29e6744a8c # v1.4.0
SHA512 7014d22a0bdbaf85191d18652531af6e0c8ff6d8041bf92a80d51994cfbdf0d9d63c4f8836b9bba16d1895ffa03ad0749a42bd11706eb5f3cde1dcbe76746c24
)

file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/include)
file(COPY ${SOURCE_PATH}/include/ DESTINATION ${CURRENT_PACKAGES_DIR}/include)

file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)

# Post-build test for cmake libraries
# vcpkg_test_cmake(PACKAGE_NAME aixlog)
2 changes: 0 additions & 2 deletions ports/alac-decoder/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include(vcpkg_common_functions)

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)

vcpkg_download_distfile(ARCHIVE
Expand Down
2 changes: 0 additions & 2 deletions ports/alac/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
message(FATAL_ERROR "${PORT} does not currently support UWP")
endif()

include(vcpkg_common_functions)

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)

vcpkg_from_github(
Expand Down
2 changes: 0 additions & 2 deletions ports/aliyun-oss-c-sdk/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include(vcpkg_common_functions)

if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
message(FATAL_ERROR "${PORT} does not currently support UWP")
endif()
Expand Down
2 changes: 0 additions & 2 deletions ports/allegro5/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include(vcpkg_common_functions)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO liballeg/allegro5
Expand Down
3 changes: 0 additions & 3 deletions ports/ampl-mp/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include(vcpkg_common_functions)

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)

if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
Expand Down Expand Up @@ -44,4 +42,3 @@ configure_file(${SOURCE_PATH}/LICENSE.rst
${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)

vcpkg_copy_pdbs()
vcpkg_test_cmake(PACKAGE_NAME unofficial-mp)
2 changes: 0 additions & 2 deletions ports/anax/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include(vcpkg_common_functions)

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)

vcpkg_from_github(
Expand Down
2 changes: 0 additions & 2 deletions ports/angelscript/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include(vcpkg_common_functions)

vcpkg_download_distfile(ARCHIVE
URLS "https://angelcode.com/angelscript/sdk/files/angelscript_2.34.0.zip"
FILENAME "angelscript_2.34.0.zip"
Expand Down
2 changes: 0 additions & 2 deletions ports/any-lite/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include(vcpkg_common_functions)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO martinmoene/any-lite
Expand Down
2 changes: 0 additions & 2 deletions ports/argagg/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# header-only library

include(vcpkg_common_functions)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO vietjtnguyen/argagg
Expand Down
5 changes: 0 additions & 5 deletions ports/argh/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# header-only library

include(vcpkg_common_functions)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO adishavit/argh
Expand Down Expand Up @@ -34,6 +32,3 @@ file(REMOVE ${CURRENT_PACKAGES_DIR}/README.md)

# Handle copyright
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)

# CMake integration test
vcpkg_test_cmake(PACKAGE_NAME ${PORT})
5 changes: 0 additions & 5 deletions ports/argparse/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# header-only library

include(vcpkg_common_functions)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO p-ranav/argparse
Expand All @@ -25,6 +23,3 @@ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)

# Handle copyright
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)

# CMake integration test
vcpkg_test_cmake(PACKAGE_NAME ${PORT})
2 changes: 0 additions & 2 deletions ports/args/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#header-only library
include(vcpkg_common_functions)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Taywee/args
Expand Down
2 changes: 0 additions & 2 deletions ports/asio/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#header-only library
include(vcpkg_common_functions)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO chriskohlhoff/asio
Expand Down
2 changes: 0 additions & 2 deletions ports/asynch/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include(vcpkg_common_functions)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO naasking/async.h
Expand Down
4 changes: 0 additions & 4 deletions ports/asyncplusplus/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include(vcpkg_common_functions)

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)

vcpkg_from_github(
Expand Down Expand Up @@ -30,5 +28,3 @@ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR

file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/asyncplusplus)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/asyncplusplus/LICENSE ${CURRENT_PACKAGES_DIR}/share/asyncplusplus/copyright)

vcpkg_test_cmake(PACKAGE_NAME Async++)
2 changes: 0 additions & 2 deletions ports/atk/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include(vcpkg_common_functions)

vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY ONLY_DYNAMIC_CRT)

set(ATK_VERSION 2.24.0)
Expand Down
2 changes: 0 additions & 2 deletions ports/aubio/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include(vcpkg_common_functions)

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)

vcpkg_from_github(
Expand Down
1 change: 0 additions & 1 deletion ports/aurora/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
include(vcpkg_common_functions)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Bromeon/Aurora
Expand Down
2 changes: 0 additions & 2 deletions ports/autobahn/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#header-only library
include(vcpkg_common_functions)

set(USE_UPSTREAM OFF)
if("upstream" IN_LIST FEATURES)
set(USE_UPSTREAM ON)
Expand Down
2 changes: 0 additions & 2 deletions ports/azure-macro-utils-c/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include(vcpkg_common_functions)

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)

if("public-preview" IN_LIST FEATURES)
Expand Down
2 changes: 0 additions & 2 deletions ports/bdwgc/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include(vcpkg_common_functions)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO ivmai/bdwgc
Expand Down
2 changes: 0 additions & 2 deletions ports/behaviortree-cpp/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,3 @@ file(REMOVE_RECURSE
"${CURRENT_PACKAGES_DIR}/lib/BehaviorTreeV3"
"${CURRENT_PACKAGES_DIR}/debug/lib/BehaviorTreeV3"
)

vcpkg_test_cmake(PACKAGE_NAME BehaviorTreeV3)
2 changes: 0 additions & 2 deletions ports/bento4/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include(vcpkg_common_functions)

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)

vcpkg_from_github(
Expand Down
2 changes: 0 additions & 2 deletions ports/binn/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include(vcpkg_common_functions)

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)

vcpkg_from_github(
Expand Down
2 changes: 0 additions & 2 deletions ports/boolinq/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Single-file header-only library

include(vcpkg_common_functions)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO k06a/boolinq
Expand Down
2 changes: 0 additions & 2 deletions ports/boost-build/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include(vcpkg_common_functions)

set(VCPKG_POLICY_EMPTY_PACKAGE enabled)

if(CMAKE_HOST_WIN32 AND VCPKG_CMAKE_SYSTEM_NAME AND NOT VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore" AND NOT VCPKG_CMAKE_SYSTEM_NAME STREQUAL "MinGW")
Expand Down
2 changes: 0 additions & 2 deletions ports/boost-di/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include(vcpkg_common_functions)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO boost-experimental/di
Expand Down
2 changes: 0 additions & 2 deletions ports/brigand/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include(vcpkg_common_functions)

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)

vcpkg_from_github(
Expand Down
7 changes: 1 addition & 6 deletions ports/brunocodutra-metal/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# header-only library

include(vcpkg_common_functions)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO brunocodutra/metal
REF 43256d2c7f5715d9dc029037bcd8512624ec7865 # v2.1.1
REF 43256d2c7f5715d9dc029037bcd8512624ec7865 # v2.1.1
SHA512 fc69e60b9c21d0215ca2c9ec27ab65d59115397e1d27c90fcdc35ccf8675546b1fbc3be0e6b8f69cd8eb848bac348ca0fe116f50a36ce8d1cbff0d646c4f05cb
HEAD_REF master
)
Expand All @@ -26,6 +24,3 @@ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)

# Handle copyright
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)

# CMake integration test
vcpkg_test_cmake(PACKAGE_NAME ${PORT})
2 changes: 0 additions & 2 deletions ports/butteraugli/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include(vcpkg_common_functions)

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)

vcpkg_from_github(
Expand Down
2 changes: 0 additions & 2 deletions ports/byte-lite/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include(vcpkg_common_functions)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO martinmoene/byte-lite
Expand Down
2 changes: 0 additions & 2 deletions ports/c-ares/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
message(FATAL_ERROR "c-ares does not currently support UWP.")
endif()

include(vcpkg_common_functions)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO c-ares/c-ares
Expand Down
2 changes: 0 additions & 2 deletions ports/caffe2/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include(vcpkg_common_functions)

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)

if (VCPKG_TARGET_ARCHITECTURE STREQUAL x86)
Expand Down
2 changes: 0 additions & 2 deletions ports/cairo/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,3 @@ endforeach()
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)

vcpkg_copy_pdbs()

#vcpkg_test_cmake(PACKAGE_NAME unofficial-cairo)
2 changes: 0 additions & 2 deletions ports/cairomm/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include(vcpkg_common_functions)

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)

set(CAIROMM_VERSION 1.15.3)
Expand Down
3 changes: 0 additions & 3 deletions ports/capnproto/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,3 @@ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)

# Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)

# Disabled for now, see #5630 and #5635
# vcpkg_test_cmake(PACKAGE_NAME CapnProto)
2 changes: 0 additions & 2 deletions ports/cartographer/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include(vcpkg_common_functions)

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)

vcpkg_from_github(
Expand Down
2 changes: 0 additions & 2 deletions ports/casclib/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include(vcpkg_common_functions)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO ladislav-zezula/CascLib
Expand Down
2 changes: 0 additions & 2 deletions ports/catch-classic/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include(vcpkg_common_functions)

set(CATCH_VERSION v1.12.2)

vcpkg_download_distfile(HEADER
Expand Down
1 change: 0 additions & 1 deletion ports/cccapstone/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
include(vcpkg_common_functions)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REF 9b4128ee1153e78288a1b5433e2c06a0d47a4c4e
Expand Down
2 changes: 0 additions & 2 deletions ports/cctz/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
message(FATAL_ERROR "${PORT} does not currently support UWP")
endif()

include(vcpkg_common_functions)

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)

vcpkg_from_github(
Expand Down
5 changes: 0 additions & 5 deletions ports/cello/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include(vcpkg_common_functions)

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)

vcpkg_from_github(
Expand Down Expand Up @@ -27,6 +25,3 @@ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)

# Handle copyright
configure_file(${SOURCE_PATH}/LICENSE.md ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)

# CMake integration test
vcpkg_test_cmake(PACKAGE_NAME unofficial-${PORT})
2 changes: 0 additions & 2 deletions ports/cereal/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#header-only library

include(vcpkg_common_functions)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO USCiLab/cereal
Expand Down
2 changes: 0 additions & 2 deletions ports/cgltf/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# header-only library

include(vcpkg_common_functions)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO jkuhlmann/cgltf
Expand Down
Loading

0 comments on commit 09a647a

Please sign in to comment.