@ -5,25 +5,34 @@ set( _extra_src "" )
# # # O P T I O N A L A p p D a t a X M L s u p p o r t i n P a c k a g e M o d e l
#
#
find_package ( Qt5 COMPONENTS Xml )
if ( Qt5Xml_FOUND )
add_definitions ( -DHAVE_XML )
list ( APPEND _extra_libraries Qt5::Xml )
list ( APPEND _extra_src ItemAppData.cpp )
option ( WITH_APPDATA "Support appdata: items in PackageChooser (requires QtXml)" ON )
if ( WITH_APPDATA )
find_package ( Qt5 COMPONENTS Xml )
if ( Qt5Xml_FOUND )
add_definitions ( -DHAVE_XML )
list ( APPEND _extra_libraries Qt5::Xml )
list ( APPEND _extra_src ItemAppData.cpp )
endif ( )
endif ( )
find_package ( AppStreamQt )
set_package_properties (
A p p S t r e a m Q t P R O P E R T I E S
D E S C R I P T I O N " S u p p o r t f o r AppStream ( cache ) d a t a "
U R L " h t t p s : / / g i t h u b . c o m / x i m i o n / a p p s t r e a m "
P U R P O S E " A p p S t r e a m p r o v i d e s p a c k a g e d a t a "
T Y P E O P T I O N A L
)
if ( AppStreamQt_FOUND )
add_definitions ( -DHAVE_APPSTREAM )
list ( APPEND _extra_libraries AppStreamQt )
list ( APPEND _extra_src ItemAppStream.cpp )
# # # O P T I O N A L A p p S t r e a m s u p p o r t i n P a c k a g e M o d e l
#
#
option ( WITH_APPSTREAM "Support appstream: items in PackageChooser (requires libappstream-qt)" ON )
if ( WITH_APPSTREAM )
find_package ( AppStreamQt )
set_package_properties (
A p p S t r e a m Q t P R O P E R T I E S
D E S C R I P T I O N " S u p p o r t f o r AppStream ( cache ) d a t a "
U R L " h t t p s : / / g i t h u b . c o m / x i m i o n / a p p s t r e a m "
P U R P O S E " A p p S t r e a m p r o v i d e s p a c k a g e d a t a "
T Y P E O P T I O N A L
)
if ( AppStreamQt_FOUND )
add_definitions ( -DHAVE_APPSTREAM )
list ( APPEND _extra_libraries AppStreamQt )
list ( APPEND _extra_src ItemAppStream.cpp )
endif ( )
endif ( )
calamares_add_plugin ( packagechooser