1pkg_check_modules(GSETTINGS_QT REQUIRED gsettings-qt)
2pkg_check_modules(LAUNCHER_API REQUIRED unity-shell-launcher=7)
5 ${CMAKE_CURRENT_SOURCE_DIR}
6 ${CMAKE_CURRENT_BINARY_DIR}
7 ${CMAKE_SOURCE_DIR}/plugins/Unity/Launcher
8 ${GSETTINGS_QT_INCLUDE_DIRS}
9 ${libunity8-private_SOURCE_DIR}
12add_definitions(-DSM_BUSNAME=sessionBus)
13add_definitions(-DSRCDIR="${CMAKE_CURRENT_SOURCE_DIR}")
14add_definitions(-DLAUNCHER_TESTING)
17add_executable(launchermodeltestExec
20 AccountsServiceDBusAdaptor.cpp
21 ${CMAKE_SOURCE_DIR}/plugins/Unity/Launcher/launchermodel.cpp
22 ${CMAKE_SOURCE_DIR}/plugins/Unity/Launcher/asadapter.cpp
23 ${CMAKE_SOURCE_DIR}/plugins/Unity/Launcher/launcheritem.cpp
24 ${CMAKE_SOURCE_DIR}/plugins/Unity/Launcher/quicklistmodel.cpp
25 ${CMAKE_SOURCE_DIR}/plugins/Unity/Launcher/dbusinterface.cpp
26 ${CMAKE_SOURCE_DIR}/plugins/Unity/Launcher/desktopfilehandler.cpp
27 ${CMAKE_SOURCE_DIR}/plugins/Unity/Launcher/quicklistentry.cpp
28 ${LAUNCHER_API_INCLUDEDIR}/unity/shell/launcher/LauncherItemInterface.h
29 ${LAUNCHER_API_INCLUDEDIR}/unity/shell/launcher/LauncherModelInterface.h
30 ${LAUNCHER_API_INCLUDEDIR}/unity/shell/launcher/QuickListModelInterface.h
31 ${APPLICATION_API_INCLUDEDIR}/unity/shell/application/ApplicationManagerInterface.h
32 ${LAUNCHER_API_INCLUDEDIR}/unity/shell/application/ApplicationInfoInterface.h
34target_link_libraries(launchermodeltestExec
36 ${GSETTINGS_QT_LDFLAGS}
38qt5_use_modules(launchermodeltestExec Test Core DBus Xml Gui)
40add_unity8_unittest(LauncherModel dbus-test-runner
41 ARG_PREFIX "--parameter"
42 ARGS --task $<TARGET_FILE:launchermodeltestExec>
45# copy .desktop files into build directory for shadow builds
46file(GLOB DESKTOP_FILES *.desktop)
48foreach(DESKTOP_FILE ${DESKTOP_FILES})
49 file(COPY "${DESKTOP_FILE}"
50 DESTINATION ${CMAKE_CURRENT_BINARY_DIR}
54# copy .svg files into build directory for shadow builds
55file(GLOB DESKTOP_FILES *.svg)
57foreach(DESKTOP_FILE ${DESKTOP_FILES})
58 file(COPY "${DESKTOP_FILE}"
59 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