aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/stx
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/stx')
-rw-r--r--vcpkg/ports/stx/portfile.cmake27
-rw-r--r--vcpkg/ports/stx/vcpkg.json23
2 files changed, 50 insertions, 0 deletions
diff --git a/vcpkg/ports/stx/portfile.cmake b/vcpkg/ports/stx/portfile.cmake
new file mode 100644
index 0000000..50559aa
--- /dev/null
+++ b/vcpkg/ports/stx/portfile.cmake
@@ -0,0 +1,27 @@
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO lamarrr/STX
+ REF "v${VERSION}"
+ SHA512 3cc06118677f9b43bc79e5719d408af8b4d8e729a4da20ee56431bdb8823e73f7eb4d4f961534d0c7329417d9371ebb1255246fc08a65fd67a7eca2b2b8a99a3
+ HEAD_REF main
+)
+
+vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
+ FEATURES
+ backtrace STX_ENABLE_BACKTRACE
+)
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ ${FEATURE_OPTIONS}
+)
+
+vcpkg_cmake_install()
+
+vcpkg_copy_pdbs()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
diff --git a/vcpkg/ports/stx/vcpkg.json b/vcpkg/ports/stx/vcpkg.json
new file mode 100644
index 0000000..0f6fd97
--- /dev/null
+++ b/vcpkg/ports/stx/vcpkg.json
@@ -0,0 +1,23 @@
+{
+ "name": "stx",
+ "version": "1.0.5",
+ "description": "STX is a collection of libraries and utilities designed to make working with C++ easier and less error-prone.",
+ "homepage": "https://github.com/lamarrr/STX",
+ "license": "MIT",
+ "dependencies": [
+ "abseil",
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ],
+ "features": {
+ "backtrace": {
+ "description": "stacktrace support for STX"
+ }
+ }
+}