diff options
| author | Alexander Karatarakis <alex@karatarakis.com> | 2018-04-26 18:21:50 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-04-26 18:21:50 -0700 |
| commit | 3f32660f07d9d894b7be2465beda6413bdc325cb (patch) | |
| tree | 78bfc5ac9f95a89451566a17d7486a21e6c13140 | |
| parent | 5baa90a615b4a99e24fba7fa2764726d6559667f (diff) | |
| parent | 28082c2e936137dd30ece6ea85c2cfece88f1f9d (diff) | |
| download | vcpkg-3f32660f07d9d894b7be2465beda6413bdc325cb.tar.gz vcpkg-3f32660f07d9d894b7be2465beda6413bdc325cb.zip | |
Merge pull request #3325 from agruzdev/dev/agruzdev/yato
[yato] Added yato library package
| -rw-r--r-- | ports/yato/CONTROL | 3 | ||||
| -rw-r--r-- | ports/yato/portfile.cmake | 41 |
2 files changed, 44 insertions, 0 deletions
diff --git a/ports/yato/CONTROL b/ports/yato/CONTROL new file mode 100644 index 000000000..f3793fb80 --- /dev/null +++ b/ports/yato/CONTROL @@ -0,0 +1,3 @@ +Source: yato
+Version: 1.0
+Description: Modern C++14 containers and utilities, actors system, typesafe config
diff --git a/ports/yato/portfile.cmake b/ports/yato/portfile.cmake new file mode 100644 index 000000000..f688675ba --- /dev/null +++ b/ports/yato/portfile.cmake @@ -0,0 +1,41 @@ +include(vcpkg_common_functions)
+
+vcpkg_from_bitbucket(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO alexey_gruzdev/yato
+ REF v1.0
+ SHA512 631b870fd2704a03d9d66ef244f4e50968ae63da4fda0c7cd1f6ce2cea2b1e8b4506b0148cd1af1e133a70fd5d9cdc9d8c054edac6141118ee3c9427e186b270
+ HEAD_REF master
+)
+
+# Copy all header files
+file(COPY "${SOURCE_PATH}/include/yato"
+ DESTINATION "${CURRENT_PACKAGES_DIR}/include"
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ OPTIONS -DYATO_BUILD_TESTS:BOOL=OFF -DYATO_BUILD_ACTORS:BOOL=ON -DYATO_BUILD_CONFIG:BOOL=ON -DYATO_CONFIG_MANUAL:BOOL=ON
+)
+
+vcpkg_build_cmake()
+
+set(BUILD_ROOT_DEBUG "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg")
+set(BUILD_ROOT_RELEASE "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel")
+
+file(COPY "${BUILD_ROOT_DEBUG}/modules/actors/Debug/YatoActors.lib"
+ "${BUILD_ROOT_DEBUG}/modules/config/Debug/YatoConfig.lib"
+ DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib/"
+)
+
+file(COPY "${BUILD_ROOT_RELEASE}/modules/actors/Release/YatoActors.lib"
+ "${BUILD_ROOT_RELEASE}/modules/config/Release/YatoConfig.lib"
+ DESTINATION "${CURRENT_PACKAGES_DIR}/lib/"
+)
+
+# Handle copyright
+file(COPY ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/yato)
+file(RENAME ${CURRENT_PACKAGES_DIR}/share/yato/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/yato/copyright)
+
+
+
|
