Copy the packages into the build directory so they can be found without installign

Summary: Fixes the execution of tests when not installed

Test Plan: Removed the installed effect and testTranslucency

Reviewers: #kwin, zzag

Reviewed By: #kwin, zzag

Subscribers: zzag, kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D22490
This commit is contained in:
Aleix Pol 2019-07-16 17:04:43 +02:00
parent 6cd9b2ba25
commit d3253257f9

View file

@ -131,21 +131,27 @@ kconfig_add_kcfg_files(kwin4_effect_builtins_sources
) )
# scripted effects # scripted effects
kpackage_install_package(dialogparent/package kwin4_effect_dialogparent effects kwin) function(install_scripted_effect name)
kpackage_install_package(dimscreen/package kwin4_effect_dimscreen effects kwin) kpackage_install_package(${name}/package kwin4_effect_${name} effects kwin)
kpackage_install_package(eyeonscreen/package kwin4_effect_eyeonscreen effects kwin)
kpackage_install_package(fade/package kwin4_effect_fade effects kwin) # necessary so tests are found without installing
kpackage_install_package(fadedesktop/package kwin4_effect_fadedesktop effects kwin) file(COPY ${name}/package/contents ${name}/package/metadata.desktop DESTINATION ${CMAKE_BINARY_DIR}/bin/kwin/effects/kwin4_effect_${name})
kpackage_install_package(fadingpopups/package kwin4_effect_fadingpopups effects kwin) endfunction()
kpackage_install_package(frozenapp/package kwin4_effect_frozenapp effects kwin) install_scripted_effect(dialogparent)
kpackage_install_package(login/package kwin4_effect_login effects kwin) install_scripted_effect(dimscreen)
kpackage_install_package(logout/package kwin4_effect_logout effects kwin) install_scripted_effect(eyeonscreen)
kpackage_install_package(maximize/package kwin4_effect_maximize effects kwin) install_scripted_effect(fade)
kpackage_install_package(morphingpopups/package kwin4_effect_morphingpopups effects kwin) install_scripted_effect(fadedesktop)
kpackage_install_package(scale/package kwin4_effect_scale effects kwin) install_scripted_effect(fadingpopups)
kpackage_install_package(squash/package kwin4_effect_squash effects kwin) install_scripted_effect(frozenapp)
kpackage_install_package(translucency/package kwin4_effect_translucency effects kwin) install_scripted_effect(login)
kpackage_install_package(windowaperture/package kwin4_effect_windowaperture effects kwin) install_scripted_effect(logout)
install_scripted_effect(maximize)
install_scripted_effect(morphingpopups)
install_scripted_effect(scale)
install_scripted_effect(squash)
install_scripted_effect(translucency)
install_scripted_effect(windowaperture)
############################################################################### ###############################################################################
# Built-in effects go here # Built-in effects go here