aboutsummaryrefslogtreecommitdiff
path: root/ports/spix
diff options
context:
space:
mode:
authorMatthias Kuhn <matthias@opengis.ch>2021-08-30 19:20:48 +0200
committerGitHub <noreply@github.com>2021-08-30 10:20:48 -0700
commit4bd67a4371f8cdb7ccad359036c66cf24c7fca77 (patch)
tree07e7aa2f43446195c1c2757233af0b66223d8d1d /ports/spix
parent642666976a7e48c5933f1f4b21da658e491be09e (diff)
downloadvcpkg-4bd67a4371f8cdb7ccad359036c66cf24c7fca77.tar.gz
vcpkg-4bd67a4371f8cdb7ccad359036c66cf24c7fca77.zip
[spix] Add new port (#19351)
* [anyrpc] Bump version to export missing symbol * [spix] Add port * versioning * Update ports/anyrpc/vcpkg.json Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * versioning * Update ports/anyrpc/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * versioning Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
Diffstat (limited to 'ports/spix')
-rw-r--r--ports/spix/portfile.cmake25
-rw-r--r--ports/spix/vcpkg.json18
2 files changed, 43 insertions, 0 deletions
diff --git a/ports/spix/portfile.cmake b/ports/spix/portfile.cmake
new file mode 100644
index 000000000..91512aa78
--- /dev/null
+++ b/ports/spix/portfile.cmake
@@ -0,0 +1,25 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO faaxm/spix
+ REF v0.3
+ SHA512 be5695e1e061583645a711c91f218c2038ed66896932d9f32129242d20d0a451a032d53aee2fdb917f1423de96ebcba97887421636a13260a7e7c228a13666c0
+ HEAD_REF master
+)
+
+string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" ANYRPC_LIB_BUILD_SHARED)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DSPIX_BUILD_EXAMPLES=OFF
+ -DSPIX_BUILD_TESTS=OFF
+)
+
+vcpkg_cmake_install()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
+
+file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
+
+vcpkg_copy_pdbs()
diff --git a/ports/spix/vcpkg.json b/ports/spix/vcpkg.json
new file mode 100644
index 000000000..e2e1e5c48
--- /dev/null
+++ b/ports/spix/vcpkg.json
@@ -0,0 +1,18 @@
+{
+ "name": "spix",
+ "version": "0.3",
+ "description": "A minimally invasive UI testing library that enables your Qt/QML app's UI to be controlled either via c++ code, or through an http RPC interface.",
+ "homepage": "https://github.com/faaxm/spix",
+ "dependencies": [
+ "anyrpc",
+ {
+ "name": "qt5-base",
+ "default-features": false
+ },
+ "qt5-declarative",
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ }
+ ]
+}