@ -1,52 +1,111 @@
function ( copy_yuzu_Qt5_deps target_dir )
include ( WindowsCopyFiles )
set ( DLL_DEST "${CMAKE_BINARY_DIR}/bin/$<CONFIG>/" )
set ( Qt5_DLL_DIR "${Qt5_DIR}/../../../bin" )
if ( MSVC )
set ( DLL_DEST "${CMAKE_BINARY_DIR}/bin/$<CONFIG>/" )
set ( Qt5_DLL_DIR "${Qt5_DIR}/../../../bin" )
else ( )
set ( DLL_DEST "${CMAKE_BINARY_DIR}/bin/" )
set ( Qt5_DLL_DIR "${Qt5_DIR}/../../../lib/" )
endif ( )
set ( Qt5_PLATFORMS_DIR "${Qt5_DIR}/../../../plugins/platforms/" )
set ( Qt5_PLATFORMTHEMES_DIR "${Qt5_DIR}/../../../plugins/platformthemes/" )
set ( Qt5_PLATFORMINPUTCONTEXTS_DIR "${Qt5_DIR}/../../../plugins/platforminputcontexts/" )
set ( Qt5_XCBGLINTEGRATIONS_DIR "${Qt5_DIR}/../../../plugins/xcbglintegrations/" )
set ( Qt5_STYLES_DIR "${Qt5_DIR}/../../../plugins/styles/" )
set ( Qt5_IMAGEFORMATS_DIR "${Qt5_DIR}/../../../plugins/imageformats/" )
set ( Qt5_RESOURCES_DIR "${Qt5_DIR}/../../../resources/" )
set ( PLATFORMS ${ DLL_DEST } plugins/platforms/ )
set ( STYLES ${ DLL_DEST } plugins/styles/ )
set ( IMAGEFORMATS ${ DLL_DEST } plugins/imageformats/ )
windows_copy_files ( ${ target_dir } ${ Qt5_DLL_DIR } ${ DLL_DEST }
i c u d t * . d l l
i c u i n * . d l l
i c u u c * . d l l
Q t 5 C o r e $ < $ < C O N F I G : D e b u g > : d > . *
Q t 5 G u i $ < $ < C O N F I G : D e b u g > : d > . *
Q t 5 W i d g e t s $ < $ < C O N F I G : D e b u g > : d > . *
)
if ( YUZU_USE_QT_WEB_ENGINE )
windows_copy_files ( ${ target_dir } ${ Qt5_DLL_DIR } ${ DLL_DEST }
Q t 5 N e t w o r k $ < $ < C O N F I G : D e b u g > : d > . *
Q t 5 P o s i t i o n i n g $ < $ < C O N F I G : D e b u g > : d > . *
Q t 5 P r i n t S u p p o r t $ < $ < C O N F I G : D e b u g > : d > . *
Q t 5 Q m l $ < $ < C O N F I G : D e b u g > : d > . *
Q t 5 Q u i c k $ < $ < C O N F I G : D e b u g > : d > . *
Q t 5 Q u i c k W i d g e t s $ < $ < C O N F I G : D e b u g > : d > . *
Q t 5 W e b C h a n n e l $ < $ < C O N F I G : D e b u g > : d > . *
Q t 5 W e b E n g i n e $ < $ < C O N F I G : D e b u g > : d > . *
Q t 5 W e b E n g i n e C o r e $ < $ < C O N F I G : D e b u g > : d > . *
Q t 5 W e b E n g i n e W i d g e t s $ < $ < C O N F I G : D e b u g > : d > . *
Q t W e b E n g i n e P r o c e s s $ < $ < C O N F I G : D e b u g > : d > . *
if ( MSVC )
windows_copy_files ( ${ target_dir } ${ Qt5_DLL_DIR } ${ DLL_DEST }
i c u d t * . d l l
i c u i n * . d l l
i c u u c * . d l l
Q t 5 C o r e $ < $ < C O N F I G : D e b u g > : d > . *
Q t 5 G u i $ < $ < C O N F I G : D e b u g > : d > . *
Q t 5 W i d g e t s $ < $ < C O N F I G : D e b u g > : d > . *
)
windows_copy_files ( ${ target_dir } ${ Qt5_RESOURCES_DIR } ${ DLL_DEST }
q t w e b e n g i n e _ r e s o u r c e s . p a k
q t w e b e n g i n e _ d e v t o o l s _ r e s o u r c e s . p a k
q t w e b e n g i n e _ r e s o u r c e s _ 1 0 0 p . p a k
q t w e b e n g i n e _ r e s o u r c e s _ 2 0 0 p . p a k
i c u d t l . d a t
)
endif ( )
windows_copy_files ( yuzu ${ Qt5_PLATFORMS_DIR } ${ PLATFORMS } qwindows $< $<CONFIG:Debug > :d>.* )
windows_copy_files ( yuzu ${ Qt5_STYLES_DIR } ${ STYLES } qwindowsvistastyle $< $<CONFIG:Debug > :d>.* )
windows_copy_files ( yuzu ${ Qt5_IMAGEFORMATS_DIR } ${ IMAGEFORMATS }
q j p e g $ < $ < C O N F I G : D e b u g > : d > . *
q g i f $ < $ < C O N F I G : D e b u g > : d > . *
)
if ( YUZU_USE_QT_WEB_ENGINE )
windows_copy_files ( ${ target_dir } ${ Qt5_DLL_DIR } ${ DLL_DEST }
Q t 5 N e t w o r k $ < $ < C O N F I G : D e b u g > : d > . *
Q t 5 P o s i t i o n i n g $ < $ < C O N F I G : D e b u g > : d > . *
Q t 5 P r i n t S u p p o r t $ < $ < C O N F I G : D e b u g > : d > . *
Q t 5 Q m l $ < $ < C O N F I G : D e b u g > : d > . *
Q t 5 Q u i c k $ < $ < C O N F I G : D e b u g > : d > . *
Q t 5 Q u i c k W i d g e t s $ < $ < C O N F I G : D e b u g > : d > . *
Q t 5 W e b C h a n n e l $ < $ < C O N F I G : D e b u g > : d > . *
Q t 5 W e b E n g i n e $ < $ < C O N F I G : D e b u g > : d > . *
Q t 5 W e b E n g i n e C o r e $ < $ < C O N F I G : D e b u g > : d > . *
Q t 5 W e b E n g i n e W i d g e t s $ < $ < C O N F I G : D e b u g > : d > . *
Q t W e b E n g i n e P r o c e s s $ < $ < C O N F I G : D e b u g > : d > . *
)
windows_copy_files ( ${ target_dir } ${ Qt5_RESOURCES_DIR } ${ DLL_DEST }
q t w e b e n g i n e _ r e s o u r c e s . p a k
q t w e b e n g i n e _ d e v t o o l s _ r e s o u r c e s . p a k
q t w e b e n g i n e _ r e s o u r c e s _ 1 0 0 p . p a k
q t w e b e n g i n e _ r e s o u r c e s _ 2 0 0 p . p a k
i c u d t l . d a t
)
endif ( )
windows_copy_files ( yuzu ${ Qt5_PLATFORMS_DIR } ${ PLATFORMS } qwindows $< $<CONFIG:Debug > :d>.* )
windows_copy_files ( yuzu ${ Qt5_STYLES_DIR } ${ STYLES } qwindowsvistastyle $< $<CONFIG:Debug > :d>.* )
windows_copy_files ( yuzu ${ Qt5_IMAGEFORMATS_DIR } ${ IMAGEFORMATS }
q j p e g $ < $ < C O N F I G : D e b u g > : d > . *
q g i f $ < $ < C O N F I G : D e b u g > : d > . *
)
else ( )
set ( Qt5_DLLS
" $ { Q t 5 _ D L L _ D I R } l i b Q t 5 C o r e . s o . 5 "
" $ { Q t 5 _ D L L _ D I R } l i b Q t 5 D B u s . s o . 5 "
" $ { Q t 5 _ D L L _ D I R } l i b Q t 5 G u i . s o . 5 "
" $ { Q t 5 _ D L L _ D I R } l i b Q t 5 W i d g e t s . s o . 5 "
" $ { Q t 5 _ D L L _ D I R } l i b Q t 5 X c b Q p a . s o . 5 "
" $ { Q t 5 _ D L L _ D I R } l i b i c u d a t a . s o . 6 0 "
" $ { Q t 5 _ D L L _ D I R } l i b i c u i 1 8 n . s o . 6 0 "
" $ { Q t 5 _ D L L _ D I R } l i b i c u u c . s o . 6 0 "
)
set ( Qt5_IMAGEFORMAT_DLLS
" $ { Q t 5 _ I M A G E F O R M A T S _ D I R } l i b q j p e g . s o "
" $ { Q t 5 _ I M A G E F O R M A T S _ D I R } l i b q g i f . s o "
" $ { Q t 5 _ I M A G E F O R M A T S _ D I R } l i b q i c o . s o "
)
set ( Qt5_PLATFORMTHEME_DLLS
" $ { Q t 5 _ P L A T F O R M T H E M E S _ D I R } l i b q g t k 3 . s o "
" $ { Q t 5 _ P L A T F O R M T H E M E S _ D I R } l i b q x d g d e s k t o p p o r t a l . s o "
)
set ( Qt5_PLATFORM_DLLS
" $ { Q t 5 _ P L A T F O R M S _ D I R } l i b q x c b . s o "
)
set ( Qt5_PLATFORMINPUTCONTEXT_DLLS
" $ { Q t 5 _ P L A T F O R M I N P U T C O N T E X T S _ D I R } l i b c o m p o s e p l a t f o r m i n p u t c o n t e x t p l u g i n . s o "
" $ { Q t 5 _ P L A T F O R M I N P U T C O N T E X T S _ D I R } l i b i b u s p l a t f o r m i n p u t c o n t e x t p l u g i n . s o "
)
set ( Qt5_XCBGLINTEGRATION_DLLS
" $ { Q t 5 _ X C B G L I N T E G R A T I O N S _ D I R } l i b q x c b - g l x - i n t e g r a t i o n . s o "
)
foreach ( LIB ${ Qt5_DLLS } )
file ( COPY ${ LIB } DESTINATION "${DLL_DEST}/lib" FOLLOW_SYMLINK_CHAIN )
endforeach ( )
foreach ( LIB ${ Qt5_IMAGEFORMAT_DLLS } )
file ( COPY ${ LIB } DESTINATION "${DLL_DEST}plugins/imageformats/" FOLLOW_SYMLINK_CHAIN )
endforeach ( )
foreach ( LIB ${ Qt5_PLATFORMTHEME_DLLS } )
file ( COPY ${ LIB } DESTINATION "${DLL_DEST}plugins/platformthemes/" FOLLOW_SYMLINK_CHAIN )
endforeach ( )
foreach ( LIB ${ Qt5_PLATFORM_DLLS } )
file ( COPY ${ LIB } DESTINATION "${DLL_DEST}plugins/platforms/" FOLLOW_SYMLINK_CHAIN )
endforeach ( )
foreach ( LIB ${ Qt5_PLATFORMINPUTCONTEXT_DLLS } )
file ( COPY ${ LIB } DESTINATION "${DLL_DEST}plugins/platforminputcontexts/" FOLLOW_SYMLINK_CHAIN )
endforeach ( )
foreach ( LIB ${ Qt5_XCBGLINTEGRATION_DLLS } )
file ( COPY ${ LIB } DESTINATION "${DLL_DEST}plugins/xcbglintegrations/" FOLLOW_SYMLINK_CHAIN )
endforeach ( )
endif ( )
# C r e a t e a n e m p t y q t . c o n f f i l e . Q t w i l l d e t e c t t h a t t h i s f i l e e x i s t s , a n d u s e t h e f o l d e r t h a t i t s i n a s t h e r o o t f o l d e r .
# T h i s w a y i t ' l l l o o k f o r p l u g i n s i n t h e r o o t / p l u g i n s / f o l d e r
add_custom_command ( TARGET yuzu POST_BUILD