shell: implement wl_shell_interface
[platform/core/uifw/libds-tizen.git] / src / libds / meson.build
index 2d09a91..b59fda2 100644 (file)
@@ -2,8 +2,7 @@ libds_files = [
   'log.c',
   'addon.c',
   'buffer.c',
-  'allocator/allocator.c',
-  'allocator/shm.c',
+  'allocator.c',
   'swapchain.c',
   'output.c',
   'compositor.c',
@@ -18,6 +17,17 @@ libds_files = [
   'xdg_shell/xdg_surface.c',
   'xdg_shell/xdg_toplevel.c',
   'pixel_format.c',
+  'backend.c',
+  'input_device.c',
+  'pointer.c',
+  'keyboard.c',
+  'touch.c',
+  'seat/seat.c',
+  'seat/seat_pointer.c',
+  'seat/seat_keyboard.c',
+  'seat/seat_touch.c',
+  'shell.c',
+  'shell_surface.c',
 ]
 
 protocols = {
@@ -50,15 +60,24 @@ math = meson.get_compiler('c').find_library('m')
 wayland_server = dependency('wayland-server', required: true)
 pixman = dependency('pixman-1', required: true)
 libdrm = dependency('libdrm', required: true)
+xkbcommon = dependency('xkbcommon', required: true)
+rt = meson.get_compiler('c').find_library('rt')
+
+if wayland_server.version().version_compare('>= 1.19')
+  cdata.set('HAVE_WL_SEAT_ERROR_MISSING_CAPABILITY', '1')
+endif
 
 libds_deps = [
   math,
   wayland_server,
   pixman,
   libdrm,
+  xkbcommon,
+  rt,
 ]
 
 subdir('backend')
+subdir('allocator')
 
 lib_libds = shared_library('ds', libds_files,
   dependencies: libds_deps,
@@ -72,3 +91,11 @@ dep_libds = declare_dependency(
   dependencies: libds_deps,
   include_directories: [ common_inc, include_directories('.') ],
 )
+
+pkgconfig = import('pkgconfig')
+pkgconfig.generate(lib_libds,
+  version: meson.project_version(),
+  filebase: meson.project_name(),
+  name: meson.project_name(),
+  description: 'Wayland compositor library',
+)