Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[value-ptr-lite] Fix usage #19457

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions ports/value-ptr-lite/CONTROL

This file was deleted.

22 changes: 10 additions & 12 deletions ports/value-ptr-lite/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 22 additions & 0 deletions ports/value-ptr-lite/vcpkg.json
Original file line number Diff line number Diff line change
@@ -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."
}
}
}
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -6586,7 +6586,7 @@
},
"value-ptr-lite": {
"baseline": "0.2.1",
"port-version": 0
"port-version": 1
},
"vamp-sdk": {
"baseline": "2.9",
Expand Down
5 changes: 5 additions & 0 deletions versions/v-/value-ptr-lite.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "69db499989a256cd9ce0397cb16814c6444b4877",
"version-semver": "0.2.1",
"port-version": 1
},
{
"git-tree": "c678a31c0e75e1cf5b53dc2f6ed0eecc156d9133",
"version-string": "0.2.1",
Expand Down