|
|
|
@ -27,13 +27,13 @@ set( _STYLE_COMPACT_SRC_ qcompactstyle.cpp )
|
|
|
|
|
set( _STYLE_INTERLACE_SRC_ qinterlacestyle.cpp )
|
|
|
|
|
set( _STYLE_PLATINUM_SRC_ qplatinumstyle.cpp )
|
|
|
|
|
|
|
|
|
|
# check style dependencies
|
|
|
|
|
tqt_requires( WITH_STYLE_CDE WITH_STYLE_MOTIF )
|
|
|
|
|
tqt_requires( WITH_STYLE_MOTIFPLUS WITH_STYLE_MOTIF )
|
|
|
|
|
tqt_requires( WITH_STYLE_SGI WITH_STYLE_MOTIF )
|
|
|
|
|
tqt_requires( WITH_STYLE_INTERLACE WITH_STYLE_WINDOWS )
|
|
|
|
|
tqt_requires( WITH_STYLE_PLATINUM WITH_STYLE_WINDOWS )
|
|
|
|
|
tqt_requires( WITH_STYLE_COMPACT WITH_STYLE_WINDOWS )
|
|
|
|
|
# setup style dependencies
|
|
|
|
|
set( _STYLE_CDE_DEPEND_ MOTIF )
|
|
|
|
|
set( _STYLE_MOTIFPLUS_DEPEND_ MOTIF )
|
|
|
|
|
set( _STYLE_SGI_DEPEND_ MOTIF )
|
|
|
|
|
set( _STYLE_INTERLACE_DEPEND_ WINDOWS )
|
|
|
|
|
set( _STYLE_PLATINUM_DEPEND_ WINDOWS )
|
|
|
|
|
set( _STYLE_COMPACT_DEPEND_ WINDOWS )
|
|
|
|
|
|
|
|
|
|
# styles unsupported on X11
|
|
|
|
|
set ( _disabled_styles
|
|
|
|
@ -43,12 +43,44 @@ set ( _disabled_styles
|
|
|
|
|
TQT_NO_STYLE_MAC
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
# process the style options
|
|
|
|
|
foreach( _style MOTIF WINDOWS CDE MOTIFPLUS SGI COMPACT INTERLACE PLATINUM )
|
|
|
|
|
if( WITH_STYLE_${_style} )
|
|
|
|
|
list( APPEND _SRC_ "${_STYLE_${_style}_SRC_}" )
|
|
|
|
|
|
|
|
|
|
if( WITH_STYLE_${_style} AND NOT BUILD_STYLE_PLUGIN_${_style} )
|
|
|
|
|
if( DEFINED _STYLE_${_style}_DEPEND_ )
|
|
|
|
|
set( _depend ${_STYLE_${_style}_DEPEND_} )
|
|
|
|
|
if( NOT WITH_STYLE_${_depend} )
|
|
|
|
|
tde_message_fatal( "style ${_style} requires ${_depend} to build" )
|
|
|
|
|
endif( )
|
|
|
|
|
endif( )
|
|
|
|
|
list( APPEND _SRC_ ${_STYLE_${_style}_SRC_} )
|
|
|
|
|
else( )
|
|
|
|
|
list( APPEND _disabled_styles "TQT_NO_STYLE_${_style}" )
|
|
|
|
|
endif( )
|
|
|
|
|
|
|
|
|
|
if( BUILD_STYLE_PLUGIN_${_style} )
|
|
|
|
|
|
|
|
|
|
unset( _style_depend_lib )
|
|
|
|
|
|
|
|
|
|
if( DEFINED _STYLE_${_style}_DEPEND_ )
|
|
|
|
|
set( _depend ${_STYLE_${_style}_DEPEND_} )
|
|
|
|
|
if( BUILD_STYLE_PLUGIN_${_depend} )
|
|
|
|
|
string( TOLOWER "q${_depend}style-shared" _style_depend_lib )
|
|
|
|
|
elseif( NOT WITH_STYLE_${_depend} )
|
|
|
|
|
tde_message_fatal( "style ${_style} requires ${_depend} to build" )
|
|
|
|
|
endif( )
|
|
|
|
|
endif( )
|
|
|
|
|
|
|
|
|
|
string( TOLOWER "q${_style}style" _style_lib )
|
|
|
|
|
tde_add_library( ${_style_lib} SHARED
|
|
|
|
|
SOURCES ${_STYLE_${_style}_SRC_}
|
|
|
|
|
LINK tqt-mt-shared ${_style_depend_lib}
|
|
|
|
|
DESTINATION "${QT_INSTALL_PLUGINS}/styles"
|
|
|
|
|
)
|
|
|
|
|
tqt_automoc( ${_style_lib}-shared )
|
|
|
|
|
|
|
|
|
|
endif( )
|
|
|
|
|
|
|
|
|
|
endforeach( )
|
|
|
|
|
|
|
|
|
|
tde_add_library( ${target} STATIC_PIC
|
|
|
|
|