2022-05-07 02:20:25 +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 . g n o m e . o r g /
2019-10-08 01:35:13 +08:00
O U T _ S O U R C E _ P A T H S O U R C E _ P A T H
2022-05-07 02:20:25 +08:00
R E P O G N O M E / g d k - p i x b u f
2022-10-25 03:09:25 +08:00
R E F " $ { V E R S I O N } "
2024-05-18 02:57:48 +08:00
S H A 5 1 2 f 9 5 c 9 2 9 7 4 e d 6 e f a c 9 8 4 5 7 9 0 e f 5 c 4 e d 7 4 d d 6 e 2 8 b 1 8 2 e a 3 7 3 2 0 1 3 c 4 6 b 0 1 6 1 6 6 e 9 2 f 8 b c 1 0 c 1 9 9 4 3 5 8 d 7 9 f f 5 3 e 9 8 8 c 6 1 5 c 4 3 c b 1 a 2 1 3 0 c 6 e f 5 3 1 e f 9 d 8 4 c 2 f d c c 8 7 e 5 2
2022-05-07 02:20:25 +08:00
H E A D _ R E F m a s t e r
2021-04-29 03:06:01 +08:00
P A T C H E S
f i x _ b u i l d _ e r r o r _ w i n d o w s . p a t c h
2022-10-25 03:09:25 +08:00
l o a d e r s - c a c h e . p a t c h
2022-12-31 17:30:53 +08:00
u s e - l i b t i f f - 4 - p k g c o n f i g . p a t c h
2024-03-12 05:09:15 +08:00
f i x - s t a t i c - d e p s . p a t c h
2019-10-08 01:35:13 +08:00
)
2022-05-07 02:20:25 +08:00
2023-01-18 03:44:20 +08:00
if ( "introspection" IN_LIST FEATURES )
list ( APPEND OPTIONS_DEBUG -Dintrospection=disabled )
list ( APPEND OPTIONS_RELEASE -Dintrospection=enabled )
else ( )
list ( APPEND OPTIONS -Dintrospection=disabled )
endif ( )
2024-04-19 07:41:05 +08:00
if ( "png" IN_LIST FEATURES )
list ( APPEND OPTIONS -Dpng=enabled )
2024-04-22 22:25:38 +08:00
else ( )
list ( APPEND OPTIONS -Dpng=disabled )
2024-04-19 07:41:05 +08:00
endif ( )
if ( "tiff" IN_LIST FEATURES )
list ( APPEND OPTIONS -Dtiff=enabled )
2024-04-22 22:25:38 +08:00
else ( )
list ( APPEND OPTIONS -Dtiff=disabled )
2024-04-19 07:41:05 +08:00
endif ( )
if ( "jpeg" IN_LIST FEATURES )
list ( APPEND OPTIONS -Djpeg=enabled )
2024-04-22 22:25:38 +08:00
else ( )
list ( APPEND OPTIONS -Djpeg=disabled )
2024-04-19 07:41:05 +08:00
endif ( )
2023-01-18 03:44:20 +08:00
if ( CMAKE_HOST_WIN32 AND VCPKG_TARGET_ARCHITECTURE STREQUAL "x86" )
set ( GIR_TOOL_DIR ${ CURRENT_INSTALLED_DIR } )
else ( )
set ( GIR_TOOL_DIR ${ CURRENT_HOST_INSTALLED_DIR } )
endif ( )
2021-04-27 01:28:21 +08:00
if ( VCPKG_TARGET_IS_WINDOWS )
#list(APPEND OPTIONS -Dnative_windows_loaders=true) # Use Windows system components to handle BMP, EMF, GIF, ICO, JPEG, TIFF and WMF images, overriding jpeg and tiff. To build this into gdk-pixbuf, pass in windows" with the other loaders to build in or use "all" with the builtin_loaders option
endif ( )
vcpkg_configure_meson (
2022-05-07 02:20:25 +08:00
S O U R C E _ P A T H " $ { S O U R C E _ P A T H } "
2021-04-27 01:28:21 +08:00
O P T I O N S
- D m a n = f a l s e # Whether to generate man pages (requires xlstproc)
- D g t k _ d o c = f a l s e # Whether to generate the API reference (requires GTK-Doc)
- D d o c s = f a l s e
- D r e l o c a t a b l e = t r u e # Whether to enable application bundle relocation support
2022-09-01 04:36:38 +08:00
- D t e s t s = f a l s e
2021-04-27 01:28:21 +08:00
- D i n s t a l l e d _ t e s t s = f a l s e
- D g i o _ s n i f f i n g = f a l s e # Perform file type detection using GIO (Unused on MacOS and Windows)
2022-05-07 02:20:25 +08:00
- D b u i l t i n _ l o a d e r s = a l l # since it is unclear where loadable plugins should be located;
2021-04-27 01:28:21 +08:00
# Comma-separated list of loaders to build into gdk-pixbuf, or "none", or "all" to build all buildable loaders into gdk-pixbuf
2023-01-18 03:44:20 +08:00
$ { O P T I O N S }
O P T I O N S _ D E B U G
$ { O P T I O N S _ D E B U G }
O P T I O N S _ R E L E A S E
$ { O P T I O N S _ R E L E A S E }
A D D I T I O N A L _ B I N A R I E S
g l i b - c o m p i l e - r e s o u r c e 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 - c o m p i l e - r e s o u r c e s '
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 '
g - i r - c o m p i l e r = ' $ { 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 o b j e c t - i n t r o s p e c t i o n / g - i r - c o m p i l e r $ { V C P K G _ H O S T _ E X E C U T A B L E _ S U F F I X } '
g - i r - s c a n n e r = ' $ { G I R _ T O O L _ D I R } / t o o l s / g o b j e c t - i n t r o s p e c t i o n / g - i r - s c a n n e r '
2022-10-25 03:09:25 +08:00
)
2021-04-27 01:28:21 +08:00
vcpkg_install_meson ( ADD_BIN_TO_PATH )
2017-02-14 06:48:48 +08:00
2022-10-25 03:09:25 +08:00
vcpkg_replace_string ( "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/gdk-pixbuf-2.0.pc" [[ ${ bindir } ]] "\${prefix}/tools/${PORT}" )
if ( NOT VCPKG_BUILD_TYPE )
vcpkg_replace_string ( "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/gdk-pixbuf-2.0.pc" [[ ${ bindir } ]] "\${prefix}/../tools/${PORT}" )
2021-04-27 01:28:21 +08:00
endif ( )
vcpkg_fixup_pkgconfig ( )
2022-10-25 03:09:25 +08:00
set ( TOOL_NAMES gdk-pixbuf-csource gdk-pixbuf-pixdata gdk-pixbuf-query-loaders )
2022-11-09 06:49:28 +08:00
# gdk-pixbuf-thumbnailer is not compiled for cross-compiling
2022-10-25 03:09:25 +08:00
# vcpkg-meson cross-build configuration differs from VCPKG_CROSSCOMPILING
if ( EXISTS "${CURRENT_PACKAGES_DIR}/bin/gdk-pixbuf-thumbnailer${VCPKG_TARGET_EXECUTABLE_SUFFIX}" )
list ( APPEND TOOL_NAMES gdk-pixbuf-thumbnailer )
2022-07-15 05:27:57 +08:00
endif ( )
2017-02-14 06:48:48 +08:00
vcpkg_copy_pdbs ( )
2021-04-27 01:28:21 +08:00
vcpkg_copy_tools ( TOOL_NAMES ${ TOOL_NAMES } AUTO_CLEAN )
file ( REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share" )
2022-10-25 03:09:25 +08:00
2024-04-19 07:41:05 +08:00
vcpkg_install_copyright ( FILE_LIST "${SOURCE_PATH}/COPYING" )