diff options
Diffstat (limited to 'vcpkg/ports/vili')
| -rw-r--r-- | vcpkg/ports/vili/portfile.cmake | 25 | ||||
| -rw-r--r-- | vcpkg/ports/vili/usage | 5 | ||||
| -rw-r--r-- | vcpkg/ports/vili/vcpkg.json | 22 |
3 files changed, 52 insertions, 0 deletions
diff --git a/vcpkg/ports/vili/portfile.cmake b/vcpkg/ports/vili/portfile.cmake new file mode 100644 index 0000000..48c9498 --- /dev/null +++ b/vcpkg/ports/vili/portfile.cmake @@ -0,0 +1,25 @@ + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO "ViliOrg/Vili" + REF "6e97dde7ef7cfe95ef715640524210b6477ecfa1" + SHA512 "a3c198df442a870f4075136d7eeb4f5241728cdd737ee002f7040e8f3c74e7216a0ebe0aab95ce4dc6e56ba84d3f43f4af2b9ec1116efb13d2b6f3977fcb1f33" + HEAD_REF "master" +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + "-DBUILD_TESTS=OFF" +) + +vcpkg_cmake_install() + +vcpkg_install_copyright( + FILE_LIST "${SOURCE_PATH}/LICENSE" +) + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") + +file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") diff --git a/vcpkg/ports/vili/usage b/vcpkg/ports/vili/usage new file mode 100644 index 0000000..75a7be3 --- /dev/null +++ b/vcpkg/ports/vili/usage @@ -0,0 +1,5 @@ + +The package vili provides CMake targets: + + find_package("vili" CONFIG REQUIRED) + target_link_libraries("main" PRIVATE "vili::vili") diff --git a/vcpkg/ports/vili/vcpkg.json b/vcpkg/ports/vili/vcpkg.json new file mode 100644 index 0000000..8ba66ff --- /dev/null +++ b/vcpkg/ports/vili/vcpkg.json @@ -0,0 +1,22 @@ +{ + "name": "vili", + "version": "1.0.0+20221123", + "port-version": 1, + "maintainers": "Sygmei", + "description": "A nice and readable data format !", + "homepage": "https://github.com/ViliOrg/Vili", + "license": "MIT", + "dependencies": [ + "fmt", + "nlohmann-fifo-map", + "pegtl", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |