2022-09-29 02:54:29 +08:00
if ( VCPKG_TARGET_IS_LINUX )
2023-12-14 15:44:51 +08:00
message ( STATUS "${PORT} currently requires the following libraries from the system package manager:\n libxi-dev\n libxtst-dev\n\nThese can be installed on Ubuntu systems via apt-get install libxi-dev libxtst-dev" )
2022-09-29 02:54:29 +08:00
endif ( )
vcpkg_from_gitlab (
O U T _ S O U R C E _ P A T H S O U R C E _ P A T H
G I T L A B _ U R L h t t p s : / / g i t l a b . g n o m e . o r g
R E P O G N O M E / a t - s p i 2 - c o r e
R E F A T _ S P I 2 _ C O R E _ 2 _ 4 4 _ 1
S H A 5 1 2 4 e 9 8 b 7 6 e 0 1 9 f 3 3 a f 6 9 8 a 5 e 2 b 7 a e 7 c e 1 7 c e 0 f f 5 7 7 8 4 b 4 d 5 0 5 f e 4 b a d 5 8 b 0 9 7 0 8 0 8 9 9 c 1 c a 8 2 b 4 4 3 5 0 2 0 6 8 c 5 5 0 4 b 6 0 8 8 6 e 2 d 4 a 3 4 1 b b a 8 3 3 e 0 2 7 9 e b e f 3 5 2 2 1 1 b f 3 8 1 3
)
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
- D i n t r o s p e c t i o n = n o
2023-04-18 06:29:55 +08:00
A D D I T I O N A L _ B I N A R I E S
2022-09-29 02:54:29 +08:00
g l i b - g e n m a r s h a l = ' $ { C U R R E N T _ H O S T _ I N S T A L L E D _ D I R } / t o o l s / g l i b / g l i b - g e n m a r s h a l '
g l i b - m k e n u m s = ' $ { C U R R E N T _ H O S T _ I N S T A L L E D _ D I R } / t o o l s / g l i b / g l i b - m k e n u m s '
)
vcpkg_install_meson ( )
vcpkg_copy_pdbs ( )
vcpkg_fixup_pkgconfig ( )
if ( NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release" )
vcpkg_replace_string ( "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/atspi-2.pc"
" - D G _ L O G _ D O M A I N = \ " d b i n d \ " " " "
)
endif ( )
if ( NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug" )
vcpkg_replace_string ( "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/atspi-2.pc"
" - D G _ L O G _ D O M A I N = \ " d b i n d \ " " " "
)
endif ( )
2023-12-14 15:44:51 +08:00
vcpkg_install_copyright ( FILE_LIST "${SOURCE_PATH}/COPYING" )
2022-09-29 02:54:29 +08:00
2023-01-12 15:17:56 +08:00
file ( REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share" "${CURRENT_PACKAGES_DIR}/share/defaults" )
2022-09-29 02:54:29 +08:00
if ( VCPKG_LIBRARY_LINKAGE STREQUAL "static" )
file ( REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin" )
endif ( )