neuswc

patched neuswc library (tracked)
git clone https://git.daat.foo/neuswc.git
Log | Files | Refs | README | LICENSE

meson.build (1810B)


      1 install_headers('swc.h')
      2 
      3 libswc_src = files(
      4   'bindings.c',
      5   'compositor.c',
      6   'cursor_shape.c',
      7   'data.c',
      8   'data_device.c',
      9   'data_device_manager.c',
     10   'decor.c',
     11   'input.c',
     12   'kde_decoration.c',
     13   'keyboard.c',
     14   'layer_shell.c',
     15   'launch.c',
     16   'mode.c',
     17   'output.c',
     18   'panel.c',
     19   'panel_manager.c',
     20   'pointer.c',
     21   'primary_plane.c',
     22   'region.c',
     23   'screen.c',
     24   'select.c',
     25   'selection.c',
     26   'snap.c',
     27   'shell.c',
     28   'shell_surface.c',
     29   'shm.c',
     30   'subcompositor.c',
     31   'subsurface.c',
     32   'surface.c',
     33   'swc.c',
     34   'util.c',
     35   'view.c',
     36   'wayland_buffer.c',
     37   'window.c',
     38   'xdg_decoration.c',
     39   'xdg_dialog.c',
     40   'xdg_output.c',
     41   'xdg_shell.c',
     42 
     43   input_backend == 'libinput' ? ['seat.c', 'touch.c'] : [],
     44   input_backend == 'wscons' ? 'seat_ws.c' : [],
     45   input_backend == 'wscons' and os == 'openbsd' ? 'seat_ws_openbsd.c' : [],
     46 
     47   xwayland.found() ? ['xserver.c', 'xwm.c'] : [],  
     48 
     49   with_drm ? ['dmabuf.c', 'drm.c', 'plane.c'] : [],
     50   with_fb and framebuffer_backend == 'fbdev' ? ['fb.c', 'fb_fbdev.c'] : [],
     51   with_fb and framebuffer_backend == 'wsdisplay' ? ['fb.c', 'fb_wsdisplay.c'] : [],
     52 )
     53 libswc_src += [cursor, launch_protocol]
     54 
     55 if have_nested
     56   libswc_src += files('nested.c')
     57 endif
     58 if have_peer
     59   libswc_src += files('peer.c')
     60 endif
     61 
     62 foreach proto, proto_src : protos
     63 	libswc_src += proto_src
     64 endforeach
     65 
     66 libswc_lib = library(
     67 	'swc',
     68 	libswc_src,
     69 	dependencies: requires + requires_private,
     70 	install: true,
     71 	include_directories: include_directories('..'),
     72 )
     73 
     74 # Allows other meson projects to use libswc
     75 libswc = declare_dependency(
     76 	link_with: libswc_lib,
     77 	dependencies: requires + requires_private,
     78 )
     79 
     80 pkg.generate(
     81   libswc_lib,
     82   name: 'swc',
     83   description: 'A library for making a simple Wayland compositor',
     84   requires: requires,
     85   requires_private: requires_private,
     86 )