mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-23 02:57:09 +01:00
[dimcli] update
This commit is contained in:
parent
6c22dbea97
commit
49961e151b
@ -1,4 +1,3 @@
|
|||||||
Source: dimcli
|
Source: dimcli
|
||||||
Version: 1.0.3
|
Version: 2.0.0
|
||||||
Description: C++ command line parser toolkit
|
Description: C++ command line parser toolkit
|
||||||
|
|
||||||
|
@ -1,28 +1,19 @@
|
|||||||
# Common Ambient Variables:
|
|
||||||
# VCPKG_ROOT_DIR = <C:\path\to\current\vcpkg>
|
|
||||||
# TARGET_TRIPLET is the current triplet (x86-windows, etc)
|
|
||||||
# PORT is the current port name (zlib, etc)
|
|
||||||
# CURRENT_BUILDTREES_DIR = ${VCPKG_ROOT_DIR}\buildtrees\${PORT}
|
|
||||||
# CURRENT_PACKAGES_DIR = ${VCPKG_ROOT_DIR}\packages\${PORT}_${TARGET_TRIPLET}
|
|
||||||
#
|
|
||||||
|
|
||||||
set(ver 1.0.3)
|
|
||||||
include(vcpkg_common_functions)
|
include(vcpkg_common_functions)
|
||||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/dimcli-${ver})
|
|
||||||
vcpkg_download_distfile(ARCHIVE
|
|
||||||
URLS "https://github.com/gknowles/dimcli/archive/v${ver}.zip"
|
|
||||||
FILENAME "dimcli-${ver}.zip"
|
|
||||||
SHA512 5168aff22223cb85421fabd4ce82f3ec0bcab6551704484bc5b05be02ead23bd3d4a629c558a15f214e9d999eccc9c129649d066fdacfda3c839a40b48f8ec17
|
|
||||||
)
|
|
||||||
vcpkg_extract_source_archive(${ARCHIVE})
|
|
||||||
|
|
||||||
|
vcpkg_from_github(
|
||||||
|
OUT_SOURCE_PATH SOURCE_PATH
|
||||||
|
REPO gknowles/dimcli
|
||||||
|
REF v2.0.0
|
||||||
|
SHA512 55ff29e3ddd6a96946f58e661231a1d2197f56a86c9260142f083589738aaa5e2f7721c754fa4a86b450a943c19367e1c4f82aec57e5b7ae7336f989e0194dec
|
||||||
|
HEAD_REF master
|
||||||
|
)
|
||||||
set(staticCrt OFF)
|
set(staticCrt OFF)
|
||||||
if(VCPKG_CRT_LINKAGE STREQUAL static)
|
if(VCPKG_CRT_LINKAGE STREQUAL static)
|
||||||
set(staticCrt ON)
|
set(staticCrt ON)
|
||||||
endif()
|
endif()
|
||||||
vcpkg_configure_cmake(
|
vcpkg_configure_cmake(
|
||||||
SOURCE_PATH ${SOURCE_PATH}
|
SOURCE_PATH ${SOURCE_PATH}
|
||||||
OPTIONS -DLINK_STATIC_RUNTIME:BOOL=${staticCrt}
|
OPTIONS -DLINK_STATIC_RUNTIME:BOOL=${staticCrt}
|
||||||
)
|
)
|
||||||
|
|
||||||
vcpkg_install_cmake()
|
vcpkg_install_cmake()
|
||||||
@ -31,7 +22,6 @@ vcpkg_install_cmake()
|
|||||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||||
|
|
||||||
# Handle copyright
|
# Handle copyright
|
||||||
file(INSTALL "${SOURCE_PATH}/LICENSE"
|
file(INSTALL "${SOURCE_PATH}/LICENSE"
|
||||||
DESTINATION "${CURRENT_PACKAGES_DIR}/share/dimcli"
|
DESTINATION "${CURRENT_PACKAGES_DIR}/share/dimcli"
|
||||||
RENAME copyright)
|
RENAME copyright)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user