mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 23:59:02 +08:00
d090b933e9
* [getopt-win32] ARM64 support * retrigger checks * updated git-tree sha * Specify ports that do not support ARM but were enabled by getopt-win32 adding support. * Upated SHA's * Update ports/getopt-win32/portfile.cmake Formatting indentation fix. Co-authored-by: Mengna Li <95600143+Adela0814@users.noreply.github.com> * Formatting indentation fix. * Update version database * [getopt-win32] Use CMake * Updating versions Co-authored-by: Mengna Li <95600143+Adela0814@users.noreply.github.com> Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
24 lines
915 B
CMake
24 lines
915 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO libimobiledevice-win32/getopt
|
|
REF 0.1
|
|
SHA512 40e2a901241a5d751cec741e5de423c8f19b105572c7cae18adb6e69be0b408efc6c9a2ecaeb62f117745eac0d093f30d6b91d88c1a27e1f7be91f0e84fdf199
|
|
HEAD_REF master
|
|
PATCHES getopt.h.patch
|
|
)
|
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
|
|
|
vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}")
|
|
vcpkg_cmake_install()
|
|
|
|
file(COPY "${SOURCE_PATH}/getopt.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include/")
|
|
if (VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/getopt.h"
|
|
" #define __GETOPT_H_" " #define __GETOPT_H_\n #define STATIC_GETOPT"
|
|
)
|
|
endif()
|
|
|
|
configure_file("${SOURCE_PATH}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
|
|
set(VCPKG_POLICY_ALLOW_RESTRICTED_HEADERS enabled)
|