diff options
Diffstat (limited to 'vcpkg/ports/constexpr')
| -rw-r--r-- | vcpkg/ports/constexpr/portfile.cmake | 14 | ||||
| -rw-r--r-- | vcpkg/ports/constexpr/vcpkg.json | 8 |
2 files changed, 22 insertions, 0 deletions
diff --git a/vcpkg/ports/constexpr/portfile.cmake b/vcpkg/ports/constexpr/portfile.cmake new file mode 100644 index 0000000..493e78d --- /dev/null +++ b/vcpkg/ports/constexpr/portfile.cmake @@ -0,0 +1,14 @@ +#header-only library +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO elbeno/constexpr + REF a98b1db39c909e0130d21d3910d4faf97035a625 + SHA512 8802ee43b510ea1f0c00949eecd84eb2bf3ac721802e6bc6755db9e6e2742d8b97fef427eca7d4d9a282c60a18ca10401386022eac995bd22624f45e3fc2c370 + HEAD_REF master +) + +# Copy the constexpr header files +file(GLOB HEADER_FILES "${SOURCE_PATH}/src/include/*.h") +file(COPY ${HEADER_FILES} DESTINATION "${CURRENT_PACKAGES_DIR}/include") + +file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) diff --git a/vcpkg/ports/constexpr/vcpkg.json b/vcpkg/ports/constexpr/vcpkg.json new file mode 100644 index 0000000..b7f2665 --- /dev/null +++ b/vcpkg/ports/constexpr/vcpkg.json @@ -0,0 +1,8 @@ +{ + "name": "constexpr", + "version": "1.0", + "port-version": 3, + "description": "Small MIT License Library of general stdlib functions written as C++11 constexpr functions.", + "homepage": "https://github.com/elbeno/constexpr", + "license": "MIT" +} |