aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/cmocka
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/cmocka
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/cmocka')
-rw-r--r--vcpkg/ports/cmocka/portfile.cmake29
-rw-r--r--vcpkg/ports/cmocka/vcpkg.json18
2 files changed, 47 insertions, 0 deletions
diff --git a/vcpkg/ports/cmocka/portfile.cmake b/vcpkg/ports/cmocka/portfile.cmake
new file mode 100644
index 0000000..67105ce
--- /dev/null
+++ b/vcpkg/ports/cmocka/portfile.cmake
@@ -0,0 +1,29 @@
+vcpkg_from_gitlab(
+ GITLAB_URL https://gitlab.com
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO cmocka/cmocka
+ REF 672c5cee79eb412025c3dd8b034e611c1f119055
+ SHA512 e02ffe780698ce3930aceb1b927f7d48c932c6bb251a32b1f4ab44ecb4ff6bfe5c2a6b9e2dfede49cd4cc1d68a8bb903ef1d26c28536abf3581a9d803287aa0a
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DWITH_CMOCKERY_SUPPORT=ON
+ -DUNIT_TESTING=OFF
+ -DWITH_EXAMPLES=OFF
+ -DPICKY_DEVELOPER=OFF
+)
+
+vcpkg_cmake_install()
+
+vcpkg_copy_pdbs()
+
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
+
+vcpkg_fixup_pkgconfig()
diff --git a/vcpkg/ports/cmocka/vcpkg.json b/vcpkg/ports/cmocka/vcpkg.json
new file mode 100644
index 0000000..dbc6fd5
--- /dev/null
+++ b/vcpkg/ports/cmocka/vcpkg.json
@@ -0,0 +1,18 @@
+{
+ "name": "cmocka",
+ "version-date": "2020-08-01",
+ "port-version": 3,
+ "description": "An elegant unit testing framework for C with support for mock objects",
+ "homepage": "https://cmocka.org/",
+ "license": "Apache-2.0",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}