forked from microsoft/vcpkg
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
vcpkg_from_github( | ||
OUT_SOURCE_PATH SOURCE_PATH | ||
REPO mariusbancila/stduuid | ||
REF 5890c94bfac2f00f22a1c1481e5839c51d6a6f3f | ||
SHA512 82c5dc652c5c7cf0a51d4ec5d61203df1f55498d31b1a1812603391a09c95908d2cb3db396bd2e28c9ed42913cbc4c66b514fb5381bafdf50f6e32cbf545c3b9 | ||
HEAD_REF master | ||
) | ||
|
||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS | ||
test UUID_BUILD_TESTS | ||
system-gen UUID_SYSTEM_GENERATOR | ||
cxx20-span UUID_USING_CXX20_SPAN | ||
) | ||
|
||
vcpkg_configure_cmake( | ||
SOURCE_PATH ${SOURCE_PATH} | ||
PREFER_NINJA | ||
OPTIONS | ||
${FEATURE_OPTIONS} | ||
) | ||
|
||
vcpkg_install_cmake() | ||
|
||
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT}) | ||
|
||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug) | ||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib) | ||
|
||
# Handle copyright | ||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"name": "stduuid", | ||
"version-string": "1.0-5890c94", | ||
"description": "A C++17 cross-platform single-header library implementation for universally unique identifiers, simply know as either UUID or GUID (mostly on Windows)", | ||
"homepage": "https://github.com/mariusbancila/stduuid", | ||
"license": "MIT", | ||
"features": [ | ||
{ | ||
"name": "test", | ||
"description": "Build the unit tests" | ||
}, | ||
{ | ||
"name": "system-gen", | ||
"description": "Enable operating system uuid generator" | ||
}, | ||
{ | ||
"name": "cxx20-span", | ||
"description": "Using span from std instead of gsl" | ||
} | ||
] | ||
} | ||
|