meson.build - wmenu - [fork] efficient dynamic menu for wayland
 (HTM) git clone https://git.drkhsh.at/wmenu.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
       meson.build (1237B)
       ---
            1 project(
            2         'wmenu',
            3         'c',
            4         version: '0.2.0',
            5         license: 'MIT',
            6         default_options: [
            7                 'c_std=c11',
            8                 'warning_level=2',
            9                 'werror=true',
           10         ]
           11 )
           12 
           13 cc = meson.get_compiler('c')
           14 
           15 add_project_arguments(cc.get_supported_arguments([
           16         '-DVERSION="@0@"'.format(meson.project_version()),
           17 
           18         '-Wno-missing-field-initializers',
           19         '-Wno-unused-parameter',
           20         '-Wundef',
           21         '-Wvla',
           22 ]), language : 'c')
           23 
           24 cairo           = dependency('cairo')
           25 pango           = dependency('pango')
           26 pangocairo      = dependency('pangocairo')
           27 wayland_client  = dependency('wayland-client')
           28 wayland_protos  = dependency('wayland-protocols')
           29 xkbcommon       = dependency('xkbcommon')
           30 
           31 rt = cc.find_library('rt')
           32 
           33 subdir('protocols')
           34 subdir('docs')
           35 
           36 executable(
           37         'wmenu',
           38         files(
           39                 'menu.c',
           40                 'pango.c',
           41                 'pool-buffer.c',
           42                 'render.c',
           43                 'wayland.c',
           44                 'wmenu.c',
           45         ),
           46         dependencies: [
           47                 cairo,
           48                 client_protos,
           49                 pango,
           50                 pangocairo,
           51                 rt,
           52                 wayland_client,
           53                 wayland_protos,
           54                 xkbcommon,
           55         ],
           56         install: true,
           57 )
           58 
           59 executable(
           60         'wmenu-run',
           61         files(
           62                 'menu.c',
           63                 'pango.c',
           64                 'pool-buffer.c',
           65                 'render.c',
           66                 'wayland.c',
           67                 'wmenu-run.c',
           68         ),
           69         dependencies: [
           70                 cairo,
           71                 client_protos,
           72                 pango,
           73                 pangocairo,
           74                 rt,
           75                 wayland_client,
           76                 wayland_protos,
           77                 xkbcommon,
           78         ],
           79         install: true,
           80 )