Skip to content

Commit

Permalink
[stduuid] Adding new port stduuid
Browse files Browse the repository at this point in the history
  • Loading branch information
damcclos committed Feb 25, 2021
1 parent 319b8f0 commit aa75c0c
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
30 changes: 30 additions & 0 deletions ports/stduuid/portfile.cmake
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)
22 changes: 22 additions & 0 deletions ports/stduuid/vcpkg.json
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"
}
]
}

0 comments on commit aa75c0c

Please sign in to comment.