File: meson.build

package info (click to toggle)
libadwaita-1 1.8.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,272 kB
  • sloc: ansic: 86,112; xml: 189; python: 60; sh: 30; makefile: 21; javascript: 9
file content (117 lines) | stat: -rw-r--r-- 2,555 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
if get_option('tests')

subdir('manual')

test_resources = gnome.compile_resources(
   'adwaita-test-resources',
   'tests.gresources.xml',

   c_name: 'test',
)

test_env = [
  'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
  'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),
  'G_DEBUG=gc-friendly',
  'GDK_DEBUG=no-portals',
  'GSETTINGS_BACKEND=memory',
  'PYTHONDONTWRITEBYTECODE=yes',
  'MALLOC_CHECK_=2',
  'GTK_A11Y=none',
]

test_cflags = [
  '-DADW_LOG_DOMAIN="Adwaita"',
]

test_link_args = []
use_pie = false

if cc.get_argument_syntax() != 'msvc'
  test_link_args += '-fPIC'
  use_pie = true
endif

test_names = [
  'test-about-dialog',
  'test-about-window',
  'test-accent-color',
  'test-action-row',
  'test-alert-dialog',
  'test-animation',
  'test-animation-target',
  'test-application-window',
  'test-avatar',
  'test-back-button',
  'test-banner',
  'test-bin',
  'test-bottom-sheet',
  'test-breakpoint',
  'test-breakpoint-bin',
  'test-button-content',
  'test-button-row',
  'test-carousel',
  'test-carousel-indicator-dots',
  'test-carousel-indicator-lines',
  'test-combo-row',
  'test-dialog',
  'test-easing',
  'test-entry-row',
  'test-expander-row',
  'test-flap',
  'test-header-bar',
  'test-inline-view-switcher',
  'test-leaflet',
  'test-message-dialog',
  'test-multi-layout-view',
  'test-navigation-split-view',
  'test-navigation-view',
  'test-overlay-split-view',
  'test-password-entry-row',
  'test-preferences-dialog',
  'test-preferences-group',
  'test-preferences-page',
  'test-preferences-row',
  'test-preferences-window',
  'test-shortcut-label',
  'test-spinner',
  'test-spinner-paintable',
  'test-spin-row',
  'test-split-button',
  'test-squeezer',
  'test-status-page',
  'test-style-manager',
  'test-switch-row',
  'test-tab-bar',
  'test-tab-button',
  'test-tab-overview',
  'test-tab-view',
  'test-timed-animation',
  'test-toast',
  'test-toast-overlay',
  'test-toggle-group',
  'test-toolbar-view',
  'test-view-switcher',
  'test-view-switcher-bar',
  'test-window',
  'test-window-title',
  'test-wrap-layout',
]

foreach test_name : test_names
  test_sources = [
    test_name + '.c',
    test_resources,
    libadwaita_generated_headers
  ]

  t = executable(test_name, test_sources,
                       c_args: test_cflags,
                    link_args: test_link_args,
                 dependencies: libadwaita_deps + [libadwaita_internal_dep],
                          pie: use_pie,
                )
  test(test_name, t, env: test_env)
endforeach

endif