aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/tinycthread
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/tinycthread
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/tinycthread')
-rw-r--r--vcpkg/ports/tinycthread/portfile.cmake26
-rw-r--r--vcpkg/ports/tinycthread/vcpkg.json13
2 files changed, 39 insertions, 0 deletions
diff --git a/vcpkg/ports/tinycthread/portfile.cmake b/vcpkg/ports/tinycthread/portfile.cmake
new file mode 100644
index 0000000..2c1b5c2
--- /dev/null
+++ b/vcpkg/ports/tinycthread/portfile.cmake
@@ -0,0 +1,26 @@
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO tinycthread/tinycthread
+ REF 6957fc8383d6c7db25b60b8c849b29caab1caaee
+ SHA512 d8b1ad73676f90b236bef06464cfd34996e7b6676ef28cf011cfff86d63e9d6322f7b00ca15290b3f87ed40e704d5325f676440d0223a7f8716d3392a5d1345d
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DTINYCTHREAD_DISABLE_TESTS=OFF
+ -DTINYCTHREAD_INSTALL=ON
+)
+
+vcpkg_cmake_install()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+# Handle copyright
+file(STRINGS "${SOURCE_PATH}/README.txt" SOURCE_LINES)
+list(SUBLIST SOURCE_LINES 70 120 SOURCE_LINES)
+list(JOIN SOURCE_LINES "\n" _contents)
+file(WRITE "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" "${_contents}")
diff --git a/vcpkg/ports/tinycthread/vcpkg.json b/vcpkg/ports/tinycthread/vcpkg.json
new file mode 100644
index 0000000..a66b799
--- /dev/null
+++ b/vcpkg/ports/tinycthread/vcpkg.json
@@ -0,0 +1,13 @@
+{
+ "name": "tinycthread",
+ "version-date": "2019-08-06",
+ "port-version": 3,
+ "description": "Small, portable implementation of the C11 threads API",
+ "homepage": "https://tinycthread.github.io/",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ }
+ ]
+}