mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 01:59:00 +08:00
[value-ptr-lite] Fix usage (#19457)
* [value-ptr-lite] Fix usage * Add port-version * Update version files
This commit is contained in:
parent
8aa1541d79
commit
3d4c4cbdc7
@ -1,7 +0,0 @@
|
||||
Source: value-ptr-lite
|
||||
Version: 0.2.1
|
||||
Homepage: https://github.com/martinmoene/value-ptr-lite
|
||||
Description: A C++ smart-pointer with value semantics for C++98, C++11 and later in a single-file header-only library.
|
||||
|
||||
Feature: test
|
||||
Description: Build with test
|
@ -7,24 +7,22 @@ vcpkg_from_github(
|
||||
)
|
||||
|
||||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||
test BUILD_TESTS
|
||||
FEATURES
|
||||
test VALUE_PTR_LITE_OPT_BUILD_TESTS
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS
|
||||
-DVALUE_PTR_LITE_OPT_BUILD_TESTS=${BUILD_TESTS}
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS ${FEATURE_OPTIONS}
|
||||
-DVALUE_PTR_LITE_OPT_BUILD_EXAMPLES=OFF
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_cmake_install()
|
||||
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/value_ptr-lite)
|
||||
vcpkg_cmake_config_fixup(PACKAGE_NAME value_ptr-lite CONFIG_PATH lib/cmake/value_ptr-lite)
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib)
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
||||
|
||||
# Handle copyright
|
||||
file(COPY ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/${PORT}/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright)
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
|
22
ports/value-ptr-lite/vcpkg.json
Normal file
22
ports/value-ptr-lite/vcpkg.json
Normal file
@ -0,0 +1,22 @@
|
||||
{
|
||||
"name": "value-ptr-lite",
|
||||
"version-semver": "0.2.1",
|
||||
"port-version": 1,
|
||||
"description": "A C++ smart-pointer with value semantics for C++98, C++11 and later in a single-file header-only library.",
|
||||
"homepage": "https://github.com/martinmoene/value-ptr-lite",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
],
|
||||
"features": {
|
||||
"test": {
|
||||
"description": "Build and perform value_ptr-lite tests."
|
||||
}
|
||||
}
|
||||
}
|
@ -6586,7 +6586,7 @@
|
||||
},
|
||||
"value-ptr-lite": {
|
||||
"baseline": "0.2.1",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"vamp-sdk": {
|
||||
"baseline": "2.9",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "69db499989a256cd9ce0397cb16814c6444b4877",
|
||||
"version-semver": "0.2.1",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "c678a31c0e75e1cf5b53dc2f6ed0eecc156d9133",
|
||||
"version-string": "0.2.1",
|
||||
|
Loading…
Reference in New Issue
Block a user