File: meson.build

package info (click to toggle)
gtksourceview4 4.8.4-6
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 12,376 kB
  • sloc: ansic: 50,318; xml: 1,432; javascript: 856; perl: 212; sh: 150; php: 48; yacc: 45; ruby: 38; sql: 30; cobol: 20; objc: 19; lisp: 19; fortran: 14; python: 13; makefile: 13; cpp: 8; ml: 3
file content (36 lines) | stat: -rw-r--r-- 1,193 bytes parent folder | download | duplicates (4)
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
tests_c_args = [
  '-DG_LOG_DOMAIN="GtkSourceView"',
  '-DTOP_SRCDIR="@0@"'.format(srcdir),
]

tests_sources = {
                 'completion': ['test-completion.c'],
                    'int2str': ['test-int2str.c'],
                     'search': ['test-search.c'],
        'search-performances': ['test-search-performances.c'],
              'space-drawing': ['test-space-drawing.c'],
  'undo-manager-performances': ['test-undo-manager-performances.c'],
                     'widget': ['test-widget.c'],
}

tests_resources = {
  'completion': 'test-completion.gresource.xml',
      'search': 'test-search.gresource.xml',
      'widget': 'test-widget.gresource.xml',
}

foreach test_name, test_sources: tests_sources
  if tests_resources.has_key(test_name)
    test_sources += gnome.compile_resources(
      'test-@0@-resources'.format(test_name),
      tests_resources.get(test_name),
    )
  endif

  # MSVC builds: We need items from the main GtkSourceView .lib as
  # well as the static core lib
  executable('test-@0@'.format(test_name), test_sources,
          c_args: tests_c_args,
    dependencies: cc.get_id() == 'msvc' ? [gtksource_dep, core_dep] : [gtksource_dep],
  )
endforeach