aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/entityx
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/entityx
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/entityx')
-rw-r--r--vcpkg/ports/entityx/portfile.cmake25
-rw-r--r--vcpkg/ports/entityx/vcpkg.json13
2 files changed, 38 insertions, 0 deletions
diff --git a/vcpkg/ports/entityx/portfile.cmake b/vcpkg/ports/entityx/portfile.cmake
new file mode 100644
index 0000000..3a731ea
--- /dev/null
+++ b/vcpkg/ports/entityx/portfile.cmake
@@ -0,0 +1,25 @@
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO alecthomas/entityx
+ REF 1.3.0
+ SHA512 724a3f421f802e60a1106ff8a69435c9a9da14e35c3e88565bbc17bff3a17f2d9771818aac83320cc4f14de0ec770a66f1eb7cbf4318f43abd516c63e077c07d
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ DISABLE_PARALLEL_CONFIGURE
+ OPTIONS
+ -DCMAKE_CXX_STANDARD=11 # std::iterator<X,Y> is deprecated in C++17
+ -DENTITYX_BUILD_TESTING=false
+ -DENTITYX_BUILD_SHARED=0
+)
+
+vcpkg_cmake_install()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+# Handle copyright
+file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/entityx" RENAME copyright)
diff --git a/vcpkg/ports/entityx/vcpkg.json b/vcpkg/ports/entityx/vcpkg.json
new file mode 100644
index 0000000..7222714
--- /dev/null
+++ b/vcpkg/ports/entityx/vcpkg.json
@@ -0,0 +1,13 @@
+{
+ "name": "entityx",
+ "version": "1.3.0",
+ "port-version": 6,
+ "description": "EntityX - A fast, type-safe C++ Entity-Component system.",
+ "homepage": "https://github.com/alecthomas/entityx",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ }
+ ]
+}