2022-09-01 07:20:31 +08:00
if ( NOT X_VCPKG_FORCE_VCPKG_X_LIBRARIES AND NOT VCPKG_TARGET_IS_WINDOWS )
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_X_LIBRARIES in your triplet!" )
set ( VCPKG_POLICY_EMPTY_PACKAGE enabled )
else ( )
set ( PATCHES "" )
if ( VCPKG_TARGET_IS_WINDOWS )
#vcpkg_check_linkage(ONLY_STATIC_LIBRARY) # Meson is not able to automatically export symbols for DLLs
2024-07-23 13:30:10 +08:00
set ( PATCHES build.patch )
2022-09-01 07:20:31 +08:00
endif ( )
vcpkg_from_github (
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 x k b c o m m o n / l i b x k b c o m m o n
2024-07-23 13:30:10 +08:00
R E F " x k b c o m m o n - $ { V E R S I O N } "
S H A 5 1 2 4 5 4 f b b 2 8 6 1 4 0 5 c a 9 5 7 d 6 4 0 3 5 e 9 2 4 c 1 b b b 7 d 4 3 d b 7 8 6 7 9 0 3 9 6 3 f c 0 5 3 b 7 e c b 6 4 a 8 f b a 8 9 a 2 1 c c 8 a c 1 8 e b e e c 9 b 6 1 a e 0 7 8 9 f b 8 8 c 5 2 5 2 1 a 8 5 0 d c 3 7 1 8 5 7 f 2 8 b 0 8 e 8 0 1 6 7 b
2022-09-01 07:20:31 +08:00
H E A D _ R E F m a s t e r
2024-07-23 13:30:10 +08:00
P A T C H E S
d i s a b l e - t e s t . p a t c h
$ { P A T C H E S }
2022-09-01 07:20:31 +08:00
)
vcpkg_find_acquire_program ( FLEX )
get_filename_component ( FLEX_DIR "${FLEX}" DIRECTORY )
vcpkg_add_to_path ( PREPEND "${FLEX_DIR}" )
vcpkg_find_acquire_program ( BISON )
get_filename_component ( BISON_DIR "${BISON}" DIRECTORY )
vcpkg_add_to_path ( PREPEND "${BISON_DIR}" )
set ( OPTIONS "" )
if ( VCPKG_TARGET_IS_WINDOWS )
set ( OPTIONS -Denable-xkbregistry=false )
endif ( )
vcpkg_configure_meson (
S O U R C E _ P A T H " $ { S O U R C E _ P A T H } "
O P T I O N S $ { O P T I O N S }
- D e n a b l e - w a y l a n d = f a l s e
- D e n a b l e - d o c s = f a l s e
- D e n a b l e - t o o l s = f a l s e
)
vcpkg_install_meson ( )
vcpkg_fixup_pkgconfig ( )
vcpkg_copy_pdbs ( )
file ( REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" )
file ( REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share" )
if ( VCPKG_LIBRARY_LINKAGE STREQUAL "static" )
file ( REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin" )
endif ( )
# Handle copyright
2024-07-23 13:30:10 +08:00
vcpkg_install_copyright ( FILE_LIST "${SOURCE_PATH}/LICENSE" )
2022-09-01 07:20:31 +08:00
endif ( )