aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/gapp
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/gapp
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/gapp')
-rw-r--r--vcpkg/ports/gapp/portfile.cmake29
-rw-r--r--vcpkg/ports/gapp/usage4
-rw-r--r--vcpkg/ports/gapp/vcpkg.json17
3 files changed, 50 insertions, 0 deletions
diff --git a/vcpkg/ports/gapp/portfile.cmake b/vcpkg/ports/gapp/portfile.cmake
new file mode 100644
index 0000000..d7de00f
--- /dev/null
+++ b/vcpkg/ports/gapp/portfile.cmake
@@ -0,0 +1,29 @@
+if(VCPKG_TARGET_IS_WINDOWS)
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+endif()
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO KRM7/gapp
+ REF "v${VERSION}"
+ SHA512 de6e1d9e28590cc569c05fe3b2462245940fcca5c8ffbc2974758062f88d3165e527fdc273bb290eb1080dd899d78b540fc7d0f62d7236b289a63e138484f5f0
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DGAPP_BUILD_TESTS=OFF
+ -DGAPP_USE_LTO=OFF
+)
+
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/gapp)
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/doc/gapp/api")
+
+configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" COPYONLY)
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
diff --git a/vcpkg/ports/gapp/usage b/vcpkg/ports/gapp/usage
new file mode 100644
index 0000000..bcfbbdf
--- /dev/null
+++ b/vcpkg/ports/gapp/usage
@@ -0,0 +1,4 @@
+gapp provides CMake targets:
+
+ find_package(gapp CONFIG REQUIRED)
+ target_link_libraries(main PRIVATE gapp::gapp)
diff --git a/vcpkg/ports/gapp/vcpkg.json b/vcpkg/ports/gapp/vcpkg.json
new file mode 100644
index 0000000..5984aad
--- /dev/null
+++ b/vcpkg/ports/gapp/vcpkg.json
@@ -0,0 +1,17 @@
+{
+ "name": "gapp",
+ "version": "1.0.0",
+ "description": "A genetic algorithms library in C++ for single- and multi-objective optimization.",
+ "homepage": "https://github.com/KRM7/gapp",
+ "license": "MIT",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}