~hikiko/unity/unity.shadows

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
set(UNITY_SRC ../plugins/unityshell/src)

set (CFLAGS
     ${CACHED_UNITY_DEPS_CFLAGS}
     ${CACHED_UNITY_DEPS_CFLAGS_OTHER}
     "-fPIC"
     ${PIC_FLAGS}
     )

string (REPLACE ";" " " CFLAGS "${CFLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CFLAGS}")

set (LIBS ${CACHED_UNITY_DEPS_LDFLAGS} ${UNITY_STANDALONE_LADD})

include_directories (.. ../services ../UnityCore ${UNITY_SRC} ${CMAKE_BINARY_DIR})

#
# Headers & Sources
#
set (LAUNCHER_SOURCES
     AbstractLauncherIcon.cpp
     ApplicationLauncherIcon.cpp
     BFBLauncherIcon.cpp
     CairoBaseWindow.cpp
     Decaymulator.cpp
     DesktopLauncherIcon.cpp
     DeviceLauncherSection.cpp
     DeviceNotificationDisplayImp.cpp
     DevicesSettingsImp.cpp
     DndData.cpp
     ExpoLauncherIcon.cpp
     FavoriteStore.cpp
     FavoriteStoreGSettings.cpp
     FavoriteStorePrivate.cpp
     HudLauncherIcon.cpp
     Launcher.cpp
     LauncherController.cpp
     LauncherDragWindow.cpp
     LauncherEntryRemote.cpp
     LauncherEntryRemoteModel.cpp
     LauncherHideMachine.cpp
     LauncherHoverMachine.cpp
     LauncherIcon.cpp
     LauncherModel.cpp
     LauncherOptions.cpp
     MockLauncherIcon.cpp
     QuicklistManager.cpp
     QuicklistMenuItem.cpp
     QuicklistMenuItemCheckmark.cpp
     QuicklistMenuItemLabel.cpp
     QuicklistMenuItemRadio.cpp
     QuicklistMenuItemSeparator.cpp
     QuicklistView.cpp
     SimpleLauncherIcon.cpp
     SingleMonitorLauncherIcon.cpp
     SoftwareCenterLauncherIcon.cpp
     SpacerLauncherIcon.cpp
     Tooltip.cpp
     TooltipManager.cpp
     TrashLauncherIcon.cpp
     VolumeImp.cpp
     VolumeLauncherIcon.cpp
     VolumeMonitorWrapper.cpp
     XdndCollectionWindowImp.cpp
     XdndManagerImp.cpp
     XdndStartStopNotifier.cpp
     XdndStartStopNotifierImp.cpp
     )

if (ENABLE_X_SUPPORT)
  set (LAUNCHER_SOURCES
    EdgeBarrierController.cpp
    PointerBarrier.cpp
    ${LAUNCHER_SOURCES}
    )
endif ()

add_library (launcher-lib STATIC ${LAUNCHER_SOURCES})
add_dependencies (launcher-lib unity-core-${UNITY_API_VERSION} unity-shared)
target_link_libraries (launcher-lib unity-shared)
add_pch(pch/launcher_pch.hh launcher-lib)

set (SWITCHER_SOURCES
      DeltaTracker.cpp
      SwitcherController.cpp
      SwitcherModel.cpp
      SwitcherView.cpp
    )

add_library (switcher-lib STATIC ${SWITCHER_SOURCES})
add_dependencies (switcher-lib unity-core-${UNITY_API_VERSION} unity-shared)

set (LAUNCHER_LIBS
    launcher-lib
    unity-shared
    unity-shared-bamf
    unity-shared-standalone)

#
# Standalone variant
#
add_executable (launcher StandaloneLauncher.cpp)
target_link_libraries (launcher ${LAUNCHER_LIBS})

if (ENABLE_X_SUPPORT)
  add_executable (switcher StandaloneSwitcher.cpp)
  target_link_libraries (switcher switcher-lib ${LAUNCHER_LIBS})
endif ()