aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libtracepoint-decode
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/libtracepoint-decode')
-rw-r--r--vcpkg/ports/libtracepoint-decode/portfile.cmake21
-rw-r--r--vcpkg/ports/libtracepoint-decode/vcpkg.json18
2 files changed, 39 insertions, 0 deletions
diff --git a/vcpkg/ports/libtracepoint-decode/portfile.cmake b/vcpkg/ports/libtracepoint-decode/portfile.cmake
new file mode 100644
index 0000000..76a6ef8
--- /dev/null
+++ b/vcpkg/ports/libtracepoint-decode/portfile.cmake
@@ -0,0 +1,21 @@
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO "microsoft/LinuxTracepoints"
+ REF "v${VERSION}"
+ SHA512 baf27c967b2fa1fb8e8684951fd8e12e40fe9c23f5052a2d77c63eceab6ddfc112537422b97c37cfb0e479361fa8aedea6d8d7edfae91810f1ed696060fcb822
+ HEAD_REF main)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}/libtracepoint-decode-cpp")
+
+vcpkg_cmake_install()
+vcpkg_copy_pdbs()
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
+
+vcpkg_cmake_config_fixup(
+ PACKAGE_NAME tracepoint-decode
+ CONFIG_PATH lib/cmake/tracepoint-decode)
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
diff --git a/vcpkg/ports/libtracepoint-decode/vcpkg.json b/vcpkg/ports/libtracepoint-decode/vcpkg.json
new file mode 100644
index 0000000..960ec77
--- /dev/null
+++ b/vcpkg/ports/libtracepoint-decode/vcpkg.json
@@ -0,0 +1,18 @@
+{
+ "name": "libtracepoint-decode",
+ "version": "1.4.0",
+ "description": "C++ classes for decoding Linux Tracepoints",
+ "homepage": "https://github.com/microsoft/LinuxTracepoints/",
+ "license": "MIT",
+ "supports": "linux | windows",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}