2022-03-12 03:20:56 +08:00
|
|
|
vcpkg_from_github(
|
2018-04-26 02:46:18 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2022-03-12 03:20:56 +08:00
|
|
|
REPO agruzdev/Yato
|
|
|
|
REF 9b5a49f6ec4169b67b9e5ffd11fdae9c238b0a3d
|
|
|
|
SHA512 41962839cd13a314a17fef5f6065d7c3ed9967832039ca31993105685d584307d00f17c1514f4acf855a71fd884a1104c2d9c6a4461be5d2d7cfdc50b1ea7bdb
|
2018-04-26 02:46:18 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
|
|
|
# Copy all header files
|
|
|
|
file(COPY "${SOURCE_PATH}/include/yato"
|
|
|
|
DESTINATION "${CURRENT_PACKAGES_DIR}/include"
|
|
|
|
)
|
2018-05-01 02:30:29 +08:00
|
|
|
file(COPY "${SOURCE_PATH}/modules/actors/yato"
|
|
|
|
DESTINATION "${CURRENT_PACKAGES_DIR}/include"
|
|
|
|
)
|
|
|
|
file(COPY "${SOURCE_PATH}/modules/config/yato"
|
|
|
|
DESTINATION "${CURRENT_PACKAGES_DIR}/include"
|
|
|
|
)
|
2018-04-26 02:46:18 +08:00
|
|
|
|
2022-03-12 03:20:56 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2018-05-01 02:30:29 +08:00
|
|
|
OPTIONS
|
|
|
|
-DYATO_BUILD_TESTS:BOOL=OFF
|
|
|
|
-DYATO_BUILD_ACTORS:BOOL=ON
|
|
|
|
-DYATO_BUILD_CONFIG:BOOL=ON
|
2018-04-26 02:46:18 +08:00
|
|
|
)
|
|
|
|
|
2022-03-12 03:20:56 +08:00
|
|
|
vcpkg_cmake_build()
|
2018-04-26 02:46:18 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2022-03-12 03:20:56 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|