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/AccountsService
8 ${CMAKE_SOURCE_DIR}/plugins/Unity/Launcher
9 ${GSETTINGS_QT_INCLUDE_DIRS}
11 ${libunity8-private_SOURCE_DIR}
14add_definitions(-DSM_BUSNAME=sessionBus)
15add_definitions(-DSRCDIR="${CMAKE_CURRENT_SOURCE_DIR}")
16add_definitions(-DLAUNCHER_TESTING)
19add_executable(launchermodeltestExec
22 ${CMAKE_SOURCE_DIR}/plugins/AccountsService/AccountsServiceDBusAdaptor.cpp
23 ${CMAKE_SOURCE_DIR}/plugins/Unity/Launcher/launchermodel.cpp
24 ${CMAKE_SOURCE_DIR}/plugins/Unity/Launcher/asadapter.cpp
25 ${CMAKE_SOURCE_DIR}/plugins/Unity/Launcher/launcheritem.cpp
26 ${CMAKE_SOURCE_DIR}/plugins/Unity/Launcher/quicklistmodel.cpp
27 ${CMAKE_SOURCE_DIR}/plugins/Unity/Launcher/dbusinterface.cpp
28 ${CMAKE_SOURCE_DIR}/plugins/Unity/Launcher/desktopfilehandler.cpp
29 ${CMAKE_SOURCE_DIR}/plugins/Unity/Launcher/quicklistentry.cpp
30 ${LAUNCHER_API_INCLUDEDIR}/unity/shell/launcher/LauncherItemInterface.h
31 ${LAUNCHER_API_INCLUDEDIR}/unity/shell/launcher/LauncherModelInterface.h
32 ${LAUNCHER_API_INCLUDEDIR}/unity/shell/launcher/QuickListModelInterface.h
33 ${APPLICATION_API_INCLUDEDIR}/unity/shell/application/ApplicationManagerInterface.h
34 ${LAUNCHER_API_INCLUDEDIR}/unity/shell/application/ApplicationInfoInterface.h
36target_link_libraries(launchermodeltestExec
38 ${GSETTINGS_QT_LDFLAGS}
41add_dependencies(launchermodeltestExec mock-server)
42qt5_use_modules(launchermodeltestExec Test Core DBus Xml Gui)
44add_unity8_unittest(LauncherModel dbus-test-runner
45 ARG_PREFIX "--parameter"
47 --task $<TARGET_FILE:mock-server>
49 --task $<TARGET_FILE:launchermodeltestExec>
50 --wait-for org.freedesktop.Accounts
53# copy .desktop files into build directory for shadow builds
54file(GLOB DESKTOP_FILES *.desktop)
56foreach(DESKTOP_FILE ${DESKTOP_FILES})
57 file(COPY "${DESKTOP_FILE}"
58 DESTINATION ${CMAKE_CURRENT_BINARY_DIR}
62# copy .svg files into build directory for shadow builds
63file(GLOB DESKTOP_FILES *.svg)
65foreach(DESKTOP_FILE ${DESKTOP_FILES})
66 file(COPY "${DESKTOP_FILE}"
67 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