aboutsummaryrefslogtreecommitdiff
path: root/ports/frugally-deep
diff options
context:
space:
mode:
authorMathis Logemann <mathisloge@gmail.com>2021-04-29 00:32:43 +0200
committerGitHub <noreply@github.com>2021-04-28 15:32:43 -0700
commitb9a6b3985ff9e84a28e4280b673298fedf8f2c17 (patch)
tree0773783dc4781883878f7a2fba9d0a2363eacd80 /ports/frugally-deep
parent62407516123a9aaf36710bce15368dd7ca9b168d (diff)
downloadvcpkg-b9a6b3985ff9e84a28e4280b673298fedf8f2c17.tar.gz
vcpkg-b9a6b3985ff9e84a28e4280b673298fedf8f2c17.zip
[new/updated port] frugally-deep and updated fplus (#17559)
* update fplus and fix cmake target. new port frugally-deep * update version and format manifest * add frugally-deep version * lol thats header only.. * update version * add feature double to frugally-deep * update version
Diffstat (limited to 'ports/frugally-deep')
-rw-r--r--ports/frugally-deep/portfile.cmake28
-rw-r--r--ports/frugally-deep/vcpkg.json16
2 files changed, 44 insertions, 0 deletions
diff --git a/ports/frugally-deep/portfile.cmake b/ports/frugally-deep/portfile.cmake
new file mode 100644
index 000000000..725e384cb
--- /dev/null
+++ b/ports/frugally-deep/portfile.cmake
@@ -0,0 +1,28 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO Dobiasd/frugally-deep
+ REF v0.15.2-p0
+ SHA512 2237c139c217cc9e338c854505009e85cea6658888e0d97c0c7957b58e0e53e2add555b81fa276c2ec9f794d5356bdb267c1e0b05090c83627916d954d2a11ba
+ HEAD_REF master
+)
+
+vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
+ FEATURES
+ double FDEEP_USE_DOUBLE
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS
+ -DFDEEP_BUILD_UNITTEST=OFF
+ -DFDEEP_USE_TOOLCHAIN=ON
+ ${FEATURE_OPTIONS}
+)
+
+vcpkg_install_cmake()
+vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/frugally-deep TARGET_PATH share/${PORT})
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
+
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
diff --git a/ports/frugally-deep/vcpkg.json b/ports/frugally-deep/vcpkg.json
new file mode 100644
index 000000000..80ff2ebec
--- /dev/null
+++ b/ports/frugally-deep/vcpkg.json
@@ -0,0 +1,16 @@
+{
+ "name": "frugally-deep",
+ "version-semver": "0.15.2-p0",
+ "description": "Header-only library for using Keras models in C++.",
+ "homepage": "https://github.com/Dobiasd/frugally-deep",
+ "dependencies": [
+ "eigen3",
+ "fplus",
+ "nlohmann-json"
+ ],
+ "features": {
+ "double": {
+ "description": "Use double precision"
+ }
+ }
+}