2014-04-29 10:25:19 +04:00
|
|
|
# KI18N Translation Domain for this library
|
2015-01-28 11:46:31 +03:00
|
|
|
add_definitions(-DTRANSLATION_DOMAIN=\"kwin_effects\" -DEFFECT_BUILTINS)
|
2014-04-29 10:25:19 +04:00
|
|
|
|
2014-04-16 16:27:48 +04:00
|
|
|
include_directories(${KWIN_SOURCE_DIR}) # for xcbutils.h
|
|
|
|
|
2013-02-25 15:05:36 +04:00
|
|
|
set(kwin_effect_OWN_LIBS
|
|
|
|
kwineffects
|
|
|
|
)
|
|
|
|
|
2014-03-16 18:31:23 +04:00
|
|
|
if( KWIN_HAVE_XRENDER_COMPOSITING )
|
|
|
|
set(kwin_effect_OWN_LIBS ${kwin_effect_OWN_LIBS} kwinxrenderutils)
|
|
|
|
endif()
|
|
|
|
|
2013-02-25 15:05:36 +04:00
|
|
|
set(kwin_effect_KDE_LIBS
|
2014-03-24 16:02:48 +04:00
|
|
|
KF5::ConfigGui
|
2013-12-12 00:41:47 +04:00
|
|
|
KF5::ConfigWidgets
|
2013-12-09 12:33:58 +04:00
|
|
|
KF5::GlobalAccel
|
2013-12-12 00:41:47 +04:00
|
|
|
KF5::I18n
|
|
|
|
KF5::WindowSystem
|
2013-10-16 03:36:24 +04:00
|
|
|
KF5::Plasma # screenedge effect
|
2013-12-12 00:41:47 +04:00
|
|
|
KF5::IconThemes
|
|
|
|
KF5::Service
|
2016-11-16 11:50:18 +03:00
|
|
|
KF5::Notifications # screenshot effect
|
2013-03-11 12:33:38 +04:00
|
|
|
)
|
|
|
|
|
|
|
|
set(kwin_effect_QT_LIBS
|
2013-10-02 17:23:56 +04:00
|
|
|
Qt5::Concurrent
|
2013-08-20 11:10:18 +04:00
|
|
|
Qt5::DBus
|
|
|
|
Qt5::Quick
|
|
|
|
Qt5::X11Extras
|
2013-02-25 15:05:36 +04:00
|
|
|
)
|
|
|
|
|
|
|
|
set(kwin_effect_XLIB_LIBS
|
2013-03-04 11:50:23 +04:00
|
|
|
${X11_X11_LIB}
|
2013-02-25 15:05:36 +04:00
|
|
|
)
|
|
|
|
|
|
|
|
set(kwin_effect_XCB_LIBS
|
2014-02-25 18:48:39 +04:00
|
|
|
XCB::XCB
|
|
|
|
XCB::IMAGE
|
|
|
|
XCB::XFIXES
|
2013-02-25 15:05:36 +04:00
|
|
|
)
|
|
|
|
|
|
|
|
if( KWIN_HAVE_XRENDER_COMPOSITING )
|
2014-02-25 18:48:39 +04:00
|
|
|
set(kwin_effect_XCB_LIBS ${kwin_effect_XCB_LIBS} XCB::RENDER)
|
2013-02-25 15:05:36 +04:00
|
|
|
endif()
|
|
|
|
|
2015-10-30 15:47:37 +03:00
|
|
|
set(kwin_effect_OWN_LIBS ${kwin_effect_OWN_LIBS} kwinglutils)
|
2013-02-25 15:05:36 +04:00
|
|
|
|
2011-07-17 19:27:14 +04:00
|
|
|
macro( KWIN4_ADD_EFFECT_BACKEND name )
|
2014-01-17 16:46:04 +04:00
|
|
|
add_library( ${name} SHARED ${ARGN} )
|
2014-03-16 18:49:44 +04:00
|
|
|
target_link_libraries( ${name} PRIVATE ${kwin_effect_OWN_LIBS} ${kwin_effect_KDE_LIBS} ${kwin_effect_QT_LIBS} ${kwin_effect_XLIB_LIBS} ${kwin_effect_XCB_LIBS})
|
2013-02-25 14:44:26 +04:00
|
|
|
endmacro()
|
2007-11-02 20:28:21 +03:00
|
|
|
|
2007-04-29 21:35:43 +04:00
|
|
|
# Adds effect plugin with given name. Sources are given after the name
|
2009-02-05 18:35:38 +03:00
|
|
|
macro( KWIN4_ADD_EFFECT name )
|
2013-11-15 16:37:47 +04:00
|
|
|
kwin4_add_effect_backend(kwin4_effect_${name} ${ARGN})
|
2014-01-17 16:46:04 +04:00
|
|
|
|
|
|
|
set_target_properties(kwin4_effect_${name} PROPERTIES VERSION 1.0.0 SOVERSION 1 )
|
2013-10-14 11:04:03 +04:00
|
|
|
set_target_properties(kwin4_effect_${name} PROPERTIES OUTPUT_NAME ${KWIN_NAME}4_effect_${name})
|
2014-01-17 16:46:04 +04:00
|
|
|
install(TARGETS kwin4_effect_${name} ${INSTALL_TARGETS_DEFAULT_ARGS} )
|
2011-07-17 19:27:14 +04:00
|
|
|
|
2013-02-25 14:44:26 +04:00
|
|
|
endmacro()
|
2009-02-05 18:35:38 +03:00
|
|
|
|
|
|
|
# Install the KWin/Effect service type
|
|
|
|
install( FILES kwineffect.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR} )
|
2007-05-22 20:58:10 +04:00
|
|
|
|
2009-02-05 18:35:38 +03:00
|
|
|
# Create initial variables
|
|
|
|
set( kwin4_effect_include_directories )
|
2007-04-29 21:35:43 +04:00
|
|
|
|
2014-03-17 17:56:11 +04:00
|
|
|
set( kwin4_effect_builtins_sources
|
|
|
|
logging.cpp
|
|
|
|
effect_builtins.cpp
|
|
|
|
blur/blur.cpp
|
|
|
|
blur/blurshader.cpp
|
2016-11-24 10:07:51 +03:00
|
|
|
colorpicker/colorpicker.cpp
|
2014-03-17 17:56:11 +04:00
|
|
|
cube/cube.cpp
|
|
|
|
cube/cube_proxy.cpp
|
|
|
|
cube/cubeslide.cpp
|
|
|
|
coverswitch/coverswitch.cpp
|
|
|
|
desktopgrid/desktopgrid.cpp
|
|
|
|
diminactive/diminactive.cpp
|
|
|
|
flipswitch/flipswitch.cpp
|
|
|
|
glide/glide.cpp
|
|
|
|
invert/invert.cpp
|
|
|
|
lookingglass/lookingglass.cpp
|
|
|
|
magiclamp/magiclamp.cpp
|
|
|
|
magnifier/magnifier.cpp
|
|
|
|
mouseclick/mouseclick.cpp
|
|
|
|
mousemark/mousemark.cpp
|
|
|
|
presentwindows/presentwindows.cpp
|
|
|
|
presentwindows/presentwindows_proxy.cpp
|
|
|
|
resize/resize.cpp
|
|
|
|
showfps/showfps.cpp
|
|
|
|
thumbnailaside/thumbnailaside.cpp
|
2016-08-16 21:16:41 +03:00
|
|
|
touchpoints/touchpoints.cpp
|
2014-03-17 17:56:11 +04:00
|
|
|
trackmouse/trackmouse.cpp
|
|
|
|
windowgeometry/windowgeometry.cpp
|
|
|
|
wobblywindows/wobblywindows.cpp
|
|
|
|
zoom/zoom.cpp
|
|
|
|
)
|
|
|
|
|
2016-01-26 17:38:42 +03:00
|
|
|
qt5_add_resources( kwin4_effect_builtins_sources shaders.qrc )
|
|
|
|
|
2014-03-17 17:56:11 +04:00
|
|
|
kconfig_add_kcfg_files(kwin4_effect_builtins_sources
|
|
|
|
blur/blurconfig.kcfgc
|
|
|
|
cube/cubeslideconfig.kcfgc
|
|
|
|
cube/cubeconfig.kcfgc
|
|
|
|
coverswitch/coverswitchconfig.kcfgc
|
|
|
|
desktopgrid/desktopgridconfig.kcfgc
|
|
|
|
diminactive/diminactiveconfig.kcfgc
|
2016-11-16 10:13:38 +03:00
|
|
|
fallapart/fallapartconfig.kcfgc
|
2014-03-17 17:56:11 +04:00
|
|
|
flipswitch/flipswitchconfig.kcfgc
|
|
|
|
glide/glideconfig.kcfgc
|
|
|
|
lookingglass/lookingglassconfig.kcfgc
|
|
|
|
magiclamp/magiclampconfig.kcfgc
|
|
|
|
magnifier/magnifierconfig.kcfgc
|
|
|
|
mouseclick/mouseclickconfig.kcfgc
|
|
|
|
mousemark/mousemarkconfig.kcfgc
|
|
|
|
presentwindows/presentwindowsconfig.kcfgc
|
|
|
|
resize/resizeconfig.kcfgc
|
|
|
|
showfps/showfpsconfig.kcfgc
|
2016-11-16 11:02:44 +03:00
|
|
|
slidingpopups/slidingpopupsconfig.kcfgc
|
2014-03-17 17:56:11 +04:00
|
|
|
thumbnailaside/thumbnailasideconfig.kcfgc
|
|
|
|
trackmouse/trackmouseconfig.kcfgc
|
|
|
|
windowgeometry/windowgeometryconfig.kcfgc
|
|
|
|
wobblywindows/wobblywindowsconfig.kcfgc
|
|
|
|
zoom/zoomconfig.kcfgc
|
|
|
|
)
|
|
|
|
|
2012-02-02 17:39:39 +04:00
|
|
|
# scripted effects
|
2013-06-03 17:05:22 +04:00
|
|
|
add_subdirectory( dialogparent )
|
2015-03-30 12:38:54 +03:00
|
|
|
add_subdirectory( eyeonscreen )
|
2012-02-02 17:39:39 +04:00
|
|
|
add_subdirectory( fade )
|
2014-03-03 14:20:03 +04:00
|
|
|
add_subdirectory( fadedesktop )
|
2013-01-14 11:38:18 +04:00
|
|
|
add_subdirectory( login )
|
2014-03-03 14:20:03 +04:00
|
|
|
add_subdirectory( maximize )
|
2016-02-16 18:44:41 +03:00
|
|
|
add_subdirectory( morphingpopups )
|
2014-03-03 14:20:03 +04:00
|
|
|
add_subdirectory( scalein )
|
|
|
|
add_subdirectory( translucency )
|
2015-03-29 02:15:57 +03:00
|
|
|
add_subdirectory( windowaperture )
|
2012-02-02 20:58:31 +04:00
|
|
|
|
2009-02-05 18:35:38 +03:00
|
|
|
###############################################################################
|
|
|
|
# Built-in effects go here
|
|
|
|
|
|
|
|
# Common effects
|
2014-03-17 17:56:11 +04:00
|
|
|
add_subdirectory( desktopgrid )
|
|
|
|
add_subdirectory( diminactive )
|
2014-03-03 14:20:03 +04:00
|
|
|
include( dimscreen/CMakeLists.txt )
|
|
|
|
include( fallapart/CMakeLists.txt )
|
|
|
|
include( highlightwindow/CMakeLists.txt )
|
2013-05-27 12:45:22 +04:00
|
|
|
include( kscreen/CMakeLists.txt )
|
2014-03-17 17:56:11 +04:00
|
|
|
add_subdirectory( magiclamp )
|
2014-03-03 14:20:03 +04:00
|
|
|
include( minimizeanimation/CMakeLists.txt )
|
2014-03-17 17:56:11 +04:00
|
|
|
add_subdirectory( presentwindows )
|
|
|
|
add_subdirectory( resize )
|
2013-01-31 16:31:49 +04:00
|
|
|
include( screenedge/CMakeLists.txt )
|
2014-03-17 17:56:11 +04:00
|
|
|
add_subdirectory( showfps )
|
2014-03-03 14:20:03 +04:00
|
|
|
include( showpaint/CMakeLists.txt )
|
|
|
|
include( slide/CMakeLists.txt )
|
|
|
|
include( slideback/CMakeLists.txt )
|
2009-07-23 23:06:50 +04:00
|
|
|
include( slidingpopups/CMakeLists.txt )
|
2014-03-17 17:56:11 +04:00
|
|
|
add_subdirectory( thumbnailaside )
|
|
|
|
add_subdirectory( windowgeometry )
|
|
|
|
add_subdirectory( zoom )
|
2007-10-21 17:44:40 +04:00
|
|
|
|
2009-02-05 18:35:38 +03:00
|
|
|
# OpenGL-specific effects
|
2014-03-17 17:56:11 +04:00
|
|
|
add_subdirectory( blur )
|
2013-12-01 23:28:57 +04:00
|
|
|
include( backgroundcontrast/CMakeLists.txt )
|
2014-03-17 17:56:11 +04:00
|
|
|
add_subdirectory( coverswitch )
|
|
|
|
add_subdirectory( cube )
|
|
|
|
add_subdirectory( flipswitch )
|
|
|
|
add_subdirectory( glide )
|
|
|
|
add_subdirectory( invert )
|
|
|
|
add_subdirectory( lookingglass )
|
|
|
|
add_subdirectory( magnifier )
|
|
|
|
add_subdirectory( mouseclick )
|
|
|
|
add_subdirectory( mousemark )
|
2011-08-13 17:21:51 +04:00
|
|
|
include( screenshot/CMakeLists.txt )
|
2014-03-03 14:20:03 +04:00
|
|
|
include( sheet/CMakeLists.txt )
|
|
|
|
include( snaphelper/CMakeLists.txt )
|
|
|
|
include( startupfeedback/CMakeLists.txt )
|
2014-03-17 17:56:11 +04:00
|
|
|
add_subdirectory( trackmouse )
|
|
|
|
add_subdirectory( wobblywindows )
|
2007-04-29 21:35:43 +04:00
|
|
|
|
2009-02-05 18:35:38 +03:00
|
|
|
###############################################################################
|
2007-04-29 21:35:43 +04:00
|
|
|
|
2009-02-05 18:35:38 +03:00
|
|
|
# Add the builtins plugin
|
2013-11-15 16:37:47 +04:00
|
|
|
kwin4_add_effect( builtins ${kwin4_effect_builtins_sources} )
|