|
|
|
@ -14,11 +14,9 @@ set( calamaresui_SOURCES
|
|
|
|
|
utils/CalamaresUtilsGui.cpp
|
|
|
|
|
utils/ImageRegistry.cpp
|
|
|
|
|
utils/Paste.cpp
|
|
|
|
|
utils/Qml.cpp
|
|
|
|
|
|
|
|
|
|
viewpages/BlankViewStep.cpp
|
|
|
|
|
viewpages/ExecutionViewStep.cpp
|
|
|
|
|
viewpages/QmlViewStep.cpp
|
|
|
|
|
viewpages/Slideshow.cpp
|
|
|
|
|
viewpages/ViewStep.cpp
|
|
|
|
|
|
|
|
|
@ -45,10 +43,6 @@ if( WITH_PYTHON )
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
if( WITH_PYTHONQT )
|
|
|
|
|
include_directories(${PYTHON_INCLUDE_DIRS})
|
|
|
|
|
# *_DIRS because we also use extensions
|
|
|
|
|
include_directories(${PYTHONQT_INCLUDE_DIRS})
|
|
|
|
|
|
|
|
|
|
list( APPEND calamaresui_SOURCES
|
|
|
|
|
modulesystem/PythonQtViewModule.cpp
|
|
|
|
|
utils/PythonQtUtils.cpp
|
|
|
|
@ -57,25 +51,33 @@ if( WITH_PYTHONQT )
|
|
|
|
|
viewpages/PythonQtGlobalStorageWrapper.cpp
|
|
|
|
|
viewpages/PythonQtUtilsWrapper.cpp
|
|
|
|
|
)
|
|
|
|
|
set( OPTIONAL_PYTHON_LIBRARIES
|
|
|
|
|
${PYTHON_LIBRARIES}
|
|
|
|
|
${PYTHONQT_LIBRARIES}
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
if( WITH_QML )
|
|
|
|
|
list( APPEND calamaresui_SOURCES
|
|
|
|
|
utils/Qml.cpp
|
|
|
|
|
viewpages/QmlViewStep.cpp
|
|
|
|
|
)
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
calamares_add_library( calamaresui
|
|
|
|
|
SOURCES ${calamaresui_SOURCES}
|
|
|
|
|
EXPORT_MACRO UIDLLEXPORT_PRO
|
|
|
|
|
LINK_PRIVATE_LIBRARIES
|
|
|
|
|
${OPTIONAL_PYTHON_LIBRARIES}
|
|
|
|
|
LINK_LIBRARIES
|
|
|
|
|
Qt5::Svg
|
|
|
|
|
Qt5::QuickWidgets
|
|
|
|
|
RESOURCES libcalamaresui.qrc
|
|
|
|
|
EXPORT CalamaresLibraryDepends
|
|
|
|
|
VERSION ${CALAMARES_VERSION_SHORT}
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
if ( KF5CoreAddons_FOUND AND KF5CoreAddons_VERSION VERSION_GREATER_EQUAL 5.58 )
|
|
|
|
|
if( KF5CoreAddons_FOUND AND KF5CoreAddons_VERSION VERSION_GREATER_EQUAL 5.58 )
|
|
|
|
|
target_compile_definitions( calamaresui PRIVATE WITH_KOSRelease )
|
|
|
|
|
endif()
|
|
|
|
|
if( WITH_PYTHONQT )
|
|
|
|
|
# *_DIRS because we also use extensions
|
|
|
|
|
target_include_directories( calamaresui PRIVATE ${PYTHON_INCLUDE_DIRS} ${PYTHONQT_INCLUDE_DIRS} )
|
|
|
|
|
target_link_libraries( calamaresui PRIVATE ${PYTHON_LIBRARIES} ${PYTHONQT_LIBRARIES} )
|
|
|
|
|
endif()
|
|
|
|
|
if( WITH_QML )
|
|
|
|
|
target_link_libraries( calamaresui PUBLIC Qt5::QuickWidgets )
|
|
|
|
|
endif()
|
|
|
|
|