Merge pull request #3325 from agruzdev/dev/agruzdev/yato

[yato] Added yato library package
This commit is contained in:
Alexander Karatarakis 2018-04-26 18:21:50 -07:00 committed by GitHub
commit 3f32660f07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 44 additions and 0 deletions

3
ports/yato/CONTROL Normal file
View File

@ -0,0 +1,3 @@
Source: yato
Version: 1.0
Description: Modern C++14 containers and utilities, actors system, typesafe config

41
ports/yato/portfile.cmake Normal file
View File

@ -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)