aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/scripts/test_ports/vcpkg-ci-libgwenhywfar
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/scripts/test_ports/vcpkg-ci-libgwenhywfar')
-rw-r--r--vcpkg/scripts/test_ports/vcpkg-ci-libgwenhywfar/portfile.cmake10
-rw-r--r--vcpkg/scripts/test_ports/vcpkg-ci-libgwenhywfar/project/CMakeLists.txt11
-rw-r--r--vcpkg/scripts/test_ports/vcpkg-ci-libgwenhywfar/project/main.c8
-rw-r--r--vcpkg/scripts/test_ports/vcpkg-ci-libgwenhywfar/vcpkg.json49
4 files changed, 78 insertions, 0 deletions
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-libgwenhywfar/portfile.cmake b/vcpkg/scripts/test_ports/vcpkg-ci-libgwenhywfar/portfile.cmake
new file mode 100644
index 0000000..dd25706
--- /dev/null
+++ b/vcpkg/scripts/test_ports/vcpkg-ci-libgwenhywfar/portfile.cmake
@@ -0,0 +1,10 @@
+set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
+
+vcpkg_find_acquire_program(PKGCONFIG)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${CURRENT_PORT_DIR}/project"
+ OPTIONS
+ "-DPKG_CONFIG_EXECUTABLE=${PKGCONFIG}"
+)
+vcpkg_cmake_build()
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-libgwenhywfar/project/CMakeLists.txt b/vcpkg/scripts/test_ports/vcpkg-ci-libgwenhywfar/project/CMakeLists.txt
new file mode 100644
index 0000000..7e04f35
--- /dev/null
+++ b/vcpkg/scripts/test_ports/vcpkg-ci-libgwenhywfar/project/CMakeLists.txt
@@ -0,0 +1,11 @@
+cmake_minimum_required(VERSION 3.10)
+project(libgwenhywfar-test C)
+
+find_package(PkgConfig REQUIRED)
+
+block()
+ pkg_check_modules(gwenhywfar IMPORTED_TARGET REQUIRED gwenhywfar)
+
+ add_executable(libgwenhywfar_pkgconfig main.c)
+ target_link_libraries(libgwenhywfar_pkgconfig PkgConfig::gwenhywfar)
+endblock()
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-libgwenhywfar/project/main.c b/vcpkg/scripts/test_ports/vcpkg-ci-libgwenhywfar/project/main.c
new file mode 100644
index 0000000..6a24a6a
--- /dev/null
+++ b/vcpkg/scripts/test_ports/vcpkg-ci-libgwenhywfar/project/main.c
@@ -0,0 +1,8 @@
+#include <gwenhywfar/gwenhywfar.h> /* based on gwenhywfar.pc */
+
+int main()
+{
+ int result = GWEN_Init();
+ GWEN_Fini();
+ return result;
+}
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-libgwenhywfar/vcpkg.json b/vcpkg/scripts/test_ports/vcpkg-ci-libgwenhywfar/vcpkg.json
new file mode 100644
index 0000000..3f9f827
--- /dev/null
+++ b/vcpkg/scripts/test_ports/vcpkg-ci-libgwenhywfar/vcpkg.json
@@ -0,0 +1,49 @@
+{
+ "name": "vcpkg-ci-libgwenhywfar",
+ "version-string": "ci",
+ "description": "Validates libgwenhywfar",
+ "dependencies": [
+ {
+ "name": "libgwenhywfar",
+ "default-features": false
+ },
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ }
+ ],
+ "default-features": [
+ {
+ "name": "openssl",
+ "platform": "!arm64"
+ },
+ {
+ "name": "qt5",
+ "platform": "!(osx & static)"
+ }
+ ],
+ "features": {
+ "openssl": {
+ "description": "Use openssl",
+ "dependencies": [
+ {
+ "name": "libgwenhywfar",
+ "features": [
+ "openssl"
+ ]
+ }
+ ]
+ },
+ "qt5": {
+ "description": "Install qt5 binding",
+ "dependencies": [
+ {
+ "name": "libgwenhywfar",
+ "features": [
+ "qt5"
+ ]
+ }
+ ]
+ }
+ }
+}