|
|
|
@ -126,9 +126,6 @@ set( _SRC_ qtaddons_x11.cpp
|
|
|
|
|
qscriptengine.cpp
|
|
|
|
|
qtextlayout.cpp
|
|
|
|
|
qtextengine.cpp
|
|
|
|
|
qmngio.cpp
|
|
|
|
|
qjpegio.cpp
|
|
|
|
|
qpngio.cpp
|
|
|
|
|
qaccessible.cpp
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
@ -151,6 +148,39 @@ set( _EXTRA_HEADERS_
|
|
|
|
|
ntqsessionmanager.h
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
# Setup optional image formats support
|
|
|
|
|
set( _PNG_libraries ${PNG_LIBRARIES} )
|
|
|
|
|
set( _JPEG_libraries ${JPEG_LIBRARIES} )
|
|
|
|
|
set( _MNG_libraries ${MNG_LIBRARIES} ${JPEG_LIBRARIES} )
|
|
|
|
|
|
|
|
|
|
unset( _img_flags )
|
|
|
|
|
unset( _img_libraries )
|
|
|
|
|
|
|
|
|
|
foreach( _imgfmt PNG JPEG MNG )
|
|
|
|
|
if( BUILD_IMGFMT_PLUGIN_${_imgfmt} )
|
|
|
|
|
string( TOLOWER "plugins/src/imageformats/${_imgfmt}/main.cpp" _plugin_main_src )
|
|
|
|
|
set( _plugin_main_src ${CMAKE_SOURCE_DIR}/${_plugin_main_src} )
|
|
|
|
|
string( TOLOWER "q${_imgfmt}" _plugin_lib )
|
|
|
|
|
tde_add_library( ${_plugin_lib} SHARED
|
|
|
|
|
SOURCES ${_plugin_main_src}
|
|
|
|
|
LINK tqt-mt-shared ${_${_imgfmt}_libraries}
|
|
|
|
|
DESTINATION "${QT_INSTALL_PLUGINS}/imageformats"
|
|
|
|
|
)
|
|
|
|
|
tqt_automoc( ${_plugin_lib}-shared )
|
|
|
|
|
elseif( WITH_IMGFMT_${_imgfmt} )
|
|
|
|
|
string( TOLOWER "q${_imgfmt}io.cpp" _imgfmt_io_src )
|
|
|
|
|
list( APPEND _SRC_ ${_imgfmt_io_src} )
|
|
|
|
|
list( APPEND _img_libraries ${_${_imgfmt}_libraries} )
|
|
|
|
|
endif()
|
|
|
|
|
if( NOT WITH_IMGFMT_${_imgfmt} OR BUILD_IMGFMT_PLUGIN_${_imgfmt} )
|
|
|
|
|
list( APPEND _img_flags TQT_NO_IMAGEIO_${_imgfmt} )
|
|
|
|
|
endif()
|
|
|
|
|
endforeach()
|
|
|
|
|
|
|
|
|
|
if( WITH_IMGFMT_GIF )
|
|
|
|
|
list( APPEND _img_flags QT_BUILTIN_GIF_READER=1 )
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
tde_add_library( ${target} STATIC_PIC
|
|
|
|
|
|
|
|
|
|
SOURCES
|
|
|
|
@ -167,12 +197,10 @@ tde_add_library( ${target} STATIC_PIC
|
|
|
|
|
${X11_Xrender_LIB}
|
|
|
|
|
${X11_SM_LIB}
|
|
|
|
|
${X11_Xcursor_LIB}
|
|
|
|
|
${LIB_MNG_LIBRARIES}
|
|
|
|
|
${JPEG_LIBRARIES}
|
|
|
|
|
${PNG_LIBRARIES}
|
|
|
|
|
${ZLIB_LIBRARIES}
|
|
|
|
|
${LIBFONTCONFIG_LIBRARIES}
|
|
|
|
|
${GLIB2_LIBRARIES}
|
|
|
|
|
${_img_libraries}
|
|
|
|
|
|
|
|
|
|
DEPENDENCIES
|
|
|
|
|
tqt-includes
|
|
|
|
@ -189,7 +217,6 @@ set_property( TARGET ${target}-static
|
|
|
|
|
${NO_SOUND} ${NAS_SUPPORT} ${USE_GLIBMAINLOOP}
|
|
|
|
|
${NO_XFTFREETYPE} ${USE_XFT2_HEADER} ${NO_SHAPE} ${TABLET_SUPPORT}
|
|
|
|
|
${NO_XINERAMA} ${NO_XRANDR} ${NO_XRENDER} ${NO_XSYNC}
|
|
|
|
|
${NO_XKB} ${NO_SM} ${NO_XCURSOR} ${NO_IMAGEIO_MNG}
|
|
|
|
|
${NO_IMAGEIO_JPEG} ${NO_IMAGEIO_PNG} ${BUILTIN_GIF_READER}
|
|
|
|
|
${QT_ACCESSIBILITY_SUPPORT}
|
|
|
|
|
${NO_XKB} ${NO_SM} ${NO_XCURSOR} ${BUILTIN_GIF_READER}
|
|
|
|
|
${QT_ACCESSIBILITY_SUPPORT} ${_img_flags}
|
|
|
|
|
)
|
|
|
|
|