[go: up one dir, main page]

File: meson.build

package info (click to toggle)
libdecor-0 0.2.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 492 kB
  • sloc: ansic: 8,377; cpp: 288; sh: 89; makefile: 23
file content (82 lines) | stat: -rw-r--r-- 1,669 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
add_languages('cpp', native: false)

wayland_cursor_dep = dependency('wayland-cursor')

math_dep = cc.find_library('m')

egl_dep = dependency('egl')
gl_dep = dependency('opengl')
wayland_egl_dep = dependency('wayland-egl')

xkb_dep = dependency('xkbcommon')

xdg_shell_path = join_paths(protocols_dir, 'stable', 'xdg-shell', 'xdg-shell.xml')

xdg_shell_client_header = custom_target('xdg-shell client header (demo)',
  input: xdg_shell_path,
  output: 'xdg-shell-client-protocol.h',
  command: [
    wayland_scanner,
    'client-header',
    '@INPUT@', '@OUTPUT@',
  ]
)

xdg_shell_source = custom_target('xdg-shell source (demo)',
  input: xdg_shell_path,
  output: 'xdg-shell-protocol.c',
  command: [
    wayland_scanner,
    'private-code',
    '@INPUT@', '@OUTPUT@',
  ]
)

executable('libdecor-demo',
  sources: [
    'demo.c',
    xdg_shell_client_header,
    xdg_shell_source,
  ],
  include_directories: [
    top_includepath,
  ],
  dependencies: [
    libdecor_dep,
    wayland_cursor_dep,
    desktop_settings_dep,
    os_compatibility_dep,
    xkb_dep],
  install: get_option('install_demo'),
)

executable('libdecor-egl',
  sources: 'egl.c',
  dependencies: [
    libdecor_dep,
    wayland_egl_dep,
    egl_dep,
    gl_dep,
    math_dep],
  install: get_option('install_demo'),
)

executable('libdecor-c++-demo',
  sources: [
    'c++-demo.cc',
  ],
  cpp_args: [
    '-Wno-unused-parameter',
    '-Wno-missing-field-initializers',
  ],
  include_directories: [
    top_includepath,
  ],
  dependencies: [
    libdecor_dep,
    wayland_cursor_dep,
    desktop_settings_dep,
    os_compatibility_dep,
    xkb_dep],
  install: get_option('install_demo'),
)