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