1pkg_check_modules(GSETTINGS_QT REQUIRED gsettings-qt)
2pkg_check_modules(LAUNCHER_API REQUIRED unity-shell-launcher=6)
3pkg_check_modules(APPLICATION_API REQUIRED unity-shell-application=5)
6 ${CMAKE_CURRENT_SOURCE_DIR}
7 ${CMAKE_CURRENT_BINARY_DIR}
8 ${CMAKE_SOURCE_DIR}/plugins/Unity/Launcher
9 ${GSETTINGS_QT_INCLUDE_DIRS}
10 ${libunity8-private_SOURCE_DIR}
13add_definitions(-DSM_BUSNAME=sessionBus)
14add_definitions(-DSRCDIR="${CMAKE_CURRENT_SOURCE_DIR}")
15add_definitions(-DLAUNCHER_TESTING)
18set(testModelCommand dbus-test-runner --task ${CMAKE_CURRENT_BINARY_DIR}/launchermodeltestExec
19 --parameter -o --parameter ${CMAKE_BINARY_DIR}/launchermodeltest.xml,xunitxml
20 --parameter -o --parameter -,txt)
21add_test(NAME launchermodeltest COMMAND ${testModelCommand})
22add_custom_target(launchermodeltest ${testModelCommand})
23add_executable(launchermodeltestExec
26 AccountsServiceDBusAdaptor.cpp
27 ${CMAKE_SOURCE_DIR}/plugins/Unity/Launcher/launchermodel.cpp
28 ${CMAKE_SOURCE_DIR}/plugins/Unity/Launcher/asadapter.cpp
29 ${CMAKE_SOURCE_DIR}/plugins/Unity/Launcher/launcheritem.cpp
30 ${CMAKE_SOURCE_DIR}/plugins/Unity/Launcher/quicklistmodel.cpp
31 ${CMAKE_SOURCE_DIR}/plugins/Unity/Launcher/dbusinterface.cpp
32 ${CMAKE_SOURCE_DIR}/plugins/Unity/Launcher/desktopfilehandler.cpp
33 ${CMAKE_SOURCE_DIR}/plugins/Unity/Launcher/quicklistentry.cpp
34 ${LAUNCHER_API_INCLUDEDIR}/unity/shell/launcher/LauncherItemInterface.h
35 ${LAUNCHER_API_INCLUDEDIR}/unity/shell/launcher/LauncherModelInterface.h
36 ${LAUNCHER_API_INCLUDEDIR}/unity/shell/launcher/QuickListModelInterface.h
37 ${APPLICATION_API_INCLUDEDIR}/unity/shell/application/ApplicationManagerInterface.h
38 ${LAUNCHER_API_INCLUDEDIR}/unity/shell/application/ApplicationInfoInterface.h
40target_link_libraries(launchermodeltestExec
42 ${GSETTINGS_QT_LDFLAGS}
44qt5_use_modules(launchermodeltestExec Test Core DBus Xml Gui)
46# copy .desktop files into build directory for shadow builds
47file(GLOB DESKTOP_FILES *.desktop)
49foreach(DESKTOP_FILE ${DESKTOP_FILES})
50 file(COPY "${DESKTOP_FILE}"
51 DESTINATION ${CMAKE_CURRENT_BINARY_DIR}
55# copy .svg files into build directory for shadow builds
56file(GLOB DESKTOP_FILES *.svg)
58foreach(DESKTOP_FILE ${DESKTOP_FILES})
59 file(COPY "${DESKTOP_FILE}"
60 DESTINATION ${CMAKE_CURRENT_BINARY_DIR}
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list