File: meson.build

package info (click to toggle)
egl-wayland 1%3A1.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 388 kB
  • sloc: ansic: 3,111; xml: 198; makefile: 82; sh: 7
file content (47 lines) | stat: -rw-r--r-- 1,200 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
if not cc.has_function('dlsym')
  libdl = cc.find_library('dl')
else
  libdl = []
endif

add_project_arguments('-Wall', language : 'c')
add_project_arguments('-Werror', language : 'c')
add_project_arguments('-fvisibility=hidden', language : 'c')
add_project_link_arguments('-Wl,-Bsymbolic', language : 'c')

if cc.has_argument('-Wpedantic')
        add_project_arguments('-Wno-pedantic', language : 'c')
endif

src = [
    'wayland-thread.c',
    'wayland-egldisplay.c',
    'wayland-eglstream.c',
    'wayland-eglstream-server.c',
    'wayland-eglsurface.c',
    'wayland-eglswap.c',
    'wayland-eglutils.c',
    'wayland-eglhandle.c',
    'wayland-external-exports.c',

    wayland_eglstream_protocol_c,
    wayland_eglstream_client_protocol_h,
    wayland_eglstream_server_protocol_h,
    wayland_eglstream_controller_protocol_c,
    wayland_eglstream_controller_client_protocol_h,
]

egl_wayland = library('nvidia-egl-wayland',
    src,
    dependencies : [
        eglexternalplatform,
        wayland_server,
        wayland_client,
        wayland_egl_backend,
        threads,
        libdl,
    ],
    include_directories : inc,
    version : meson.project_version(),
    install : true,
)