2022-12-13 03:57:51 +08:00
vcpkg_minimum_required ( VERSION 2022-10-12 ) # for ${VERSION}
2022-08-27 05:07:10 +08:00
set ( VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled )
2023-01-11 07:09:39 +08:00
vcpkg_check_features ( OUT_FEATURE_OPTIONS FEATURE_OPTIONS
F E A T U R E S
" f o r c e - b u i l d " F O R C E _ B U I L D
)
if ( NOT X_VCPKG_FORCE_VCPKG_WAYLAND_LIBRARIES AND NOT VCPKG_TARGET_IS_WINDOWS AND NOT FORCE_BUILD )
2022-08-27 05:07:10 +08:00
message ( STATUS "Utils and libraries provided by '${PORT}' should be provided by your system! Install the required packages or force vcpkg libraries by setting X_VCPKG_FORCE_VCPKG_WAYLAND_LIBRARIES" )
set ( VCPKG_POLICY_EMPTY_PACKAGE enabled )
else ( )
2023-01-11 07:09:39 +08:00
if ( NOT FORCE_BUILD OR NOT X_VCPKG_FORCE_VCPKG_WAYLAND_LIBRARIES )
message ( FATAL_ERROR "To build wayland libraries the `force-build` feature must be enabled and the X_VCPKG_FORCE_VCPKG_WAYLAND_LIBRARIES triplet variable must be set." )
endif ( )
2022-08-27 05:07:10 +08:00
vcpkg_from_gitlab (
G I T L A B _ U R L h t t p s : / / g i t l a b . f r e e d e s k t o p . o r g
O U T _ S O U R C E _ P A T H S O U R C E _ P A T H
R E P O w a y l a n d / w a y l a n d - p r o t o c o l s
2022-12-13 03:57:51 +08:00
R E F $ { V E R S I O N }
S H A 5 1 2 c b 0 d 3 8 f a d a 6 4 8 3 2 f 8 f 7 c 7 1 c 1 f c d d 1 6 f c 3 0 1 3 c d 8 1 a c 7 1 4 6 e d b c 4 3 6 1 3 2 8 c 9 e 5 f 0 2 e 3 1 e 0 b a 3 b 5 2 1 9 e 8 5 1 0 3 f d c 3 5 a e e 4 9 d 5 4 f 9 b e 5 3 7 5 9 4 d 3 6 1 8 c 5 f b 2 7 d e 7 3 7 5 f 8 4 e 1
2022-08-27 05:07:10 +08:00
H E A D _ R E F m a s t e r
)
2022-10-26 12:01:40 +08:00
vcpkg_configure_meson (
2022-08-27 05:07:10 +08:00
S O U R C E _ P A T H " $ { S O U R C E _ P A T H } "
2022-10-26 12:01:40 +08:00
O P T I O N S
- D t e s t s = f a l s e
2022-08-27 05:07:10 +08:00
)
2022-10-26 12:01:40 +08:00
vcpkg_install_meson ( )
2022-08-27 05:07:10 +08:00
vcpkg_fixup_pkgconfig ( )
2022-12-13 03:57:51 +08:00
file ( REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" )
2022-08-27 05:07:10 +08:00
# Handle copyright
2022-12-13 03:57:51 +08:00
vcpkg_install_copyright ( FILE_LIST "${SOURCE_PATH}/COPYING" )
2022-08-27 05:07:10 +08:00
endif ( )