diff --git a/ports/bark/portfile.cmake b/ports/bark/portfile.cmake new file mode 100644 index 0000000000..0ff8b6586b --- /dev/null +++ b/ports/bark/portfile.cmake @@ -0,0 +1,29 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO twig-energy/bark + REF "${VERSION}" + HEAD_REF main + SHA512 96fca5df5a3a0bc91d8b626f1538c517df778dc2a0cf29f1061ef041a270bb2f798525ad4c6a64fbaf7c5e0617475a0abf581eb3f15003e769adc317f1c9e746 +) + +if(VCPKG_TARGET_IS_WINDOWS) + vcpkg_check_linkage(ONLY_STATIC_LIBRARY) +endif() + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DCMAKE_CXX_STANDARD=20 + -DCMAKE_CXX_STANDARD_REQUIRED=ON + -DCMAKE_CXX_EXTENSIONS=OFF) + +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/bark) +vcpkg_copy_pdbs() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") + +file(INSTALL "${CURRENT_PORT_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/ports/bark/usage b/ports/bark/usage new file mode 100644 index 0000000000..8df6f3adaf --- /dev/null +++ b/ports/bark/usage @@ -0,0 +1,4 @@ +bark provides CMake targets: + + find_package(bark CONFIG REQUIRED) + target_link_libraries(main PRIVATE twig::bark) diff --git a/ports/bark/vcpkg.json b/ports/bark/vcpkg.json new file mode 100644 index 0000000000..2f9913db73 --- /dev/null +++ b/ports/bark/vcpkg.json @@ -0,0 +1,31 @@ +{ + "name": "bark", + "version-semver": "0.3.0", + "description": "A modern, low latency datadog client for C++", + "homepage": "https://github.com/twig-energy/bark", + "license": "MIT", + "supports": "!(uwp | osx)", + "dependencies": [ + "asio", + "fmt", + "mpmcqueue", + "spscqueue", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ], + "features": { + "test": { + "description": "Dependencies for testing", + "dependencies": [ + "benchmark", + "doctest" + ] + } + } +} diff --git a/versions/b-/bark.json b/versions/b-/bark.json new file mode 100644 index 0000000000..27a439f863 --- /dev/null +++ b/versions/b-/bark.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "07b2df93bac4785ff63f152e6616d86c4dd0c16e", + "version-semver": "0.3.0", + "port-version": 0 + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index 66212ed795..7a51c00179 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -560,6 +560,10 @@ "baseline": "3.15.0", "port-version": 0 }, + "bark": { + "baseline": "0.3.0", + "port-version": 0 + }, "basisu": { "baseline": "1.16.4", "port-version": 0