DSWaylandServer: swap tizen_policy_ext files to tizen-policy-ext
[platform/core/uifw/libds.git] / src / meson.build
1
2 libds_srcs = [
3         'DSBase/DSRefBase.cpp',
4         'DSBase/DSRefBase.h',
5         'DSBuffer/DSBufferQueueTBMImpl.cpp',
6         'DSBuffer/DSBufferTBMImpl.cpp',
7         'DSBuffer/DSBufferManager.cpp',
8         'DSBuffer/DSBufferManager.h',
9         'DSBuffer/DSBufferManagerPrivate.h',
10         'DSBuffer/DSBufferRef.cpp',
11         'DSBuffer/DSBufferRef.h',
12         'DSCallback/DSCallback.h',
13         'DSCanvas/DSCanvas.cpp',
14         'DSCompositor/DSCompositor.cpp',
15         'DSDebug/DSDebugLog.cpp',
16         'DSDisplayArea/DSDisplayArea.cpp',
17         'DSDisplayDevice/DSDisplayDeviceHWCTDMImpl.cpp',
18         'DSDisplayDevice/DSDisplayDeviceHWCWindowTDMImpl.cpp',
19         'DSDisplayDevice/DSDisplayDeviceHWCWindowTDMTargetImpl.cpp',
20         'DSDisplayDevice/DSDisplayDeviceOutputModeTDMImpl.cpp',
21         'DSDisplayDevice/DSDisplayDeviceOutputTDMImpl.cpp',
22         'DSDisplayDevice/DSDisplayDeviceTDMImpl.cpp',
23         'DSEventLoop/DSEventLoop.cpp',
24         'DSInput/DSInput.cpp',
25         'DSInput/DSInput.h',
26         'DSInput/DSInputPrivate.h',
27         'DSInput/DSInputEvent.h',
28         'DSInput/DSLibinput.cpp',
29         'DSInput/DSLibinput.h',
30         'DSObject/DSObject.cpp',
31         'DSObject/DSObject.h',
32         'DSObject/DSObjectPrivate.cpp',
33         'DSObject/DSObjectPrivate.h',
34         'DSOutput/DSOutputImpl.cpp',
35         'DSPolicyArea/DSPolicyArea.cpp',
36         'DSProperty/DSProperty.cpp',
37         'DSProperty/DSProperty.h',
38         'DSProperty/DSPropertyPrivate.cpp',
39         'DSProperty/DSPropertyPrivate.h',
40         'DSRender/DSRenderEngineEcoreEvasImpl.cpp',
41         'DSRender/DSRenderEngineDaliImpl.cpp',
42         'DSRender/DSRenderView.cpp',
43         'DSRender/DSRenderViewEcoreEvasImpl.cpp',
44         'DSRender/DSRenderViewDaliImpl.cpp',
45         'DSSeat/DSSeat.cpp',
46         'DSSeat/DSKeyboard.cpp',
47         'DSSeat/DSKeyboard.h',
48         'DSSeat/DSPointer.cpp',
49         'DSSeat/DSPointer.h',
50         'DSSeat/DSTouch.cpp',
51         'DSSeat/DSTouch.h',
52         'DSSignal/DSSignal.cpp',
53         'DSSignal/DSSignal.h',
54         'DSSignal/DSSignalBroker.cpp',
55         'DSSignal/DSSignalBroker.h',
56         'DSCore/DSStruct.h',
57         'DSCore/DSCore.h',
58         'DSWaylandExtension/DSWaylandExtension.cpp',
59         'DSTizenAppinfo/DSTizenAppinfo.h',
60         'DSTizenAppinfo/DSTizenAppinfo.cpp',
61         'DSTizenAppinfo/DSTizenAppinfoMgr.h',
62         'DSTizenAppinfo/DSTizenAppinfoMgrPrivate.h',
63         'DSTizenAppinfo/DSTizenAppinfoMgr.cpp',
64         'DSWindow/DSWindow.h',
65         'DSWindow/DSWindowPrivate.h',
66         'DSWindow/DSWindow.cpp',
67         'DSWindowManager/DSWindowManager.cpp',
68         'DSWindowShell/DSWindowShell.cpp',
69         'DSWindowShell/DSWindowShellPrivate.cpp',
70         'DSZone/DSZone.cpp',
71         'DSClient/DSClientPrivate.h',
72         'DSClient/DSClient.h',
73         'DSClient/DSClient.cpp',
74         'DSXkb/DSXkbPrivate.h',
75         'DSXkb/DSXkb.h',
76         'DSXkb/DSXkb.cpp',
77         'DSTextInput/DSTextInputPrivate.h',
78         'DSTextInput/DSTextInput.h',
79         'DSTextInput/DSTextInput.cpp',
80         'DSUtil/DSUtilSocket.h',
81         'DSUtil/DSUtilSocket.cpp',
82         'DSTraceInfo/DSTraceInfo.h',
83         'DSTraceInfo/DSTraceInfo.cpp',
84         ]
85
86 libds_wayland_srcs = [
87         'DSWaylandServer/dswayland-server-wayland.cpp',
88         'DSWaylandServer/dswayland-server-wayland.h',
89         'DSWaylandServer/dswayland-server-tizen-extension.cpp',
90         'DSWaylandServer/dswayland-server-tizen-extension.h',
91         'DSWaylandServer/dswayland-server-xdg-shell-unstable-v6.cpp',
92         'DSWaylandServer/dswayland-server-xdg-shell-unstable-v6.h',
93         'DSWaylandServer/dswayland-server-xdg-shell.cpp',
94         'DSWaylandServer/dswayland-server-xdg-shell.h',
95         'DSWaylandServer/dswayland-server-tizen-surface.cpp',
96         'DSWaylandServer/dswayland-server-tizen-surface.h',
97         'DSWaylandServer/dswayland-server-text.cpp',
98         'DSWaylandServer/dswayland-server-text.h',
99         'DSWaylandServer/dswayland-server-tizen-launch.cpp',
100         'DSWaylandServer/dswayland-server-tizen-launch.h',
101         'DSWaylandServer/dswayland-server-input-method.cpp',
102         'DSWaylandServer/dswayland-server-input-method.h',
103         'DSWaylandServer/dswayland-server-tizen-policy-ext.cpp',
104         'DSWaylandServer/dswayland-server-tizen-policy-ext.h',
105         'DSWaylandServer/DSWaylandCallback.cpp',
106         'DSWaylandServer/DSWaylandCallback.h',
107         'DSWaylandServer/DSWaylandCallbackPrivate.h',
108         'DSWaylandServer/DSWaylandOutput.cpp',
109         'DSWaylandServer/DSWaylandOutput.h',
110         'DSWaylandServer/DSWaylandOutputPrivate.h',
111         'DSWaylandServer/DSWaylandSurface.cpp',
112         'DSWaylandServer/DSWaylandSurface.h',
113         'DSWaylandServer/DSWaylandSurfacePrivate.h',
114         'DSWaylandServer/DSWaylandRegion.cpp',
115         'DSWaylandServer/DSWaylandRegion.h',
116         'DSWaylandServer/DSWaylandRegionPrivate.h',
117         'DSWaylandServer/DSWaylandTizenInputDevice.h',
118         'DSWaylandServer/DSWaylandTizenInputDevicePrivate.h',
119         'DSWaylandServer/DSWaylandTizenInputDeviceManager.cpp',
120         'DSWaylandServer/DSWaylandTizenInputDeviceManager.h',
121         'DSWaylandServer/DSWaylandTizenInputDeviceManagerPrivate.h',
122         'DSWaylandServer/DSWaylandTizenPolicy.cpp',
123         'DSWaylandServer/DSWaylandTizenPosition.cpp',
124         'DSWaylandServer/DSWaylandTizenVisibility.cpp',
125         'DSWaylandServer/DSWaylandTizenSurface.cpp',
126         'DSWaylandServer/DSWaylandTizenSurface.h',
127         'DSWaylandServer/DSWaylandTizenSurfacePrivate.h',
128         'DSWaylandServer/DSWaylandTizenSurfaceShm.cpp',
129         'DSWaylandServer/DSWaylandTizenSurfaceShm.h',
130         'DSWaylandServer/DSWaylandTizenSurfaceShmPrivate.h',
131         'DSWaylandServer/DSWaylandZxdgShellV6.cpp',
132         'DSWaylandServer/DSWaylandZxdgShellV6.h',
133         'DSWaylandServer/DSWaylandZxdgShellV6Private.h',
134         'DSWaylandServer/DSWaylandCompositorPrivate.h',
135         'DSWaylandServer/DSWaylandCompositor.h',
136         'DSWaylandServer/DSWaylandCompositor.cpp',
137         'DSWaylandServer/DSWaylandClientPrivate.h',
138         'DSWaylandServer/DSWaylandClient.h',
139         'DSWaylandServer/DSWaylandClient.cpp',
140         'DSWaylandServer/DSWaylandSeatPrivate.h',
141         'DSWaylandServer/DSWaylandSeat.h',
142         'DSWaylandServer/DSWaylandSeat.cpp',
143         'DSWaylandServer/DSWaylandPointerPrivate.h',
144         'DSWaylandServer/DSWaylandPointer.h',
145         'DSWaylandServer/DSWaylandPointer.cpp',
146         'DSWaylandServer/DSWaylandKeyboardPrivate.h',
147         'DSWaylandServer/DSWaylandKeyboard.h',
148         'DSWaylandServer/DSWaylandKeyboard.cpp',
149         'DSWaylandServer/DSWaylandTouchPrivate.h',
150         'DSWaylandServer/DSWaylandTouch.h',
151         'DSWaylandServer/DSWaylandTouch.cpp',
152         'DSWaylandServer/DSWaylandBufferPrivate.h',
153         'DSWaylandServer/DSWaylandBuffer.h',
154         'DSWaylandServer/DSWaylandBuffer.cpp',
155         'DSWaylandServer/DSWaylandTizenIndicatorPrivate.h',
156         'DSWaylandServer/DSWaylandTizenIndicator.h',
157         'DSWaylandServer/DSWaylandTizenIndicator.cpp',
158         'DSWaylandServer/DSWaylandInputMethodContextPrivate.h',
159         'DSWaylandServer/DSWaylandInputMethodContext.h',
160         'DSWaylandServer/DSWaylandInputMethodPrivate.h',
161         'DSWaylandServer/DSWaylandInputMethod.h',
162         'DSWaylandServer/DSWaylandInputMethod.cpp',
163         'DSWaylandServer/DSWaylandTextInputManagerPrivate.h',
164         'DSWaylandServer/DSWaylandTextInputManager.h',
165         'DSWaylandServer/DSWaylandTextInputPrivate.h',
166         'DSWaylandServer/DSWaylandTextInput.h',
167         'DSWaylandServer/DSWaylandTextInput.cpp',
168         'DSWaylandServer/DSWaylandInputPanelSurfacePrivate.h',
169         'DSWaylandServer/DSWaylandInputPanelSurface.h',
170         'DSWaylandServer/DSWaylandInputPanelPrivate.h',
171         'DSWaylandServer/DSWaylandInputPanel.h',
172         'DSWaylandServer/DSWaylandInputPanel.cpp',
173         'DSWaylandServer/DSWaylandTizenAppinfoPrivate.h',
174         'DSWaylandServer/DSWaylandTizenAppinfo.h',
175         'DSWaylandServer/DSWaylandTizenAppinfo.cpp',
176         'DSWaylandServer/DSWaylandTizenLaunchEffectPrivate.h',
177         'DSWaylandServer/DSWaylandTizenLaunchEffect.h',
178         'DSWaylandServer/DSWaylandTizenLaunchEffect.cpp',
179         'DSWaylandServer/DSWaylandTizenLaunchSplashPrivate.h',
180         'DSWaylandServer/DSWaylandTizenLaunchSplash.h',
181         'DSWaylandServer/DSWaylandTizenLaunchSplash.cpp',
182         'DSWaylandServer/DSWaylandProtocolTracePrivate.h',
183         'DSWaylandServer/DSWaylandProtocolTraceStruct.h',
184         'DSWaylandServer/DSWaylandProtocolTrace.h',
185         'DSWaylandServer/DSWaylandProtocolTrace.cpp',
186         'DSWaylandServer/DSWaylandTizenPolicyExt.h',
187         'DSWaylandServer/DSWaylandTizenPolicyExtPrivate.h',
188         'DSWaylandServer/DSWaylandTizenPolicyExt.cpp',
189         ]
190
191 libds_srcs += libds_wayland_srcs
192
193 install_headers(
194         'DSObject/DSObject.h',
195         'DSSignal/DSSignal.h',
196         'DSBase/DSRefBase.h',
197         )
198
199 pkgconfig = import('pkgconfig')
200 ecore_dep = dependency('ecore')
201 ecore_evas_dep = dependency('ecore-evas')
202 dlog_dep = dependency('dlog')
203 libtdm_dep = dependency('libtdm')
204 libtbm_dep = dependency('libtbm')
205 wayland_tbm_server_dep = dependency('wayland-tbm-server')
206 wayland_dep = dependency('wayland-server')
207 libinput_dep = dependency('libinput')
208 libudev_dep = dependency('libudev')
209 xkbcommon_dep = dependency('xkbcommon')
210
211 tizen_ext_dep = dependency('tizen-extension-server')
212 xdg_shell_unstable_v6_dep = dependency('xdg-shell-unstable-v6-server')
213 xdg_shell_dep = dependency('xdg-shell-server')
214 tizen_surface_dep = dependency('tizen-surface-server')
215 input_method_dep = dependency('input-method-server')
216 text_dep = dependency('text-server')
217 tizen_launch_dep = dependency('tizen-launch-server')
218 tizen_policy_ext_dep = dependency('tizen-policy-ext-server')
219
220 dali_core_dep = dependency('dali2-core')
221 dali_adaptor_dep = dependency('dali2-adaptor')
222 dali_toolkit_dep = dependency('dali2-toolkit')
223
224 dali_deps = [dali_core_dep, dali_adaptor_dep, dali_toolkit_dep]
225 tizen_ext_deps = [tizen_ext_dep, input_method_dep, text_dep, tizen_launch_dep, tizen_surface_dep]
226 tizen_ext_deps += [xdg_shell_unstable_v6_dep, xdg_shell_dep, tizen_policy_ext_dep]
227 libds_deps = [ecore_dep]
228
229 libds_include_dirs = include_directories(
230         '.',
231         './DSBase',
232         './DSBuffer',
233         './DSCallback',
234         './DSCanvas',
235         './DSCompositor',
236         './DSDebug',
237         './DSDisplayArea',
238         './DSDisplayDevice',
239         './DSEventLoop',
240         './DSInput',
241         './DSObject',
242         './DSOutput',
243         './DSPolicyArea',
244         './DSProperty',
245         './DSRender',
246         './DSSeat',
247         './DSSignal',
248         './DSCore',
249         './DSWaylandExtension',
250         './DSWaylandServer',
251         './DSWindow',
252         './DSWindowManager',
253         './DSWindowShell',
254         './DSZone',
255         './DSClient',
256         './DSXkb',
257         './DSTextInput',
258         './DSTizenAppinfo',
259         './DSUtil',
260         './DSTraceInfo',
261         )
262
263 libds_lib = shared_library(
264         'ds',
265         libds_srcs,
266         dependencies : [dlog_dep, libtdm_dep, wayland_dep, tizen_ext_deps, ecore_dep, ecore_evas_dep, libinput_dep, libudev_dep, xkbcommon_dep, libtbm_dep, wayland_tbm_server_dep, dali_deps],
267         include_directories : [libds_include_dirs],
268         version : meson.project_version(),
269         install : true
270         )
271
272 pkgconfig.generate(
273         filebase : 'libds',
274         name : 'libds',
275         description : 'Display Server library',
276         version : meson.project_version(),
277         libraries : libds_lib
278         )
279
280 libds_declared_dep = declare_dependency(
281         link_with : libds_lib,
282         dependencies : [libds_deps, ecore_dep],
283         include_directories : [libds_include_dirs]
284         )
285